github GanyuanRan/Aegis v2.16.1
v2.16.1 — Hook startup, fresh subagent context and benchmark fixes

34 minutes ago

English

  • SessionStart hook: hooks/session-start now uses shell builtins only and starts no child process, so it also works with an empty or broken PATH. Its output is unchanged (byte-identical to 2.16.0 across 13 configuration variants in local checks), and on Windows Git Bash it took about 75 ms instead of 1.2–1.8 s in those checks. An unreadable config file falls back to the defaults instead of aborting. run-hook.cmd reuses the running bash only when $BASH is a bash or sh path, hooks.json declares the bash shell with a PowerShell form, and the Windows polyglot hook guide is rewritten. A new session-start-hook-check.sh runs in the Layer 1 fast check.
  • Bootstrap injection: the OpenCode plugin and the shared Pi/OMP core detect their own bootstrap by its exact opening, so a user message that merely mentions the tag name no longer suppresses injection, and the bootstrap is still injected only once. A new check keeps every OpenCode plugin export a function, as OpenCode's plugin loader requires.
  • Subagent context: dispatching-parallel-agents, requesting-code-review and subagent-driven-development now ask for a fresh context explicitly, because some hosts fork the whole parent conversation by default. The Codex tool reference documents the MultiAgentV2 form: fork_turns="none", a distinct task_name per running child (lowercase letters, digits and underscores), and agent_type only when the host's schema offers it. These hot-path skill changes did not go through the behavioral gate, so they are needs-verification; they are not claimed to improve behavior.
  • Benchmark harness (#112): Codex auth preflight failures now say which field was rejected when that is safe to print, a batch that cannot be resumed exits with code 76 and asks for a new --batch-id, and the newer Codex auth fields are accepted: login_owner_id is redacted like a token and oauth_provenance (issuer and client id) is metadata. Any other unknown field is still rejected.
  • Benchmarks: publish the contributor's Aegis 2.16.0 standard-held-out snapshot (#119): 72.73% → 90.91% contract pass rate (+18.18 pp, 95% case-cluster interval +4.55 to +36.36 pp) and 13.64% → 4.55% unsafe outcomes, from one observation per case; its contributor-attested review flag was accepted by the maintainer. A contributor's raw-output check (#111, not independently re-run) indicates that some published Aegis-arm passes in the standard snapshots appear to depend on the change necessity label; frozen scores are unchanged. README now points at the 2.16.0 snapshot, which does not measure the changes in this release.
  • README adds a sponsor section for Qiniu Cloud.
  • Distribution: all eight package/plugin versions are synchronized to 2.16.1; no global routing-prefix migration is required. Publication of 2.16.1 to the npm package @ganyuan_ran/aegis is pending; until the registry shows 2.16.1, npm installations stay on 2.16.0.
  • Release verification: run-all.sh --full --host-profile fast passed except the two live Codex brainstorming smokes. On the release machine Codex also loaded a globally installed Aegis copy, whose skills/aegis/<skill>/ path the smoke parser does not attribute, and the same smoke passed and failed on an identical tree. These two smokes are recorded as environment-bound, not as passes.

中文

  • SessionStart hook:hooks/session-start 改为只用 shell 内建命令,不再启动任何子进程,所以 PATH 为空或损坏时也能工作。输出保持不变(本地检查中 13 种配置组合与 2.16.0 逐字节一致);在这些检查里,Windows Git Bash 上的耗时由 1.2–1.8 秒降到约 75 毫秒。配置文件不可读时退回默认值,而不是中止。run-hook.cmd 只在 $BASH 指向 bash 或 sh 时复用当前 bash;hooks.json 声明使用 bash 并提供 PowerShell 写法;重写了 Windows 多语言 hook 说明。新增的 session-start-hook-check.sh 纳入 Layer 1 快速检查。
  • Bootstrap 注入:OpenCode 插件和 Pi/OMP 共享核心改为按自身 bootstrap 的开头精确识别,用户消息里只是提到标签名,不会再阻止注入;bootstrap 仍只注入一次。新增检查确保 OpenCode 插件的每个导出都是函数,这是 OpenCode 插件加载器的要求。
  • 子代理上下文:dispatching-parallel-agents、requesting-code-review、subagent-driven-development 现在明确要求以全新上下文启动子代理,因为有些宿主默认会复制整个父对话。Codex 工具说明补充了 MultiAgentV2 的写法:fork_turns="none"、同时运行的子代理各用不同的 task_name(只能用小写字母、数字和下划线),以及仅在宿主参数里提供时才加 agent_type。这些热路径技能改动没有经过行为门禁,因此标为 needs-verification,不声称带来了行为改进。
  • Benchmark 运行器(#112):Codex 认证预检失败时,会在可以安全打印的情况下指出被拒绝的字段;无法续跑的批次以退出码 76 结束,并提示换用新的 --batch-id;接受 Codex 新增的认证字段:login_owner_id 按令牌脱敏,oauth_provenance(issuer 和 client id)作为元数据。其他未知字段仍然拒绝。
  • Benchmark:发布贡献者提交的 Aegis 2.16.0 standard-held-out 快照(#119):合同通过率 72.73% → 90.91%(+18.18 个百分点,95% 案例簇区间 +4.55 至 +36.36 个百分点),不安全结果率 13.64% → 4.55%,每个案例一次观察;其贡献者自证的复核标记已由维护者接受。一位贡献者对原始输出的检查(#111,维护者未独立重跑)显示,standard 快照中部分已发布的 Aegis 组通过结果似乎依赖 change necessity 标签;冻结分数不变。README 改为指向 2.16.0 快照,该快照没有测量本次发布中的改动。
  • README 新增七牛云赞助商版块。
  • 发布:八处包和插件版本号同步为 2.16.1,不需要迁移全局路由前缀。2.16.1 尚未发布到 npm 包 @ganyuan_ran/aegis;在 registry 显示 2.16.1 之前,npm 安装仍停留在 2.16.0。
  • 发版验证:run-all.sh --full --host-profile fast 除两项 Codex brainstorming 实时冒烟外全部通过。发版机器上的 Codex 还会加载全局安装的 Aegis 副本,其 skills/aegis/<skill>/ 路径不被冒烟解析器计入;同一份代码上同一冒烟时过时不过。这两项记为受环境限制,不算通过。

Don't miss a new Aegis release

NewReleases is sending notifications on new releases.