@staix/agent-hub 0.50.0 → 0.52.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (350) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/README.md +1 -1
  3. package/docs/adding-an-ai-tool.md +26 -4
  4. package/docs/agent-notes/README.md +1 -0
  5. package/docs/agent-notes/adapters.md +4 -3
  6. package/docs/agent-notes/budget.md +8 -2
  7. package/docs/agent-notes/daemon.md +13 -8
  8. package/docs/agent-notes/local-worker.md +3 -3
  9. package/docs/agent-notes/security-review.md +6 -5
  10. package/docs/agent-notes/tasks.md +10 -3
  11. package/docs/agent-notes/tests.md +4 -3
  12. package/docs/cooperbench.md +1 -1
  13. package/docs/design/adapters.md +21 -0
  14. package/docs/design/cli-output-inventory.md +165 -150
  15. package/docs/design/cli-output.md +4 -3
  16. package/docs/design/guidance-probes.md +1 -0
  17. package/docs/design/roadmap.md +3 -1
  18. package/docs/design/task-board.md +35 -0
  19. package/docs/dogfood.md +21 -3
  20. package/docs/events.md +4 -2
  21. package/docs/memory.md +5 -3
  22. package/docs/operations.md +259 -19
  23. package/docs/quickstart.md +29 -2
  24. package/docs/roadmap.json +20 -20
  25. package/docs/roadmap.md +2 -2
  26. package/docs/roles.md +1 -1
  27. package/docs/sdlc.md +29 -5
  28. package/docs/security.md +11 -5
  29. package/docs/specs/2026-09-19-agent-hub-design.md +44 -0
  30. package/docs/specs/2026-09-19-multi-project-design.md +4 -0
  31. package/docs/specs/2026-09-20-upgrade-recovery-design.md +17 -0
  32. package/docs/specs/mcp-endpoint.md +63 -0
  33. package/docs/verification/2026-11-29-agy-1.5.20.md +33 -0
  34. package/docs/verification/2026-11-29-claude-profile-hook.md +12 -0
  35. package/docs/verification/2026-11-29-idle-daemon-footprint.md +75 -0
  36. package/docs/verification/2026-11-29-kimi-281-reviewer-compat.md +38 -0
  37. package/docs/verification/2026-11-29-kimi-tui-281.md +12 -0
  38. package/docs/verification/2026-11-30-0.51.0.md +91 -0
  39. package/docs/verification/2026-11-30-account-switch-1806.md +445 -0
  40. package/docs/verification/2026-11-30-capability-listing-shape-1808.md +45 -0
  41. package/docs/verification/2026-11-30-upgrade-keep-1807.md +174 -0
  42. package/docs/verification/2026-12-01-1811-confirmation-receipt.md +19 -0
  43. package/docs/verification/2026-12-01-1811-orca-agent-list.md +20 -0
  44. package/docs/verification/2026-12-01-1811-orca-pane-key.md +21 -0
  45. package/docs/verification/2026-12-02-1819-claude-process-after-renewal.md +54 -0
  46. package/docs/verification/2026-12-02-agy-1.5.21.md +74 -0
  47. package/docs/verification/2026-12-02-claude-implementer-2.1.334.md +44 -0
  48. package/docs/verification/2026-12-02-cli-import-graph.md +33 -0
  49. package/docs/verification/2026-12-03-0.52.0.md +150 -0
  50. package/docs/verification/2026-12-03-codex-0173-reviewer-isolation.md +53 -0
  51. package/docs/verification/2026-12-03-codex-0173-reviewer-tool-call.md +34 -0
  52. package/docs/verification/2026-12-03-jcode-1.3.0.md +25 -0
  53. package/docs/verification/agy/README.md +17 -0
  54. package/docs/verification/agy/cli-surface.ts +68 -0
  55. package/docs/verification/agy/interactive-bridge.ts +92 -0
  56. package/docs/verification/agy/interactive-session.ts +131 -0
  57. package/docs/verification/agy/launcher-nonce.ts +215 -0
  58. package/docs/verification/agy/native-hooks.ts +210 -0
  59. package/docs/verification/agy/originals/agent-hub-681/cli-surface.ts +87 -0
  60. package/docs/verification/agy/originals/agent-hub-681/native-hooks-adapted.ts +91 -0
  61. package/docs/verification/agy/originals/agent-hub-681/tui-actual.ts +200 -0
  62. package/docs/verification/agy/originals/agent-hub-684/probe.ts +107 -0
  63. package/docs/verification/agy/originals.json +25 -0
  64. package/docs/verification/agy/permission-new-functions.ts +128 -0
  65. package/docs/verification/agy/run-probe.py +108 -0
  66. package/docs/verification/agy/runtime.ts +171 -0
  67. package/docs/verification/agy/tmux-helper-control.ts +6 -0
  68. package/docs/verification/agy/tmux-session.ts +235 -0
  69. package/docs/verified.json +87 -42
  70. package/package.json +3 -3
  71. package/plugins/agent-hub/.claude-plugin/plugin.json +1 -1
  72. package/plugins/agent-hub/compat.json +157 -0
  73. package/plugins/agent-hub/kimi-hook.js +1416 -24985
  74. package/plugins/agent-hub/server.js +17415 -32755
  75. package/scripts/check-docs.mjs +1 -1
  76. package/src/adapters/acp.ts +13 -13
  77. package/src/adapters/agy/definition.ts +9 -26
  78. package/src/adapters/agy/entry.ts +2 -0
  79. package/src/adapters/channel-peer.ts +3 -1
  80. package/src/adapters/claude-channel-evidence.ts +7 -3
  81. package/src/adapters/claude-channel.ts +38 -257
  82. package/src/adapters/claude-implementer.ts +3 -1
  83. package/src/adapters/codex-appserver.ts +77 -15
  84. package/src/adapters/compat.ts +78 -14
  85. package/src/adapters/configured-acp.ts +23 -163
  86. package/src/adapters/configured-adapter-policy.ts +160 -0
  87. package/src/adapters/configured-pull-entry.ts +53 -0
  88. package/src/adapters/configured-pull.ts +38 -0
  89. package/src/adapters/conformance/fakes/app-server.ts +9 -2
  90. package/src/adapters/declaration-catalog.ts +25 -0
  91. package/src/adapters/declaration-data.ts +342 -0
  92. package/src/adapters/declaration-resolution.ts +53 -0
  93. package/src/adapters/definitions/builtin-metadata.ts +62 -84
  94. package/src/adapters/definitions/jcode-launch.ts +13 -0
  95. package/src/adapters/definitions/native-adapter-policy.ts +390 -0
  96. package/src/adapters/definitions/native-cli-claude-launch.ts +6 -3
  97. package/src/adapters/definitions/native-cli-codex-launch.ts +2 -1
  98. package/src/adapters/definitions/native-cli-entry-claude.ts +17 -2
  99. package/src/adapters/definitions/native-cli-entry-codex.ts +2 -0
  100. package/src/adapters/definitions/native-cli-entry-jcode.ts +6 -2
  101. package/src/adapters/definitions/native-cli-entry-kimi.ts +2 -0
  102. package/src/adapters/definitions/native-cli-entry-pi.ts +2 -0
  103. package/src/adapters/definitions/native-cli-entry-qwen.ts +2 -0
  104. package/src/adapters/definitions/native-cli-entry-types.ts +12 -3
  105. package/src/adapters/definitions/native-cli-jcode-home-init.ts +1 -1
  106. package/src/adapters/definitions/native-cli-launch-common.ts +2 -2
  107. package/src/adapters/definitions/native-cli-preview-common.ts +1 -1
  108. package/src/adapters/definitions/native-cli-retained.ts +1 -1
  109. package/src/adapters/definitions/native-config-defaults.ts +1 -1
  110. package/src/adapters/definitions/native-configuration.ts +18 -0
  111. package/src/adapters/definitions/native-help.ts +24 -0
  112. package/src/adapters/definitions/native-launch-declarations.ts +34 -0
  113. package/src/adapters/definitions/native-launch-policy.ts +4 -0
  114. package/src/adapters/definitions/native-launch-settings.ts +72 -0
  115. package/src/adapters/definitions/native-light-cli.ts +18 -0
  116. package/src/adapters/definitions/native-light-preview.ts +10 -0
  117. package/src/adapters/definitions/native-wrapper-launch.ts +10 -0
  118. package/src/adapters/definitions/qwen.ts +6 -29
  119. package/src/adapters/definitions/reviewer-variants.ts +7 -8
  120. package/src/adapters/external-declarations.ts +31 -0
  121. package/src/adapters/external-modules.ts +4 -29
  122. package/src/adapters/jcode.ts +19 -12
  123. package/src/adapters/native-capabilities.ts +18 -8
  124. package/src/adapters/native-facts-hooks.ts +12 -0
  125. package/src/adapters/native-proof-ports.ts +1 -1
  126. package/src/adapters/presets.ts +136 -0
  127. package/src/adapters/qwen-dual.ts +2 -2
  128. package/src/adapters/registry-types.ts +3 -0
  129. package/src/adapters/registry.ts +20 -81
  130. package/src/adapters/reviewer-print.ts +26 -9
  131. package/src/adapters/role-eligibility.ts +2 -1
  132. package/src/cli/accounts-import.ts +72 -0
  133. package/src/cli/agents-latest-table.ts +88 -0
  134. package/src/cli/agents-latest.ts +22 -0
  135. package/src/cli/agents-output.ts +10 -0
  136. package/src/cli/agents-presets.ts +100 -0
  137. package/src/cli/agents.ts +1 -1
  138. package/src/cli/attention.ts +3 -2
  139. package/src/cli/autonomy-homes.ts +7 -2
  140. package/src/cli/autonomy-offline.ts +1 -1
  141. package/src/cli/bench.ts +1 -1
  142. package/src/cli/budget-renew-guidance.ts +129 -0
  143. package/src/cli/claude-homes.ts +9 -5
  144. package/src/cli/claude-profile-hook.ts +31 -11
  145. package/src/cli/command-context.ts +3 -0
  146. package/src/cli/command-table.ts +123 -0
  147. package/src/cli/commands/accounts.ts +8 -0
  148. package/src/cli/commands/agents.ts +18 -0
  149. package/src/cli/commands/answer.ts +28 -0
  150. package/src/cli/commands/ask.ts +17 -0
  151. package/src/cli/commands/autonomy.ts +83 -0
  152. package/src/cli/commands/backlog.ts +46 -0
  153. package/src/cli/commands/bench.ts +60 -0
  154. package/src/cli/commands/board.ts +48 -0
  155. package/src/cli/commands/broker.ts +9 -0
  156. package/src/cli/commands/budget.ts +96 -0
  157. package/src/cli/commands/capabilities.ts +12 -0
  158. package/src/cli/commands/check-path.ts +55 -0
  159. package/src/cli/commands/completion.ts +8 -0
  160. package/src/cli/commands/console.ts +12 -0
  161. package/src/cli/commands/daemon.ts +8 -0
  162. package/src/cli/commands/deliverables.ts +25 -0
  163. package/src/cli/commands/doctor.ts +249 -0
  164. package/src/cli/commands/down.ts +3 -0
  165. package/src/cli/commands/export.ts +15 -0
  166. package/src/cli/commands/facts.ts +15 -0
  167. package/src/cli/commands/goal.ts +22 -0
  168. package/src/cli/commands/guidance.ts +102 -0
  169. package/src/cli/commands/help.ts +17 -0
  170. package/src/cli/commands/host.ts +45 -0
  171. package/src/cli/commands/init.ts +121 -0
  172. package/src/cli/commands/instructed.ts +19 -0
  173. package/src/cli/commands/instruction-hook.ts +15 -0
  174. package/src/cli/commands/intake.ts +24 -0
  175. package/src/cli/commands/kill.ts +15 -0
  176. package/src/cli/commands/learn.ts +23 -0
  177. package/src/cli/commands/lineage.ts +30 -0
  178. package/src/cli/commands/logs.ts +21 -0
  179. package/src/cli/commands/manager.ts +15 -0
  180. package/src/cli/commands/memory.ts +21 -0
  181. package/src/cli/commands/model.ts +25 -0
  182. package/src/cli/commands/models.ts +40 -0
  183. package/src/cli/commands/native.ts +39 -0
  184. package/src/cli/commands/pause.ts +5 -0
  185. package/src/cli/commands/peer.ts +32 -0
  186. package/src/cli/commands/permission.ts +26 -0
  187. package/src/cli/commands/permit.ts +12 -0
  188. package/src/cli/commands/pet.ts +24 -0
  189. package/src/cli/commands/projects.ts +49 -0
  190. package/src/cli/commands/queue.ts +70 -0
  191. package/src/cli/commands/recovery-run.ts +13 -0
  192. package/src/cli/commands/recovery.ts +130 -0
  193. package/src/cli/commands/release.ts +23 -0
  194. package/src/cli/commands/releases.ts +91 -0
  195. package/src/cli/commands/remember.ts +6 -0
  196. package/src/cli/commands/report.ts +27 -0
  197. package/src/cli/commands/research.ts +53 -0
  198. package/src/cli/commands/reset.ts +89 -0
  199. package/src/cli/commands/restart.ts +5 -0
  200. package/src/cli/commands/results.ts +31 -0
  201. package/src/cli/commands/resume.ts +5 -0
  202. package/src/cli/commands/review.ts +24 -0
  203. package/src/cli/commands/roadmap.ts +21 -0
  204. package/src/cli/commands/role.ts +34 -0
  205. package/src/cli/commands/roles.ts +30 -0
  206. package/src/cli/commands/room.ts +14 -0
  207. package/src/cli/commands/roster.ts +48 -0
  208. package/src/cli/commands/route.ts +9 -0
  209. package/src/cli/commands/say.ts +21 -0
  210. package/src/cli/commands/schedule.ts +17 -0
  211. package/src/cli/commands/sdlc.ts +321 -0
  212. package/src/cli/commands/settings.ts +148 -0
  213. package/src/cli/commands/setup.ts +89 -0
  214. package/src/cli/commands/shared-refusals.ts +25 -0
  215. package/src/cli/commands/smoke.ts +44 -0
  216. package/src/cli/commands/source.ts +64 -0
  217. package/src/cli/commands/specs.ts +13 -0
  218. package/src/cli/commands/status.ts +28 -0
  219. package/src/cli/commands/stop.ts +17 -0
  220. package/src/cli/commands/structure.ts +60 -0
  221. package/src/cli/commands/study.ts +39 -0
  222. package/src/cli/commands/tail.ts +19 -0
  223. package/src/cli/commands/task.ts +114 -0
  224. package/src/cli/commands/title.ts +17 -0
  225. package/src/cli/commands/turns.ts +10 -0
  226. package/src/cli/commands/ui.ts +47 -0
  227. package/src/cli/commands/undo.ts +77 -0
  228. package/src/cli/commands/up.ts +39 -0
  229. package/src/cli/commands/upgrade.ts +5 -0
  230. package/src/cli/commands/usage.ts +33 -0
  231. package/src/cli/commands/version.ts +5 -0
  232. package/src/cli/commands/watch.ts +30 -0
  233. package/src/cli/commands/worktrees.ts +31 -0
  234. package/src/cli/conductor-recovery.ts +1 -1
  235. package/src/cli/console-state.ts +5 -138
  236. package/src/cli/console-versions.ts +1 -1
  237. package/src/cli/facts-hook.ts +11 -4
  238. package/src/cli/help.ts +44 -20
  239. package/src/cli/identity.ts +27 -4
  240. package/src/cli/init-prompt.ts +1 -1
  241. package/src/cli/init-settings.ts +4 -35
  242. package/src/cli/init.ts +1 -1
  243. package/src/cli/json-text-spans.ts +57 -0
  244. package/src/cli/launch-check.ts +156 -0
  245. package/src/cli/launch.ts +19 -70
  246. package/src/cli/light-dispatch.ts +29 -0
  247. package/src/cli/main.js +8 -1
  248. package/src/cli/main.ts +257 -2799
  249. package/src/cli/memory.ts +1 -1
  250. package/src/cli/orca-probe.ts +119 -0
  251. package/src/cli/output.ts +45 -3
  252. package/src/cli/preview.ts +11 -6
  253. package/src/cli/recovery-launch.ts +1 -1
  254. package/src/cli/recovery-version-preflight.ts +28 -9
  255. package/src/cli/replace-process.ts +22 -0
  256. package/src/cli/report-layout.ts +142 -0
  257. package/src/cli/roadmap-usage.ts +16 -0
  258. package/src/cli/roadmap.ts +3 -16
  259. package/src/cli/sdlc-doctor.ts +27 -0
  260. package/src/cli/sdlc-output.ts +55 -1
  261. package/src/cli/setup-homes.ts +2 -2
  262. package/src/cli/start-agents-run.ts +85 -7
  263. package/src/cli/start-check.ts +28 -0
  264. package/src/cli/statusline-tee.ts +25 -4
  265. package/src/cli/terminal-recovery.ts +53 -10
  266. package/src/cli/upgrade-interactive.ts +1 -0
  267. package/src/cli/upgrade-runtime.ts +12 -1
  268. package/src/cli/upgrade.ts +4 -15
  269. package/src/cli/warn-line.ts +1 -1
  270. package/src/hub/accounts.ts +148 -0
  271. package/src/hub/addons.ts +20 -0
  272. package/src/hub/agent-drift.ts +2 -1
  273. package/src/hub/budget-projection.ts +39 -7
  274. package/src/hub/budget.ts +231 -16
  275. package/src/hub/channel-project.ts +3 -3
  276. package/src/hub/ci-watch.ts +311 -79
  277. package/src/hub/conductor-peer.ts +24 -0
  278. package/src/hub/conductor.ts +2 -21
  279. package/src/hub/config-apply.ts +25 -14
  280. package/src/hub/config-edit.ts +1 -1
  281. package/src/hub/config-tier.ts +2 -0
  282. package/src/hub/config.ts +535 -0
  283. package/src/hub/control-client.ts +49 -1
  284. package/src/hub/daemon.ts +492 -569
  285. package/src/hub/delivery-public.ts +11 -0
  286. package/src/hub/events.ts +3 -0
  287. package/src/hub/home-tag.ts +12 -0
  288. package/src/hub/host.ts +217 -0
  289. package/src/hub/hub-check.ts +125 -0
  290. package/src/hub/hub-tools.ts +2 -1
  291. package/src/hub/instance-budget.ts +2 -2
  292. package/src/hub/instance-config.ts +15 -126
  293. package/src/hub/instances.ts +22 -6
  294. package/src/hub/instruction-receipt.ts +2 -2
  295. package/src/hub/kimi-usage.ts +38 -11
  296. package/src/hub/lifecycle.ts +86 -4
  297. package/src/hub/mcp-bridge-core.ts +98 -0
  298. package/src/hub/mcp-channel-push.ts +20 -0
  299. package/src/hub/mcp-endpoint-serve.ts +178 -0
  300. package/src/hub/mcp-endpoint.ts +226 -0
  301. package/src/hub/mcp-tool-call.ts +181 -0
  302. package/src/hub/operational-settings.ts +2 -0
  303. package/src/hub/orca-env.ts +6 -0
  304. package/src/hub/orca-state.ts +84 -0
  305. package/src/hub/path-policy.ts +1 -1
  306. package/src/hub/peers.ts +5 -1
  307. package/src/hub/permission-mode.ts +5 -41
  308. package/src/hub/permission-paths.ts +41 -0
  309. package/src/hub/project.ts +20 -0
  310. package/src/hub/protocol-window.ts +58 -0
  311. package/src/hub/quota-origin.ts +20 -0
  312. package/src/hub/recovery-policy.ts +1 -1
  313. package/src/hub/registry.ts +36 -2
  314. package/src/hub/releases-inventory.ts +198 -0
  315. package/src/hub/report.ts +1 -1
  316. package/src/hub/research.ts +1 -1
  317. package/src/hub/review-brief.ts +47 -2
  318. package/src/hub/roster.ts +6 -3
  319. package/src/hub/routing.ts +9 -2
  320. package/src/hub/runtime-capture-prune.ts +25 -3
  321. package/src/hub/runtime-prune-health.ts +8 -1
  322. package/src/hub/sdlc-check.ts +205 -0
  323. package/src/hub/sdlc-release-authorization.ts +42 -21
  324. package/src/hub/sdlc-release-diagnostics.ts +5 -0
  325. package/src/hub/sdlc-release-policy.ts +21 -7
  326. package/src/hub/sdlc-release.ts +80 -20
  327. package/src/hub/sdlc-sync.ts +146 -0
  328. package/src/hub/sdlc.ts +38 -5
  329. package/src/hub/settings.ts +7 -4
  330. package/src/hub/start-agents.ts +1 -1
  331. package/src/hub/start-mode.ts +11 -4
  332. package/src/hub/structure-budget.ts +131 -0
  333. package/src/hub/structure-scan.ts +149 -0
  334. package/src/hub/tasks-experiment.ts +455 -0
  335. package/src/hub/tasks-guidance.ts +606 -0
  336. package/src/hub/tasks-roadmap-plan.ts +419 -0
  337. package/src/hub/tasks-roadmap.ts +491 -0
  338. package/src/hub/tasks-study.ts +661 -0
  339. package/src/hub/tasks-survey.ts +192 -0
  340. package/src/hub/tasks.ts +457 -2584
  341. package/src/hub/terminal-open.ts +5 -3
  342. package/src/hub/tooling.ts +3 -19
  343. package/src/hub/usage-rollup.ts +9 -3
  344. package/src/local/tools.ts +5 -0
  345. package/src/ui/index.html +1 -1
  346. package/src/ui/needs.ts +17 -5
  347. package/src/ui/peer-palette.ts +2 -4
  348. package/src/ui/plugin.ts +1 -1
  349. package/templates/presets/agents.json +60 -0
  350. package/templates/presets/confirmation-matrix.json +8 -8
@@ -0,0 +1,445 @@
1
+ # Claude and Codex account-switch probe
2
+
3
+ Refs #1806 AC1. Measured 2026-11-30 using Claude Code 2.1.332 and the
4
+ fnm-managed npm installation of Codex CLI 0.172.0. The Codex binary's
5
+ installation bin directory was placed first in the cleared probe environment,
6
+ and `codex --version` confirmed 0.172.0. The Homebrew installation was excluded.
7
+ All CLI probes used fresh temporary `HOME`, `CODEX_HOME`, `CLAUDE_CONFIG_DIR`
8
+ and `AGENTHUB_HOME` with a scratch working directory. No real provider
9
+ account or credential was used. No existing session, app-server or hub was used.
10
+
11
+ ## Model-free results
12
+
13
+ | AC1 | Evidence collected | Native result |
14
+ | --- | --- | --- |
15
+ | (a) Claude in-session login change | `claude --version`, `claude --help` and `claude auth --help` ran successfully. The hub's `statusline-tee.ts` consumes Claude's `rate_limits` from stdin and records a measurement when the `rate_limits` object is present. A new timestamp describes the render, and the quota fields carry no proof of an account switch. | Unverified. Which quota windows render before the first response after switching, and whether the channel stays attached, need the live observation below. |
16
+ | (b) Codex login change in one home | `codex app-server generate-ts --out "$scratch/protocol"` generated the installed wire types. `ServerNotification.ts` declares `account/updated` and `account/rateLimits/updated`. `AccountUpdatedNotification` carries nullable `authMode` and `planType`. `ClientRequest.ts` declares `account/rateLimits/read`. The hub's adapter sends that read on its current connection. | Unverified. A supported notification does not establish that a running process reloads login changes made by a separate CLI or emits the notification. |
17
+ | (c) Codex thread resume from another home | `codex resume --help` accepts a session ID. The generated `ThreadResumeParams` describes disk lookup by ID and describes protocol alternatives using an explicit rollout path or history. Those are different requests from an ordinary resume by ID. | Unverified. The schema does not establish visibility of a thread from another home or under another account. |
18
+
19
+ In the 0.172.0 native source, the app-server's own successful ChatGPT login
20
+ reloads its authentication manager and emits `account/updated`. The rate-limit
21
+ read asks that manager for authentication. The source also has a separate
22
+ login notification path that neither identifies a particular account nor
23
+ attests to a switch made by an external CLI. Those paths do not establish
24
+ what happens when a different process changes the scratch home's login. See
25
+ [the tagged account processor](https://github.com/openai/codex/blob/rust-v0.172.0/codex-rs/app-server/src/request_processors/account_processor.rs).
26
+
27
+ The command `bun test test/codex-budget-reset.test.ts` passed both tests under
28
+ the same isolation. Its fake app-server demonstrated a quota read through the
29
+ existing hub proxy and stopping its poll on detach. It simulated a reset. It did
30
+ not simulate or observe a native account switch, an `account/updated` event or
31
+ cross-home thread discovery.
32
+
33
+ Keep the proposed fail-closed behavior until the corresponding live case is
34
+ verified. For Claude, quota stays unknown after a switch until safe session
35
+ evidence exists. For Codex, an `account/updated` event can trigger a quota read
36
+ without attesting to a different account. A different home needs an explicit
37
+ restart and a checkpoint or new-thread path when continuation is unverified.
38
+ No model-free result contradicted these decisions.
39
+
40
+ The first scratch rehearsal in a fresh worktree without its frozen
41
+ dependencies reached `up` and exited 1 with
42
+ `ahub: memory runtime dependency identity/version mismatch`. After
43
+ `bun install --frozen-lockfile` in that worktree, the no-agent rehearsal ran
44
+ `init --yes --no-jcode-home --no-memory`, `up --no-agents --no-console`,
45
+ `status --json` and `kill` successfully. The filter returned the hub version
46
+ and null Claude attachment fields.
47
+
48
+ The documented Claude block was rehearsed in a pseudoterminal using a fake
49
+ `claude`. The fake received the scratch `HOME` and `CLAUDE_CONFIG_DIR`.
50
+ Normal exit, a short rehearsal timeout (exit 124), nonzero exit and a failed
51
+ status sample followed by a successful one all left the shell and the
52
+ observations available. In each case the observer and scratch hub stopped,
53
+ and explicit cleanup removed only the marked scratch folder. A failed fake
54
+ Codex command also left the shell and the Claude observations in place.
55
+ These checks cover the scripts, the hub launcher and environment forwarding.
56
+ Claude's use of the Keychain rests on the official documentation below.
57
+
58
+ ## Person-run observations (not run)
59
+
60
+ Run these only with disposable A and B accounts from a terminal you control.
61
+ Keep login details, device codes, raw provider replies and thread IDs out of
62
+ the receipt. Where quotas differ, record only the selected percentages and
63
+ reset timestamps needed to tell A and B apart. Equal values are inconclusive.
64
+
65
+ ### Credential isolation
66
+
67
+ Anthropic documents that on macOS a custom `CLAUDE_CONFIG_DIR` keys the login
68
+ Keychain entry to that directory. Its file fallback also lives in that
69
+ directory. The Claude probe requires a new directory and the expected version.
70
+ This is documented isolation. No Keychain item was inspected.
71
+ [Claude Code authentication](https://code.claude.com/docs/en/authentication#credential-management)
72
+
73
+ Codex documents `cli_auth_credentials_store = "file"` as storing CLI auth in
74
+ `CODEX_HOME/auth.json`. The tagged 0.172.0 file backend removes only that
75
+ home's auth file. Managed workstation requirements can force a different
76
+ store. Run the live Codex blocks only where there is no such override and no
77
+ managed enterprise or config-server login route. If uncertain, stop and leave
78
+ the result unverified, or use a disposable OS user or VM without existing
79
+ credentials. The blocks pin file mode in the scratch config and supply it on
80
+ each Codex command. They switch by logging into the scratch home, without
81
+ running the separate logout operation.
82
+ [Codex configuration reference](https://developers.openai.com/codex/config-reference)
83
+ [Tagged credential storage](https://github.com/openai/codex/blob/rust-v0.172.0/codex-rs/login/src/auth/storage.rs)
84
+ [Tagged CLI login and logout](https://github.com/openai/codex/blob/rust-v0.172.0/codex-rs/cli/src/login.rs)
85
+
86
+ ### Start the probe shell
87
+
88
+ The blocks use Bash. After the coordinator's single repository `cd`, run
89
+ `bash` and paste the following. Activate the fnm environment before starting
90
+ Bash if needed. Success is the isolated binary paths and exact versions,
91
+ Claude `2.1.332 (Claude Code)` and Codex `codex-cli 0.172.0`. The block stops
92
+ before any probe on an absent prerequisite or a version mismatch. The paths
93
+ printed at the terminal are for the person and stay out of the receipt.
94
+ Each probe runs in its own subshell. A failed block keeps the interactive
95
+ shell and scratch results available. Run each block separately, reviewing its
96
+ exit report before starting another. The checkout must have its frozen Bun
97
+ dependencies installed.
98
+
99
+ ```bash
100
+ set +e
101
+ repo="$(pwd -P)"
102
+ probe_parent="$(cd "${TMPDIR:-/tmp}" && pwd -P)"
103
+ probe=
104
+ if [ -n "$probe_parent" ]; then
105
+ probe="$(mktemp -d "$probe_parent/ahub-1806.XXXXXX")"
106
+ fi
107
+ clean() {
108
+ local codex_home="$1"
109
+ shift
110
+ env -i PATH="$PATH" TERM="${TERM:-xterm}" HOME="$probe/home" \
111
+ CODEX_HOME="$codex_home" CLAUDE_CONFIG_DIR="$probe/claude" \
112
+ AGENTHUB_HOME="$probe/hub" "$@"
113
+ }
114
+ probe_ready() {
115
+ test -n "$probe" && test -f "$probe/.ahub-1806-ready" ||
116
+ { printf 'Scratch setup or version check did not pass. Stop.\n' >&2; return 1; }
117
+ }
118
+ (
119
+ set -euo pipefail
120
+ test -n "$probe"
121
+ touch "$probe/.ahub-1806-owned"
122
+ test -f "$repo/src/cli/main.js" && test -f "$repo/plugins/agent-hub/server.js" || exit 1
123
+ for bin in bun git jq python3 timeout; do
124
+ command -v "$bin" >/dev/null || { printf 'Missing %s; stop.\n' "$bin"; exit 1; }
125
+ done
126
+ mkdir -p "$probe"/{project,home,claude,hub,codex-a,codex-b}
127
+ timeout -k 5s 20s git -C "$probe/project" init -q
128
+ for scratch_codex in "$probe/codex-a" "$probe/codex-b"; do
129
+ printf 'cli_auth_credentials_store = "file"\n' > "$scratch_codex/config.toml"
130
+ done
131
+ cd "$probe/project"
132
+ clean "$probe/codex-a" timeout -k 5s 20s bash -c '
133
+ set -eu
134
+ command -v codex
135
+ command -v claude
136
+ codex_version="$(codex --version)"
137
+ claude_version="$(claude --version)"
138
+ printf "%s\n%s\n" "$codex_version" "$claude_version"
139
+ test "$codex_version" = "codex-cli 0.172.0"
140
+ test "$claude_version" = "2.1.332 (Claude Code)"
141
+ '
142
+ touch "$probe/.ahub-1806-ready"
143
+ )
144
+ printf 'Scratch setup exit %s. Run a probe only after exit 0.\n' "$?"
145
+ ```
146
+
147
+ ### Claude statusline and channel
148
+
149
+ Success is a distinguishable pre-response quota observation and a recorded
150
+ channel state at each stage. Stop if startup, login, or channel attachment
151
+ fails, or if the two accounts cannot be distinguished. The bounded observer
152
+ captures selected fields only. The trap stops it and the newly started scratch
153
+ hub even if the launcher fails. The scratch project and empty hub registry from
154
+ the setup block are required.
155
+
156
+ ```bash
157
+ (
158
+ set -euo pipefail
159
+ probe_ready
160
+ cd "$probe/project"
161
+ test ! -e "$probe/.ahub-1806-hub-running"
162
+ observer=
163
+ finish() {
164
+ local result=$?
165
+ trap - EXIT
166
+ if [ -n "$observer" ]; then
167
+ kill "$observer" 2>/dev/null || true
168
+ wait "$observer" 2>/dev/null || true
169
+ fi
170
+ if [ -f "$probe/.ahub-1806-hub-running" ]; then
171
+ clean "$probe/codex-a" timeout -k 5s 30s bun "$repo/src/cli/main.js" kill ||
172
+ { printf 'Scratch hub stop failed. Keep the marker and check this scratch project with status.\n' >&2; exit 1; }
173
+ unlink "$probe/.ahub-1806-hub-running"
174
+ fi
175
+ exit "$result"
176
+ }
177
+ trap finish EXIT
178
+ trap 'exit 130' INT
179
+ trap 'exit 143' TERM
180
+ clean "$probe/codex-a" timeout -k 5s 30s bun "$repo/src/cli/main.js" init --yes --no-jcode-home --no-memory
181
+ touch "$probe/.ahub-1806-hub-running"
182
+ clean "$probe/codex-a" timeout -k 5s 30s bun "$repo/src/cli/main.js" up --no-agents --no-console
183
+ jq -n --arg bundle "$repo/plugins/agent-hub/server.js" \
184
+ '{mcpServers:{"agent-hub":{command:"bun",args:[$bundle]}}}' > "$probe/claude-mcp.json"
185
+
186
+ duration=900
187
+ deadline=$((SECONDS + duration))
188
+ (
189
+ trap 'exit 0' TERM
190
+ sample_error() {
191
+ jq -cn --argjson at "$sampled_at" --arg reason "$1" \
192
+ '{kind:"sample_error",sampledAt:$at,reason:$reason}'
193
+ }
194
+ while (( SECONDS < deadline )); do
195
+ sampled_at="$(date +%s)"
196
+ if raw="$(clean "$probe/codex-a" timeout -k 1s 5s bun "$repo/src/cli/main.js" status --json 2>/dev/null)"; then
197
+ if filtered="$(printf '%s\n' "$raw" | jq -ces --argjson at "$sampled_at" '
198
+ if length == 1 and (.[0].peers|type) == "object" and (.[0].hubCheck.version|type) == "string"
199
+ then .[0] | {kind:"status",sampledAt:$at,claude:(.peers.claude | {state,attachMode,attachEvidence}),hubCheck:(.hubCheck|{version})}
200
+ else error("unexpected status shape") end' 2>/dev/null)"; then
201
+ printf '%s\n' "$filtered"
202
+ else
203
+ sample_error 'unexpected status shape'
204
+ fi
205
+ else
206
+ sample_error 'status call failed or timed out'
207
+ fi
208
+ if [ -f "$probe/project/.agenthub/state/claude-usage.json" ]; then
209
+ jq -c --argjson at "$sampled_at" '{kind:"quota",sampledAt:$at,measuredAt:.at,
210
+ five_hour:(.rate_limits.five_hour | {used_percentage,resets_at}),
211
+ seven_day:(.rate_limits.seven_day | {used_percentage,resets_at})}' \
212
+ "$probe/project/.agenthub/state/claude-usage.json" 2>/dev/null ||
213
+ sample_error 'quota sample unreadable'
214
+ fi
215
+ sleep 2
216
+ done
217
+ ) > "$probe/claude-observations.jsonl" &
218
+ observer=$!
219
+ set -m
220
+ result=0
221
+ clean "$probe/codex-a" timeout -k 5s "${duration}s" bun "$repo/src/cli/main.js" claude --mcp-config "$probe/claude-mcp.json" || result=$?
222
+ case "$result" in
223
+ 0) printf 'Claude exited normally. Keeping observations.\n' ;;
224
+ 124) printf 'Claude hit the 15-minute limit. Keeping observations.\n' ;;
225
+ *) printf 'Claude exited with status %s. Keeping observations.\n' "$result" ;;
226
+ esac
227
+ exit "$result"
228
+ )
229
+ printf 'Claude probe exit %s. Inspect the observations before another block.\n' "$?"
230
+ ```
231
+
232
+ In the scratch TUI, authenticate A and send one neutral prompt. Confirm channel
233
+ attachment. Run `/login` in the same TUI and select B. Wait for a statusline
234
+ render before sending another prompt. Compare samples before login, after login
235
+ but before a response, and after the first response. To prove uninterrupted
236
+ attachment rather than sampling an attached peer after a reconnect, check only
237
+ scratch attach/detach evidence for that interval. No live login or channel
238
+ continuity check was run for this receipt. A failed or missing sample is a gap
239
+ in evidence and does not establish uninterrupted attachment. The 15-minute
240
+ observer keeps sampling after a recorded status failure or unexpected shape.
241
+
242
+ ### Codex login change with the same app-server
243
+
244
+ Success is a distinct post-switch quota from the same app-server, with the
245
+ presence or absence of `account/updated` recorded separately. Stop on an
246
+ initialization, login or quota read failure. The script labels each
247
+ notification by when it was received relative to the switch starting.
248
+ A notification alone is not proof that the quota reflects B.
249
+
250
+ ```bash
251
+ (
252
+ set -euo pipefail
253
+ probe_ready
254
+ cat > "$probe/switch.py" <<'PYCODE'
255
+ import json
256
+ import queue
257
+ import select
258
+ import signal
259
+ import subprocess
260
+ import sys
261
+ import threading
262
+ import time
263
+
264
+ codex = ["codex", "-c", 'cli_auth_credentials_store="file"']
265
+ frames = queue.Queue()
266
+ switch_started = threading.Event()
267
+
268
+ def stop(signum, _frame):
269
+ raise SystemExit(128 + signum)
270
+
271
+ signal.signal(signal.SIGTERM, stop)
272
+ signal.signal(signal.SIGINT, stop)
273
+ app = subprocess.Popen(
274
+ codex + ["app-server", "--listen", "stdio://"],
275
+ stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL,
276
+ text=True, bufsize=1,
277
+ )
278
+
279
+ def read_frames():
280
+ try:
281
+ for line in app.stdout:
282
+ try:
283
+ frame = json.loads(line)
284
+ except ValueError:
285
+ continue
286
+ if isinstance(frame, dict):
287
+ frames.put((switch_started.is_set(), frame))
288
+ finally:
289
+ frames.put((False, None))
290
+
291
+ def take_frame(timeout):
292
+ try:
293
+ after, frame = frames.get(timeout=timeout)
294
+ except queue.Empty:
295
+ return None
296
+ if frame is None:
297
+ raise SystemExit("app-server closed its output")
298
+ if frame.get("method") == "account/updated":
299
+ phase = "after switch began" if after else "before switch"
300
+ print(f"observed account/updated: {phase}", flush=True)
301
+ return frame
302
+
303
+ def send(message):
304
+ app.stdin.write(json.dumps(message) + "\n")
305
+ app.stdin.flush()
306
+
307
+ def wait_for_reply(request_id):
308
+ deadline = time.monotonic() + 30
309
+ while (remaining := deadline - time.monotonic()) > 0:
310
+ frame = take_frame(remaining)
311
+ if frame is None:
312
+ break
313
+ if frame.get("id") == request_id:
314
+ if "error" in frame:
315
+ raise SystemExit("app-server request failed")
316
+ return frame.get("result") or {}
317
+ raise SystemExit("app-server request timed out")
318
+
319
+ def limits(request_id):
320
+ send({"id": request_id, "method": "account/rateLimits/read"})
321
+ data = wait_for_reply(request_id).get("rateLimits") or {}
322
+ print({key: {field: (data.get(key) or {}).get(field)
323
+ for field in ("usedPercent", "resetsAt")}
324
+ for key in ("primary", "secondary")}, flush=True)
325
+
326
+ threading.Thread(target=read_frames, daemon=True).start()
327
+ try:
328
+ send({"id": 1, "method": "initialize",
329
+ "params": {"clientInfo": {"name": "quota-probe", "version": "0.1.0"}}})
330
+ wait_for_reply(1)
331
+ send({"method": "initialized"})
332
+ limits(2)
333
+ print("Press Enter to switch only the scratch account to B: ", end="", flush=True)
334
+ if not select.select([sys.stdin], [], [], 120)[0] or not sys.stdin.readline():
335
+ raise SystemExit("no confirmation from the terminal")
336
+ switch_started.set()
337
+ subprocess.run(codex + ["login", "--device-auth"], check=True, timeout=180)
338
+ limits(3)
339
+ deadline = time.monotonic() + 5
340
+ while (remaining := deadline - time.monotonic()) > 0:
341
+ if take_frame(remaining) is None:
342
+ break
343
+ finally:
344
+ if app.poll() is None:
345
+ app.terminate()
346
+ try:
347
+ app.wait(timeout=10)
348
+ except subprocess.TimeoutExpired:
349
+ app.kill()
350
+ app.wait(timeout=5)
351
+ PYCODE
352
+ (cd "$probe/project" && clean "$probe/codex-a" timeout --foreground -k 5s 190s codex -c 'cli_auth_credentials_store="file"' login --device-auth)
353
+ (cd "$probe/project" && clean "$probe/codex-a" timeout --foreground -k 15s 405s python3 "$probe/switch.py")
354
+ )
355
+ printf 'Codex switch probe exit %s. Stop this case on a nonzero exit.\n' "$?"
356
+ ```
357
+
358
+ Choose A on the first device login and B when the script prompts. After the
359
+ switch, a quota matching A suggests the running process kept A for that read.
360
+ A missing notification establishes only that none arrived during the sample.
361
+ A failed read leaves the switch result unknown. The complete script was
362
+ rehearsed through a pseudoterminal with a fake Codex. Passing cases covered
363
+ a pre-switch notification plus two after the switch started, no post-switch
364
+ notification, a failed RPC and a timed-out RPC. Each case reaped its fake
365
+ app-server. The rehearsal checks the harness only.
366
+
367
+ ### Codex resume by thread ID in a different home
368
+
369
+ Success requires the second TUI to continue the same thread under scratch
370
+ home B. If creating the thread or capturing exactly one ID fails, stop before
371
+ opening the second TUI. If resume is refused or opens a fresh thread, record
372
+ that result without exporting credentials, raw output or the fixture ID.
373
+
374
+ ```bash
375
+ (
376
+ set -euo pipefail
377
+ probe_ready
378
+ (cd "$probe/project" && clean "$probe/codex-a" timeout --foreground -k 5s 190s codex -c 'cli_auth_credentials_store="file"' login --device-auth)
379
+ (cd "$probe/project" && clean "$probe/codex-b" timeout --foreground -k 5s 190s codex -c 'cli_auth_credentials_store="file"' login --device-auth)
380
+ (
381
+ set -o pipefail
382
+ cd "$probe/project" || exit 1
383
+ clean "$probe/codex-a" timeout -k 5s 90s codex -c 'cli_auth_credentials_store="file"' exec --json 'Reply with the single word fixture.' |
384
+ jq -r 'select(.type == "thread.started") | .thread_id // empty' > "$probe/thread-id"
385
+ )
386
+ test "$(wc -l < "$probe/thread-id" | tr -d ' ')" = 1
387
+ thread="$(cat "$probe/thread-id")"
388
+ test -n "$thread"
389
+ (cd "$probe/project" && clean "$probe/codex-b" timeout --foreground -k 5s 90s codex -c 'cli_auth_credentials_store="file"' resume "$thread")
390
+ )
391
+ printf 'Codex resume probe exit %s. Stop this case on a nonzero exit.\n' "$?"
392
+ ```
393
+
394
+ ### Read the observations and remove the scratch directory
395
+
396
+ Run the summary before cleanup. It prints the last sampled time, the failure
397
+ count and the selected records only.
398
+
399
+ ```bash
400
+ (
401
+ set -euo pipefail
402
+ test -n "$probe"
403
+ jq -s '{lastSampleAt:(map(.sampledAt)|max), failureCount:(map(select(.kind=="sample_error"))|length),
404
+ observations:map({kind,sampledAt,reason,claude,hubCheck,measuredAt,five_hour,seven_day})}' \
405
+ "$probe/claude-observations.jsonl"
406
+ )
407
+ printf 'Observation summary exit %s.\n' "$?"
408
+ ```
409
+
410
+ Closing the shell leaves the folder and observations. To recover it in a new
411
+ Bash shell, list the marked scratch directories and paste one printed directory
412
+ at the prompt. Use the same temporary parent as the setup.
413
+
414
+ ```bash
415
+ probe_parent="$(cd "${TMPDIR:-/tmp}" && pwd -P)"
416
+ (find "$probe_parent" -mindepth 2 -maxdepth 2 -type f -name .ahub-1806-owned -exec dirname {} \;)
417
+ IFS= read -r -p 'Paste the scratch directory from the list: ' probe
418
+ ```
419
+
420
+ Use the final command after all probe processes have stopped and after reading
421
+ the summary. Success is an absent scratch directory. If the hub marker remains,
422
+ keep the directory and inspect the scratch hub's status, process ownership and
423
+ logs before retrying its stop. Never remove the marker to bypass that check.
424
+ Cleanup removes the marked scratch directory and its local Codex files. It
425
+ leaves the checkout, existing agent homes, macOS Keychain entries and remote
426
+ sign-ins alone.
427
+
428
+ ```bash
429
+ (
430
+ set -euo pipefail
431
+ python3 -c 'import os, pathlib, shutil, sys
432
+ p = pathlib.Path(sys.argv[1])
433
+ parent = pathlib.Path(sys.argv[2])
434
+ marker = p / ".ahub-1806-owned"
435
+ if (p.is_symlink() or p.parent != parent or not p.name.startswith("ahub-1806.")
436
+ or not p.is_dir() or p.stat().st_uid != os.getuid() or marker.is_symlink() or not marker.is_file()):
437
+ raise SystemExit("refuse to remove an unmarked scratch directory")
438
+ hub_marker = p / ".ahub-1806-hub-running"
439
+ if hub_marker.exists() or hub_marker.is_symlink():
440
+ raise SystemExit("scratch hub stop is unconfirmed; keep the directory")
441
+ shutil.rmtree(p)' "$probe" "$probe_parent"
442
+ test ! -e "$probe"
443
+ )
444
+ printf 'Scratch cleanup exit %s.\n' "$?"
445
+ ```
@@ -0,0 +1,45 @@
1
+ # #1808 T2: do the capability listing shapes hold from their C0 pin to the installed version?
2
+
3
+ Date: 2026-11-30. Refs #1808 (T2, first step). Model-free, offline schema read only. This receipt decides whether a `line` may be added to the three capability entries. It does not: see the verdict.
4
+
5
+ ## What was checked
6
+
7
+ The C0 receipt ([2026-10-30-445-capability-probes.md](2026-10-30-445-capability-probes.md)) probed three listings on exactly one version each: Kimi 2.3.2 and Qwen 0.26.1 (`available_commands_update` over ACP) and Codex 0.166.0 (`skills/list` over the app-server). The same workstation now runs Kimi 2.8.1, Qwen 0.27.1 and Codex 0.172.0. The question is whether each listing shape held across the versions between its pin and the installed one.
8
+
9
+ ## Isolation
10
+
11
+ Two things happened outside that wrapper, and both are recorded as they were. First, `kimi --version`, `qwen --version` and `codex --version` were each run once with the person's real homes (no isolation), only to read the installed versions; nothing else was run that way. Second, the one isolated command below was run once, before the instruction not to run any probe. The wrapper: `env -i` with `PATH`, `HOME`, `CODEX_HOME`, `TMPDIR`, `LANG` and `TERM`, every home a fresh scratch directory, cwd a scratch directory, never the repository. The command was `codex --version` and `codex app-server generate-json-schema --out <scratch>`. No app-server was started, no session or thread was opened, no account, model or network leg was used, and the person's real homes were not read.
12
+
13
+ ## Codex: schema comparison 0.166.0 against 0.172.0
14
+
15
+ | Definition | C0 (0.166.0) | Read at 0.172.0 |
16
+ | --- | --- | --- |
17
+ | `SkillsListParams` | `cwds?`, `forceReload?` | same two properties, none required |
18
+ | `SkillsListResponse` | `data` | `data`, required |
19
+ | `SkillsListEntry` | `cwd`, `errors[]`, `skills[]` | same three, all required |
20
+ | `SkillMetadata` | `name`, `description`, `path`, `scope`, `enabled`, optional `pluginId`, `interface`, `shortDescription`, `dependencies` | the same nine properties; required: `name`, `description`, `path`, `scope`, `enabled` |
21
+ | `SkillScope` | `user`, `repo`, `system`, `admin` | same four values |
22
+
23
+ Result: the schema of the `skills/list` request and answer at 0.172.0 matches the C0 description of 0.166.0.
24
+
25
+ ## What this does not show
26
+
27
+ - Only the two end versions were compared. Codex 0.167.0 to 0.171.0 were not read, so the shape is not shown to hold across the line between them.
28
+ - A schema is not an answer: a live `skills/list` against 0.172.0 (no thread, no account) was not run here, and the `enabled` flag meaning was not re-observed.
29
+ - Kimi 2.8.1 and Qwen 0.27.1 were not probed. Their listing is an ACP update that needs a fixture-model session, and the versions between the pins and the installed ones were not read.
30
+
31
+ ## Verdict
32
+
33
+ No `line` is added to `kimi-capabilities`, `qwen-capabilities` or `codex-capabilities`. Each stays on its one C0 version, so another version lists nothing unless the person trusts that exact version with `ahub agents trust` (owner choice, #1808; its note says what trust covers). A kind gets a `line` or another exact version only with a receipt that repeats the C0 leg against it (the manifest legs added with these entries describe that replay).
34
+
35
+ ## The manifest legs
36
+
37
+ The `listing-shape` legs of `kimi-capabilities` and `qwen-capabilities` have a producer (`scripts/compat-receipts/proofs/capabilities.ts` with the driver `capabilities-acp.py`). It starts the exact installed candidate as an ACP agent with a fixture model on an unreachable loopback address, opens one session, sends no prompt, and compares the `available_commands_update` of that session with the shape the C0 receipt recorded. A pass needs the exact agent name and candidate version, no entry or field the record does not know, the recorded builtins first and in order (Kimi), exactly one fixture skill, a network log that is absent or a zero-byte regular file (a link, another file type, an oversized or an unreadable log never passes), a preload marker written from inside the candidate process (without it the leg is not-run, never a pass), and no surviving process. The driver signals the candidate's group only while its leader is unreaped and still leads it (SIGTERM, up to 3 s, then SIGKILL, up to 3 s) and sends only signal 0 probes afterwards, so a helper that outlives its leader is reported as a cleanup failure and never signalled by the driver. A PermissionError from a probe counts as not shown gone yet and probing goes on to the 3 s bound. If the driver itself is stopped mid-cleanup, the runner records what it started and stops it when the process table can be read; otherwise the disposable runner is the boundary. It was tested only with fake executables: no real candidate has been measured. It cannot prove that a skill runs, that an entry has the class its name suggests, or anything about a version it was not given. Its pass leaves `autoAdmit` false, so a pass adds a drift row and never a PR, a verified version or a `line`; a person reviews before `verified` changes. The Codex leg (`codex-capabilities` `skills-list-shape`) has a producer (`scripts/compat-receipts/proofs/codex-capabilities.ts` with `codex-listing.py` and `codex-sandbox-launcher.py`, macOS only). It starts `codex app-server` over stdio under the seatbelt profile of `src/local/sandbox.ts` with network false and `(deny network*)`, `CODEX_HOME`, `HOME` and `TMPDIR` in a private folder, and a launcher in the same process that becomes the candidate tries a loopback connection first. A pass needs the same listener to accept a connection from outside the sandbox, the launcher's attempt to fail with EPERM (a refusal, a timeout or another error proves nothing and the leg is not-run, and so is any error before that control is proved or an exit before the candidate's first answer; an exit after a valid answer is a failure), nothing to reach the listener from the launcher, the exact version, the recorded `skills/list` fields, the entry's `cwd` equal to the requested one and the one fixture user skill at its exact file (`skills/probe-fixture/SKILL.md` under the private `CODEX_HOME`, compared by real path) (both the exact file name and the exact `cwd` are inferred from how the C0 run was set up, not recorded in its answer) and a clean stop; only `initialize`, `initialized` and `skills/list` are sent. It was tested only with fake executables: no real Codex was measured, a real Codex may not start under this profile, and the sandbox does not log blocked network attempts. It cannot prove that a skill runs, that nothing else leaves the machine on a path the profile does not cover, or anything on another OS. `autoAdmit` stays false. Two more watch-only entries use the same producers: `codex-appserver` (leg `appserver-handshake`, mode `handshake` of the same Codex driver: `initialize` only, exact version in `userAgent`) and `kimi-acp` (leg `acp-handshake`, mode `handshake` of the Kimi driver: exact agent name and version, `loadSession` true and a session id, no listing; it adds nothing to the Kimi listing leg's isolation). Both are gate `observe`, tested only with fake executables, never auto-admitted, and a failed leg of either is reported as `contract-drift`; an unreadable version is `unknown`. `claude-channel` has no leg yet. The shape comparison in this record is a schema read of Codex 0.172.0 against 0.166.0 and nothing else; the producers above compare against the C0 receipt text, not against this record.
38
+
39
+ ## One CLI release, several entries
40
+
41
+ One published CLI feeds several `COMPAT` ids: `@moonshot-ai/kimi-code` feeds `kimi-review`, `kimi-tui`, `kimi-capabilities` and `kimi-acp`, `@qwen-code/qwen-code` feeds `qwen`, `qwen-dual` and `qwen-capabilities`, `@openai/codex` feeds `codex-review`, `codex-capabilities` and `codex-appserver`, and `@anthropic-ai/claude-code` feeds `claude-implementer` and `claude-channel`. A new release makes the watch list each id as a candidate and run one matrix job per id. It opens a pull request only for an id whose manifest entry has `autoAdmit` true, whose required legs all pass, and which is not `codex-review` or `agy`. The three listing ids, `kimi-acp`, `codex-appserver`, `claude-channel`, `kimi-tui`, `qwen-dual` and `codex-review` never open one: each gets a drift row. `COMPAT` has 15 ids. The daily watch cannot list `agy`, so at most 14 ids are candidates (`agy` is not counted), under the limit of sixteen.
42
+
43
+ ## The claude-channel leg
44
+
45
+ `claude-channel` is a watch-only entry (gate `observe`, `referenceOnly` with 2.1.332 as its install reference (never called verified: `ahub agents` prints "reference 2.1.332 (not verified)", every version reads `observed`, the daily watch settles the reference and reports a newer version as ahead, and the publisher never adds a version), `autoAdmit` false, never a PR, a verified version or a line) with one leg, `channel-flag-parse` (`scripts/compat-receipts/proofs/claude-channel.ts` with the driver `claude-channel-parse.py`). It starts the installed Claude Code three times under the Codex leg's setup (seatbelt with all network denied, a private home, no account, stdin closed, no prompt, and the same-process network control before every run) with new random option names: two different invalid options (the error must name the first and not the second), one invalid option (the error must name it), and the launcher's own channel flag and value followed by one invalid option (the error must name only that option). The flag and its value are read from `claudeNativeLaunch`, not copied. Only the third run can fail the leg, and only when the first two passed and it names the channel flag. A zero exit, a session start, a timeout, oversized output, a failed control or neither option named is not-run. This proves only that the installed parser still takes the flag. It does not prove that a live session accepts channel messages. No real Claude parse error is recorded, so a real candidate may always come back not-run, and the check is not tuned to pass. It was tested only with fake executables. `classifyClaudeParentCommand` stays a separate check on the launcher's real argv.