Skip to content

Release v0.14.4

Choose a tag to compare

@log-li log-li released this 11 Sep 09:50
· 85 commits to main since this release

[0.14.4] — 2026-09-12

Fixed

  • Deny-scan parity between enforcement points: the approval path scanned FULL args (document content) while the gate scanned only target paths — a whitelisted write whose body mentioned a sensitive word was wrongly denied, breaking the zero-review allowPath contract and mis-firing the contradiction-pair sentinel. Shared denyHaystackFor() (file tools → paths only; bash → command text) now backs both gate and approval.
  • Escalated file-tool calls now show the classifier its target paths (PromptInput.paths): previously an escalated write was judged from justification prose alone (file tools carry no command).
  • toolArgsKey dirs are JSON-serialized (comma join could collide {/a,b} with a single /a,b dir); warnSetterMissing tracks per-setter (both may be reported); reasoning effort substring match tightened; dead classifyBand import removed; spec's stale test claim corrected. A file-tool sig-parity regression test now documents the gate↔approval reason-template coupling.

Changed (0.14.3 work, not published separately)

  • Permission setters are now runtime-probed too (issue #1 by xiaolinziwang): setApprovalPolicy / setSandboxMode are loaded via namespace import + typeof probe instead of named imports. Newer hosts (Desktop 2.0.5 series) removed these exports — a named import crashed plugin load at module-instantiation. Missing setter → auto mode degrades (skip knob + one-time warning) instead of crashing.
  • Compatibility layer hardened against hosts that removed the legacy effective* exports (0.14.2 work, not published separately):
  • Permission setters are now runtime-probed too (issue #1 by xiaolinziwang): setApprovalPolicy / setSandboxMode are loaded via namespace import + typeof probe instead of named imports. Newer hosts (Desktop 2.0.5 series) removed these exports — a named import crashed plugin load at module-instantiation. When a setter is missing, auto mode degrades (skips that knob + one-time warning) instead of crashing; the fail-soft path is kept.
  • Compatibility layer hardened against hosts that removed the legacy effective* exports (0.14.2 work, not published separately): (adopted from PR #2 by WSL043): permission-state.ts now loads those helpers via namespace import + runtime typeof probing instead of named imports. On newer Harness builds / official npm packages where effectivePermissionPreset & co are removed entirely, plugin loading no longer fails at module-instantiation; a missing fold simply skips the event-log fallback (projection path unchanged). Our fail-soft {} behavior is kept (the PR's throw was not adopted).

Thanks

  • @WSL043 — PR #2: the namespace-import + runtime-probe technique for the permission-compat layer (co-author on the v0.14.2 commit, listed in package metadata).
  • @xiaolinziwang — issue #1: report of the Desktop 2.0.5 permission-setter removal that led to the graceful-degradation fix.

[0.14.4] — 2026-09-12

修复

  • 两道防线 deny 扫描一致:approval 路径曾扫全量 args(含文件内容),gate 只扫目标路径——白名单写入正文含敏感词会被误拒,破坏零评审契约并让矛盾对哨兵误报。共享 denyHaystackFor()(文件工具→仅路径、bash→命令文本)现同时支撑 gate 与 approval。
  • 提权文件工具调用把目标路径传给分类器(PromptInput.paths):此前提权 write 仅凭理由文本被评判(文件工具无 command)。
  • toolArgsKey 目录改 JSON 序列化(逗号拼接可碰撞);warnSetterMissing 按 setter 名跟踪;reasoning effort 子串匹配收紧;清理死导入 classifyBand;补正 spec 虚记的测试声明;新增文件工具签名奇偶性回归测试(记录 gate↔approval reason 模板耦合)。

变更(0.14.3 工作,未单独发布)

  • 权限 setter 改为运行时探测(issue #1,xiaolinziwang):setApprovalPolicy / setSandboxMode 改 namespace import + typeof 探测。缺失时 auto mode 降级(跳过 + 一次性警告)而非崩溃。
  • 兼容层加固(0.14.2 工作,未单独发布):
  • 权限 setter 也改为运行时探测(issue #1,xiaolinziwang):setApprovalPolicy / setSandboxMode 改为 namespace import + typeof 探测,不再命名导入。新宿主(Desktop 2.0.5 系)整体移除了这些导出——命名导入会在模块实例化期崩溃。setter 缺失时 auto mode 降级(跳过该 knob + 一次性警告)而非崩溃。
  • 兼容层加固(0.14.2 工作,未单独发布):permission-state.ts 对 legacy effective* 导出改用 namespace import + 运行时 typeof 探测(思路采纳自 WSL043 的 PR #2)。在新版 Harness build / 官方 npm 包整体移除 effectivePermissionPreset 等导出的宿主上,插件加载不再在模块实例化期崩溃;探测不到的 fold 直接跳过事件日志回退(投影路径不变)。保留我们的 fail-soft {} 行为(未采纳 PR 的 throw)。
  • 贡献署名:package.json contributors 增加 WSL043;实现 commit 带 Co-authored-by。

致谢

  • @WSL043 — PR #2:权限兼容层的 namespace-import + 运行时探测思路(v0.14.2 commit 共同署名,已列入包元数据)。
  • @xiaolinziwang — issue #1:报告 Desktop 2.0.5 移除权限 setter 导出,促成降级不崩的修复。