@staix/agent-hub 0.52.0 → 0.54.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 (196) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/README.md +4 -3
  3. package/docs/addons/open-code-review.md +3 -6
  4. package/docs/agent-notes/README.md +1 -1
  5. package/docs/agent-notes/adapters.md +5 -4
  6. package/docs/agent-notes/budget.md +2 -2
  7. package/docs/agent-notes/bus.md +1 -0
  8. package/docs/agent-notes/daemon.md +6 -5
  9. package/docs/agent-notes/models.md +1 -1
  10. package/docs/agent-notes/tasks.md +3 -3
  11. package/docs/agent-notes/tests.md +4 -4
  12. package/docs/contracts/companion-cli-v2.json +90 -0
  13. package/docs/contracts/companion-cli-v3.json +348 -0
  14. package/docs/design/adapters.md +1 -1
  15. package/docs/design/agent-hub-architecture.md +8 -5
  16. package/docs/design/bus.md +1 -1
  17. package/docs/design/cli-output-inventory.md +4 -2
  18. package/docs/design/execution-reference.md +1 -1
  19. package/docs/design/guidance-experiments.md +1 -0
  20. package/docs/design/guidance-probes.md +1 -0
  21. package/docs/design/model-routes.md +20 -5
  22. package/docs/design/roadmap.md +6 -4
  23. package/docs/design/task-board.md +21 -2
  24. package/docs/dogfood.md +13 -6
  25. package/docs/events.md +1 -1
  26. package/docs/memory.md +2 -2
  27. package/docs/operations.md +158 -50
  28. package/docs/quickstart.md +14 -2
  29. package/docs/security.md +17 -9
  30. package/docs/specs/2026-09-19-agent-hub-design.md +5 -3
  31. package/docs/specs/2026-09-19-multi-project-design.md +1 -1
  32. package/docs/specs/2026-09-20-upgrade-recovery-design.md +24 -0
  33. package/docs/specs/2026-12-04-arev-adoption-design.md +84 -0
  34. package/docs/specs/mcp-endpoint.md +15 -4
  35. package/docs/specs/relay-contract.md +38 -0
  36. package/docs/verification/2026-12-04-host-shared-receipts.md +43 -0
  37. package/docs/verification/2026-12-05-0.53.0.md +101 -0
  38. package/docs/verification/2026-12-05-agy-1.5.24.md +55 -0
  39. package/docs/verification/2026-12-05-claude-implementer-2.1.337.md +43 -0
  40. package/docs/verification/2026-12-06-0.54.0.md +76 -0
  41. package/docs/verification/2026-12-06-codex-0174-reviewer-isolation.md +43 -0
  42. package/docs/verification/2026-12-06-codex-0174-reviewer-tool-call.md +34 -0
  43. package/docs/verification/2026-12-06-compat-codex-capabilities-0.174.0.md +25 -0
  44. package/docs/verification/2026-12-06-compat-pi-1.8.0.md +23 -0
  45. package/docs/verified.json +38 -29
  46. package/package.json +9 -3
  47. package/plugins/agent-hub/.claude-plugin/plugin.json +1 -1
  48. package/plugins/agent-hub/.mcp.json +1 -1
  49. package/plugins/agent-hub/compat.json +9 -5
  50. package/plugins/agent-hub/kimi-hook.js +892 -874
  51. package/plugins/agent-hub/relay-launcher.js +24 -0
  52. package/plugins/agent-hub/server.js +27271 -25146
  53. package/src/adapters/acp-session-model.ts +1 -1
  54. package/src/adapters/acp.ts +5 -4
  55. package/src/adapters/agy/definition.ts +1 -1
  56. package/src/adapters/agy/hooks.ts +1 -1
  57. package/src/adapters/channel-peer.ts +3 -1
  58. package/src/adapters/claude-channel-evidence.ts +26 -1
  59. package/src/adapters/claude-channel.ts +27 -30
  60. package/src/adapters/claude-connection-policy.ts +62 -0
  61. package/src/adapters/claude-relay.ts +255 -0
  62. package/src/adapters/codex-review-isolation.ts +1 -2
  63. package/src/adapters/compat.ts +28 -18
  64. package/src/adapters/definitions/native-cli-preview-pi.ts +2 -1
  65. package/src/adapters/definitions/native-config-defaults.ts +1 -1
  66. package/src/adapters/definitions/native-context.ts +1 -2
  67. package/src/adapters/definitions/native-factories.ts +4 -1
  68. package/src/adapters/definitions/native-quota.ts +1 -1
  69. package/src/adapters/definitions/native-recovery.ts +3 -1
  70. package/src/adapters/external-modules.ts +2 -2
  71. package/src/adapters/kimi-review.ts +1 -1
  72. package/src/adapters/kimi-tui-facts.ts +1 -1
  73. package/src/adapters/local-worker.ts +3 -3
  74. package/src/adapters/native-capabilities.ts +1 -1
  75. package/src/adapters/pi.ts +26 -7
  76. package/src/adapters/registry-types.ts +2 -0
  77. package/src/adapters/relay-launcher.ts +27 -0
  78. package/src/adapters/reviewer-mcp.ts +1 -1
  79. package/src/cli/agents.ts +20 -8
  80. package/src/cli/agy-mcp.ts +1 -1
  81. package/src/cli/claude-profile-hook.ts +1 -1
  82. package/src/cli/command-table.ts +1 -0
  83. package/src/cli/commands/agents.ts +18 -1
  84. package/src/cli/commands/doctor.ts +18 -4
  85. package/src/cli/commands/launch-line.ts +32 -0
  86. package/src/cli/commands/status.ts +14 -3
  87. package/src/cli/help.ts +7 -4
  88. package/src/cli/identity.ts +1 -1
  89. package/src/cli/init-roles.ts +1 -1
  90. package/src/cli/init-settings.ts +1 -1
  91. package/src/cli/launch-line-plan.ts +82 -0
  92. package/src/cli/launch-line-project.ts +13 -0
  93. package/src/cli/main.ts +10 -9
  94. package/src/cli/pi-steps-warning.ts +14 -0
  95. package/src/cli/recovery-package.ts +60 -6
  96. package/src/cli/reset.ts +1 -1
  97. package/src/cli/shell-quote.ts +1 -3
  98. package/src/cli/upgrade-interactive.ts +7 -2
  99. package/src/cli/upgrade-keep-plan.ts +47 -0
  100. package/src/cli/upgrade-restore-state.ts +1 -1
  101. package/src/cli/upgrade-runtime.ts +119 -18
  102. package/src/cli/upgrade.ts +17 -2
  103. package/src/hub/accounts.ts +8 -4
  104. package/src/hub/action-class.ts +1 -3
  105. package/src/hub/adec-triage.ts +105 -0
  106. package/src/hub/autonomy.ts +1 -1
  107. package/src/hub/board.ts +3 -27
  108. package/src/hub/bus.ts +39 -6
  109. package/src/hub/capabilities.ts +1 -1
  110. package/src/hub/channel-project-base.ts +46 -0
  111. package/src/hub/channel-project.ts +21 -46
  112. package/src/hub/config-apply.ts +1 -1
  113. package/src/hub/config-edit.ts +1 -1
  114. package/src/hub/config-tier.ts +1 -1
  115. package/src/hub/config.ts +2 -2
  116. package/src/hub/confirmation-matrix.ts +1 -1
  117. package/src/hub/control/board-messages.ts +415 -0
  118. package/src/hub/control/dashboard-messages.ts +221 -0
  119. package/src/hub/control/delivery-messages.ts +356 -0
  120. package/src/hub/control/dispatch.ts +114 -0
  121. package/src/hub/control/hub-tool-helpers.ts +243 -0
  122. package/src/hub/control/hub-tools.ts +147 -0
  123. package/src/hub/control/native-messages.ts +665 -0
  124. package/src/hub/control/operations-messages.ts +269 -0
  125. package/src/hub/control/peer-messages.ts +126 -0
  126. package/src/hub/control/recovery-messages.ts +391 -0
  127. package/src/hub/control/recovery-operation.ts +480 -0
  128. package/src/hub/control/scope.ts +460 -0
  129. package/src/hub/control/sdlc-messages.ts +373 -0
  130. package/src/hub/control/task-ops-more.ts +245 -0
  131. package/src/hub/control/task-ops.ts +553 -0
  132. package/src/hub/control/ui-actions.ts +241 -0
  133. package/src/hub/control-write-trace.ts +1 -4
  134. package/src/hub/daemon.ts +485 -4324
  135. package/src/hub/delivery-hints.ts +2 -0
  136. package/src/hub/delivery-journal.ts +17 -6
  137. package/src/hub/events.ts +2 -1
  138. package/src/hub/execution-reference.ts +1 -1
  139. package/src/hub/host.ts +41 -9
  140. package/src/hub/hub-tools.ts +3 -4
  141. package/src/hub/invocations.ts +1 -1
  142. package/src/hub/lifecycle.ts +4 -3
  143. package/src/hub/mcp-endpoint-serve.ts +4 -3
  144. package/src/hub/mcp-endpoint.ts +15 -6
  145. package/src/hub/memory-profile-check.ts +1 -1
  146. package/src/hub/no-writes.ts +1 -1
  147. package/src/hub/peers.ts +2 -0
  148. package/src/hub/pi-exit-policy.ts +27 -0
  149. package/src/hub/progress.ts +1 -1
  150. package/src/hub/project-runtime-state.ts +17 -4
  151. package/src/hub/project-runtime.ts +3 -1
  152. package/src/hub/protocol-window.ts +1 -1
  153. package/src/hub/recovery-continuity.ts +3 -3
  154. package/src/hub/recovery-kept-roster.ts +50 -0
  155. package/src/hub/review-anchor.ts +13 -181
  156. package/src/hub/review-brief.ts +78 -28
  157. package/src/hub/review-findings.ts +15 -193
  158. package/src/hub/review-ledger.ts +162 -0
  159. package/src/hub/review-material.ts +3 -3
  160. package/src/hub/reviewer-pool.ts +4 -2
  161. package/src/hub/roadmap-issue-states.ts +65 -14
  162. package/src/hub/roadmap-sync.ts +39 -14
  163. package/src/hub/routing.ts +9 -0
  164. package/src/hub/runtime-capture-prune.ts +8 -2
  165. package/src/hub/runtime-package-assets.ts +3 -0
  166. package/src/hub/sdlc-release-policy.ts +1 -2
  167. package/src/hub/settings.ts +1 -1
  168. package/src/hub/spec-ack-tool.ts +4 -0
  169. package/src/hub/spec-report-history.ts +36 -0
  170. package/src/hub/specs.ts +1 -4
  171. package/src/hub/supervision.ts +33 -6
  172. package/src/hub/tasks-audit.ts +390 -0
  173. package/src/hub/tasks-backlog.ts +522 -0
  174. package/src/hub/tasks-handoff.ts +208 -0
  175. package/src/hub/tasks-release.ts +257 -0
  176. package/src/hub/tasks-roadmap.ts +17 -3
  177. package/src/hub/tasks-specs.ts +672 -0
  178. package/src/hub/tasks-types.ts +334 -0
  179. package/src/hub/tasks.ts +286 -1961
  180. package/src/hub/upgrade-session-contract.ts +11 -0
  181. package/src/local/probe-sandbox.ts +1 -2
  182. package/src/local/probe-workspace.ts +1 -1
  183. package/src/models/route/config.ts +4 -4
  184. package/src/models/route/decision.ts +18 -10
  185. package/src/models/route/observation-signals.ts +1 -2
  186. package/src/models/route/runtime.ts +8 -5
  187. package/src/npm-artifact.ts +76 -0
  188. package/src/omniroute/client.ts +6 -0
  189. package/src/pi/extension.ts +5 -2
  190. package/src/pi/install.ts +77 -0
  191. package/src/pi/pin.ts +49 -0
  192. package/src/primitives.ts +14 -0
  193. package/src/version.ts +2 -0
  194. package/templates/adec/README.md +10 -6
  195. package/templates/config.json +1 -1
  196. package/templates/specs.block.md +1 -0
@@ -712,7 +712,7 @@ Conductor operations are listed in [the operational command table](#conductor-op
712
712
 
713
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).
714
714
 
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.
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 and 0.174.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`) passed on [Codex 0.174.0](verification/2026-12-06-compat-codex-capabilities-0.174.0.md) and 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. The earlier producer development tests used fake executables. The hosted 0.174.0 receipt ran the real npm artifact on a disposable macOS arm64 runner and passed the live listing and network-control checks. 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 use gate `observe` and never auto-admit, 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
716
 
717
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
718
 
@@ -827,16 +827,36 @@ Pi starts in its TUI by default; `ahub pi --headless`, or the start mode
827
827
  setting (`ahub settings set peers.pi.start_mode headless`), asks for the
828
828
  background peer instead. The project uses its existing OmniRoute connection for DGX;
829
829
  `pi.dgx_coding` and `pi.dgx_fast` select the gateway's configured model IDs.
830
- Every Pi start (headless, TUI, console or auto start) first runs the configured
831
- `pi.cmd` with `--version` (#847). Pi 1.4.0, 1.5.0, 1.5.2, 1.6.0 and 1.6.1 are verified
832
- ([1.4.0 model-free receipt](verification/2026-10-26-pi-140-compat.md), [1.5.0](verification/2026-11-03-pi-150-compat.md), [1.5.2](verification/2026-11-14-pi-152-compat.md), [1.6.0](verification/2026-11-25-pi-160-compat.md), [1.6.1](verification/2026-11-26-compat-pi-1.6.1.md)); another
833
- version, or one that cannot be read, is refused before Pi starts, unless the
830
+ Every Pi start (headless, TUI, console or auto start) first runs the selected
831
+ Pi executable (an explicit `pi.cmd`, else the hub-owned pin, else `pi` on PATH)
832
+ with `--version` (#847). Verified Pi versions are
833
+ [1.4.0](verification/2026-10-26-pi-140-compat.md),
834
+ [1.5.0](verification/2026-11-03-pi-150-compat.md),
835
+ [1.5.2](verification/2026-11-14-pi-152-compat.md),
836
+ [1.6.0](verification/2026-11-25-pi-160-compat.md),
837
+ [1.6.1](verification/2026-11-26-compat-pi-1.6.1.md) and
838
+ [1.8.0](verification/2026-12-06-compat-pi-1.8.0.md).
839
+ A different or unreadable version is refused before Pi starts unless the
834
840
  person trusts that exact version with `ahub agents trust pi <version>`.
835
841
 
836
- `pi.max_steps` defaults to `100` managed tool-step attempts per native turn
837
- (#1447 T3); this repository's tracked setting and the init template also use
842
+ A person can run `ahub agents install pi` to pin the newest verified version in
843
+ the hub home, or `ahub agents install pi <version>` for a specific verified
844
+ version. The command checks the exact registry artifact's integrity before any
845
+ install or pin update. It records an existing matching version without
846
+ reinstalling it. Each version stays under `<hub home>/agents/pi/<version>/`, so
847
+ an already running Pi keeps its executable.
848
+
849
+ When `pi.cmd` is omitted, the hub starts the selected install. An explicit
850
+ `pi.cmd` takes precedence. The command writes no project configuration. The
851
+ doctor and CLI watch report the Pi version on PATH, the hub pin and the newest
852
+ verified version. `ahub agents --json` reports the executable the hub selects.
853
+
854
+ `pi.max_steps` defaults to `100` managed tool-step attempts per logical turn,
855
+ from its first start to its settle, so a native retry does not reset the count
856
+ (#1447 T3, #1967); this repository's tracked setting and the init template also use
838
857
  `100`. Existing projects with explicit `pi.max_steps: 30` keep `30` until the
839
- person edits that setting. Failed managed
858
+ person edits that setting; `ahub doctor` warns, naming the file and key, when a
859
+ project file sets it below the default. Failed managed
840
860
  calls count and the first rejected attempt is reported as `101/100`. The local
841
861
  worker's `local.max_steps` default and repository setting remain `30`. This is a
842
862
  source/config change; it does not restart a running Pi or change its active turn.
@@ -1128,7 +1148,7 @@ before restarting the restored registration.
1128
1148
 
1129
1149
  ### Shared host process (#1779 T3a)
1130
1150
 
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.
1151
+ 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. A per-project upgrade records the new runtime for that project. The project then runs on its own through the upgrade and joins that runtime's host at its next `ahub down` and `ahub up`; the other projects stay put, and a host exits with its last project.
1132
1152
 
1133
1153
  - 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
1154
  - 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.
@@ -1137,7 +1157,9 @@ Off by default: each project runs its own daemon. With `"host": { "shared": true
1137
1157
 
1138
1158
  ### MCP endpoint socket (#1780)
1139
1159
 
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`).
1160
+ Every hub that `ahub up` starts, alone or in a shared host, also serves MCP at `<hub home>/run/<projectId>/mcp.sock`. The `run` and project directories are `0700` and the socket `0600`. The first line must carry a valid hello within 5 s and 8 KiB. The daemon publishes `mcpSocket` and `mcpServing: true` in `status.json` when the socket serves MCP. If it cannot listen, it logs `mcp endpoint unavailable: <cause and fix>` and the hub continues without it.
1161
+
1162
+ The bundled plugin resolves the project's state and uses the served socket after a bounded hello and ping. If the startup probe fails, the existing bridge initializes on stdio and can reconnect in the background. This covers older daemons and stale status files after a crash. An established relay reconnects to the same project, with a 1-second initial delay and a 30-second cap. A forwarded request that loses its reply is never replayed. Inspect hub state before repeating it. Restart the native session after downgrading to a daemon without MCP serving. Terminal attachment refusals keep the bridge's wording.
1141
1163
 
1142
1164
  - 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
1165
  - A socket path over 100 bytes: set `AGENTHUB_HOME` to a shorter path.
@@ -1955,6 +1977,12 @@ to attached peers. `[IMPORTANT]` can bypass batching where the peer supports
1955
1977
  it; `[STATUS]` may batch, and `[FYI]` is recorded without follow-on
1956
1978
  delivery. A delivery or answer is not a task completion receipt.
1957
1979
 
1980
+ ### Hub reviews in the AREV ledger (#1874)
1981
+
1982
+ A `hub_review` verdict bound to a task head is recorded in the AREV ledger under `$AGENTHUB_HOME/review/<project-id>/`, the ledger `arev gate` and `arev show` read for the checkout. The hub writes it through the AREV core (a packet for the head, then the record), so a manual `arev record` for a hub task is no longer needed. The record names the reviewing peer and its model family and the task owner as implementer. An `unmet` item with no structured finding becomes a blocking finding `compliance:unmet-<item>`, and a rejection with neither findings nor unmet items records `compliance:changes-requested`, so `arev gate` fails until each is resolved. A later hub disposition (fixed, false_positive, or a person's accepted) of a finding already recorded for that head is appended as an AREV resolution, never a rewrite. A task marked private, a private turn, a withheld verdict and a subject that touches a path the hub withholds write nothing: such a head has no record and `arev gate` will not pass it. `hub_task_show` says so for a private task; a subject with a withheld path is a skip with one notice, never queued for a retry. An approval at a head the hub rejected before settles that rejection's blocking findings that the approval no longer carries, so `arev gate` agrees with the board.
1983
+
1984
+ A failed ledger write never undoes the verdict on the board. The hub prints one notice naming the cause, and the next verdict of that task writes the pending record first, once. `arev record` writes it by hand after a daemon restart.
1985
+
1958
1986
  ## Telemetry: export and report
1959
1987
 
1960
1988
  The hub writes structured events to `.agenthub/state/events.jsonl` alongside
@@ -2172,7 +2200,7 @@ ahub memory forget 1a2b3c4d # also promote, demote, supersede, rebu
2172
2200
 
2173
2201
  A scheduled memory review is off by default. `memory.review` in `.agenthub/config.local.json` (it needs both `max_tokens_run` and `max_tokens_week`) files one `review`-class card per period over the notes whose code anchors no longer resolve, and `ahub memory review on|off|status` is the person's switch. While a turn works that card, the hub refuses tool calls outside the review's scope and stops the review at either token cap ([scheduled review](memory.md#scheduled-review-and-its-switch-1329-part-1)).
2174
2202
 
2175
- The declared `@staix/agent-mem` range (`>=0.42.0 <1.0.0` in `package.json`, resolved to 0.43.0 by `bun.lock`) resolves `AMEM_HOME`, then `$AGENTHUB_HOME/memory`, then `~/.agenthub/memory`. A plain release inside that range opens memory without a hub release when its host API range intersects the supported `[1, 1]`; an out-of-range, unattested, prerelease or host-API-incompatible package refuses to open it. A new minor can raise the store format floor: an older hub or amem cannot read a store a newer one wrote, so roll back the hub together with the store. An absent `M/profile.json` selects shared v1; an explicit generation selects `M/generations/G` with the package's readonly legacy bridge. All daemon memory consumers and the hub memory/goal CLI use that selected profile. Invalid metadata or a missing selected generation makes native memory unavailable while the bus and board continue; there is no fallback to legacy writes. Inspect the daemon's memory binding/availability before interpreting missing memory as an empty store.
2203
+ The declared `@staix/agent-mem` range (`>=0.50.0 <1.0.0` in `package.json`, resolved to 0.50.0 by `bun.lock`) resolves `AMEM_HOME`, then `$AGENTHUB_HOME/memory`, then `~/.agenthub/memory`. A plain release inside that range opens memory without a hub release when its host API range intersects the supported `[1, 1]`; an out-of-range, unattested, prerelease or host-API-incompatible package refuses to open it. A new minor can raise the store format floor: an older hub or amem cannot read a store a newer one wrote, so roll back the hub together with the store. An absent `M/profile.json` selects shared v1; an explicit generation selects `M/generations/G` with the package's readonly legacy bridge. All daemon memory consumers and the hub memory/goal CLI use that selected profile. Invalid metadata or a missing selected generation makes native memory unavailable while the bus and board continue; there is no fallback to legacy writes. Inspect the daemon's memory binding/availability before interpreting missing memory as an empty store.
2176
2204
 
2177
2205
  The daemon checks its selector at hub operation entry and before candidate/counter writes. It does not hot-switch handles or provide an atomic fence against selection changes during an in-flight core call. Quiesce consumers and close their handles before migration or selection changes; reopen through the supported session-preserving lifecycle afterward. Candidate/counter storage remains `M/candidates.db`, independent of `G`; since agent-mem 0.7.0 `amem review` also lists and accepts candidates on a selected generation. Every running hub using this home needs an authenticated receipt: a matching ready binding, or a generation-capable unbound receipt (`disabled` when native memory is off, `unavailable` when opening failed) proving it holds no memory handle. An unbound daemon and zero running hubs are quiesced for memory; a stale bound handle, unreadable registry or unknown runtime is not ready. Existing JSON memory/goal results remain unchanged; the additive binding receipt belongs to daemon status, profile-check and the decay object. This source integration does not authorize installing a new runtime, migrating real memory, restarting sessions or claiming real-machine sync/capture receipts. Migration/deactivation and their limits belong to [agent-mem](https://github.com/STAIxBWLB/agent-mem); see [the hub profile contract](memory.md#selected-memory-profile).
2178
2206
 
@@ -2930,6 +2958,7 @@ A guarded file edit that the daemon keeps at its accepted value remains visible
2930
2958
  | Routing | `bus.pull_budget_bytes` (1-65536 bytes, default 65536) | `config.local.json` | live; next pull-only read, oldest first; the first oversized item still goes |
2931
2959
  | Routing | `bus.notes_kept` (1-10 notes, default 10) | `config.local.json` | live; next shared-note or failed-preface merge; existing prefaces remain unchanged on reload |
2932
2960
  | Routing | `bus.terminal_history_limit` (1-2048 rows, default 2048) | `config.local.json` | live; next normal terminal settlement; unresolved rows and retry ancestry stay protected |
2961
+ | Routing | `bus.hold_notice_ms` (0-86400000 ms, default 1800000; 0 turns the repeat off) | `config.local.json` | live; the conductor's hold notice repeats once after this long while a row is unresolved (#1946; `conductor.feed = off` silences it) |
2933
2962
  | Routing | `bus.accepted_settle_ms` (1000-86400000 ms, default 600000) | `config.local.json` | live; the next accepted-channel timeout sweep, approximately every five seconds |
2934
2963
  | Routing | `recovery.reconnect_wait_s` (600-3600 seconds, default 600) | `config.local.json` | next use; the next managed-terminal attachment wait of an upgrade recovery reads it once, at its start |
2935
2964
  | Routing | `recovery.unmanaged_reconnect_wait_s` (90-900 seconds, default 90) | `config.local.json` | next use; the next unmanaged Claude reconnect wait reads it once, at its start |
@@ -4184,8 +4213,19 @@ A refused restoration command now produces a private, per-attempt exit observati
4184
4213
 
4185
4214
  Fix the named cause, then run the exact `ahub recovery resume <op>` command in the operation status. While its runner is still working, close the refused launch terminal and check status; resume after the runner blocks or exits. A direct peer start cannot bypass the recovery hold. A fresh resume launches once and retains the recorded conversation; it does not silently choose a new one.
4186
4215
 
4216
+ ### Claude tool calls during a hub replacement (#1807 T4)
4217
+
4218
+ While a controlled upgrade replaces the hub, the Claude bridge and relay hold a new tool call for up to 30 seconds and forward held calls in arrival order once the next connection is ready. A call that waits the whole bound fails with a message naming the upgrade and the next step (`ahub status`). A call already written to the old connection keeps its unconfirmed-outcome answer and is never resent. A push queued for a kept session stays in the delivery journal and is delivered once, with one accepted receipt, after the session reattaches.
4219
+
4187
4220
  ### Side by side project versions (#1039)
4188
4221
 
4222
+ For running projects, `ahub upgrade --dry-run` explains which sessions it
4223
+ will keep, resume, start fresh or block. A matching attached Claude session
4224
+ can stay open when the connection reported its live ID and uses a compatible
4225
+ bridge or relay. The keep path needs no Orca terminal command, and a busy kept
4226
+ session does not delay the source commit. Use `ahub upgrade --recreate` to
4227
+ apply the existing restart plan to every peer.
4228
+
4189
4229
  `ahub --project <path|id> upgrade --to <version>` reviews and changes only that
4190
4230
  project. With no selector, the current project is selected. Its recovery hold is
4191
4231
  per project, so another project can keep working, start, or perform its own
@@ -4201,6 +4241,13 @@ later / ahub upgrade`. A scoped upgrade changes only that project's selection an
4201
4241
  does not refresh the shared manager. The daemon records its claimed instance,
4202
4242
  and readiness confirms the same selection before returning.
4203
4243
 
4244
+ The runtime record includes `sessionContract` only for a selected release
4245
+ that declares the field in its verified manifest. A project retargeted to an
4246
+ earlier release gets the original record layout, so its earlier reader can
4247
+ start it. A CLI from before the field was introduced can report a record
4248
+ for a newer selection as invalid. Use the selected release's CLI or a newer
4249
+ one for that project.
4250
+
4204
4251
  With no runtime record, the first managed startup captures the invoking package
4205
4252
  and its exact first-party memory core under
4206
4253
  `~/.agenthub/releases/<VERSION>/source-<digest>/`. Existing records with invalid
@@ -4362,14 +4409,23 @@ compatibility window uses that date, so an earlier date would end support early.
4362
4409
  | 14 | v0.12.16 | 2026-10-09 | v0.12.16 | 2026-10-09 |
4363
4410
  | 15 | v0.12.17 | 2026-10-09 | v0.12.19 | 2026-10-09 |
4364
4411
  | 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 |
4412
+ | 17 | v0.26.0 | 2026-11-01 | v0.54.0 | 2026-12-06 |
4366
4413
 
4367
- Through 2026-12-03, the default accepted window is 16–17. Protocol 15 or older needs a fresh session.
4414
+ Through 2026-12-06, the default accepted window is 16–17. Protocol 15 or older needs a fresh session.
4368
4415
 
4369
4416
  <!-- BRIDGE_PROTOCOL_RELEASES:END -->
4370
4417
 
4371
4418
  Release N-1 is counted in minor versions, separately from this protocol window
4372
- (#1164, family contract entelecheia/ai-workspace#70). For 0.51.x, N-1 is 0.50.0,
4419
+ (#1164, family contract entelecheia/ai-workspace#70). For 0.54.x, N-1 is 0.53.0,
4420
+ the latest published patch of 0.53.x (declared `@staix/agent-mem` `>=0.47.0 <1.0.0`,
4421
+ 0.47.0 in its fixture lock, control protocol 17 with descriptor floor 16). Every
4422
+ patch on 0.54.x keeps that release baseline. For 0.53.x, N-1 is 0.52.0,
4423
+ the latest published patch of 0.52.x (declared `@staix/agent-mem` `>=0.47.0 <1.0.0`,
4424
+ 0.47.0 in its fixture lock, control protocol 17 with descriptor floor 16). Every
4425
+ patch on 0.53.x keeps that release baseline. For 0.52.x, N-1 is 0.51.0,
4426
+ the latest published patch of 0.51.x (declared `@staix/agent-mem` `>=0.42.0 <1.0.0`,
4427
+ 0.43.0 in its fixture lock, control protocol 17 with descriptor floor 16). Every
4428
+ patch on 0.52.x keeps that release baseline. For 0.51.x, N-1 is 0.50.0,
4373
4429
  the latest published patch of 0.50.x (declared `@staix/agent-mem` `>=0.42.0 <1.0.0`,
4374
4430
  0.43.0 in its fixture lock, control protocol 17 with descriptor floor 16). Every
4375
4431
  patch on 0.51.x keeps that release baseline. For 0.50.x, N-1 is 0.49.1,
@@ -5199,26 +5255,33 @@ class `fixed_model` selections and a person's explicit model override retain
5199
5255
  their existing behavior; an explicit model bypasses this route.
5200
5256
 
5201
5257
  Omitting `decision_mode` means `off`: no decision request or evidence is built.
5202
- This delivery supports `shadow` only. It records the proposed alias/effort,
5203
- margin, latency and decider while keeping the exact existing stage heuristic
5204
- model, effort and conversation. `enforce` is explicitly refused at config load:
5205
- `decision_mode enforce is not available yet; use shadow; tracked in #554`.
5206
- There is no dormant application path or gateway effort plumbing. No route is
5207
- enabled by default or deployed by this feature.
5258
+ `shadow` records the proposed alias/effort, margin, latency and decider while
5259
+ keeping the existing model, effort and conversation. After reviewing
5260
+ `adec shadow gate`, a person can set `decision_mode = "enforce"` on a
5261
+ `type = "decision"` route in `.agenthub/routing.toml`. The machine-local
5262
+ overlay cannot set it. The hub never reads the gate or flips the setting.
5263
+ `ahub doctor` lists routes with enforce enabled and checks their candidate
5264
+ aliases against the gateway inventory.
5265
+
5266
+ Enforce uses an eligible, non-abstaining alias and passes its
5267
+ `reasoning_effort` to the gateway. An abstention, timeout, failure or ineligible
5268
+ pair uses the route's `constraints.current` pair. The current effort is the
5269
+ first configured effort for the heuristic alias, with the efficient alias or
5270
+ first offered pair used when the heuristic alias has no candidate.
5208
5271
 
5209
5272
  The configured alias/effort list has at most 26 pairs. Aliases narrow the adec
5210
5273
  policy; efforts are an additional hub-side response allowlist and are not sent
5211
5274
  as a policy override. Align the lists with the service policy: an unconfigured
5212
- effort is refused as `outside_options`, keeping the heuristic. The request
5275
+ effort is refused as `outside_options`, keeping the current pair in enforce mode. The request
5213
5276
  cannot add a policy candidate. The service assembles its question and
5214
5277
  owns its hard rules, margin threshold, in-memory pins and fallback. A valid
5215
5278
  `fallbackApplied` pair is recorded as the service's proposed fallback even when
5216
- `abstain` is true. Every proposal, failure and `no_candidate` keeps the hub
5217
- heuristic unchanged. An HTTP 400 is a caller/configuration
5218
- error; inspect the policy id and allowed pairs. Transport errors, timeout,
5219
- malformed responses and an out-of-list pair also keep the hub heuristic, with a
5220
- closed reason in the route event. A failed service is not asked again in the
5221
- same user turn. Operational diagnostics contain a closed cause and repair step,
5279
+ `abstain` is true. Shadow keeps the heuristic model and effort for every
5280
+ result. Enforce uses the current pair on an abstention or failure, including
5281
+ `no_candidate`, timeout, a malformed response or an out-of-list pair.
5282
+ An HTTP 400 indicates a caller or configuration error. Inspect the policy
5283
+ ID and allowed pairs. Route events record a closed reason, and a failed
5284
+ service is not asked again in the same user turn. Operational diagnostics contain a closed cause and repair step,
5222
5285
  and are emitted once per state/configuration change; a successful reply resets
5223
5286
  the diagnostic so a later recurrence is visible. Per-call route records remain
5224
5287
  available for outcome correlation. The default total timeout is 8 seconds (configurable from 1 to
@@ -5228,9 +5291,9 @@ HTTP numeric loopback with `/v1/route`, without userinfo, query or fragment.
5228
5291
 
5229
5292
  Each eligible tool round carries the same opaque, route/session/user-turn-bound
5230
5293
  `turnId`. adec therefore reuses its pin while rechecking current hard rules.
5231
- The hub does not send a proposal as `current`: no pair is applied in shadow,
5232
- and the native/default effort is unknown. Explicit model selections bypass the
5233
- service.
5294
+ The current pair comes from the heuristic and configured candidates. Shadow
5295
+ sends no reasoning effort to the gateway. Explicit model selections bypass
5296
+ the service.
5234
5297
  Changing a service, provider, model, version or policy threshold requires a new
5235
5298
  shadow period. The hub does not recalibrate a remote policy. The optional decider `version` is recorded when configured on the service;
5236
5299
  otherwise it stays unknown and is not inferred from the model id. Moving
@@ -5251,17 +5314,42 @@ can enforce on-prem candidates/decider rules. The ordinary gateway campus and
5251
5314
  execution-budget checks still apply. Current board/turn privacy and observer
5252
5315
  facts are checked again across admission, campus and service awaits. A changed
5253
5316
  or unavailable authority refuses the stale turn instead of turning into a
5254
- service-error fallback; inspect current task policy and retry. A returned proposal is checked again before telemetry. The original gateway
5255
- execution path and its privacy/budget checks are unchanged. Source text, tool arguments, credentials
5256
- and server error prose never enter route events.
5257
-
5258
- This delivery is the adec consumer slice of #554. The direct System One backend
5259
- and enforcement application remain separate unimplemented legs; the optional
5260
- stage classifier is the ambiguity-band subsection below; the manual offline
5261
- triage evaluation is the by-hand script
5262
- below. Offline fake-service tests establish protocol and shadow
5263
- behavior; no routing gain, native service/model run or production rollout is
5264
- claimed.
5317
+ service-error fallback. Inspect current task policy and retry. The hub checks
5318
+ authority again before telemetry and after gateway discovery for enforce.
5319
+ Model execution still uses the host's privacy and budget checks. Route events
5320
+ omit source text, tool arguments, credentials and server error prose.
5321
+
5322
+ The optional stage classifier is described below. The manual offline triage
5323
+ evaluation runs separately. Fake-service tests cover routing behavior and
5324
+ gateway requests.
5325
+
5326
+ #### Triage shadow and enforce switch (#1936)
5327
+
5328
+ `routing.toml` takes an optional `[inference]` table, read from that file only
5329
+ (`routing.local.toml` cannot set it):
5330
+
5331
+ ```toml
5332
+ [inference]
5333
+ triage_adec = "off" # "off" (default), "shadow" or "enforce"
5334
+ triage_adec_endpoint = "http://127.0.0.1:8740/v1/systemone"
5335
+ ```
5336
+
5337
+ With `shadow`, a proposal that names no class also asks a loopback adec the
5338
+ `ahub.triage.v1` question after the hub's own model answered. The request carries
5339
+ the seven classes as criteria, the hub's answer as `current`, the closed tag `ko`
5340
+ when the title or detail holds Hangul, and `pii: true` for a PII task. The board
5341
+ class stays the hub model's answer. A PII task asks adec only where the hub model
5342
+ was reachable (on campus); off campus neither is asked. When the task is approved,
5343
+ its class is posted to `/v1/shadow/label` with the decision id and the class only.
5344
+ A down, slow, abstaining or malformed adec changes nothing and never fails or
5345
+ blocks a task. The decision id is kept in memory, so a restart before approval
5346
+ drops that label.
5347
+
5348
+ With `enforce`, a non-abstaining adec class replaces the hub model's; an
5349
+ abstention, timeout or failure keeps the hub model's class. The hub never flips
5350
+ the switch and never reads `adec shadow gate` to do so: that is the person's
5351
+ decision once the gate passes. The per-route switch for model and effort is
5352
+ described in the decision route section above.
5265
5353
 
5266
5354
  #### Optional stage classifier band (#554)
5267
5355
 
@@ -5303,8 +5391,8 @@ effort, margin, latency, reason, screened decider) and changes no tier, model,
5303
5391
  effort or conversation: shadow keeps the exact heuristic routing. Abstain or
5304
5392
  `no_candidate`, a transport failure or timeout, `decision_mode = off` and an
5305
5393
  off-campus decider for a PII or private turn each keep the heuristic tier and
5306
- record a closed reason in that event. `enforce` stays refused at load with the
5307
- same message as a decision route. One question is asked per user turn, reused
5394
+ record a closed reason in that event. Stage classifiers accept off and shadow.
5395
+ The enforce switch applies only to a `type = "decision"` route. One question is asked per user turn, reused
5308
5396
  through the tool loop, and it dies with the turn: a turn that ends while the
5309
5397
  question is outstanding applies no answer and is not failed by it. The question
5310
5398
  carries R1's closed stage evidence (numeric signals, dimensions and scores),
@@ -5694,7 +5782,7 @@ for each shard, or from one unsharded leg's log, then `bun scripts/make-test-tim
5694
5782
  A red CI job gets one rerun of its failed jobs on the same head, then an investigation; the weekly flake ledger issue and the rerun policy are in `docs/agent-notes/tests.md` (#1257).
5695
5783
  The `closing-refs` workflow fails a PR whose title, body or commit messages would make
5696
5784
  GitHub close an issue the text only mentions (`Refs #N`, a negated or qualified keyword);
5697
- an issue linked only in the sidebar passes (#760).
5785
+ an issue linked only in the sidebar passes (#760). It is the shared `@staix/repo-tools` workflow, pinned by commit SHA (#1938).
5698
5786
  The gate holds `<git common dir>/ahub-heavy.lock` across every worktree of a
5699
5787
  repository. A second gate waits up to `AHUB_CHECK_LOCK_WAIT_S` (1800 seconds by
5700
5788
  default; 0 fails immediately) and names the holder. A holder whose PID is gone
@@ -5862,6 +5950,19 @@ terminal exits, a requested stop (`ahub stop pi`), requested shutdown and
5862
5950
  recovery operations suppress this restart. Crash recovery's #66
5863
5951
  recorded-session/fresh-start choices are unchanged.
5864
5952
 
5953
+ A managed headless Pi owner killed by a signal or ending itself with
5954
+ `ctx.shutdown()`, including a `model_select` of a non-local provider, is
5955
+ restarted once under `pi.auto_start` even when a turn or tool was active
5956
+ (#1967). This lifts only the turn/tool-active fence: a native terminal owner is
5957
+ still not restarted, the restart still needs a verified recorded session and
5958
+ the one-restart-in-60-seconds limit still applies. The same cause
5959
+ (`signal:<name>`, `session_shutdown` or `model_select:<provider>`) within 10
5960
+ minutes is not restarted again; the console notice says so and gives `ahub pi`.
5961
+ The exit record also carries that reason label, the last native event, a
5962
+ bounded stderr tail and the provider a `model_select` named. The hub adds no
5963
+ task text, but the stderr tail is Pi's native output, cut to 300 characters and
5964
+ not filtered, so check it before sharing a log.
5965
+
5865
5966
  ### Explicit Pi history replacement
5866
5967
 
5867
5968
  If an offline Pi owner has no verified persisted resume state, inspect the old
@@ -6008,7 +6109,7 @@ A renewal marker in `hub.db` that cannot be read stops the hub at start with
6008
6109
  `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
6110
  `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
6111
 
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.
6112
+ 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>`. Output shows labels only, never home paths. Once a kind has a declared account (#1941), a peer of that kind with no account (an undeclared home, or an instance without `account`) budgets as `<kind>:default`, for example `claude:default`, a separate account from the base session's `claude:<label>`; a kind with no declared account, and a project without `accounts`, keep the bare kind as the key. A pause stored under the bare kind before the change moves to `<kind>:default` at the next start.
6012
6113
 
6013
6114
  Before changing accounts or resetting a window, checkpoint any turn that must
6014
6115
  continue and check the task board for work already handed over. Use reset for
@@ -6245,7 +6346,7 @@ Native policy is unmanaged and has NO hub sandbox; no permission_modes.jcode or
6245
6346
 
6246
6347
  ## Optional Antigravity (agy) peer
6247
6348
 
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.
6349
+ 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.5.21 and 1.5.24: 1.4.2, 1.4.7, 1.4.12, 1.5.3, 1.5.21 and 1.5.24 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), [1.5.24 account-free receipt](verification/2026-12-05-agy-1.5.24.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.
6249
6350
 
6250
6351
  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`.
6251
6352
 
@@ -7095,7 +7196,7 @@ Native launcher connections retry transport timeouts/unclean closes with bounded
7095
7196
 
7096
7197
  ## amem runtime (agent-mem#13 P4)
7097
7198
 
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.
7199
+ The hub accepts @staix/agent-mem <!-- facts:agent-mem-pin -->>=0.50.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.
7099
7200
 
7100
7201
  ## Person-run backlog legs (#1176)
7101
7202
 
@@ -7234,8 +7335,11 @@ board writes do not invalidate it. Changed or unreadable authority evidence
7234
7335
  stops the next effect and leaves the operation for the person.
7235
7336
 
7236
7337
  An upgrade digest includes the exact staged `@staix/agent-mem` and, when declared,
7237
- `@staix/cli-output` packages from their hoisted install; a restart digest includes
7238
- their verified source dependencies. Legacy packages without the output dependency
7338
+ `@staix/cli-output` and `@staix/agent-review` packages from their hoisted install
7339
+ (the AREV core must be an exact pin in the same `node_modules/@staix` directory,
7340
+ with a regular manifest and core entry, depending only on the reviewed agent-mem
7341
+ and cli-output siblings); a restart
7342
+ digest includes their verified source dependencies. Legacy packages without the output dependency
7239
7343
  keep their original digest.
7240
7344
  Protected or restart-bound source config/routing edits that have not been
7241
7345
  accepted remain person-only. The replacement validates the captured inputs
@@ -7247,7 +7351,9 @@ restoration uses the target-owned snapshot through a tools connection.
7247
7351
 
7248
7352
  An unmanaged reconnect-only Claude channel may reattach itself without a native launch. The source keeps a SHA-256 fingerprint of its observed session identity separate from restoration metadata (the raw unmanaged session id is omitted from the plan) and verifies the exact peer, kind and attachment against the live channel. This exception requires no terminal or restoration arguments, no managed launch proof, and an absent or confirmed-ended launcher; unknown launcher evidence refuses. Other peer identities still compare exactly.
7249
7353
 
7250
- Claude channel push mode also requires the plugin's direct parent process row to begin with the exact `claude --dangerously-load-development-channels <plugin-or-server-target>` argv prefix. The inherited `AGENTHUB_CHANNEL=1` marker alone is insufficient: Claude's `daemon run` and `bg-spare` children inherit it but do not load the development channel, and print forms ignore it. The bounded `ps -ww` read is display/attachment evidence, not authentication; unreadable, truncated, changed-parent or unrecognized rows attach tools-only and keep messages for `hub_inbox`. `ahub status` shows the attach mode and the closed evidence label.
7354
+ On Claude plugin startup, the launcher checks the `asuite` executable on the session's PATH with `asuite mcp-shim ahub --contract`. If it advertises [MCP relay contract v1](specs/relay-contract.md) within 500 ms, the plugin runs `asuite mcp-shim ahub` in the same process with the original stdio. If the check does not match, the plugin runs its bundled Bun relay as before. No agent-suite installation is required to use the plugin.
7355
+
7356
+ Claude channel push mode also requires the relay's direct parent process row to begin with the exact `claude --dangerously-load-development-channels <plugin-or-server-target>` argv prefix. The inherited `AGENTHUB_CHANNEL=1` marker alone is insufficient: Claude's `daemon run` and `bg-spare` children inherit it but do not load the development channel, and print forms ignore it. The hub observes the relay and parent for a served socket, while the fallback bridge observes its own parent. The bounded `ps -ww` read is display/attachment evidence, not authentication; unreadable, truncated, changed-parent or unrecognized rows attach tools-only and keep messages for `hub_inbox`. `ahub status` shows the attach mode and the closed evidence label.
7251
7357
 
7252
7358
 
7253
7359
  Only the conductor that created the restart or authorized upgrade may run
@@ -7824,6 +7930,8 @@ A launch from an Orca pane records `ORCA_PANE_KEY`, `ORCA_TAB_ID` and `ORCA_WORK
7824
7930
 
7825
7931
  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
7932
 
7933
+ Orca companions can read optional `accountLabel` and `orcaPaneKey` on peer rows in a person's `ahub status --json`. The pane key comes from the current live launcher record. `ahub launch-line <kind> --json` returns a terminal command and a project environment overlay for `claude` or `codex` on a running hub. The query starts nothing. See [companion CLI v2](contracts/companion-cli-v2.json). Companion CLI v3 (0.54.0, #1963) adds `[--exec <absolute-path|self>] [-- <launch arguments>]`: every argument after `--` is the launch's own options and is kept in order after the kind (a hub-owned flag such as `--project` or `--as`, or an argument with a control character, is refused with a fixed reason, never dropped), `--exec` names the executable the printed command starts with (`self` prints this ahub's runtime and entry file, which run without `ahub` on PATH), and a daemon older than 0.53.0 or one that reports no version is refused with nothing on stdout. See [companion CLI v3](contracts/companion-cli-v3.json).
7934
+
7827
7935
  ## Herdr companion (moved, #1199)
7828
7936
 
7829
7937
  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.
@@ -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.52.0
21
+ bun add -g github:STAIxBWLB/agent-hub#v0.54.0
22
22
  ahub setup
23
23
  ```
24
24
  <!-- /facts:install-tag -->
@@ -59,6 +59,18 @@ A project whose hub is stopped is upgraded without starting it: `ahub upgrade
59
59
  --all-stopped --to <version>` does that for every stopped project at once
60
60
  (`--dry-run` lists each one first).
61
61
 
62
+ ## Upgrading to 0.54.0
63
+
64
+ Nothing changes until you use something new, with two exceptions that apply on upgrade. A managed headless Pi peer that dies from a signal or shuts itself down now restarts once under `pi.auto_start` from its verified recorded session, even mid-turn, and its step ceiling counts a whole logical turn, so a native retry no longer resets it. `ahub doctor` warns when a project file sets `pi.max_steps` below the default. A project without an explicit `pi.cmd` can pin a verified Pi with `ahub agents install pi`, and then uses that hub-owned install. Optional settings are added (`bus.hold_notice_ms`, `decision_mode = "enforce"` on an adec route, `[inference] triage_adec` in `routing.toml`); a 0.53.0 hub refuses the first two, so set them only once every hub on the project runs 0.54.0. The memory library's declared range rises to `>=0.50.0 <1.0.0` (agent-mem 0.50.0 with cli-output 0.1.6); store and sync formats do not change. Release N-1 for 0.54.x is 0.53.0.
65
+
66
+ `ahub upgrade` does not update the global CLI or the shared Claude plugin: run `bun add -g @staix/agent-hub@0.54.0` and then `ahub setup` yourself, and `ahub doctor` warns while either is older than a running daemon.
67
+
68
+ ## Upgrading to 0.53.0
69
+
70
+ Claude sessions see the most change. `ahub upgrade` now keeps compatible attached Claude sessions open while the hub changes versions (`--recreate` restarts them as before), and a hub tool call a Claude session makes during the replacement waits up to 30 seconds and runs on the new hub. Run `ahub setup` after the global update: the new plugin talks to the hub over the project's MCP socket and falls back to the old bridge on a hub that does not serve one. Reviews change too: a `hub_review` verdict bound to a head is now recorded in the AREV ledger, so `arev gate` answers for a hub-reviewed head without a manual `arev record`, and review briefs list files and exclusions exactly as `arev packet` does. An owner who missed a spec acknowledgement at filing adds it with `hub_spec_ack` instead of re-filing. Orca companions can read the new companion contract v2 and `ahub launch-line <kind> --json`. No setting is added, so the same `.agenthub/` files work with 0.52.0 and 0.53.0. Release N-1 for 0.53.x is 0.52.0.
71
+
72
+ `ahub upgrade` does not update the global CLI or the shared Claude plugin: run `bun add -g @staix/agent-hub@0.53.0` and then `ahub setup` yourself, and `ahub doctor` warns while either is older than a running daemon.
73
+
62
74
  ## Upgrading to 0.52.0
63
75
 
64
76
  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.
@@ -607,7 +619,7 @@ More: `ahub help`. How it is built and why: [`docs/specs/2026-09-19-agent-hub-de
607
619
 
608
620
  ## Shared memory
609
621
 
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.
622
+ The hub accepts the first-party `@staix/agent-mem` <!-- facts:agent-mem-pin -->>=0.50.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.
611
623
 
612
624
  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.
613
625
 
package/docs/security.md CHANGED
@@ -63,7 +63,7 @@ instead of changing the backend or copying dependency files.
63
63
 
64
64
  ## Native memory authority and profile selection
65
65
 
66
- The portable core is the first-party `@staix/agent-mem` package, accepted as the range `>=0.42.0 <1.0.0` in `package.json` (a plain release whose host API the hub supports; the lockfile resolves one); it does not replace the hub's caller identity, PII policy or task-write authority. Deny, hardened git, real paths and process identity are single-sourced in its Node-safe platform entry. Current project privacy is applied by the hub before promotion and again before model-facing reads. Standalone person reads are unscreened, and the standalone `--policy-free` acknowledgement grants no hub or peer authority.
66
+ The portable core is the first-party `@staix/agent-mem` package, accepted as the range `>=0.50.0 <1.0.0` in `package.json` (a plain release whose host API the hub supports; the lockfile resolves one); it does not replace the hub's caller identity, PII policy or task-write authority. Deny, hardened git, real paths and process identity are single-sourced in its Node-safe platform entry. Current project privacy is applied by the hub before promotion and again before model-facing reads. Standalone person reads are unscreened, and the standalone `--policy-free` acknowledgement grants no hub or peer authority.
67
67
 
68
68
  `hub_memory_search`, `hub_memory_show` and `hub_memory_graph` take the project from the daemon, require `memory_read`, refuse private turns and validate UTF-8 input before logs or storage work. Complete records and graph metadata are screened before counts and truncation. Search is at most 20 lines/4 KiB (default 8); show accepts at most 8 ids and returns at most 8 KiB; graph is at most 120 nodes/240 edges/6 KiB (default 60 nodes), with no edge lacking an endpoint. Unknown, ambiguous and withheld ids share one neutral refusal. Arguments and results are excluded from hub-managed capture; this does not govern a vendor's independent transcript or memory hooks.
69
69
 
@@ -791,7 +791,7 @@ live after a settings write, undo or reload (turning it off from an edited file
791
791
  be set through an agent, tools or conductor surface. Claude's daemon response
792
792
  withholds the scoped mode on these writes so an older hook grants nothing too.
793
793
 
794
- Agent CLI versions (#691). One policy gates the Codex and Kimi fresh reviewers, the headless Claude implementer, Jcode, agy, Qwen (ACP and the dual-output TUI) and Pi (#843): a receipt-verified version passes, Jcode and agy also start an untested version inside their compatible line with a note, and any other version is refused unless the person trusts that exact version on this machine with `ahub agents trust <id> <version>`. The record is `agent-compat.json` in the hub home (`~/.agenthub`), written atomically with mode 600 and at most 64 entries; an unreadable, linked, oversized or invalid record trusts nothing. Agent shells and `--live-test` may read `ahub agents` but cannot trust or revoke. Trust lifts only the version pin: the fresh reviewers' runtime proofs still run before every child, and an untested version's native contract stays unverified. The native capability listings (#1808) are gated the same way: Kimi, Qwen and Codex list capabilities only on their probed versions (2.3.2, 0.26.1 and 0.166.0) or a version the person trusts, and an untested listing may miss or misclassify entries. Watch-only `observe` entries (the Codex app-server and Kimi ACP handshakes, the Claude channel flag, the Orca CLI) never refuse on a version: no launch, start or restore path reads them, and the daily watch, `ahub agents` and `ahub doctor` report them. Separately, an upgrade plan that must close or restore Orca terminals checks the field names of the Orca CLI's answers and blocks those rows on a mismatch. `ahub agents --latest` (person only) is the one path that reads the network for this table: it reads the newest published release's `compat.json`, advises and writes nothing, and the hub never fetches it.
794
+ Agent CLI versions (#691). One policy gates the Codex and Kimi fresh reviewers, the headless Claude implementer, Jcode, agy, Qwen (ACP and the dual-output TUI) and Pi (#843): a receipt-verified version passes, Jcode and agy also start an untested version inside their compatible line with a note, and any other version is refused unless the person trusts that exact version on this machine with `ahub agents trust <id> <version>`. The record is `agent-compat.json` in the hub home (`~/.agenthub`), written atomically with mode 600 and at most 64 entries; an unreadable, linked, oversized or invalid record trusts nothing. Agent shells and `--live-test` may read `ahub agents` but cannot trust or revoke. Trust lifts only the version pin: the fresh reviewers' runtime proofs still run before every child, and an untested version's native contract stays unverified. The native capability listings (#1808) are gated the same way: Kimi, Qwen and Codex list capabilities only on their probed versions (Kimi 2.3.2, Qwen 0.26.1, and Codex 0.166.0 and 0.174.0) or a version the person trusts, and an untested listing may miss or misclassify entries. Watch-only `observe` entries (the Codex app-server and Kimi ACP handshakes, the Claude channel flag, the Orca CLI) never refuse on a version: no launch, start or restore path reads them, and the daily watch, `ahub agents` and `ahub doctor` report them. Separately, an upgrade plan that must close or restore Orca terminals checks the field names of the Orca CLI's answers and blocks those rows on a mismatch. `ahub agents --latest` (person only) is the one path that reads the network for this table: it reads the newest published release's `compat.json`, advises and writes nothing, and the hub never fetches it.
795
795
 
796
796
  Qwen Code's optional production ACP peer requires the qwen-code native identity, a compat-admitted version (receipt-verified 0.25.0, 0.26.0, 0.26.1, 0.26.4, 0.26.5, 0.26.8, 0.26.9, 0.27.0, 0.27.1 and 0.28.3)
797
797
  and advertised mode ids before setting a policy or starting work. Its own tools
@@ -802,7 +802,7 @@ this production table. Startup diagnostics withhold native host/payload details.
802
802
 
803
803
  Jcode is optional, source/version-fenced and runs native tools without a hub sandbox or hub permission-mode mapping. .jcode joins the scoped-grant exclusion, including lexical/resolved aliases. Only a person writes its unique project MCP entry; foreign/override/symlink entries refuse. Its `AGENTHUB_PROJECT_DIR` is compared by real path, so a hub-written entry stays the hub's own after the project directory moves and its old path is left as a symlink; the rest of the entry's shape still must match exactly, and a refusal names the differing field (#1423). The hub owns a private daemon/socket and ACP group, never the global daemon, and copies no credentials. It accepts a plain jcode release from 0.98.0 up to, not including, 1.1.0 (#529; only 0.98.1, 0.99.0, 0.99.1 and 1.0.3 are verified, and another version in that line starts with a note), or an exact version the person trusts (#691), and runs every owned jcode process (probe, serve, ACP and TUI) with `JCODE_NO_TELEMETRY=1`, because jcode's telemetry can report the provider account's email. Native diagnostics withhold payloads/hosts. Hub tools are bound to an owned launch (task 368): the shared project entry names no peer, each owned Jcode process carries its own peer id and launch id, the daemon admits a hub-tools connection for a Jcode peer only with the id of that peer's current owned launch, and a tools-mode server started without a peer id refuses every tool. Extra Jcode instances (#685, at most 8) are declared only through `instances` in an untracked `.agenthub/config.local.json`, start headless, and each needs its own `jcode_home`, which may not be the base home or another instance's, nor nested in or around one, however it is spelled. Unproved conversation loads refuse; no fresh replacement is called a restore. A finished task's advisory about the project root checkout names the branch only after the hub's whole public-text screen (`Tasks.publicMetadataText`: a PII pattern, a secret shape and a project-private path) passes it and it is a plain ref name; otherwise a generic sentence carries no part of it (#572). Native TUI launch exposes its private socket/session tuple only to the authenticated console, bound to the same live owned socket and session after read-only native persistence proof. Tools/status do not receive it. The TUI has no single-writer guard: person input may interleave with ACP. Native policy remains unmanaged and closing the frontend does not stop ACP. An `important` message reaches a busy Jcode as a soft interrupt written to the hub's own private server socket for the owned session (#572); the hub never cancels a turn to deliver, and a steer that was sent but not acknowledged, or whose turn ended first, is held as `needs_review`, never replayed. Jcode has no switch to choose its MCP servers, so the owned serve and ACP processes load every server named in `<JCODE_HOME>/mcp.json` and the project's `.jcode/mcp.json`, `.mcp.json` and `.claude/mcp.json`, besides the hub's own; `ahub doctor` lists their names only. Point `jcode_home` at a separate home, or remove a server from those files, to keep it out. `ahub init` creates a hub-owned home holding only the hub entry, the `jcode_mcp_allow` servers and the hub skills, and never reads or copies the person's login, sessions or history (#1627). `jcode_mcp_allow` changes only what `ahub doctor` accepts, by name, not what jcode loads (#1621).
804
804
 
805
- Antigravity (`agy`, #485) is optional, cloud and off roster by default. The launcher accepts the Antigravity CLI 1.4.x line and exact 1.5.3 and 1.5.21; only 1.4.2, 1.4.7, 1.4.12, 1.5.3 and 1.5.21 have a native receipt ([1.4.7](verification/2026-10-26-agy-1.4.7.md), [1.4.12](verification/2026-11-03-agy-1.4.12-launcher-nonce.md), [1.5.3](verification/2026-11-08-agy-1.5.3.md), [1.5.21](verification/2026-12-02-agy-1.5.21.md)), so another 1.4.x patch launches with a warning that it is unverified, and every other version, other 1.5.x included, is refused before a hub connection or plugin write (#589) unless the person trusts that exact version (#691). It runs native tools under its own unmanaged permissions, without a hub sandbox or hub permission-mode mapping; headless, resume, unattended and native permission flags are refused. Its roles are capped at implementer and verifier, so it never plans, reviews or receives PII work. Only the person's `ahub agy` launcher writes its three plugin files in `.agents/plugins/agent-hub/` (`plugin.json`, `mcp_config.json`, `hooks.json`): linked or foreign entries refuse before any write (`AGENTHUB_PROJECT_DIR` and `AGENTHUB_STATE_DIR` in its MCP entry and hook commands are compared by real path, #1423), cleanup removes only that launch's matching files, and it never writes project-level `.agents/hooks.json` or the person's `~/.gemini` settings (`ahub setup` writes only the hub's own marker-guarded skill trees under `~/.gemini/config/skills` and in the other hosts' user skill directories, replacing a tree only while its recorded digest matches; modified, foreign and linked trees are left alone, #1622). Conductor starts are refused, and a declared agy extra instance is refused at config load (#625). Hook authority (`native_hook_launch`) comes only from that launcher, belongs to the console socket that began it and ends when that socket closes; hook input over 1 MiB is refused, and observations are bound to the daemon, launch, native session and project.
805
+ Antigravity (`agy`, #485) is optional, cloud and off roster by default. The launcher accepts the Antigravity CLI 1.4.x line and exact 1.5.3, 1.5.21 and 1.5.24; only 1.4.2, 1.4.7, 1.4.12, 1.5.3, 1.5.21 and 1.5.24 have a native receipt ([1.4.7](verification/2026-10-26-agy-1.4.7.md), [1.4.12](verification/2026-11-03-agy-1.4.12-launcher-nonce.md), [1.5.3](verification/2026-11-08-agy-1.5.3.md), [1.5.21](verification/2026-12-02-agy-1.5.21.md), [1.5.24](verification/2026-12-05-agy-1.5.24.md)), so another 1.4.x patch launches with a warning that it is unverified, and every other version, other 1.5.x included, is refused before a hub connection or plugin write (#589) unless the person trusts that exact version (#691). It runs native tools under its own unmanaged permissions, without a hub sandbox or hub permission-mode mapping; headless, resume, unattended and native permission flags are refused. Its roles are capped at implementer and verifier, so it never plans, reviews or receives PII work. Only the person's `ahub agy` launcher writes its three plugin files in `.agents/plugins/agent-hub/` (`plugin.json`, `mcp_config.json`, `hooks.json`): linked or foreign entries refuse before any write (`AGENTHUB_PROJECT_DIR` and `AGENTHUB_STATE_DIR` in its MCP entry and hook commands are compared by real path, #1423), cleanup removes only that launch's matching files, and it never writes project-level `.agents/hooks.json` or the person's `~/.gemini` settings (`ahub setup` writes only the hub's own marker-guarded skill trees under `~/.gemini/config/skills` and in the other hosts' user skill directories, replacing a tree only while its recorded digest matches; modified, foreign and linked trees are left alone, #1622). Conductor starts are refused, and a declared agy extra instance is refused at config load (#625). Hook authority (`native_hook_launch`) comes only from that launcher, belongs to the console socket that began it and ends when that socket closes; hook input over 1 MiB is refused, and observations are bound to the daemon, launch, native session and project.
806
806
 
807
807
  Configured ACP adapters (#451 A3) are declared only by the person, in a Git-confirmed untracked `.agenthub/config.local.json`. The whole declaration (command, argv, identity, roles and mode maps) is machine-local authority: a shared or tracked declaration is ignored with a notice, settings never edit it, and changes need a hub restart. The hub runs only the declared argv, never a module or callback. Argv that selects a leader, attach, connect or remote mode is refused, and a Grok declaration needs `--no-leader`. Each start requires the pinned native identity, an exact `session/load` echo on resume, and positive ownership of the spawned process and its original process group; unknown ownership refuses, and stop signals only that verified group. An agent that hands its work to a process outside that group is outside this boundary. Without a mode map native policy is unmanaged, and there is no hub sandbox either way. Configured kinds are cloud peers (never PII), headless only and off roster by default, and the hub makes no quota, context or controlled-recovery claims for them. A read-only instance needs the native read-only mode acknowledged before a prompt and is limited to read and review hub tools, both in the published MCP list and at the host; its native non-read tool requests are rejected, and no setting or runtime change can raise it. These agents' stderr and error text are withheld from logs, and previews redact the executable, argv and session id.
808
808
 
@@ -983,7 +983,7 @@ Advisor surveys (#1403 T7). `ahub sdlc survey start [--focus ...]` (person or co
983
983
 
984
984
  SDLC metrics and control bands (#481 S7). `ahub sdlc metrics` and `hub_sdlc_metrics` are planner or person only, read-only, and refused during a private or PII turn. A private task is counted as withheld and read for nothing else; the report calls no model and makes no GitHub read. Band breaches are written only by the daemon's evaluator through Tasks, never while it is stopping, recovering or has a storage error. A `diagnose` or `propose` card is a backlog task (`triage` or `plan`) whose text is fixed words, numbers and task ids, never task text; it passes the PII signal check and the candidate-text screen before it is written, and no GitHub issue is created. A `log` breach is one hub notice, remembered in the board's `band_notices` table as a marker (`<metric>:#<task>:log`, checked against a fixed pattern) and a time, nothing else.
985
985
 
986
- Design specs (#1097, #1102, #1107). `hub_specs` is read-only and refused during a private or PII turn. PII tasks and private turns publish no spec paths through task notices. `spec_ack` on `hub_task_done` is refused for private work and while specs review is off. Each id and reason must be public metadata, a withheld reason is refused, and the acknowledgements are recorded at the exact head. `ahub specs stamp` is person-only: refused for an agent identity and under `--live-test`, and refused without a terminal even with `--yes`. After the person answers, it rechecks HEAD, the state of each covered path and every target file's bytes, and any change refuses the whole run.
986
+ Design specs (#1097, #1102, #1107). `hub_specs` is read-only and refused during a private or PII turn. PII tasks and private turns publish no spec paths through task notices. `spec_ack` on `hub_task_done` and `hub_spec_ack` are refused for private work and while specs review is off. Each id and reason must be public metadata, a withheld reason is refused, and the acknowledgements are recorded at the exact head. Only the task owner or configured conductor can add a missing acknowledgement with `hub_spec_ack` on an in-review or approved task. The acknowledgement leaves the review and approval bindings intact. `ahub specs stamp` is person-only: refused for an agent identity and under `--live-test`, and refused without a terminal even with `--yes`. After the person answers, it rechecks HEAD, the state of each covered path and every target file's bytes, and any change refuses the whole run.
987
987
 
988
988
  Declared task needs (#1081). A task's `needs_network` or `needs_worktree` is set only by an explicit true, never inferred from its text. Routing, assignment and accept keep such work from a peer whose capability the hub knows is missing (a hub-sandboxed Pi or local worker without `local.bash_network`, or one that cannot run `git worktree add` inside its sandbox, #270), and the accept refusal comes before any write, so no branch ref is left. An unknown capability is never a refusal, so this is advice for routing, not a sandbox boundary; the sandbox profile itself is unchanged.
989
989
 
@@ -1428,10 +1428,14 @@ expanded); the EFFECTIVE MODEL that `ahub status` shows from a `served` or
1428
1428
 
1429
1429
  ## Optional adec decision route (#554)
1430
1430
 
1431
- A `decision` route with `decision_backend = "adec"` is off unless configured and
1432
- supports `shadow` only (`enforce` is refused at config load); the proposed pair
1433
- never replaces the heuristic model, effort or conversation. The endpoint must be
1434
- numeric HTTP loopback with path `/v1/route`, no userinfo, query or fragment; no
1431
+ A `decision` route with `decision_backend = "adec"` defaults to off. Shadow
1432
+ records the proposal while preserving the model, effort and conversation.
1433
+ Only the person can enable enforce in `.agenthub/routing.toml`. The
1434
+ machine-local overlay cannot set it. With a valid non-abstaining response,
1435
+ enforce sends the selected alias and `reasoning_effort` to the gateway.
1436
+ Abstention, timeout, failure or an ineligible pair uses `constraints.current`.
1437
+ Gateway credentials stay inside OmniRoute, and campus and PII admission
1438
+ apply to the gateway call. The endpoint must be numeric HTTP loopback with path `/v1/route`, no userinfo, query or fragment; no
1435
1439
  redirects, ambient proxies, credentials or browser headers are used, and the hub
1436
1440
  never starts the service or reads its credentials. Evidence is a bounded 8 KiB
1437
1441
  projection (a capped latest-user fragment, recent assistant and tool tails,
@@ -1445,7 +1449,7 @@ refuses the stale turn, and route events keep closed metadata only, never
1445
1449
  evidence, credentials or service error prose.
1446
1450
 
1447
1451
  A `stage` route with `classifier = "decision"` (#1373) uses the same endpoint
1448
- rules and modes and asks only when its own score lies within `ambiguous_band`
1452
+ rules, accepts off and shadow, and asks only when its own score lies within `ambiguous_band`
1449
1453
  (default 0.05, at most 0.5) of its threshold, once per user turn. The question
1450
1454
  carries the route's closed numeric stage evidence (signals, dimensions and
1451
1455
  scores) and the two configured tiers, never the conversation projection; a PII
@@ -1579,6 +1583,10 @@ A result is the record that a run the person started has settled. Reading one an
1579
1583
  - **Privacy.** No prompt or reply text is stored: a completion row keeps envelope ids only. The one-line detail shown beside a result (the head of the starting prompt) is built when the person looks, from the envelope the bus still holds, after `sanitize` (so it cannot forge a hub header) and the hub's secret, PII and private-path screens; it is thrown away after it is shown and is in no `hub.db` row, `hub.log` line, `events.jsonl` event, status field or memory capture (canary tests: `test/results-dashboard-1054.test.ts`, `test/completions-daemon.test.ts`). A private run shows `a private request` without its body being read, a head the screens refuse shows a withheld stub, and a request the bus no longer holds shows nothing. The title is built from the peer and the outcome, never from request text, and the `completion_seen` event carries the id and the surface.
1580
1584
  - **Not defended.** The detail is the person's own request shown back to them on their own surfaces, so a request that holds something the screens do not recognise is shown to the person who typed it. Marking a result read does not mean the person read it: the hub takes the console's word, and acon's seeing rule (agent-console#27) is what makes that word mean the result was in view.
1581
1585
 
1586
+ ## Review records in the AREV ledger (#1874)
1587
+
1588
+ A `hub_review` verdict bound to a task head is written through the AREV core to `$AGENTHUB_HOME/review/<project-id>/`, outside the repository, with the reviewer, its model family, the implementer, the findings and the reviewed paths. A private task, a private turn, a withheld verdict and a change that touches a path the hub withholds write nothing there, so no private path or text reaches the ledger; such a head has no record and `arev gate` does not pass it. The review brief builds its AREV packet in memory and never writes a packet or a copy for it.
1589
+
1582
1590
  ## Anchored review comments (#1056)
1583
1591
 
1584
1592
  Person comment writes (`review_comment_put`, `review_comment_delete`, `review_comment_send`) are console-role control messages, and their actor is always the person: the conductor, a planner and every peer are refused. From acon they require the console's verified `ActionMeta` (`via: "console"`, `identity`, `node`). Page-supplied `author`, `meta`, `personMeta`, `at`, `state` or `sentAt` fields are refused before any request, and delete and send also need acon's confirmation fingerprint. The standalone `ahub ui` page is read-only for comments.