@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
@@ -85,7 +85,7 @@ The transport probe found an inherited Unix socket on macOS. On Linux with Yama
85
85
  `report --by task` keeps the attribution and coverage sentences with section headings and aligned counters.
86
86
  Use `--json` for scripts; it returns the fetched data without color, and `status --json` keeps its existing document.
87
87
  Every human view prints on the shared Report layout (a header, a `▸` mark per section and state markers) and takes `--ascii` for ASCII markers (#1654). Stderr warnings read `ahub: warning: <what>: <why>`, with a `→` line naming the next step where the fix is known; `ahub: blocker:` lines are unchanged, and `--json` output and exit codes stay the same.
88
- `sdlc status`, `sdlc explain`, `sdlc queue`, `sdlc release`, `sdlc metrics`, `sdlc costs`, `sdlc merge` and `sdlc authorize-release` print readable output by default (#814, #899: aligned columns, wrapped text, readable times, `--color=auto|always|never`). A script that parsed their JSON must pass `--json`, which prints exactly the document they printed before. `sdlc export` is a data format and stays JSON, as do `export`, `research export` and `bench export`.
88
+ `sdlc status`, `sdlc explain`, `sdlc queue`, `sdlc release`, `sdlc metrics`, `sdlc costs`, `sdlc merge` and `sdlc authorize-release` print readable output by default (#814, #899: aligned columns, wrapped text, readable times, `--color=auto|always|never`). A script that parsed their JSON must pass `--json`, which prints exactly the document they printed before. A bare `sdlc status` (and its `--json`) now lists only the unsettled tasks and those of a release train that is neither shipped nor dropped; `sdlc status --all` keeps the earlier view, the first 100 tasks by id (#1856). `sdlc export` is a data format and stays JSON, as do `export`, `research export` and `bench export`.
89
89
  `restart` and `upgrade` off an interactive terminal (a pipe, `--dry-run`), `recovery status` and the results of `recovery reattach`, `resume`, `abort` and `dispose`, `models setup` and `start`, `queue resolve`, and `budget execution configure` and `disable` print readable text by default (#814); a script that parsed their JSON must pass `--json`, which prints exactly the document they printed before, including `restart --json --yes`. A readable plan lists each project, each peer with how it runs and what happens to it, every blocker, every reconnect-only session and every fresh start, and says nothing was changed; `--json` keeps those as stderr lines. A pipe wraps at `COLUMNS` when it is set, else at 80 columns.
90
90
  `task show`, `task cancel`, `backlog groom`, `backlog return|plan|pin|split|undo|pull-ready` and the `release` commands (`list`, `show`, `new`, `plan`, `activate|freeze|ship|drop`) print a readable block by default (#814): the task or release as the hub holds it, a table for lists, every identifier whole, long text wrapped to the terminal. A script that parsed their JSON must pass `--json`, which prints the hub tool's text exactly as before. A private task arrives from the hub as its stub and is shown as that stub. Because these commands also take free text, `--json` and `--color=` count as flags only at the start or the end of the arguments: `--json` in the middle of a reason is part of the reason, and a value flag's value (`task cancel --reason --json`) is never a flag. A reason that ends in a bare `--json` loses it to the flag. `backlog add|pull`, `task escalate|assign|unassign` already answered one sentence and are unchanged.
91
91
  In `projects --json` and `status --all --json`, an unavailable hub that explicitly refuses an inspection for SQLite contention also carries `failure: { "code": "database_busy" }`; it is additive metadata alongside the neutral `error` sentence.
@@ -193,7 +193,7 @@ Tab `9 Roadmap` (#1483 R5) appears while the hub reports the `roadmap` feature.
193
193
 
194
194
  The dashboard's Usage view (#683 U4) sits in the Agents view, under Usage budgets, and shows the same roll-up: the lifetime, without-cache and cache-read totals with
195
195
  the peers whose figure is unknown, the last 14 UTC days as stacked columns per peer (a day with no record is a `no record` column, never zero), a limits table with the
196
- open pauses and the last 20 pause, resume and reset events, and a task table (state, owner, PR, input, output, cache read, cache write, total). Every figure names its
196
+ open pauses and the last 20 pause, resume, renewal and reset events, and a task table (state, owner, PR, input, output, cache read, cache write, total). Every figure names its
197
197
  source like the console does and `unknown` stays the word. A private task shows `#id [pii]` and never its title. The page asks for the figures only while the Agents view is open
198
198
  (`view: "agents"` in the snapshot request), so a hidden view costs no roll-up work on the 1 s poll. When the roll-up is still behind a very large log the snapshot carries
199
199
  `usage.behind: true` and the view says the figures are a lower bound until it catches up; a roll-up that cannot be read shows `unavailable`, never the last figures. When there
@@ -493,7 +493,8 @@ example the parent of a retry, whose redelivery is a separate row) is refused as
493
493
  `already resolved`, never `stale revision`. `ahub queue show` on a failed row says
494
494
  that nothing is left to do, or, if the row is unsettled, prints the full `ahub queue
495
495
  resolve` command with the project directory, revision, `--action discard` and a
496
- prefilled reason, and names `completed` as the other choice (#1098, #1399).
496
+ prefilled reason, and names `completed` as the other choice (#1098, #1399). It also
497
+ prints the stored failure reason; a private delivery shows a fixed stub instead (#1795).
497
498
 
498
499
  `ahub queue discard --peer <id> --reason <text> [--state queued|needs_review|failed] [--yes] [--json]` clears one peer's backlog and is for the person or the configured conductor (any other agent identity is
499
500
  refused, and a remote `peer@label` queue is the person's only). Without `--yes` it only says how many deliveries it would discard; with `--yes` it discards each delivery of that peer through the
@@ -711,7 +712,11 @@ Conductor operations are listed in [the operational command table](#conductor-op
711
712
 
712
713
  `ahub capabilities [--json]` is Console only: an agent shell is refused, and so is the configured conductor. It lists, for each attached peer, the skills and commands the hub can read from that peer's own session, whether you share each one, its digest, and the class a call would count as. It lists and never calls anything; agents call what you share with `hub_invoke` (see below).
713
714
 
714
- What the hub can read is deliberately narrow. A listing is read only from a version whose listing was probed (the [C0 receipt](verification/2026-10-30-445-capability-probes.md)): Kimi 2.3.2, Qwen 0.26.1 and Codex 0.166.0. Any other version lists nothing until a new receipt covers it, and so does a peer that is offline or whose list did not arrive. Codex's pinned 0.154.0 is not probed, so a pinned install lists nothing for now. Only skills are listed: Qwen by its `_meta.source` (`bundled-skill`, `skill-dir-command`), Kimi by the `skill:` prefix of its name, Codex by an enabled entry of `skills/list`. A builtin such as Kimi's `compact` or Qwen's `clear` changes session or host state and is never listed. A session the hub cannot read natively publishes its own list with `hub_capabilities_publish`; that list is bound to the connection that published it, forced to `invoke: prompt`, and gone when the connection ends.
715
+ What the hub can read is deliberately narrow. A listing is read only from a version whose listing was probed (the [C0 receipt](verification/2026-10-30-445-capability-probes.md)): Kimi 2.3.2, Qwen 0.26.1 and Codex 0.166.0. Any other version lists nothing until a new receipt covers it or the person trusts that exact version with `ahub agents trust kimi-capabilities|qwen-capabilities|codex-capabilities <version>` (#1808; the three are `COMPAT` entries without a `line`). Trust is read from this machine's record on every call, so a revoke takes effect without a restart, and a record that cannot be read trusts nothing. A trusted listing is untested and may miss or misclassify entries. It also lets a capability you shared earlier be invoked again without a new share when its digest still matches, because the digest covers neither the CLI version nor the skill's content; every other share and invocation check stays. A peer that is offline or whose list did not arrive lists nothing. The three entries also add rows to `ahub doctor` and `ahub agents` whenever the installed CLI is not a verified version, and each refused row becomes a status Attention item whose next step is `ahub agents trust` and queues one planner notice, as every contract entry does. People who do not use shared capabilities see these rows too. Only the capability listing is refused for such a version, never the start of the CLI: no launch or restore check reads these three ids. 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` (gate `observe`, `referenceOnly`: 2.1.332 is the install reference, not a verified version, and every version reads as `observed`) has one leg, `channel-flag-parse`: the installed Claude Code is started three times with no account, no prompt and stdin closed under the Codex leg's sandbox and network control, with random option names, and must name the first of two invalid options, name one invalid option, and with the launcher's own channel flag and value before an invalid option name only that option. Only the third run can fail the leg, and only when the first two passed; a zero exit, a session start, a timeout, oversized output or a failed control is not-run. It proves only that the parser still takes the flag, not that a live session accepts channel messages, and no real Claude parse error is recorded, so a real candidate may always be not-run. `classifyClaudeParentCommand` stays a separate check on the launcher's real argv. Codex's pinned 0.154.0 is not probed, so a pinned install lists nothing for now. Only skills are listed: Qwen by its `_meta.source` (`bundled-skill`, `skill-dir-command`), Kimi by the `skill:` prefix of its name, Codex by an enabled entry of `skills/list`. A builtin such as Kimi's `compact` or Qwen's `clear` changes session or host state and is never listed. A session the hub cannot read natively publishes its own list with `hub_capabilities_publish`; that list is bound to the connection that published it, forced to `invoke: prompt`, and gone when the connection ends.
716
+
717
+ The Orca CLI is watched the same way (#1808 T4, `orca-cli`, gate `observe`, never a gate: no start or restore path reads it to refuse anything; verified versions 1.4.245 and 1.4.250 are the two read-only receipts in `docs/verification/`). When Orca is installed, `ahub doctor` runs `orca --version`, `orca terminal list --json` and `orca worktree list --json` (all read-only) and compares field names and types only, never a value: the terminal rows must carry the handle, incarnation, worktree id and worktree path (`worktreePath`, else `projectRoot`) the recovery binds a terminal with, and the worktree rows the id and path it matches a project root with. A missing field fails the `orca cli` row and names the field, an Orca newer than 1.4.250 is only a note, and an answer that is not Orca's `ok: true` JSON (Orca not running) is a note, not a shape problem. `ahub restart` and `ahub upgrade` run the same check while they make the plan, only for a plan with a peer whose terminal the recovery looks up and before anything is closed: a failed shape check adds a blocker to that project's rows, with the next action, and a newer Orca adds a `note:` line that blocks nothing. A plan with no such peer runs no Orca command and carries no note. The daily watch lists the public releases of `stablyai/orca` as a drift row only. Orca has no install source a runner can use, so the manifest entry has install method `unavailable`, `autoAdmit` false and one `tui-desktop` leg that only the person's machine can run.
718
+
719
+ `ahub agents --latest [--json]` (#1808 T5) is the one command that reads the network for this. The build writes the release's `COMPAT` table as `plugins/agent-hub/compat.json` (ids, verified versions, gate, reference-only flag and line: no trust note, receipt path or executable), and the command reads the newest GitHub release's copy of that file (two public GitHub reads, each with a size and time limit, refused as a whole when it is not the expected shape). For each CLI whose installed version is refused or trusted here it prints `verified in <release>` or `not verified in any release`; a reference-only version is never reported as verified. It is advice for the person: it writes nothing, admits nothing and never changes a verdict on the running hub (admission stays per hub release), and agent shells, including the delegated live-test form, are refused. The daemon never reads the network for it: only `src/cli/commands/agents.ts` imports the reader, and `test/compat-published-table-1808.test.ts` holds that. The refusal text names `ahub agents --latest` next to `ahub agents trust`.
715
720
 
716
721
  Sharing is a positive allowlist in `.agenthub/config.local.json` only (`invocation` is machine-local: a committed copy is ignored and logged, and it is never editable from settings):
717
722
 
@@ -1120,6 +1125,24 @@ Keep any unrelated registry changes by restoring only the moved registration
1120
1125
  from the registry backup. Move the repository back to its original root
1121
1126
  before restarting the restored registration.
1122
1127
 
1128
+
1129
+ ### Shared host process (#1779 T3a)
1130
+
1131
+ Off by default: each project runs its own daemon. With `"host": { "shared": true }` in a project's `.agenthub/config.json` (or `config.local.json`), `ahub up` runs that project inside the host process of its runtime, which several projects of the same runtime share (`ahub host --runtime <root>`, started for you; not a command to type). Every client contract stays: the project keeps its own control port, token file and state directory, and `status.json` gains `hostId` while `pid` is the host's. A project that starts under a recovery operation or a live test runs in its own process.
1132
+
1133
+ - Stop one project with `ahub down` as usual: only that project's listener, timers and children go, and the others keep serving. The host exits when its last project stops.
1134
+ - A signal to the host stops every project in the order they were added, then the host; if that takes longer than 15 s the host exits anyway.
1135
+ - An uncaught error thrown from a timer a project started stops that project only. An error from a socket handler or an unhandled rejection cannot be tied to a project under Bun, so it is logged in the hub log and stops the host (the same as an error that belongs to none), and every project in it comes back through the usual crash recovery.
1136
+ - Turn it off by removing the key and restarting the project. Upgrade across hosts and the default switch are later tasks.
1137
+
1138
+ ### MCP endpoint socket (#1780)
1139
+
1140
+ Every hub that `ahub up` starts, alone or in a shared host, also listens on `<hub home>/run/<projectId>/mcp.sock`; `status.json` names it as `mcpSocket`. The `run` and project directories are `0700` and the socket `0600`. It serves no MCP yet: a connection must send one hello line carrying the control token within 5 s (8 KB at most), and every request after it is answered with a JSON-RPC `not served yet` error. `mcp endpoint listening on <path>` in the hub log confirms it. A refusal never stops the hub: it logs `mcp endpoint unavailable: <cause and fix>` and the hub runs without the endpoint (no `mcpSocket`).
1141
+
1142
+ - A group- or world-accessible directory: run the printed `chmod 700` and restart; a symlink or a directory of another user: remove it and restart.
1143
+ - A socket path over 100 bytes: set `AGENTHUB_HOME` to a shorter path.
1144
+ - A socket left by a hub that did not stop cleanly is replaced only by the hub that holds the project's control port, and only when nothing answers on it, it is your own socket and it is the same file at both looks (the log says `mcp endpoint replaced a stale socket`); otherwise delete the named file and restart.
1145
+
1123
1146
  ## acon console plugin (#935, #1012)
1124
1147
 
1125
1148
  `ahub setup` registers agent-hub as a plugin of the family console
@@ -1977,7 +2000,7 @@ does not show them: `ahub usage` and `ahub usage limits` read them (below), and
1977
2000
 
1978
2001
  ```bash
1979
2002
  ahub usage [--since 7d|<iso>] [--by peer|task|issue|pr|release|day|model] [--json]
1980
- ahub usage limits [--peer <id>] [--limit <n>] [--json] # current quota windows, plus the newest 200 (up to 5000) pauses, resumes and resets
2003
+ ahub usage limits [--peer <id>] [--limit <n>] [--json] # current quota windows, plus the newest 200 (up to 5000) pauses, resumes, renewals and resets
1981
2004
  ahub usage total [--json] # lifetime development tokens since the first event, per peer and overall
1982
2005
  ```
1983
2006
 
@@ -3633,6 +3656,16 @@ verified native id; reattach the native session before further hub delivery`:
3633
3656
  end its TUI and relaunch it (`ahub codex resume <thread-id>`) before resolving
3634
3657
  the held delivery.
3635
3658
 
3659
+ ### Reading the hub check (#1798)
3660
+
3661
+ `ahub up` prints a `Hub check` block after it starts the default agents: it waits up to `--wait <seconds>` (default 15, at most 600) for the agents it started to attach, then prints one line per agent. Reading the check has its own five-second limit, including connecting and retries. The command can take up to five seconds beyond `--wait`. `✓` means the link is what the launch intended. `⚠` names the link (`tools-only`, `unverified`, `detached`), the evidence value, the queued count and the full command that fixes it. An agent that has not attached by the bound shows `pending`. A refused start shows `refused` with its cause and next step. Neither is OK. When the hub check cannot be read, text reports it as unavailable and JSON returns `{ "hubCheck": { "unavailable": true, "cause": "the hub check could not be read from the hub", "nextStep": "ahub status" } }`. Otherwise `ahub up --json` prints the same data as `{ "hubCheck": ... }`, and `ahub status --json` carries it as `hubCheck`. `ahub status` lists every peer whose link is weaker than expected in Attention, with that command as its next step. A line carries peer ids, link names, counts and commands, never task text. A Claude session `unverified` here was not started by `ahub claude` (or was started with its channel flag displaced): relaunch it with the printed command, and its queued messages stay until it attaches (`hub_inbox` still reads them).
3662
+
3663
+ ### The Hub check at an agent's start (#1798)
3664
+
3665
+ `ahub claude`, `ahub codex`, `ahub kimi`, `ahub jcode`, `ahub pi`, `ahub qwen` and `ahub agy` print a `Hub check` to stderr before the agent starts (TUI launches only, and only when stderr is a terminal: with stderr redirected or piped nothing prints and `ahub claude` makes no connection for it, and `ahub status` shows the same state). The agent has not started, so its line is neutral: it says the agent is starting, its expected link, its queued count and `ahub status` to run once it has started. If the hub's check shows a state for the agent that is not offline, a second line gives it as the state before this launch (it does not mean that session is still attached). A hub that cannot be read in time, or an older hub without the check, prints one warning with `ahub status`. In Claude, a `SessionStart` notice (startup and resume only) shows the check again once the session is up, and says `pending` until this session's own channel has attached. Kimi and agy show the wrapper line only: no start output the person sees is confirmed for either. The line is ids, states, counts and commands, never task text.
3666
+
3667
+ The check itself adds no wait to the wrappers that reuse the status read they already make, and at most 3 seconds to `ahub claude` (one connection attempt, no retry, one deadline; a hub that cannot be read prints one warning and Claude still starts). The existing status reads in the other wrappers can still wait up to 30 seconds on a hub that accepts and never replies, and this change does not alter that. `local` and the hub-started headless paths print no check, and `--print-command` and `--dry-run` read nothing for it.
3668
+
3636
3669
  ### Claude sessions without channel pushes
3637
3670
 
3638
3671
  Only `ahub claude` starts Claude Code with the development-channel flag. A
@@ -4033,8 +4066,9 @@ For CI-opened PRs, the person selected `GITHUB_TOKEN` with explicit `check.yml`
4033
4066
 
4034
4067
  After merge, `agent-compat.yml` runs daily and can be dispatched with `dry: true`
4035
4068
  (the manual default). The watcher emits validated ahead/version and verified-ID
4036
- JSON directly; matrix construction never parses report prose. At most eight IDs
4037
- are considered, with two hosted jobs at once. An unspecified manifest OS stays
4069
+ JSON directly; matrix construction never parses report prose. At most sixteen IDs
4070
+ (`MAX_COMPAT_IDS`, raised from eight by #1808; every check of the watch, preparation and
4071
+ publish scripts reads it) are considered, with two hosted jobs at once. An unspecified manifest OS stays
4038
4072
  not-run rather than receiving an invented native-platform proof.
4039
4073
 
4040
4074
  The candidate matrix has only `contents: read`, no supplied secrets, checkout
@@ -4261,6 +4295,8 @@ record/capture requires inspection or restoration.
4261
4295
  Archiving the record deliberately resets first-use selection; archived copies
4262
4296
  are not active pruning references.
4263
4297
 
4298
+ Entries the worker never touches (bare coordinator sources, registry installs, unknown layouts) are the person's to inspect and remove (#1781). `ahub releases list [--json]` classifies each entry under `$AGENTHUB_HOME/releases` as `capture`, `coordinator-source`, `registry-install` or `unknown`, with version, digest, size and what refers to it: a registered project's `runtime.json`, a recovery receipt, the live manager, a running process or the CLI itself. `ahub releases prune [--kind <capture|coordinator-source|registry-install>] [--older-than <days>] [--apply] [--json]` previews the removable set and removes nothing without `--apply`. An entry changed within the last hour is kept unless `--older-than 0` is given, because an upgrade or a stage writes its source before its receipt or `runtime.json` exists. With `--apply`, every entry is rechecked immediately before it moves, under the registry writer lock the worker uses, and then removed through a reserved `.runtime-prune-` quarantine name. It reads references through the worker's own observation, so an unreadable registry, project state directory, recovery directory or process table keeps every entry and prints the cause and the next step; `unknown` entries and symlinks are listed and never removed, and a legacy install that holds one (a leftover `.runtime-prune-*` quarantine, a symlinked source, a referenced capture) is kept whole. Each entry's identity and children are compared again under the lock against the listing, so an entry that changed since `list` is skipped. If deleting a quarantined entry fails, the command names the `releases/.runtime-prune-*` path and `ahub doctor` reports it; delete it by hand. Both commands are the person's own: an agent session is refused.
4299
+
4264
4300
  A scoped upgrade leaves the global CLI and shared Claude plugin unchanged.
4265
4301
  Update the CLI separately with `bun add --global @staix/agent-hub@<version>`, then
4266
4302
  run `ahub setup` for the plugin. `ahub doctor` reports either tool when its known
@@ -4274,13 +4310,69 @@ or the plugin is older than the daemon it installed (#1179). It prints nothing w
4274
4310
  | 0.12.20 through 0.25.0 | 16 only | `protocol: 16` |
4275
4311
  | 0.26.0 through 0.47.0 | 16 through 17 | `protocol: 16`, `protocolMin: 16`, `protocolMax: 17` |
4276
4312
 
4277
- New clients choose the highest common protocol. The protocol window remains 16
4278
- through 17, so the published protocol-16 client and channel plugin remain usable; unrelated feature
4279
- capabilities still require their own labels. A disjoint window refuses with 4426.
4280
- The compatibility-floor `protocol` field remains readable by old clients.
4313
+ New clients choose the highest common protocol. The default window is 16
4314
+ through 17, so the published protocol-16 client and bridge remain usable.
4315
+ Unrelated feature capabilities still require their own labels. A disjoint
4316
+ window refuses with 4426. Protocol 15 or older needs a fresh session.
4317
+
4318
+ A newly built Claude bridge keeps its MCP session on 4426. Tool calls report
4319
+ the mismatch, and the bridge rereads the project endpoint every five minutes.
4320
+ A compatible hub lets the same session resume hub calls. If the hub upgrade
4321
+ does not restore compatibility, run `ahub setup` and restart the session.
4322
+
4323
+ Set `upgrade.bridge_window_days` (default 90) and `upgrade.bridge_window_min`
4324
+ (default three prior protocols) to change the accepted window on restart.
4325
+ The wider of the two settings applies, bounded by the implemented floor.
4326
+ `ahub status` shows the accepted range. It reports the floor limit only
4327
+ when at least one setting exceeds its default and the requested range
4328
+ reaches below that floor. The descriptor retains `protocol`, `protocolMin` and
4329
+ `protocolMax` fields. Its legacy scalar is 16 by default and follows the
4330
+ accepted minimum when the window narrows. A v0.50.0 hub's config validation
4331
+ refuses the `upgrade` key. Apply those settings after installing a hub that
4332
+ supports them. When a bridge offers an implemented version outside the accepted
4333
+ range, the hub log reports that range and names both settings to check.
4334
+
4335
+ The upgrade planner checks the implemented range. With a narrower configured
4336
+ range, it can classify a protocol-16 session as reconnect-only even though the
4337
+ restarted hub will refuse it. If this happens, run `ahub setup` and restart
4338
+ that session.
4339
+
4340
+ In each release PR, update the current protocol row's latest stable tag and
4341
+ planned UTC publication date in `src/hub/protocol-window.ts`. When the wire
4342
+ version changes, append its first/latest row and retain the earlier row.
4343
+ Run `bun scripts/bridge-protocol-table.ts --write` in the release PR.
4344
+ `release-prepare` does not perform this step. If publication moves to a
4345
+ later UTC date, correct the date and rerender before tagging. The 90-day
4346
+ compatibility window uses that date, so an earlier date would end support early.
4347
+
4348
+ <!-- BRIDGE_PROTOCOL_RELEASES:BEGIN -->
4349
+
4350
+ | Bridge protocol | First stable tag | First date (UTC) | Latest stable tag | Latest date (UTC) |
4351
+ | --- | --- | --- | --- | --- |
4352
+ | 4 | v0.1.0 | 2026-09-19 | v0.1.0 | 2026-09-19 |
4353
+ | 5 | v0.2.0 | 2026-09-19 | v0.2.0 | 2026-09-19 |
4354
+ | 6 | v0.3.0 | 2026-09-19 | v0.3.2 | 2026-09-19 |
4355
+ | 7 | v0.4.0 | 2026-09-19 | v0.4.0 | 2026-09-19 |
4356
+ | 8 | v0.5.0 | 2026-09-20 | v0.5.0 | 2026-09-20 |
4357
+ | 9 | v0.6.0 | 2026-09-20 | v0.6.4 | 2026-09-20 |
4358
+ | 10 | v0.7.0 | 2026-09-20 | v0.12.0 | 2026-10-01 |
4359
+ | 11 | v0.12.1 | 2026-10-01 | v0.12.2 | 2026-10-02 |
4360
+ | 12 | v0.12.3 | 2026-10-02 | v0.12.3 | 2026-10-02 |
4361
+ | 13 | v0.12.4 | 2026-10-03 | v0.12.15 | 2026-10-07 |
4362
+ | 14 | v0.12.16 | 2026-10-09 | v0.12.16 | 2026-10-09 |
4363
+ | 15 | v0.12.17 | 2026-10-09 | v0.12.19 | 2026-10-09 |
4364
+ | 16 | v0.12.20 | 2026-10-09 | v0.25.0 | 2026-11-01 |
4365
+ | 17 | v0.26.0 | 2026-11-01 | v0.52.0 | 2026-12-03 |
4366
+
4367
+ Through 2026-12-03, the default accepted window is 16–17. Protocol 15 or older needs a fresh session.
4368
+
4369
+ <!-- BRIDGE_PROTOCOL_RELEASES:END -->
4281
4370
 
4282
4371
  Release N-1 is counted in minor versions, separately from this protocol window
4283
- (#1164, family contract entelecheia/ai-workspace#70). For 0.50.x, N-1 is 0.49.1,
4372
+ (#1164, family contract entelecheia/ai-workspace#70). For 0.51.x, N-1 is 0.50.0,
4373
+ the latest published patch of 0.50.x (declared `@staix/agent-mem` `>=0.42.0 <1.0.0`,
4374
+ 0.43.0 in its fixture lock, control protocol 17 with descriptor floor 16). Every
4375
+ patch on 0.51.x keeps that release baseline. For 0.50.x, N-1 is 0.49.1,
4284
4376
  the latest published patch of 0.49.x (declared `@staix/agent-mem` `>=0.42.0 <1.0.0`,
4285
4377
  0.42.0 in its fixture lock, control protocol 17 with descriptor floor 16). Every
4286
4378
  patch on 0.50.x keeps that release baseline. For 0.49.x, N-1 is 0.48.4,
@@ -5590,7 +5682,7 @@ output through unchanged and appends one byte to a progress file for each of tho
5590
5682
  the watchdog polls that file's size. On a stop it prints where the run is and the process
5591
5683
  table below it first. `AHUB_CHECK_HANG_S` (2700 by default, 45 minutes: the owner raised it from 2250 on 2026-11-19 after healthy full runs on the remote host were ended at exit 143 while still printing passing results, #1564; #1086 had sized 2250 from two measured full runs on dgx02 of 1483 s and 1487 s of test time, and before that it was 960) is only the backstop for a run
5592
5684
  that keeps printing results while hung; hosted CI sets 1500 on Linux inside a 35-minute
5593
- job limit (#378, #593, #752, task 516). The macOS leg runs as four shards and the Ubuntu leg as six (#548, #1490): `AHUB_CHECK_SHARD=i/n`
5685
+ job limit (#378, #593, #752, task 516). The macOS leg runs as five shards (#1833) and the Ubuntu leg as six (#548, #1490): `AHUB_CHECK_SHARD=i/n`
5594
5686
  makes `scripts/check.sh` run slice `i` of the full suite through `bun test --shard=i/n --timings=scripts/test-timings.json`, which puts
5595
5687
  every test file in exactly one shard and balances them by the recorded per-file times; shard 1 also runs the docs check, typecheck, role check, bundle freshness and
5596
5688
  package contents, so each of those runs once per gate, and the others install and test. Each shard runs under the same 1500 s backstop as Linux inside a 25-minute job
@@ -5901,9 +5993,143 @@ session may turn protection on but cannot weaken it. No agent surface changes it
5901
5993
  Like other machine-local security defaults, loading it requires git to establish
5902
5994
  that the file is untracked; a dropped value is reported by the settings result.
5903
5995
 
5996
+ ## Quota renewal
5997
+
5998
+ Use `ahub budget renew <peer> --reset` in a person terminal after refreshing
5999
+ the same account, or `ahub budget renew <peer> --switched` after switching.
6000
+ Add `--json` for one document with the outcome and any guidance. Both forms
6001
+ keep the budget gate active. Any moved tasks stay assigned where they are.
6002
+ Check the task board before running a printed assignment command. An older
6003
+ pause without a recorded source peer points to the task for inspection.
6004
+ A renewal marker in `hub.db` that cannot be read stops the hub at start with
6005
+ `invalid stored budget renewal marker; stop the hub and restore a trusted hub.db backup before retrying`
6006
+ (#1837): restore a trusted `hub.db` backup, then start the hub again.
6007
+
6008
+ `ahub accounts import --from orca` (#1811, person only) prints an `accounts` block from Orca's managed accounts: labels and kinds, a home only where Orca carries one (else a placeholder `readAccounts` refuses), no email or id, and it writes nothing. Paste it into `config.local.json`.
6009
+ `instances.<id>.account` (#1810) names a declared account of the instance's own kind (Codex or Claude); config load refuses an undeclared one or one of another kind, and the daemon starts the instance with that account's home. `ahub setup` lists every declared Claude home with its label and installs the plugin there. When an account is paused its work may go to a peer of the same kind on another declared account (a `budget_handoff` event names both labels); `budget.cross_account_handoff: false` restores handoff across kinds only.
6010
+
6011
+ Declared accounts (#1810): list each extra Claude or Codex home under `accounts` in `.agenthub/config.local.json` (label, `kind`, absolute `home`). A Claude session under a declared home budgets as `claude:<label>`; any other home keeps the bare `claude` key. Output shows labels only, never home paths.
6012
+
6013
+ Before changing accounts or resetting a window, checkpoint any turn that must
6014
+ continue and check the task board for work already handed over. Use reset for
6015
+ the same account and switched for a different one. Either mode can be used
6016
+ before or during a budget pause. Renewal keeps manual and conductor holds,
6017
+ leaves moved work with its current owner and clears earlier quota evidence.
6018
+ An old provider value cannot establish a new baseline. The hub treats equal
6019
+ usage as a repeat when the reset times are within 15 minutes or either time
6020
+ is missing. A quota value
6021
+ set explicitly through the authenticated console at or after renewal can trigger
6022
+ the gate. It provides no evidence about which process produced a provider reading.
6023
+
6024
+ When the provider window predates renewal, the first accepted provider reading
6025
+ for each source sets its own forecast baseline. The forecast uses the rise in
6026
+ provider usage over the time since that source's baseline. It needs at least five percentage points of
6027
+ increase and at least 15 minutes of elapsed time. The dashboard and CLI label
6028
+ this projection `rate since the renewal`, and JSON uses `basis: "renewal"`.
6029
+ Reset-time jitter and small dips leave the baseline in place. A materially
6030
+ different reset time, an expired reset bound or a reset-sized usage drop starts
6031
+ a fresh baseline. A hub restart also needs a fresh provider reading. The average
6032
+ can reflect a recent speed-up late, especially in a weekly window.
6033
+
6034
+ Claude observations are grouped by session and, when present, launch. Codex
6035
+ observations are grouped by peer and app-server process. These IDs stay in
6036
+ memory. A source with too little evidence can temporarily hide a warning while
6037
+ its reading is shown. When a source with enough evidence is shown again, the
6038
+ same account and window has one Attention item without a separate push notice.
6039
+ A source can still report a
6040
+ cached value with a newer timestamp. Without a renewal, the usual forecast
6041
+ can still treat a cached value from another source as current.
6042
+
6043
+ After `--reset`, a cached value that differs from the discarded reading can
6044
+ still open a budget pause. A fresher reading clears it when every fresh
6045
+ gating window is more than ten percentage points under the gate. At the
6046
+ default 99% gate, all those windows must be below 89%. Otherwise the pause
6047
+ can end on the first budget tick at least one minute after the saved reset
6048
+ time once the peer is attached. The person can end it earlier through
6049
+ `ahub budget resume`, which applies its normal override.
6050
+
6051
+ Claude's in-session account change remains unverified. After a switched renewal,
6052
+ Claude's provider quota stays unknown and its soft gate is off. A hard quota
6053
+ refusal still pauses Claude, and the person can supply a value with
6054
+ `ahub budget set`. Restarting Claude does not restore provider readings under
6055
+ this rule. Codex home comparisons happen only for switched renewal and keep
6056
+ the paths private. While a Codex reviewer attempt is in flight, the hub reports
6057
+ its home comparison as unknown and leaves the account unchanged. Matching homes still require a newly launched app-server
6058
+ before soft quota is accepted. The model-free fixture verified an offline
6059
+ Codex relaunch can replace that process without restarting the hub. Native
6060
+ thread continuation remains unverified. Check the checkpoint and board first.
6061
+
6062
+ For a matching home, finish or stop the current Codex turn and exit its TUI.
6063
+ Wait for the printed project-scoped status command to show the peer offline,
6064
+ then run the printed start command. If it ran before detach, the hub can
6065
+ reuse the old app-server. Quota remains unknown until a newly started process
6066
+ reports a usable reading.
6067
+
6068
+ For differing homes, renewal refuses and leaves the pause in place. Run the
6069
+ printed chain from the shell that selects the new home, outside any agent
6070
+ session. It stops the whole project hub, starts it without default agents or
6071
+ the console, renews quota, then launches Codex. Each successful step is
6072
+ required before the next starts. Down waits for shutdown without waiting for running turns to finish. It can
6073
+ refuse if hub ownership or lifecycle admission is unavailable. Finish active turns before proceeding and check the printed recovery step on a
6074
+ failure. Reopen any listed other sessions after renewing, in a separate
6075
+ terminal if Codex takes over the first one. A fresh print reviewer has no
6076
+ session to reopen. The printed Claude start command does not request the
6077
+ earlier conversation. A displayed start command is scoped by project ID, so it works from another folder using the same hub
6078
+ registry and carries no home path. For an unverified home, correct the cause and run the printed renewal
6079
+ retry. Wait for an active Codex reviewer to settle if it blocks comparison.
6080
+ If the hub cannot return status before renewal, no renewal request is sent.
6081
+ If the renewal request loses its reply, check the printed project-scoped
6082
+ `ahub budget` command before retrying. The hub may already have saved it.
6083
+
6084
+ The Kimi 5-hour hub count starts a fresh window after either renewal mode,
6085
+ with or without a pause. It counts usage measured strictly after the saved
6086
+ renewal, including reviewer usage and eligible rows replayed after a restart.
6087
+ An unreadable or future measurement cannot restore the soft count. A clock
6088
+ change can leave out real use and delay a soft pause. Usage events, totals and
6089
+ hard refusals keep their normal behavior. The count has no provider baseline,
6090
+ so its forecast stays unknown while its window predates renewal. The hub
6091
+ counts Kimi work it observes, including work from a session on the old login.
6092
+
6093
+ ## Project structure budgets (#1829)
6094
+
6095
+ Add a `[structure]` table to `.agenthub/sdlc.toml` to cap file size under named roots and to flag a name that a shared module already exports; `ahub structure check` prints the table to start from when it is absent. Hubs before 0.52.0 refuse a file containing this table, so add it only after every hub reading the file is upgraded. The keys and rules are in [the SDLC contract](sdlc.md#structure-budgets-1829).
6096
+
6097
+ - `ahub structure baseline --write` writes the first baseline; review it and commit it. Later runs only shrink it.
6098
+ - `ahub structure check [--json]` exits 1 on a finding and prints each with its next step.
6099
+
6100
+ ## Automatic CI shard retries
6101
+
6102
+ Set `ci_shard_retries` in `.agenthub/sdlc.toml` and restart the hub. The setting
6103
+ accepts integers from 0 through 3 and defaults to 0 (off). Older hubs refuse a
6104
+ file containing this key. Set it only after every hub reading the file supports
6105
+ it. The budget applies per required shard and exact PR head. The hub retries only a ready PR
6106
+ in review or approved for the project's GitHub origin, when the watcher can
6107
+ attribute one failed required shard to that PR's completed `pull_request`
6108
+ workflow run. It reports the failed check when the retry budget is used or the
6109
+ evidence cannot safely identify a single failed shard. Draft deferrals never
6110
+ trigger a retry. When an eligible run is still active, the watcher waits for it
6111
+ to finish before deciding whether to rerun. Each confirmed rerun grants one new
6112
+ phase deadline. The owner and conductor receive a final failure even if the
6113
+ watcher reported an earlier failure for that head.
6114
+
6115
+ A `ci_rerun` notice names the shard and the requested retry number. An
6116
+ `unconfirmed` attempt still counts. The task history records the reservation
6117
+ before GitHub is called, including the failed shard's start time. A copied check
6118
+ row keeps its original start time even when GitHub labels it with a newer run
6119
+ attempt. The watcher treats that row as the same failure. A restart preserves
6120
+ the reservation, and pushing a new head starts a new count. A failed outcome
6121
+ tells the owner and conductor which shard or required check needs attention.
6122
+
6123
+ - If another required check fails and is reported during a rerun, the watcher
6124
+ reports the rerun shard's final failure separately only after the other check
6125
+ clears.
6126
+ - If GitHub reports mergeability as `UNKNOWN` when the shard fails, the failed
6127
+ notice can arrive before the rerun. Once GitHub reports `MERGEABLE`, the watcher
6128
+ can request the rerun and report its final failure.
6129
+
5904
6130
  ## SDLC artifact receipts and gates
5905
6131
 
5906
- The playbook lifecycle (#257, #481) is off without `.agenthub/sdlc.toml`. When enabled its stages are intent, spec, plan, build, test, review, merge, release and maintain, grouped as Plan, Design, Build, Test, Deploy and Maintain. Advise shows blockers; enforce checks implemented head-bound review and approval gates. Stored implement/verify receipts read as build/test; new enabled receipts use canonical ids. See [the SDLC contract](sdlc.md) for gates, required check names, local receipts, console-only readbacks and the S0-S8 delivery table. A person accepts a spec issue with `ahub sdlc accept <task> --issue <n>` (S1). A PR merged outside the hub is recorded with `ahub sdlc adopt-merge <task> --pr <n>` (person or current conductor), which approves the task and releases dependents only at its recorded head with green required checks ([adoption](sdlc.md#adopting-a-pr-merged-outside-the-hub-1328-t3)). The planner records plan reviews with review and CI scope (`hub_plan_review`, `ahub sdlc plan-review`) and grooms with `ahub backlog groom`; `ahub backlog return <task> <revision> <reason>` returns accepted, untouched work (S9). `ahub sdlc costs [owner/repo]` reports review rounds and CI runs of merged PRs without writing the board (S10). `ahub sdlc metrics [--since <YYYY-MM-DD|ISO time>]` (the planner tool `hub_sdlc_metrics`, planner or person, read-only) reports lead times, first-pass approval and check rates, rework rounds, stale-head re-reviews and open stalls from board history, with `unknown` counted and never 0; optional `[bands.<metric>]` in `sdlc.toml` add control bands that the daemon checks every five minutes in advise or enforce, writing a hub notice (`log`), a read-only `triage` backlog task (`diagnose`) or a `plan` backlog card (`propose`), one per breach episode and never a GitHub issue (S7, see [metrics](sdlc.md#sdlc-metrics-and-control-bands-481-s7)). With the lifecycle on, a task's issue identity is linked when it is proposed or accepted, from the one issue it names (an imported GitHub issue, or a `#N`, `owner/repo#N` or issue URL in its title); a title that names a sibling repository (`agent-mem#13`) links only when `refs.repo` names it, and without `refs.repo` the propose result says to set it. `ahub backlog groom` also backfills up to 32 links per call, within 1 s (#723). S11 release trains ship in 0.12.37 (see [release scheduling](#planner-release-scheduling)). S3 structured review findings (an open Important finding blocks approval in enforce; `max_nits` in `sdlc.toml` caps nits) and S2 literal-path plan conformance with the person-only `ahub sdlc accept-departure <task> <head> <reason...>` are in source; see [findings](sdlc.md#structured-review-findings-481-s3) and [plan conformance](sdlc.md#plan-conformance-481-s2). S4 [test integrity](sdlc.md#test-integrity-481-s4) and S6 [release authorization](#release-approval-and-optional-tag-guard) are in source too. S5 is in source as an [eval gate mechanism](sdlc.md#eval-gate-for-agent-configuration-481-s5) with no suite chosen, and S7 adds merge-time readback, [release metrics](sdlc.md#release-metrics-481-ac12) and an opt-in security baseline; a full live advise/release cycle and the per-release gates-run record remain pending. Owners/reviewers record bounded identities through `hub_sdlc_record`; these grant no additional authority. Off output, receipt and schema shapes stay unchanged. #1403 adds a `[security]` table whose paths need a recorded `security_pass` on the approving review ([security pass](sdlc.md#security-pass-for-sensitive-paths-hub-task-895-1403-a2)), `ahub sdlc audit start|show` with a hub-written coverage ledger ([audit](sdlc.md#security-audit-with-a-coverage-ledger-hub-task-896-1403-a4-a5)), plan intent fields with advisory base drift on accept and done, and `ahub sdlc survey start|show` ([surveys](sdlc.md#advisor-surveys-and-considered-findings-1403-t7)); while survey or considered-finding state exists, a restart, upgrade or recovery onto a target without `advisor_surveys` is refused. The person may instruct the configured conductor in its own session to run `ahub sdlc configure` for `off`/`advise` and required checks ([#1432](sdlc.md#instructed-conductor-configuration-1432)). In `advise` or `enforce`, `ahub sdlc readback start|show <task>` (person or current conductor) asks a reviewer-role peer that neither proposed nor owns the task to state the spec issue back, a report that never gates acceptance ([spec read-back](sdlc.md#spec-read-back-1658)), and an optional `[risk]` table in `sdlc.toml` derives a risk tier from a filed change's paths, a `high` change owing a verifier card from a peer other than the implementer ([risk tier](sdlc.md#minimum-review-by-risk-tier-1645)).
6132
+ The playbook lifecycle (#257, #481) is off without `.agenthub/sdlc.toml`. When enabled its stages are intent, spec, plan, build, test, review, merge, release and maintain, grouped as Plan, Design, Build, Test, Deploy and Maintain. Advise shows blockers; enforce checks implemented head-bound review and approval gates. Stored implement/verify receipts read as build/test; new enabled receipts use canonical ids. See [the SDLC contract](sdlc.md) for gates, required check names, local receipts, console-only readbacks and the S0-S8 delivery table. A person accepts a spec issue with `ahub sdlc accept <task> --issue <n>` (S1). A PR merged outside the hub is recorded with `ahub sdlc adopt-merge <task> --pr <n>` (person or current conductor), which approves the task and releases dependents only at its recorded head with green required checks ([adoption](sdlc.md#adopting-a-pr-merged-outside-the-hub-1328-t3)). The planner records plan reviews with review and CI scope (`hub_plan_review`, `ahub sdlc plan-review`) and grooms with `ahub backlog groom`; `ahub backlog return <task> <revision> <reason>` returns accepted, untouched work (S9). `ahub sdlc costs [owner/repo]` reports review rounds and CI runs of merged PRs without writing the board (S10). `ahub sdlc metrics [--since <YYYY-MM-DD|ISO time>]` (the planner tool `hub_sdlc_metrics`, planner or person, read-only) reports lead times, first-pass approval and check rates, rework rounds, stale-head re-reviews and open stalls from board history, with `unknown` counted and never 0; optional `[bands.<metric>]` in `sdlc.toml` add control bands that the daemon checks every five minutes in advise or enforce, writing a hub notice (`log`), a read-only `triage` backlog task (`diagnose`) or a `plan` backlog card (`propose`), one per breach episode and never a GitHub issue (S7, see [metrics](sdlc.md#sdlc-metrics-and-control-bands-481-s7)). With the lifecycle on, a task's issue identity is linked when it is proposed or accepted, from the one issue it names (an imported GitHub issue, or a `#N`, `owner/repo#N` or issue URL in its title); a title that names a sibling repository (`agent-mem#13`) links only when `refs.repo` names it, and without `refs.repo` the propose result says to set it. `ahub backlog groom` also backfills up to 32 links per call, within 1 s (#723). S11 release trains ship in 0.12.37 (see [release scheduling](#planner-release-scheduling)). S3 structured review findings (an open Important finding blocks approval in enforce; `max_nits` in `sdlc.toml` caps nits) and S2 literal-path plan conformance with the person-only `ahub sdlc accept-departure <task> <head> <reason...>` are in source; see [findings](sdlc.md#structured-review-findings-481-s3) and [plan conformance](sdlc.md#plan-conformance-481-s2). S4 [test integrity](sdlc.md#test-integrity-481-s4) and S6 [release authorization](#release-approval-and-optional-tag-guard) are in source too. S5 is in source as an [eval gate mechanism](sdlc.md#eval-gate-for-agent-configuration-481-s5) with no suite chosen, and S7 adds merge-time readback, [release metrics](sdlc.md#release-metrics-481-ac12) and an opt-in security baseline; a full live advise/release cycle and the per-release gates-run record remain pending. Owners/reviewers record bounded identities through `hub_sdlc_record`; these grant no additional authority. Off output, receipt and schema shapes stay unchanged. #1403 adds a `[security]` table whose paths need a recorded `security_pass` on the approving review ([security pass](sdlc.md#security-pass-for-sensitive-paths-hub-task-895-1403-a2)), `ahub sdlc audit start|show` with a hub-written coverage ledger ([audit](sdlc.md#security-audit-with-a-coverage-ledger-hub-task-896-1403-a4-a5)), plan intent fields with advisory base drift on accept and done, and `ahub sdlc survey start|show` ([surveys](sdlc.md#advisor-surveys-and-considered-findings-1403-t7)); while survey or considered-finding state exists, a restart, upgrade or recovery onto a target without `advisor_surveys` is refused. The person may instruct the configured conductor in its own session to run `ahub sdlc configure` for `off`/`advise` and required checks ([#1432](sdlc.md#instructed-conductor-configuration-1432)). In `advise` or `enforce`, `ahub sdlc readback start|show <task>` (person or current conductor) asks a reviewer-role peer that neither proposed nor owns the task to state the spec issue back, a report that never gates acceptance ([spec read-back](sdlc.md#spec-read-back-1658)), and an optional `[risk]` table in `sdlc.toml` derives a risk tier from a filed change's paths, a `high` change owing a verifier card from a peer other than the implementer ([risk tier](sdlc.md#minimum-review-by-risk-tier-1645)). `ahub sdlc check [--json]` audits the lifecycle setup read-only (config and roles, required checks, task bindings, roadmap hygiene; exit 1 only when a row fails) and `ahub doctor` shows its offline `sdlc` row; `ahub sdlc sync` previews board receipt repairs with a 64-hex fingerprint and writes them only with `--apply --confirm <fingerprint>` ([sync](sdlc.md#ahub-sdlc-sync-1856)).
5907
6133
  ## Supervision proposals
5908
6134
 
5909
6135
  `supervision.mode` is off by default and machine-local (`ahub settings set supervision.mode advisory`); a committed
@@ -6002,7 +6228,7 @@ is `tui` runs headless. Until a TUI launch is served, `ahub status` and the
6002
6228
  launcher say `jcode is running headless after recovery; run ahub stop jcode, then
6003
6229
  ahub jcode to get its TUI back`.
6004
6230
 
6005
- `ahub jcode --dry-run` stays pure and redacted. A person's `--print-command` can show the actual top-level native argv and closed native environment for an already-saved running session; it starts nothing, and like the launch it names a `--model`, `--provider-profile` or `--session-id` that differs from the running session (#574). The private socket/session tuple is not returned to hub tools or status. Native saved-session evidence is read-only and capped at 32 MiB; unsafe, mismatched or larger evidence refuses the TUI launch.
6231
+ `ahub jcode --dry-run` stays pure and redacted. A person's `--print-command` can show the actual top-level native argv and closed native environment for an already-saved running session; it starts nothing, and like the launch it names a `--model`, `--provider-profile` or `--session-id` that differs from the running session (#574). The private socket/session tuple is not returned to hub tools or status. Native saved-session evidence is read-only and capped at 32 MiB; unsafe, mismatched or larger evidence refuses the TUI launch. The wrapper closes its hub connection and then replaces itself with the Jcode TUI through `process.execve` (#1778 T6a): the wrapper's pid is the TUI's, no `ahub` process stays resident, and a runtime without `execve` keeps the spawn path.
6006
6232
 
6007
6233
  A busy jcode takes an `important` message into its running turn (#572): the hub sends it as a soft interrupt through jcode's own private server socket, which jcode injects at its next tool boundary, so the message no longer waits for the turn to end. The hub never cancels a turn to deliver. Headless Kimi and Qwen have no such path: an `important` message waits, and `ahub status` and the console show `important messages waiting on a busy ACP peer for N min` once it has waited past `budget.stale_min`, so you can decide to stop the peer.
6008
6234
 
@@ -6019,7 +6245,7 @@ Native policy is unmanaged and has NO hub sandbox; no permission_modes.jcode or
6019
6245
 
6020
6246
  ## Optional Antigravity (agy) peer
6021
6247
 
6022
- Antigravity is optional and off roster by default. Use `ahub roster add agy`, then run `ahub agy` in a terminal: it runs the Antigravity CLI as a fresh pull-only TUI in that terminal. It accepts the 1.4.x line plus exact 1.5.3: 1.4.2, 1.4.7, 1.4.12 and 1.5.3 are the verified versions ([1.4.7 receipt](verification/2026-10-26-agy-1.4.7.md), [1.4.12 launcher nonce receipt](verification/2026-11-03-agy-1.4.12-launcher-nonce.md), [1.5.3 account-free receipt](verification/2026-11-08-agy-1.5.3.md)), any other 1.4.x launches with a stderr warning (agy updates itself, so the launcher sets `AGY_CLI_DISABLE_AUTO_UPDATE=1` for its version probe and the TUI it starts, #1140, #1286), and other versions are refused (#589) unless the person trusts that exact version with `ahub agents trust agy <version>` (#691). The running hub must advertise `native_hook_launch`; an older hub refuses before any write with an upgrade-or-restart remedy. Only the person's launcher starts it: conductor starts are refused, there is no controlled restore or resume, and a declared agy extra instance is refused when the config loads (#625). Headless/print, resume (`--conversation`, `--continue`, `--new`), `--mode`, `--dangerously-skip-permissions` and `--unattended` are refused until their native mapping is verified; `--print-command` previews without writing.
6248
+ Antigravity is optional and off roster by default. Use `ahub roster add agy`, then run `ahub agy` in a terminal: it runs the Antigravity CLI as a fresh pull-only TUI in that terminal. It accepts the 1.4.x line plus exact 1.5.3 and 1.5.21: 1.4.2, 1.4.7, 1.4.12, 1.5.3 and 1.5.21 are the verified versions ([1.4.7 receipt](verification/2026-10-26-agy-1.4.7.md), [1.4.12 launcher nonce receipt](verification/2026-11-03-agy-1.4.12-launcher-nonce.md), [1.5.3 account-free receipt](verification/2026-11-08-agy-1.5.3.md), [1.5.21 account-free receipt](verification/2026-12-02-agy-1.5.21.md)), any other 1.4.x launches with a stderr warning (agy updates itself, so the launcher sets `AGY_CLI_DISABLE_AUTO_UPDATE=1` for its version probe and the TUI it starts, #1140, #1286), and other versions are refused (#589) unless the person trusts that exact version with `ahub agents trust agy <version>` (#691). The running hub must advertise `native_hook_launch`; an older hub refuses before any write with an upgrade-or-restart remedy. Only the person's launcher starts it: conductor starts are refused, there is no controlled restore or resume, and a declared agy extra instance is refused when the config loads (#625). Headless/print, resume (`--conversation`, `--continue`, `--new`), `--mode`, `--dangerously-skip-permissions` and `--unattended` are refused until their native mapping is verified; `--print-command` previews without writing.
6023
6249
 
6024
6250
  The launcher writes exactly `plugin.json`, `mcp_config.json` and `hooks.json` in `.agents/plugins/agent-hub/`, refusing linked or foreign entries before any write, and removes only its own matching files when the TUI ends. It never writes project-level `.agents/hooks.json` or the person's `~/.gemini` settings. Run `ahub init` afterwards to ignore the untracked plugin directory; a tracked plugin is written with a warning. The native model sees the hub tools under the server name `agent-hub_agent-hub`.
6025
6251
 
@@ -6731,7 +6957,7 @@ Default-branch capture runs only at daemon startup when a Claude implementer is
6731
6957
 
6732
6958
  Project Git retains the core policy that clears credential.helper and core.askpass; an HTTPS push needing those helpers may fail, rather than importing credentials or relaxing that policy. Task branch/config proof reads are bounded synchronous reads (1.5 seconds per reader); slow or unknown evidence asks. The existing sandbox profile discovery is also synchronous; moving it to an asynchronous inventory proof with a shared deadline remains a follow-up. The nonce is visible in a permission response, so it proves a bounded grant rather than native-dispatch provenance.
6733
6959
 
6734
- The [native permission receipt](verification/2026-10-23-headless-claude-permissions.md) covers Claude Code 2.1.309, and the [2.1.310 receipt](verification/2026-10-26-claude-implementer-2.1.310.md) repeats it on 2.1.310 (with 2.1.309 as a control), and the [2.1.314 receipt](verification/2026-10-31-claude-implementer-2.1.314.md) repeats it and the host-wrapper procedure on 2.1.314 (with 2.1.310 as a control), and the [2.1.316 receipt](verification/2026-10-31-claude-implementer-2.1.316.md) repeats both on 2.1.316 (with 2.1.314 as a control), and the [2.1.318 receipt](verification/2026-11-05-claude-implementer-2.1.318.md) repeats both on 2.1.318 (with 2.1.316 as a control), and the [2.1.319 receipt](verification/2026-11-06-claude-implementer-2.1.319.md) repeats both on 2.1.319 (with 2.1.318 as a control), and the [2.1.322 receipt](verification/2026-11-10-claude-implementer-2.1.322.md) repeats both on 2.1.322 (with 2.1.319 as a control), the [2.1.323 receipt](verification/2026-11-13-claude-implementer-2.1.323.md) repeats both on 2.1.323 (with 2.1.322 as a control), and the [2.1.328](verification/2026-11-19-claude-implementer-2.1.328.md) and [2.1.329](verification/2026-11-20-claude-implementer-2.1.329.md) receipts repeat both on those versions (each with 2.1.323 as a control), each with a deterministic loopback fixture and no real account/model call. It is not sandbox proof or a runtime receipt gate. The real account/model/person interaction remains a separate live leg.
6960
+ The [native permission receipt](verification/2026-10-23-headless-claude-permissions.md) covers Claude Code 2.1.309, and the [2.1.310 receipt](verification/2026-10-26-claude-implementer-2.1.310.md) repeats it on 2.1.310 (with 2.1.309 as a control), and the [2.1.314 receipt](verification/2026-10-31-claude-implementer-2.1.314.md) repeats it and the host-wrapper procedure on 2.1.314 (with 2.1.310 as a control), and the [2.1.316 receipt](verification/2026-10-31-claude-implementer-2.1.316.md) repeats both on 2.1.316 (with 2.1.314 as a control), and the [2.1.318 receipt](verification/2026-11-05-claude-implementer-2.1.318.md) repeats both on 2.1.318 (with 2.1.316 as a control), and the [2.1.319 receipt](verification/2026-11-06-claude-implementer-2.1.319.md) repeats both on 2.1.319 (with 2.1.318 as a control), and the [2.1.322 receipt](verification/2026-11-10-claude-implementer-2.1.322.md) repeats both on 2.1.322 (with 2.1.319 as a control), the [2.1.323 receipt](verification/2026-11-13-claude-implementer-2.1.323.md) repeats both on 2.1.323 (with 2.1.322 as a control), the [2.1.328](verification/2026-11-19-claude-implementer-2.1.328.md) and [2.1.329](verification/2026-11-20-claude-implementer-2.1.329.md) receipts repeat both on those versions (each with 2.1.323 as a control), the [2.1.332 receipt](verification/2026-11-25-claude-implementer-2.1.332.md) repeats both on 2.1.332 (with 2.1.329 as a control), and the [2.1.334 receipt](verification/2026-12-02-claude-implementer-2.1.334.md) repeats both on 2.1.334 (with 2.1.332 as a control), each with a deterministic loopback fixture and no real account/model call. It is not sandbox proof or a runtime receipt gate. The real account/model/person interaction remains a separate live leg.
6735
6961
 
6736
6962
  A headless Claude reviewer is run by the hub instead (task 223): declare
6737
6963
  `"claude-review": { "kind": "claude", "roles": ["reviewer"], "start_mode": "headless" }`
@@ -6771,7 +6997,7 @@ Start them with `ahub claude --as claude-review`, `ahub codex --as codex-review`
6771
6997
 
6772
6998
  Codex requires a verified `codex-cli` (0.146.0, 0.163.0, 0.164.0, 0.166.0 or 0.169.0) or one the person trusts on this machine, and a passing bounded runtime receipt before its model child starts. 0.146.0 and 0.163.0 passed the [2026-10-22 model-free production admission](verification/2026-10-22-codex-reviewer-isolation.md) and 0.164.0 the [2026-10-24 one](verification/2026-10-24-codex-0164-reviewer-isolation.md); 0.166.0 passed the [2026-10-31 model-free procedure](verification/2026-10-31-codex-0166-reviewer-isolation.md). Its [first authorized model review](verification/2026-10-31-codex-0166-reviewer-tool-call.md) missed a marker hidden by the fixture's accepted plan, so that admission was reverted. After a committed model-free envelope regression and a fixture correction, the separately authorized [2026-11-02 single model review](verification/2026-11-02-codex-0166-reviewer-tool-call.md) persisted one approved verdict with the required marker and exact head; 0.166.0 is now verified. 0.167.0 passed the [2026-11-06 model-free procedure](verification/2026-11-06-codex-0167-reviewer-isolation.md) with 0.166.0 as control. The separately authorized [single model-backed attempt](verification/2026-11-06-codex-0167-reviewer-tool-call.md) failed a harness readiness/readback check after startup and marker preconditions; a complete persisted verdict/head/marker result was not recorded, so the model/tool outcome is unknown and 0.167.0 remains unverified. No retry was made. It joins the verified set only after a separately authorized model-backed tool-call run succeeds; until then it is refused unless the person runs `ahub agents trust codex-review 0.167.0`, and every runtime proof still runs. 0.167.2 passed the [2026-11-13 model-free procedure](verification/2026-11-13-codex-01672-reviewer-isolation.md) with 0.166.0 and 0.167.0 as controls and stays out of the verified set on the same terms (`ahub agents trust codex-review 0.167.2`). 0.169.0 passed the [2026-11-14 model-free procedure](verification/2026-11-14-codex-0169-reviewer-isolation.md) with 0.166.0 and 0.167.2 as controls (six of the seven re-read source files changed and were re-read, and the app-server schema comparison found no removed type, property or enum value), and the separately authorized [single model-backed review](verification/2026-11-14-codex-0169-reviewer-tool-call.md) persisted one approved verdict with the required marker and exact head; 0.169.0 is verified. Four earlier starts of that harness were refused at the isolation proof before any model request, a fixture deny-list artifact that the receipt records. A refusal names the installed and verified versions. Either set `codex_bin` to a verified executable, or run `ahub agents trust codex-review <version>`: trust lifts only the version pin, and every proof below still runs before each child (#691). Each launch approves exactly `hub_review` and `hub_task_show` per tool (`approval_mode = "approve"`), never through a server-wide default: without it Codex 0.164.0 listed the tools but refused the call, so reviews ended with no verdict (#783). A model-free receipt proves the inventory, not that a verdict reaches the hub; a [model-backed 0.164.0 run](verification/2026-10-25-codex-0164-reviewer-tool-call.md) recorded one verdict through that path. The producer checks native binary/config stability, configured MCP inventory with only the two hub tools, effective Apps/plugins/hooks disablement, an explicit empty legacy `notify` command and a named filesystem profile. Apps needs separate feature readback because configured inventory omits runtime connectors. Web search is requested disabled; its effective turn mode is not read back and managed requirements can select Cached (see the verification ceiling). Each launch proves public-read, exact/glob/symlink private-denial, standard host credential denial and write-denial in temporary fixtures. Standard credential and configured tool-home/XDG subtrees are denied independently of project `local.deny`. Its sandboxed shell is filesystem read-only with private paths denied and network configured disabled; it is not Claude's Read/Grep/Glob-only tool whitelist. No credential home is copied.
6773
6999
 
6774
- Kimi requires a compat-admitted Kimi Code on the hub's PATH (receipt-verified 2.2.0, 2.3.0, 2.3.1, 2.3.2, 2.4.1, 2.5.1 and 2.7.2), signed in through its managed OAuth provider, and a passing runtime preparation before each child; an unverified/untrusted version or a failed preparation is unavailable with its reason. The [2.3.0](verification/2026-10-22-kimi-qwen-compat.md), [2.3.1](verification/2026-10-25-kimi-231-reviewer-compat.md), [2.3.2](verification/2026-10-26-kimi-232-reviewer-compat.md), [2.4.1](verification/2026-10-31-kimi-241-reviewer-compat.md) and [2.5.1](verification/2026-11-06-kimi-251-reviewer-compat.md) receipts are model-free and do not verify real login/provider readiness. Each review runs a new `kimi -p` child without Seatbelt, in a private `KIMI_CODE_HOME` with managed-provider-only config, a clean temporary working directory and an empty skills directory. Its agent may call only `hub_review` and `hub_task_show`, through a task-bound loopback MCP session that never carries the hub's control token, and has no native read, file or shell tool: it reviews the screened brief and host facts only. Its `credentials/`, `oauth/` and `device_id` link to the person's native Kimi files, so it shares the native login, refresh lock and the Kimi account's budget; no token is copied. A stop revokes its verdict authority first, then waits briefly while an OAuth refresh holds the lock; a forced stop mid-refresh may require a native re-login. The Kimi backend records no measured token counts here, so its usage stays unknown; the 2.3.0 receipt makes no usage claim. This is a native tool-authority boundary, not filesystem or network isolation.
7000
+ Kimi requires a compat-admitted Kimi Code on the hub's PATH (receipt-verified 2.2.0, 2.3.0, 2.3.1, 2.3.2, 2.4.1, 2.5.1, 2.7.2 and 2.8.1), signed in through its managed OAuth provider, and a passing runtime preparation before each child; an unverified/untrusted version or a failed preparation is unavailable with its reason. The [2.8.1 receipt](verification/2026-11-29-kimi-281-reviewer-compat.md) covers headless reviewer compatibility. Interactive [2.8.1 TUI completion](verification/2026-11-29-kimi-tui-281.md) remains unverified. The [2.3.0](verification/2026-10-22-kimi-qwen-compat.md), [2.3.1](verification/2026-10-25-kimi-231-reviewer-compat.md), [2.3.2](verification/2026-10-26-kimi-232-reviewer-compat.md), [2.4.1](verification/2026-10-31-kimi-241-reviewer-compat.md) and [2.5.1](verification/2026-11-06-kimi-251-reviewer-compat.md) receipts are model-free and do not verify real login/provider readiness. Each review runs a new `kimi -p` child without Seatbelt, in a private `KIMI_CODE_HOME` with managed-provider-only config, a clean temporary working directory and an empty skills directory. Its agent may call only `hub_review` and `hub_task_show`, through a task-bound loopback MCP session that never carries the hub's control token, and has no native read, file or shell tool: it reviews the screened brief and host facts only. Its `credentials/`, `oauth/` and `device_id` link to the person's native Kimi files, so it shares the native login, refresh lock and the Kimi account's budget; no token is copied. A stop revokes its verdict authority first, then waits briefly while an OAuth refresh holds the lock; a forced stop mid-refresh may require a native re-login. The Kimi backend records no measured token counts here, so its usage stays unknown; the 2.3.0 receipt makes no usage claim. This is a native tool-authority boundary, not filesystem or network isolation.
6775
7001
 
6776
7002
  A dangling or unreadable standard/configured credential root makes the Codex reviewer unavailable with only its path class in the reason (for example `~/.docker` or `$DOCKER_CONFIG`, never an expanded path or contents); repair the root and start the reviewer again.
6777
7003
 
@@ -6869,7 +7095,7 @@ Native launcher connections retry transport timeouts/unclean closes with bounded
6869
7095
 
6870
7096
  ## amem runtime (agent-mem#13 P4)
6871
7097
 
6872
- The hub accepts @staix/agent-mem <!-- facts:agent-mem-pin -->>=0.42.0 <1.0.0<!-- /facts:agent-mem-pin --> (a range `bun.lock` resolves; a newer plain release in it with a supported host API needs no hub release) for recall, curated evidence and local deterministic capture. No runtime call reaches a claude-mem worker; `memory.worker_url` is ignored. The person's `ahub memory import claude-mem` remains explicit and off by default. Existing profile, alias, PII and private-turn fences still apply. `ask --remember` and context checkpoints propose machine-local candidates, never automatic curated evidence. See [memory integration](memory.md#in-process-recall-and-capture-agent-mem13-p4) for changed behavior and bounded-view ceilings.
7098
+ The hub accepts @staix/agent-mem <!-- facts:agent-mem-pin -->>=0.47.0 <1.0.0<!-- /facts:agent-mem-pin --> (a range `bun.lock` resolves; a newer plain release in it with a supported host API needs no hub release) for recall, curated evidence and local deterministic capture. No runtime call reaches a claude-mem worker; `memory.worker_url` is ignored. The person's `ahub memory import claude-mem` remains explicit and off by default. Existing profile, alias, PII and private-turn fences still apply. `ask --remember` and context checkpoints propose machine-local candidates, never automatic curated evidence. See [memory integration](memory.md#in-process-recall-and-capture-agent-mem13-p4) for changed behavior and bounded-view ceilings.
6873
7099
 
6874
7100
  ## Person-run backlog legs (#1176)
6875
7101
 
@@ -7590,6 +7816,14 @@ metadata. A healthy online link needs no broker repair advice.
7590
7816
 
7591
7817
  The optional Orca companion moved to [STAIxBWLB/ahub-orca](https://github.com/STAIxBWLB/ahub-orca) (#1387). Its code, tests and receipts live there; nothing of it remains in this repository. (The two Orca CLI verification records under `docs/verification/` stay here: they are ahub's own terminal-recovery evidence, cited by `src/cli/terminal-recovery.ts`.) It is an Orca plugin (`orca-plugin.json` at that repository's root, tagged `vX.Y.Z`), not an ahub dependency. It stays off here, and its native receipts are person-run and not run.
7592
7818
 
7819
+ ### Orca pane identity and instance worktrees (#1811)
7820
+
7821
+ A launch from an Orca pane records `ORCA_PANE_KEY`, `ORCA_TAB_ID` and `ORCA_WORKSPACE_ID` in `terminal-recovery.json` beside the handle (each optional, at most 256 characters; absent when the pane exports none). Recovery matches a terminal to its record by handle, worktree and incarnation first; when Orca has reassigned the handle, it matches by the pane key inside the same worktree (and workspace, when both name one), and only when exactly one record carries that key. The hub's terminal opener asks Orca for the worktree whose root is the peer's own execution root (an extra implementer's `.worktrees/<id>`) and falls back to the project root's worktree when Orca has none; the base peer always uses the project root. Both are reads and creates through the public `orca` CLI that recovery already used; outside an Orca pane, or without `orca` on the path, nothing is read.
7822
+
7823
+ ### Blocked Orca pane (#1811)
7824
+
7825
+ When a delivery to a peer whose launch record holds an Orca pane key has stayed queued for two minutes, the daemon asks Orca for that pane's state: one `orca agent list --json --worktree id:<worktree id>` read, killed after five seconds, at most once a minute per peer, taking the one row whose `paneKey` equals the record's. A state of `blocked` or `waiting` raises one Attention item at level act, "<peer> waits for you in Orca: orca terminal switch --terminal <handle>"; it clears when the state changes or the delivery is accepted. A peer without a recorded pane is never read, and an error, a timeout, a missing row or any other state raises nothing. The hub reads only and never answers the prompt. `orcaPaneEveryMs` (daemon option, default 30 s) is the check cadence, not the read rate. Receipt: `docs/verification/2026-12-01-1811-orca-agent-list.md`.
7826
+
7593
7827
  ## Herdr companion (moved, #1199)
7594
7828
 
7595
7829
  The Herdr companion moved to [STAIxBWLB/ahub-herdr](https://github.com/STAIxBWLB/ahub-herdr) (#1387). Its code, tests and receipts live there; nothing of it remains in this repository. It is a mod folder the person copies into Herdr, not an ahub dependency. It stays off here, and its native receipts are person-run and not run.
@@ -7740,6 +7974,12 @@ Kimi reviewer usage is read from its isolated native session index/wire usage th
7740
7974
 
7741
7975
  Controlled recovery advertises `reviewer_quota`. A target needs it only when reviewer accounting/wait history is retained or the project explicitly configures `review.gate`, `review.unknown_quota` or `review.max_minutes` (including `unknown_quota = "skip"` and `gate = "off"`); legacy empty state remains compatible with older targets. Snapshot integrity binds ordered safe accounting fields, complete/pending/unknown counts and replay completeness, with no native session/home/text. Missing or changed journal state refuses target restoration. Ending a quota wait at its original deadline is separate from native review readiness: failed enforce-mode CI cannot extend the quota wait, and no premature native review is sent.
7742
7976
 
7977
+ ## Agent presets (#1809)
7978
+
7979
+ `ahub agents presets` lists the presets shipped in `templates/presets/agents.json`: the executable, the headless launch line (if any), the CLI version it was recorded against and a status. A preset is `verified` only when its `receipt` names an existing file under `docs/verification/`; every other preset is `untested`, and an untested preset is a recorded starting point, not a claim that it works. `ahub agents add <preset> [--as <kind>]` is person only. It resolves the executable on `PATH`, then writes `adapters.<kind>` into `.agenthub/config.local.json` after git confirms that file is untracked. It refuses an existing kind, a reserved kind name, a missing executable, a preset with no headless launch line (copilot) and a config file it cannot parse, and in each case writes nothing. `ahub status` shows `preset: <id> (<status>)` for such a kind. Remove the kind by deleting its entry from that file.
7980
+
7981
+ `ahub agents add <preset> --pull` writes a `transport: "pull"` kind instead (the person's own TUI, `tasks: false`, no reviewer role) and prints the command that registers the hub's bridge in that CLI; it runs nothing and writes nothing outside `.agenthub`. `ahub <kind>` then starts the CLI in the terminal with the kind's peer identity, after checking that the hub loaded the kind and has it on the roster. `ahub doctor` reads the CLI's settings file named by the preset and reports a pull kind whose bridge is not registered there. The bridge attaches pull-only, as agy does: the session reads `hub_inbox` and calls hub tools, and nothing is pushed to it. A process started without `ahub <kind>` has no `AGENTHUB_PEER_ID`, and the bridge in tools mode refuses every hub tool for it.
7982
+
7743
7983
  ## Hub skills on other hosts (#1622)
7744
7984
 
7745
7985
  The hub's own skills (`ahub-status`, `ahub-manage`, `ahub-use` and the person-only `ahub`) ship in the Claude
@@ -18,7 +18,7 @@ Or use the matching GitHub release:
18
18
 
19
19
  <!-- facts:install-tag -->
20
20
  ```bash
21
- bun add -g github:STAIxBWLB/agent-hub#v0.50.0
21
+ bun add -g github:STAIxBWLB/agent-hub#v0.52.0
22
22
  ahub setup
23
23
  ```
24
24
  <!-- /facts:install-tag -->
@@ -39,6 +39,11 @@ If the dotfiles CLI manages ahub (`dot ai family install ahub`), `ahub` runs fro
39
39
  - After 0.33.0, `ahub setup` replaces it and `ahub doctor` names the home that needs it.
40
40
  - With 0.33.0 or earlier, delete that one entry from `hooks.PreToolUse` in that home's `settings.json`; `ahub setup` has already installed the current one (#1245).
41
41
 
42
+ On macOS and Linux, `ahub setup` installs a shell guard for the Claude profile
43
+ `PreToolUse` hook. It starts Bun only when both hub state and peer markers are
44
+ present and the launch marker is unset. Run `ahub setup` in the intended Claude
45
+ home to refresh a legacy hook that doctor reports as outdated.
46
+
42
47
  `ahub doctor` tells you what is installed, running and configured. Rows you do not need can stay red: the hub works with any subset of the peers.
43
48
 
44
49
  Who conducts, plans and reviews is yours to choose, including with no commercial agent at all: see [choosing who conducts, plans and reviews](roles.md#choosing-who-conducts-plans-and-reviews).
@@ -54,6 +59,28 @@ A project whose hub is stopped is upgraded without starting it: `ahub upgrade
54
59
  --all-stopped --to <version>` does that for every stopped project at once
55
60
  (`--dry-run` lists each one first).
56
61
 
62
+ ## Upgrading to 0.52.0
63
+
64
+ Most of what is new waits until you use it: `ahub sdlc check`, `ahub sdlc sync` and the unsettled-task view of `ahub sdlc status`, `ahub structure check`, `ahub agents presets` and `ahub agents add`, `ahub accounts import --from orca`, declared accounts, and the shared host (`host.shared`, off by default). Quota renewal now clears stale readings and warns before exhaustion, and a peer waiting in a blocked Orca pane raises an Attention item with the `orca terminal switch` command.
65
+
66
+ **Do not add the new settings until every hub that reads the file runs 0.52.0:** a 0.51.0 hub refuses to start with `[structure]` in `.agenthub/sdlc.toml`, or with `accounts`, `instances.<id>.account`, `host.shared`, `upgrade.bridge_window_days`, `upgrade.bridge_window_min` or a `transport: "pull"` kind in `.agenthub/config.local.json`.
67
+
68
+ The memory library resolves agent-mem 0.47.0 (declared range `>=0.47.0 <1.0.0`); store and sync formats do not change. On a home with active per-row sync placement, the new package bytes change the attested writer inventory, so sync reports the `writer` cause until a person renews it with `amem migrate --sync-placement` (see [automatic sync health](memory.md#automatic-sync-health-1173)). Release N-1 for 0.52.x is 0.51.0.
69
+
70
+ `ahub upgrade` does not update the global CLI or the shared Claude plugin: run `bun add -g @staix/agent-hub@0.52.0` and then `ahub setup` yourself, and `ahub doctor` warns while either is older than a running daemon.
71
+
72
+ ## Upgrading to 0.51.0
73
+
74
+ **Restart Claude sessions that were started by 0.49.0, 0.49.1 or 0.50.0.** Those versions put a generated session ID ahead of the channel flag, so `ahub claude` could attach `tools-only`: the session worked, but hub messages waited until it called `hub_inbox` (#1794). 0.51.0 puts the flag first again. A session that is already running keeps its old arguments, and upgrading the hub does not change them. In each project, `ahub status` now lists such a session under Attention. Exit that Claude session and start it again with `ahub claude` in the same project. `ahub claude --continue` continues the latest conversation there.
75
+
76
+ You can now see the hub's state when you start it. `ahub up` waits up to 15 seconds (change this with `--wait <seconds>`, at most 600) for the agents it starts, then prints a `Hub check` block. Every `ahub <agent>` terminal command prints a `Hub check` before the agent starts, and Claude shows it again once its channel is verified. Kimi Code and agy show it only in the output of their `ahub` command, before the agent starts. With stderr redirected, the commands that start an agent print no check; `ahub status` shows the same state.
77
+
78
+ The hub now follows a recorded pull request's CI from draft to merge readiness, and tells the owner, the reviewer and the conductor about results, conflicts and missing runs. Automatic retries of a failed CI shard stay off unless you set `ci_shard_retries` (1 to 3) in `.agenthub/sdlc.toml`. **Do not add that field until every hub that reads the file runs 0.51.0:** a 0.50.0 hub refuses to start with it.
79
+
80
+ `ahub releases list` shows what is kept under the hub home's `releases` directory, and `ahub releases prune` previews what can be removed. It removes nothing without `--apply`. Run `ahub setup` after the upgrade to replace an older Claude profile hook with one that starts Bun only in hub sessions.
81
+
82
+ `ahub upgrade` does not update the global CLI or the shared Claude plugin: run `bun add -g @staix/agent-hub@0.51.0` and then `ahub setup` yourself, and `ahub doctor` warns while either is older than a running daemon.
83
+
57
84
  ## Upgrading to 0.50.0
58
85
 
59
86
  Nothing changes until you use something new. A launcher can now read the dashboard link as data: `ahub ui --no-open --json` (with `--settings` or `--all` too) prints one JSON line with `url`, `origin`, `mode` and `settings`, and `ahub ui --all --stop --json` prints a stop receipt. Plain output is unchanged. The memory library resolves agent-mem 0.43.0, which pins mcp-stdio 0.5.0. The declared range stays `>=0.42.0 <1.0.0`, and store and sync formats do not change. Release N-1 for 0.50.x is 0.49.1.
@@ -580,7 +607,7 @@ More: `ahub help`. How it is built and why: [`docs/specs/2026-09-19-agent-hub-de
580
607
 
581
608
  ## Shared memory
582
609
 
583
- The hub accepts the first-party `@staix/agent-mem` <!-- facts:agent-mem-pin -->>=0.42.0 <1.0.0<!-- /facts:agent-mem-pin --> core as a range below the next major: a plain release inside it with a supported host API needs no hub release, and the lockfile resolves one release. That includes deterministic capture; no claude-mem worker is needed. Existing shared-v1 memory remains the default; upgrading does not migrate it. Managed agents use screened `hub_memory_search`, `hub_memory_show` and `hub_memory_graph` tools, or propose a correction with `hub_memory_correct`; only a person accepts candidates through the supported `amem review` path. Since agent-mem 0.7.0, `amem review` also accepts candidates on a selected generation.
610
+ The hub accepts the first-party `@staix/agent-mem` <!-- facts:agent-mem-pin -->>=0.47.0 <1.0.0<!-- /facts:agent-mem-pin --> core as a range below the next major: a plain release inside it with a supported host API needs no hub release, and the lockfile resolves one release. That includes deterministic capture; no claude-mem worker is needed. Existing shared-v1 memory remains the default; upgrading does not migrate it. Managed agents use screened `hub_memory_search`, `hub_memory_show` and `hub_memory_graph` tools, or propose a correction with `hub_memory_correct`; only a person accepts candidates through the supported `amem review` path. Since agent-mem 0.7.0, `amem review` also accepts candidates on a selected generation.
584
611
 
585
612
  Before any real generation migration, upgrade every hub sharing that memory home to 0.12.30 or later and check its authenticated binding with `ahub memory profile-check` in each custom registry. Ready bindings prove compatibility, not an atomic live cutover: quiesce consumers and close their handles before migrating, then reopen through the supported session-preserving lifecycle. Invalid or changed profiles disable native memory without falling back to legacy writes; the bus and board continue. See [memory operations](operations.md#hub-memory) for the remaining rollout gates.
586
613