@staix/agent-hub 0.34.1 → 0.36.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 (213) hide show
  1. package/CHANGELOG.md +73 -0
  2. package/README.md +53 -7
  3. package/docs/adding-an-ai-tool.md +2 -2
  4. package/docs/addons/claude-mem.md +4 -4
  5. package/docs/addons/open-code-review.md +1 -1
  6. package/docs/agent-notes/README.md +66 -0
  7. package/docs/agent-notes/adapters.md +14 -7
  8. package/docs/agent-notes/budget.md +1 -1
  9. package/docs/agent-notes/bus.md +2 -1
  10. package/docs/agent-notes/daemon.md +9 -7
  11. package/docs/agent-notes/local-worker.md +1 -1
  12. package/docs/agent-notes/models.md +5 -2
  13. package/docs/agent-notes/tasks.md +9 -2
  14. package/docs/agent-notes/tests.md +6 -0
  15. package/docs/design/adapters.md +182 -2
  16. package/docs/design/agent-hub-architecture.md +64 -2
  17. package/docs/design/agent-hub.md +6 -0
  18. package/docs/design/bus.md +26 -0
  19. package/docs/design/execution-reference.md +306 -0
  20. package/docs/design/guidance-experiments.md +438 -0
  21. package/docs/design/model-routes.md +628 -0
  22. package/docs/design/supervision.md +121 -0
  23. package/docs/design/task-board.md +121 -0
  24. package/docs/dogfood.md +45 -13
  25. package/docs/events.md +38 -20
  26. package/docs/memory.md +21 -7
  27. package/docs/operations.md +824 -40
  28. package/docs/profiles.md +2 -2
  29. package/docs/quickstart.md +117 -4
  30. package/docs/research.md +73 -13
  31. package/docs/roles.md +1 -1
  32. package/docs/sdlc.md +117 -11
  33. package/docs/security.md +153 -15
  34. package/docs/smoke.md +14 -0
  35. package/docs/specs/2026-09-19-agent-hub-design.md +13 -7
  36. package/docs/verification/2026-10-25-qwen-dual-output-t0.md +22 -0
  37. package/docs/verification/2026-11-07-compat-python-startup-1248.md +51 -0
  38. package/docs/verification/2026-11-07-compat-receipt-harness-1248.md +105 -0
  39. package/docs/verification/2026-11-07-compat-receipt-producers-1248.md +96 -0
  40. package/docs/verification/2026-11-07-compat-workflow-1248.md +94 -0
  41. package/docs/verification/2026-11-07-daemon-startup-1232.md +169 -0
  42. package/docs/verification/2026-11-07-jcode-receipt-reconstruction-1248.md +118 -0
  43. package/docs/verification/2026-11-07-kimi-delayed-usage.md +34 -0
  44. package/docs/verification/2026-11-07-kimi-review-watch-1284.md +115 -0
  45. package/docs/verification/2026-11-08-agy-1.5.3.md +96 -0
  46. package/docs/verification/2026-11-08-agy-acp-t0.md +56 -0
  47. package/docs/verification/2026-11-08-hub-visual-1058.md +161 -0
  48. package/docs/verification/2026-11-08-jcode-0991-model-setter-1317.md +143 -0
  49. package/docs/verification/2026-11-08-kimi-252-model-setter-1317.md +137 -0
  50. package/docs/verification/2026-11-08-kimi-tui-completion-1282.md +45 -0
  51. package/docs/verification/2026-11-08-kimi-wire-yield-1283.md +31 -0
  52. package/docs/verification/2026-11-08-live-model-override-1317.md +250 -0
  53. package/docs/verification/2026-11-08-qwen-0269-acp.md +138 -0
  54. package/docs/verification/2026-11-08-qwen-0269-model-setter-1317.md +91 -0
  55. package/docs/verification/2026-11-09-0.35.0.md +129 -0
  56. package/docs/verification/2026-11-09-headless-records-1320.md +157 -0
  57. package/docs/verification/2026-11-09-qwen-0270-acp.md +181 -0
  58. package/docs/verification/2026-11-09-qwen-0270-model-setter-1317.md +46 -0
  59. package/docs/verification/2026-11-10-0.36.0.md +59 -0
  60. package/docs/verification/2026-11-10-claude-implementer-2.1.322.md +59 -0
  61. package/docs/verification/2026-11-10-qwen-0270-dual-output.md +367 -0
  62. package/docs/verification/2026-11-10-qwen-0271-dual-output.md +101 -0
  63. package/docs/verification/claude-permission-transport-native.py +10 -3
  64. package/docs/verification/claude-shell-wrapper-native.py +8 -8
  65. package/docs/verified.json +245 -15
  66. package/package.json +3 -3
  67. package/plugins/agent-hub/.claude-plugin/plugin.json +1 -1
  68. package/plugins/agent-hub/kimi-hook.js +21230 -0
  69. package/plugins/agent-hub/kimi-review-policy-worker.js +217 -0
  70. package/plugins/agent-hub/server.js +4359 -1071
  71. package/scripts/check-docs.mjs +12 -1
  72. package/src/adapters/acp-model-policy.ts +56 -0
  73. package/src/adapters/acp.ts +175 -5
  74. package/src/adapters/agy/entry.ts +8 -5
  75. package/src/adapters/agy/hooks.ts +65 -15
  76. package/src/adapters/channel-peer.ts +33 -1
  77. package/src/adapters/claude-channel.ts +7 -4
  78. package/src/adapters/claude-implementer.ts +16 -3
  79. package/src/adapters/codex-appserver.ts +118 -8
  80. package/src/adapters/codex-review-isolation.ts +3 -1
  81. package/src/adapters/compat.ts +18 -13
  82. package/src/adapters/definitions/builtin-metadata.ts +8 -1
  83. package/src/adapters/definitions/native-cli-entry-kimi.ts +76 -7
  84. package/src/adapters/definitions/native-cli-preview-common.ts +2 -2
  85. package/src/adapters/definitions/native-cli-preview-kimi.ts +9 -2
  86. package/src/adapters/definitions/reviewer-variants.ts +3 -1
  87. package/src/adapters/kimi-review-policy-worker.js +2 -0
  88. package/src/adapters/kimi-review-policy-worker.ts +85 -0
  89. package/src/adapters/kimi-review-policy.ts +68 -0
  90. package/src/adapters/kimi-review.ts +41 -41
  91. package/src/adapters/kimi-tui-facts.ts +153 -0
  92. package/src/adapters/kimi-wire-usage.ts +33 -8
  93. package/src/adapters/local-worker.ts +60 -21
  94. package/src/adapters/model-token.ts +3 -0
  95. package/src/adapters/pi.ts +27 -5
  96. package/src/adapters/qwen-dual.ts +324 -44
  97. package/src/adapters/registry-types.ts +34 -3
  98. package/src/adapters/registry.ts +1 -0
  99. package/src/adapters/reviewer-policy-watch.ts +86 -0
  100. package/src/adapters/reviewer-print.ts +80 -18
  101. package/src/cli/agents.ts +1 -1
  102. package/src/cli/facts-hook.ts +4 -2
  103. package/src/cli/guidance.ts +67 -0
  104. package/src/cli/help.ts +13 -5
  105. package/src/cli/identity.ts +13 -3
  106. package/src/cli/init-prompt.ts +15 -2
  107. package/src/cli/init-required-checks.ts +122 -0
  108. package/src/cli/init-settings.ts +10 -4
  109. package/src/cli/init.ts +39 -3
  110. package/src/cli/kimi-facts-hook.ts +11 -0
  111. package/src/cli/kimi-plugin.ts +157 -0
  112. package/src/cli/lineage.ts +78 -0
  113. package/src/cli/main.ts +159 -19
  114. package/src/cli/model.ts +52 -0
  115. package/src/cli/output.ts +23 -1
  116. package/src/cli/reset.ts +1 -1
  117. package/src/cli/setup-research.ts +10 -0
  118. package/src/cli/status-lines.ts +8 -4
  119. package/src/hub/autonomy-defaults.ts +20 -9
  120. package/src/hub/board.ts +346 -4
  121. package/src/hub/budget.ts +1 -1
  122. package/src/hub/build-entry.ts +11 -0
  123. package/src/hub/bus.ts +52 -2
  124. package/src/hub/ci-watch.ts +4 -4
  125. package/src/hub/code-facts.ts +10 -3
  126. package/src/hub/completions.ts +3 -1
  127. package/src/hub/config-apply.ts +3 -1
  128. package/src/hub/config-trust.ts +1 -0
  129. package/src/hub/control-client.ts +1 -1
  130. package/src/hub/daemon.ts +1387 -121
  131. package/src/hub/deliverable-files.ts +38 -5
  132. package/src/hub/delivery-hints.ts +4 -2
  133. package/src/hub/delivery-journal.ts +50 -2
  134. package/src/hub/delivery-public.ts +51 -0
  135. package/src/hub/dogfood-profile.ts +9 -5
  136. package/src/hub/envelope.ts +1 -1
  137. package/src/hub/events.ts +28 -18
  138. package/src/hub/execution-lineage-owner.ts +272 -0
  139. package/src/hub/execution-lineage.ts +164 -0
  140. package/src/hub/execution-links.ts +85 -0
  141. package/src/hub/execution-reference.ts +36 -0
  142. package/src/hub/guidance-variants.ts +398 -0
  143. package/src/hub/handoff.ts +1 -0
  144. package/src/hub/hub-tools.ts +62 -2
  145. package/src/hub/instances.ts +4 -3
  146. package/src/hub/kimi-events.ts +46 -0
  147. package/src/hub/kimi-usage.ts +132 -29
  148. package/src/hub/lifecycle.ts +31 -15
  149. package/src/hub/limits.ts +13 -4
  150. package/src/hub/manager.ts +58 -3
  151. package/src/hub/memory-policy.ts +4 -3
  152. package/src/hub/memory-sync-attestation.ts +54 -0
  153. package/src/hub/memory-sync-state.ts +20 -5
  154. package/src/hub/model-overrides.ts +115 -0
  155. package/src/hub/native-hook-launch.ts +12 -3
  156. package/src/hub/operational-view.ts +2 -2
  157. package/src/hub/peers.ts +28 -1
  158. package/src/hub/permission-mode.ts +1 -1
  159. package/src/hub/person-figures.ts +88 -0
  160. package/src/hub/planning.ts +1 -1
  161. package/src/hub/progress.ts +24 -7
  162. package/src/hub/report.ts +38 -4
  163. package/src/hub/research-dataset.ts +158 -0
  164. package/src/hub/research-memory.ts +68 -0
  165. package/src/hub/research-quality.ts +118 -0
  166. package/src/hub/research-record.ts +279 -0
  167. package/src/hub/research.ts +126 -27
  168. package/src/hub/restart.ts +27 -0
  169. package/src/hub/roles.ts +26 -0
  170. package/src/hub/routing.ts +4 -1
  171. package/src/hub/sdlc-merge.ts +39 -1
  172. package/src/hub/sdlc-release.ts +1 -1
  173. package/src/hub/sdlc.ts +62 -11
  174. package/src/hub/settings.ts +5 -0
  175. package/src/hub/startup-event-seeds.ts +51 -0
  176. package/src/hub/startup-readiness.ts +65 -0
  177. package/src/hub/startup-timing.ts +38 -0
  178. package/src/hub/supervision-proposals.ts +405 -0
  179. package/src/hub/supervision-rules.ts +388 -0
  180. package/src/hub/supervision.ts +2 -0
  181. package/src/hub/task-approval.ts +2 -2
  182. package/src/hub/task-repository.ts +5 -0
  183. package/src/hub/tasks.ts +632 -59
  184. package/src/hub/ui.ts +9 -5
  185. package/src/hub/visual-assets.ts +50 -0
  186. package/src/hub/visual.ts +257 -0
  187. package/src/memory/brief.ts +169 -14
  188. package/src/memory/capture.ts +4 -3
  189. package/src/memory/recall.ts +46 -5
  190. package/src/memory/record-provenance.ts +82 -0
  191. package/src/memory/records.ts +116 -0
  192. package/src/models/relay.ts +9 -2
  193. package/src/models/route/adec.ts +190 -0
  194. package/src/models/route/config.ts +64 -3
  195. package/src/models/route/decision-evidence.ts +83 -0
  196. package/src/models/route/decision.ts +215 -0
  197. package/src/models/route/relay-selector.ts +8 -7
  198. package/src/models/route/runtime.ts +35 -22
  199. package/src/models/route/stage-diagnostics.ts +22 -0
  200. package/src/models/route/stage-evidence.ts +55 -0
  201. package/src/models/route/stage-fallback.ts +58 -0
  202. package/src/models/route/stage-input.ts +155 -0
  203. package/src/models/route/stage.ts +5 -147
  204. package/src/ui/guidance-panel.ts +156 -0
  205. package/src/ui/guidance-view.ts +43 -0
  206. package/src/ui/index.html +134 -6
  207. package/src/ui/lineage-view.ts +34 -0
  208. package/src/ui/plugin.ts +136 -11
  209. package/templates/AGENTS.block.md +1 -1
  210. package/templates/config.json +1 -1
  211. package/templates/profiles/general.json +1 -1
  212. package/templates/profiles/research.json +1 -1
  213. package/templates/profiles/writing.json +1 -1
@@ -1,6 +1,6 @@
1
1
  # Operations guide
2
2
 
3
- This guide describes ahub 0.34.0 and control protocols 16 through 17. Live verification
3
+ This guide describes ahub 0.36.0 and control protocols 16 through 17. Live verification
4
4
  results and remaining prerequisites are recorded separately in [the smoke ledger](smoke.md).
5
5
 
6
6
  ## Agent-operated live verification
@@ -632,7 +632,7 @@ and so is every help entry the gate has no class for yet;
632
632
  | --- | --- | --- |
633
633
  | `ahub doctor [--json] [--full] [--color=...]` | Allowed | a read-only check of tools, daemon, plugin, gateway, models and memory; the `memory capture: codex` and `memory capture: kimi` rows come from agent-mem's setup state (`amem setup <tool> --json` on PATH, a preview that writes nothing), as set up, `amem setup <tool> --apply` needed, client missing, or unknown when `amem` is missing, refuses or prints no setup plan (#1008) |
634
634
  | `ahub doctor --stale-anchors [--json]` | Allowed | a bounded read-only report of memory symbol anchors at current HEAD |
635
- | `ahub queue list [--peer <id>] [--json] [--full] [--color=...]` | Allowed | public queue metadata only; held bodies and resolution remain conductor operations |
635
+ | `ahub queue list [--peer <id>] [--json] [--full] [--color=...]` | Allowed | public queue metadata only; inspect your own public held bodies through `hub_inbox`; `ahub queue show` and operator resolution remain person/conductor operations |
636
636
  | `ahub roster [--json] [--color=...]` | Allowed | public roster status; add/remove retain conductor admission |
637
637
  | `ahub settings [list] [--json]`, `ahub settings get <key> [--json]` | Allowed | public registry values; secret-locating values, paths, undo records and config-editor details are withheld |
638
638
  | `ahub sdlc status\|explain [<task>] [--json] [--color=...]` | Allowed | public lifecycle status; private tasks stay stubs, without private evidence or receipts |
@@ -1040,8 +1040,8 @@ plugin stale when the module changed after setup, so run `ahub setup` again afte
1040
1040
 
1041
1041
  ## Install and start
1042
1042
 
1043
- Use Bun 1.4.2 or newer. Source checks and CI use the version pinned in
1044
- `.bun-version` (currently 1.4.2). Install the released package and install its Claude
1043
+ Use Bun <!-- facts:bun-floor -->1.4.2<!-- /facts:bun-floor --> or newer. Source checks and CI use the version pinned in
1044
+ `.bun-version` (currently <!-- facts:bun-pinned -->1.4.2<!-- /facts:bun-pinned -->). Install the released package and install its Claude
1045
1045
  channel plugin:
1046
1046
 
1047
1047
  ```bash
@@ -1053,13 +1053,41 @@ ahub up
1053
1053
  ```
1054
1054
 
1055
1055
  `ahub init` writes the project configuration and managed instruction blocks.
1056
- Run it after an upgrade when those blocks need refreshing.
1056
+ Run it after an upgrade when those blocks need refreshing. For a new repository
1057
+ using advise or enforce, follow the [SDLC quickstart sequence](quickstart.md#a-new-project-with-sdlc-advise-or-enforce).
1058
+
1059
+ After a successful init, the short next-steps block says to review and commit
1060
+ `AGENTS.md`, `.agenthub/config.json` and the other shared init changes, keeping
1061
+ `config.local.json` untracked, then start with `ahub up` or `ahub claude` so hub
1062
+ pushes reach the session. In SDLC `advise` or `enforce`, it names the person's
1063
+ spec acceptance (`ahub sdlc accept <task> --issue <n>`), plan-departure consent
1064
+ when needed (`ahub sdlc accept-departure <task> <head> <reason...>`) and guarded
1065
+ merge (`ahub sdlc merge <task>`) after the owner calls `hub_task_done` on an open
1066
+ PR, reviewer approval and green exact-head CI. Preview, declined prompt and
1067
+ refusal paths print no success next steps.
1068
+
1069
+ `ahub up` waits for authenticated readiness. After 12 seconds, a verified live
1070
+ child that is still pending produces a `still starting, pid N` message on stderr;
1071
+ the CLI keeps waiting and confirms the retained runtime when it becomes ready.
1072
+ At 120 seconds it reports unconfirmed readiness and exits unsuccessfully, leaving
1073
+ the daemon running. Run `ahub status` and inspect `hub.log` before another start.
1074
+ An owned child observed to exit before readiness produces an error; a cancelled
1075
+ operation cannot confirm startup.
1076
+
1077
+ Each completed daemon startup writes one `startup timings ms:` line to `hub.log`,
1078
+ with fixed phase names and durations. The three event-seed consumers share one
1079
+ lossless streaming pass; abandoned snapshot bodies are not read for startup.
1080
+ The [startup receipt](verification/2026-11-07-daemon-startup-1232.md) separates
1081
+ seed I/O from bounded usage-rollup I/O and records the isolated measurements.
1057
1082
 
1058
1083
  Settings flags (#1100) set the main project settings without a file edit.
1059
1084
  `--agents <a,b,...|none>` (`start.agents`) and `--autonomy inherit|off` (whether a
1060
- new project inherits the machine autonomy preset) go to the untracked
1061
- `config.local.json`. `--sdlc off|advise|enforce` sets `mode` in `sdlc.toml` (`off`
1062
- writes no file on a new project). `--coordination advisory|turn-free`,
1085
+ new project inherits the machine autonomy preset), plus `--research`/`--no-research`
1086
+ (`research.enabled`), go to the untracked `config.local.json`. `--sdlc off|advise|enforce` sets `mode` in `sdlc.toml` (`off`
1087
+ writes no file on a new project); advise or enforce also proposes `required_checks`,
1088
+ discovered from the repository's CI or literal workflow job names, and
1089
+ `--required-checks <a,b,...>` replaces discovery. Enforce with no known names refuses
1090
+ before any write ([required checks](sdlc.md#required-checks-at-initialization)). `--coordination advisory|turn-free`,
1063
1091
  `--memory`/`--no-memory`, `--snapshots`/`--no-snapshots` and `--pi`/`--no-pi` set
1064
1092
  their keys in `config.json`. On an existing project only a flag you give changes
1065
1093
  anything: `--dry-run` shows each change as `old -> new` (`--dry-run --json` adds a
@@ -1070,8 +1098,9 @@ and permissions have no flags; they stay file edits.
1070
1098
 
1071
1099
  A person at a terminal who runs `ahub init` on a new project with no flag that
1072
1100
  sets anything and no `--yes` is asked each setting in turn (#1065 T2): profile,
1073
- the agents `ahub up` starts, design specs and their review mode, SDLC mode,
1074
- coordination, shared memory, snapshots, the Pi peer, the machine autonomy
1101
+ the agents `ahub up` starts, design specs and their review mode, SDLC mode (with
1102
+ advise or enforce, the discovered required checks to confirm or edit),
1103
+ coordination, shared memory, research records, snapshots, the Pi peer, the machine autonomy
1075
1104
  preset, the release guard, and shadow history (asked in a folder with no Git
1076
1105
  work tree, and kept for an existing shadow repository, never in a Git
1077
1106
  repository). Each question is one line, the label, the choices and the default in
@@ -1090,7 +1119,7 @@ existing project is never asked. The questions are built from the init settings
1090
1119
  table (`INIT_SETTINGS`), so a setting added there is asked without another
1091
1120
  change, and `test/init-prompt.test.ts` fails when the two disagree. The default
1092
1121
  in each bracket is read from where the writer gets it (`templates/config.json`,
1093
- the loader's own defaults), and that test reads every one back through the
1122
+ the loader's own defaults, or the trusted setup research choice), and that test reads every one back through the
1094
1123
  loaders after a flagless `ahub init`, so a changed default cannot leave the
1095
1124
  prompt showing one value while Enter writes another. `--dry-run` and the
1096
1125
  prompt's plan take the machine-autonomy row from the same helper
@@ -1266,6 +1295,10 @@ duplicate a delivery that actually left.
1266
1295
 
1267
1296
  #### Accepted channel delivery settlement (#1172)
1268
1297
 
1298
+ `hub_inbox` can inspect the caller's own held message bodies (#1328 AC6). This is the read-only recovery view used by the [new-project guide](quickstart.md#a-new-project-with-sdlc-advise-or-enforce). The result labels them as read-only inspection of an uncertain earlier attempt, separate from normal queued messages. Reading never confirms completion, retries, resolves, changes an attempt or records task-offer consumption. Check the earlier effects before acting on held text. A caller cannot select another peer; use authorized queue diagnostics for another recipient. The view includes `needs_review`, and `accepted` only for the current explicit-settlement channel, up to 32 rows and the host pull byte budget. Oversized or unavailable components say so while preserving normal queued results.
1299
+
1300
+ Held bodies use the current public queue projection. Private/missing tasks and private envelopes are stubbed, unsafe metadata is withheld, and bodies are sanitized. The owned implementer must still belong to the current task, execution root and generation. Unknown legacy provenance withholds bodies. Held review inspection stays excluded from capture/progress across restart without writing an ACK or input receipt; retained readable observer-excluded held inputs (trusted review packages and host-stamped peer chat/status responses) conservatively keep that exclusion until explicit disposition, even if they were never viewed. An overflowing or unreadable held row/byte window stays unknown and excluded because a previously viewed row can move outside it. This does not change normal queued review delivery.
1301
+
1269
1302
  An explicit Claude push-channel session can settle or discard its own accepted row with the shown revision and a public-safe reason, but an `accepted` receipt still means transport acceptance only. If the session sends neither native completion nor an explicit disposition within `bus.accepted_settle_ms`, the next maintenance sweep moves the row to `needs_review` with a fixed timeout cause; no replay occurs. The default is ten minutes (range 1,000-86,400,000 ms). A live `hub_inbox` result includes that session's own accepted and held row ids and revisions, including when the accepted delivery blocks pulling, so it can inspect the row and use `hub_delivery_resolve`. If held metadata cannot be read, the response carries a fixed unavailable sentinel; the plugin keeps any pulled messages and directs the session to `ahub queue list --peer <peer-id>`, without exposing the metadata error. Important, task and review timeouts publish one status notice to the configured conductor with only delivery id, peer id and revision when `conductor.feed` is on; `feed: off` remains the existing opt-out, and no conductor role is forced. The timeout row is excluded from task-state superseding and remains visible until a person or the explicit channel session records a disposition. Recovery refuses a target without `accepted_delivery_settlement` while such a timeout row is retained; projects without one remain compatible with older targets. The row transition is durable before notice publication; if the hub crashes or notice publication is refused by journal storage after the transition, the held row remains authoritative and visible and the host does not invent a replay path.
1270
1303
 
1271
1304
  Reviewer candidates follow `[classes.review].peers`, then attached peers with a
@@ -1366,6 +1399,35 @@ callbacks. The instrumentation is intended to diagnose the next naturally
1366
1399
  occurring stall; it has not been run against the live daemon by that task.
1367
1400
 
1368
1401
 
1402
+ ## Execution lineage (#1220 T2)
1403
+
1404
+ `ahub lineage show --task <id>` reads a bounded, public metadata neighborhood.
1405
+ `--attempt <ra-id>` selects an existing research attempt. To name a dispatch,
1406
+ deliverable or output explicitly, use `--root '<ExecutionReferenceV1 JSON>'`
1407
+ with `--task-scope <id> --task-created <epoch-ms>`; the hub verifies exact
1408
+ membership in that task. A missing owner scope is unavailable, not a board scan.
1409
+ Use `--json` for the wire document; `--cursor` continues the same source snapshot.
1410
+ A changed source or restart invalidates the cursor, so refresh the root.
1411
+
1412
+ `ahub lineage link --task <id> --task-created <epoch-ms> --revision <flow-revision>
1413
+ --ref '<ExecutionReferenceV1 JSON>' [--from '<local source reference JSON>']` admits inert, deduplicated declared metadata
1414
+ through Tasks. Read `ahub task show <id> --json` first to obtain the task's current
1415
+ creation identity and history revision. A stale revision or changed actor,
1416
+ project or privacy scope refuses without writing. A reference never fetches the
1417
+ producer or attests to a runner outcome. Foreign project keys remain opaque in
1418
+ their producer namespace. The equivalent agent tools are `hub_lineage_show` and
1419
+ `hub_lineage_link` on ordinary MCP sessions. Configured read-only MCP publication
1420
+ and isolated reviewers retain their existing fixed tool lists.
1421
+
1422
+ Reads expose no titles, prompts, paths, session ids or review bodies. Unsupported,
1423
+ missing and denied reads have the same unavailable shape for ordinary callers;
1424
+ only an authorized diagnostic operator sees a reason. Pages are at most 100 nodes,
1425
+ 200 edges and 256 KiB, with explicit truncation. Historical reviews retain their
1426
+ old head/hash binding; a changed output or head does not inherit that currency.
1427
+ The acon console reads the same page through a provider port, with no new panel,
1428
+ action or protocol message, and a fixture receipt measures large boards (T3); native
1429
+ causal coverage remains unverified. See [the address contract](design/execution-reference.md).
1430
+
1369
1431
  ## A two-agent task and review
1370
1432
 
1371
1433
  Choose an owner explicitly, then inspect the reviewer selected by the project
@@ -1655,6 +1717,7 @@ token counts, never message bodies or task titles.
1655
1717
  ahub report --since 7d # turns, busy time and tokens per peer, messages, overlaps, task events
1656
1718
  ahub report --since 7d --json # the same numbers as JSON
1657
1719
  ahub report --by task # tokens, turns and wall time per task and class, with the unattributed share
1720
+ # and, from #1278, what the person was asked per task (permissions, questions, completions, CLI refusals, minutes from recorded latencies only), with the unattributed remainder apart
1658
1721
  ahub export --since 24h # the raw events as JSON lines, for your own analysis
1659
1722
  ahub report --dogfood [--since 7d|<iso>] [--json] # read-only scorecard: flow, quality, cost, delivery, performance, adoption
1660
1723
  ```
@@ -1715,14 +1778,35 @@ redistributed (rules: [events](events.md#per-task-usage-reports)).
1715
1778
 
1716
1779
  ## Research records
1717
1780
 
1718
- With `"research": { "enabled": true }` in `.agenthub/config.json` (off by default), the hub keeps one record per
1719
- approved task in `~/.agenthub/research/`, shared by every project that opts in: outcome, review rounds, rework, failed
1720
- checks, tokens and time per peer and model, never task or message text ([schema](research.md)).
1781
+ The [new-project SDLC guide](quickstart.md#a-new-project-with-sdlc-advise-or-enforce) includes this init choice; the machine-default producer and compatibility caveat are defined here.
1782
+
1783
+ `ahub init --research` or `--no-research` chooses research recording in the
1784
+ project's untracked `.agenthub/config.local.json`. A new project defaults to
1785
+ the trusted machine choice from an explicit `ahub setup --research` or
1786
+ `ahub setup --no-research`, otherwise off. The choice is an optional boolean
1787
+ `research.enabled` in the existing owner-only `~/.agenthub/defaults.json`;
1788
+ setup preserves autonomy and the start-agent choice through the same guarded
1789
+ compare-and-swap. Ordinary `ahub setup` leaves research unchanged. Init only
1790
+ reads this default, never writes it, and refreshing an existing project changes
1791
+ research only with an explicit flag. Missing, unreadable or untrusted machine
1792
+ defaults remain off. The guided prompt shows the same choice its plan will write.
1793
+
1794
+ The file is shared by every hub and CLI on the machine, so upgrade them all to
1795
+ 0.36 or later before saving this choice: a hub or CLI from before 0.36 refuses
1796
+ the unknown `research` key and treats the whole file as untrusted, so its machine
1797
+ autonomy preset falls back to off and its start-agent default to the shipped one
1798
+ until it upgrades.
1799
+
1800
+ With `"research": { "enabled": true }` in project configuration, the hub keeps one record per
1801
+ task that reaches a terminal state (approved or cancelled) in `~/.agenthub/research/`, shared by every project that opts in:
1802
+ outcome, review rounds and findings, delivery and merge figures, rework, failed checks, tokens and time per peer and model,
1803
+ never task or message text ([schema](research.md)). Unknown values are null and counted, never zero.
1721
1804
 
1722
1805
  ```bash
1723
1806
  ahub research --since 30d # success, first-pass, rework and check-failure rates; tokens and wall time per task
1724
1807
  ahub research --all --json # every opted-in project on this machine
1725
1808
  ahub research export --format csv # the records, for your own analysis
1809
+ ahub research export --dataset ~/research-out [--all] # per-project tasks.jsonl, manifest.json, quality.json: family names only, to a directory in your home outside every project
1726
1810
  ahub research backfill # build this project's records once from events.jsonl
1727
1811
  ahub task label 12 reverted # a later verdict (ok, regressed, reverted, incomplete, wrong, abandoned)
1728
1812
  ```
@@ -1824,7 +1908,7 @@ ahub memory forget 1a2b3c4d # a person's; also promote, demote, sup
1824
1908
 
1825
1909
  `"memory": { "native": false }` in `.agenthub/config.json` turns it off for a project.
1826
1910
 
1827
- The exact-pinned `@staix/agent-mem` 0.22.1 resolves `AMEM_HOME`, then `$AGENTHUB_HOME/memory`, then `~/.agenthub/memory`. 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.
1911
+ The exact-pinned `@staix/agent-mem` 0.23.1 resolves `AMEM_HOME`, then `$AGENTHUB_HOME/memory`, then `~/.agenthub/memory`. 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.
1828
1912
 
1829
1913
  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).
1830
1914
 
@@ -2442,6 +2526,73 @@ roster setting do not change running participation: they take effect at the next
2442
2526
  hub start. The tracked config can provide defaults and config.local.json can
2443
2527
  override them.
2444
2528
 
2529
+ ## Live peer model overrides (#1317)
2530
+
2531
+ From a plain person terminal, select the next model of a supported peer without
2532
+ restarting the peer or reloading project configuration:
2533
+
2534
+ ```bash
2535
+ ahub model set claude-impl claude-sonnet-5-5
2536
+ ahub model set codex gpt-5.1-codex
2537
+ ahub model clear claude-impl
2538
+ ahub model list
2539
+ ahub model list --json
2540
+ ```
2541
+
2542
+ Use a model id available through the peer's existing provider.
2543
+ Model ids are one bounded token: letters, digits and `._:/@+-`, at most 128 bytes,
2544
+ no spaces and no leading dash. Agent shells and every hub-tool caller are
2545
+ refused, including list; a conductor role does not grant person authority.
2546
+ The dashboard Peers action uses a person settings session and preview/confirm,
2547
+ not an agent command or an ordinary dashboard permission escalation.
2548
+
2549
+ An override is desired runtime state in `hub.db`. It survives daemon restart;
2550
+ `ahub reset` clears it with runtime state. Precedence is override, instance
2551
+ model, launch model, then native default where that surface supports them.
2552
+ Clear restores the existing lower-priority selection. For Codex app-server,
2553
+ an explicit client model always wins over hub injection. A `turn/start` model
2554
+ becomes the native thread default, so clear may retain that current default;
2555
+ it does not recover an earlier model. Raw/pull-only native TUI attachments remain
2556
+ unsupported. A retained former override is labelled `native thread default (was override)`;
2557
+ a rejected start leaves the next start free to sample a corrected selection.
2558
+ The model and its source appear in `ahub status` and JSON output. An unknown native default remains
2559
+ unknown. `pending next turn` means the desired value has not been acknowledged
2560
+ at an eligible boundary; it does not claim the current turn changed models.
2561
+
2562
+ Changing a desired value during a turn leaves that turn unchanged. Steering and
2563
+ local tool rounds keep the captured selection. If the person changes it twice
2564
+ before the next turn, only the last desired value is selected there. A stale
2565
+ callback cannot mark a newer desired value or another adapter owner applied.
2566
+
2567
+ T1 supports headless Claude implementer turns, supported Codex app-server turns,
2568
+ fresh codex-review spawns, the local worker and Pi. Native account/provider
2569
+ availability is still the backend's responsibility. Headless Kimi Code CLI 2.5.2
2570
+ also supports next-turn selection through its receipt-backed ACP model setter.
2571
+ It requires the existing native identity admission, an exact-version receipt,
2572
+ an owned current session and advertised model choices. Clear restores the
2573
+ validated session baseline. Kimi reviewer isolation and version qualification
2574
+ are separate and unchanged.
2575
+
2576
+ Jcode, Qwen, other Kimi versions and native TUI forms remain `unsupported live`.
2577
+ The [Jcode headless fixture](verification/2026-11-08-jcode-0991-model-setter-1317.md)
2578
+ passes, but does not fence a shared TUI turn across native failover. The
2579
+ [Qwen 0.26.9 setter fixture](verification/2026-11-08-qwen-0269-model-setter-1317.md)
2580
+ fails restoration of the original model. Neither enables a production setter.
2581
+ A refused set writes no new override and never restarts a process. Follow the
2582
+ reported cause and `ahub restart <peer>` guidance for unsupported forms.
2583
+
2584
+ This does not make `instances.*.model` or `*_cmd` live or editable by agents.
2585
+ Their existing machine-local tier 3 confirmation and restart behavior remains.
2586
+ The plural `ahub models` still manages the existing local model service; it is
2587
+ separate from the singular per-peer `ahub model` command. `model_change` records
2588
+ ids and the next-turn boundary, never prompts or credentials.
2589
+
2590
+ Model display is bounded to 512 local identities. If legacy sessions exceed the
2591
+ view budget, list refuses explicitly and status/dashboard mark model data
2592
+ unavailable; they never call a truncated list complete. Close unused native
2593
+ sessions, clear obsolete overrides and follow the restart guidance. Single-peer
2594
+ set/clear remains usable and no process is restarted automatically.
2595
+
2445
2596
  ## Settings from the dashboard and the terminal
2446
2597
 
2447
2598
  In `ahub console`, press `6` for Settings. Existing operational-tab arrow cycling
@@ -2990,6 +3141,14 @@ Read quota and approve tools
2990
3141
  in Kimi's own TUI; a person can pause the hub queue by hand. End the native terminal
2991
3142
  session there, not with `ahub stop kimi`.
2992
3143
 
3144
+ On Kimi 2.5.2 (compat entry `kimi-tui`), the launcher also installs a launch-scoped
3145
+ plugin under `plugins/managed/agent-hub` in the Kimi home (`KIMI_CODE_HOME`, default
3146
+ `~/.kimi-code`) and removes it when the TUI exits (#1282). Its hooks let a turn you
3147
+ started there settle into a result (`ahub results`), always private, once the native
3148
+ transcript shows the turn ended and no native background task is running or unknown. This adds no push,
3149
+ steer, watchdog or quota handoff. Another Kimi version, or a plugin setup that
3150
+ fails, prints the cause and launches the plain TUI without completion receipts.
3151
+
2993
3152
  Automatic routing never picks a pull-only owner or reviewer, even as the only
2994
3153
  candidate. A proposer can name the owner or claim its own task; a person or the
2995
3154
  conductor can name an owner or reviewer with
@@ -3099,6 +3258,8 @@ Unread quota resume notices are coalesced without losing their public task moves
3099
3258
 
3100
3259
  A refused prompt with no acceptance or activity is requeued without a review hold. At the estimated reset it is tried again; another quota refusal pauses it again without consuming the poison-envelope retry count. Work that already started remains held for review even while its open tasks move to other peers. After the quota reset its queue stays held: inspect `ahub queue show <delivery-id>` and the associated task, then choose `ahub queue resolve <delivery-id> --action completed|retry|discard --reason "<text>"`. Do not retry work that another owner already took over without inspecting it. If the hub cannot confirm the pause, the refusal is also held instead of spending retries. Other errors keep their ordinary review behavior. Only the observed Kimi 5-hour text is recognised; weekly/monthly limits and other ACP vendors, including Qwen, remain unverified. The recognised text and its provenance live in `src/adapters/acp-quota.ts`.
3101
3260
 
3261
+ The gate is `budget.gate`, 0.99 by default (#1292; 0.9 before). A peer whose fresh quota window reaches the gate is asked to checkpoint, then paused and its work handed over. It resumes when every fresh window is under the gate minus 0.1, or at the reset. A release cut is also held while any window has no more headroom than 1 minus the gate. At 0.99 a soft pause leaves about 1% of the window for the checkpoint turn; a provider's hard refusal still pauses at once. `budget.gate` is a registered setting (a number from 0 to 1): set it with `ahub settings set budget.gate <value>` in a terminal or in an `ahub ui --settings` session. An ordinary dashboard session and the conductor cannot set it. The value goes to `config.local.json`; the running hub uses it from the next quota reading, with no restart. A project created before #1292 has `"gate": 0.9` in its tracked `.agenthub/config.json` (the init template wrote it), and that value overrides the default: remove the key there to follow the default, or set the machine-local value.
3262
+
3102
3263
  Quota also shapes routing and handoffs:
3103
3264
 
3104
3265
  - Among peers a task could go to, those with quota readings are ordered by
@@ -3532,6 +3693,14 @@ Agent CLIs update themselves often, and a hub release cannot follow every one. O
3532
3693
  - **Maintenance loop (#843):** the daily upstream watch is the trigger; `ahub doctor` is the local drift notice for versions installed on a machine, and the hub itself tells the planner (below). The planner files one receipt task per (id, version): the implementer repeats the procedure in the entry's last `docs/verification/` receipt, writes a new one, and adds the version to `verified` in that same PR; the next release ships the bump. A person's `ahub agents trust` stays the stopgap that keeps a machine running meanwhile, and the person may revoke it once the bump lands.
3533
3694
  - **Local drift notice (#843 AC3):** at hub start and once a day the daemon reads each gated CLI's installed version with the probe `ahub agents` uses (no network, no install). For every installed CLI on a version that is not `verified` (in-line, trusted or refused) the effective planner gets one notice per (id, version): the id, the version, the state and the last receipt path, nothing the CLI printed. A CLI that is not installed, or whose version cannot be read, is not drift. The marker is kept per (id, version, planner) in `hub.db` (`agent_drift_notices`), so a restart repeats nothing, a planner whose notice could not be queued (or who joins later) is retried alone without telling the others again, and a new version is a new notice; with no rostered planner nothing is recorded. `ahub status` shows one `agent CLI drift` attention line per drifted id until the installed version is verified.
3534
3695
 
3696
+ ### Qwen 0.27.0 receipt attempt (#849)
3697
+
3698
+ The [0.27.0 ACP receipt](verification/2026-11-09-qwen-0270-acp.md) records passing account-free
3699
+ ACP/permission/lifecycle checks after explicit runtime-state fence rulings, separately preserving earlier
3700
+ controller preflight failures. Its [model-setter check](verification/2026-11-09-qwen-0270-model-setter-1317.md)
3701
+ observed A/B/B after acknowledged B/A setters, so baseline clear failed. Basic ACP 0.27.0 is exact-receipt admitted independently of that failed optional live-setter contract.
3702
+ The production Qwen setter remains unavailable; `qwen-dual` is verified separately (0.26.1, 0.27.0 and 0.27.1).
3703
+
3535
3704
  ### Receipt automation audit (#1248 T0)
3536
3705
 
3537
3706
  The data-only [manifest](../scripts/compat-receipts/manifest.json) and [per-leg audit](verification/2026-11-07-compat-receipt-audit-1248.md) classify all current COMPAT receipts. Every leg carries a source section and exact excerpt. `autoAdmit` is policy eligibility after every required check and artifact binding passes, not a runnable harness or a version admission. Native Mac arm64 requirements remain; Linux fixture/source-check feasibility does not replace native platform evidence. Changed security-source regions require human review rather than an automatic diff-only pass.
@@ -3547,9 +3716,121 @@ The data-only [manifest](../scripts/compat-receipts/manifest.json) and [per-leg
3547
3716
  | `qwen` | Mac ACP/permission and install replay; recorded Linux run is additional; Mac arm64 repetition required | npm exact | `true` |
3548
3717
  | `qwen-dual` | Version/file-source checks are partial only; Real gateway model and PTY; OS not recorded | npm exact; historical artifact gap | `false` |
3549
3718
 
3550
- Optional model/TUI behavior explicitly left unverified by a model-free receipt is not a new admission leg. `codex-review` requires its separately authorized model-backed tool-call proof. `agy` has no public install source. `qwen-dual` requires real-model and TUI work and its current receipt does not name the OS. The manifest records acquisition metadata separately from historical native-binary evidence; no CLI installation or COMPAT change is made by this audit.
3719
+ Optional model/TUI behavior explicitly left unverified by a model-free receipt is not a new admission leg. `codex-review` requires its separately authorized model-backed tool-call proof. `agy` has no public install source. The `qwen-dual` manifest records the original real-model TUI recipe without an OS; the newer [manual macOS arm64 receipt](verification/2026-11-10-qwen-0270-dual-output.md) does not change that manifest's `autoAdmit: false`. The manifest records acquisition metadata separately from historical native-binary evidence; no CLI installation or COMPAT change is made by this audit.
3720
+
3721
+ For CI-opened PRs, the person selected `GITHUB_TOKEN` with explicit `check.yml` dispatch on `compat/<id>-<version>` (2026-11-07). The publisher needs `actions: write` for dispatch in addition to its branch, PR and issue permissions. No GitHub App credentials are used. Dispatch supplies exact-head check evidence; it does not trigger the separate PR-only closing-refs/routing-receipt workflows. The T0 audit retains the alternative App-token trade-offs as history. Current [GitHub documentation](https://docs.github.com/en/actions/how-tos/write-workflows/choose-when-workflows-run/trigger-a-workflow) also describes approval-required PR runs for GITHUB_TOKEN automation; that is not unattended CI. See the audit for permissions, queue and gate trade-offs.
3722
+
3723
+ ### Automated receipt workflow (#1248 T2)
3724
+
3725
+ After merge, `agent-compat.yml` runs daily and can be dispatched with `dry: true`
3726
+ (the manual default). The watcher emits validated ahead/version and verified-ID
3727
+ JSON directly; matrix construction never parses report prose. At most eight IDs
3728
+ are considered, with two hosted jobs at once. An unspecified manifest OS stays
3729
+ not-run rather than receiving an invented native-platform proof.
3730
+
3731
+ The candidate matrix has only `contents: read`, no supplied secrets, checkout
3732
+ credentials disabled and a 20-minute job bound. It runs the disposable harness and
3733
+ uploads JSON/Markdown even for failed or not-run legs. A separate trusted read-only
3734
+ job validates the summaries and builds the embedded COMPAT bundle from repository
3735
+ source. It never imports candidate JS or Markdown. The publisher downloads that
3736
+ job's immutable artifact ID and validates descriptors, byte hashes, identities,
3737
+ complete leg sets and trusted manifest policy again.
3738
+
3739
+ The candidate CLI and receipt writer share a job and OS user. A malicious release
3740
+ could overwrite its own `summary.json` before upload with a well-formed eligible
3741
+ forgery; preparation cannot detect that forgery from the data alone. An eligible
3742
+ receipt is a compatibility signal, not a security attestation of the release.
3743
+ The person's PR and release review is the real admission gate; the automation
3744
+ never merges its verification PR.
3745
+
3746
+ Only the publisher has contents/PR/issues write and Actions dispatch permission.
3747
+ It executes first-party Node code and `gh` REST calls, with no package install,
3748
+ build or candidate execution. All required legs must pass and trusted `autoAdmit`
3749
+ must allow the ID; artifact `eligible` alone is not evidence. It changes only the
3750
+ exact COMPAT row, its receipt and prepared plugin assets on `compat/<id>-<version>`.
3751
+ Existing bot branches are checked for manual drift; unknown collisions refuse,
3752
+ updates append without force, and verification PRs are never auto-merged. A newer
3753
+ same-ID PR supersedes an older one only after the replacement and its check
3754
+ dispatch succeed.
3755
+
3756
+ Other results update closed-cause receipt blocks in the exact-title drift issue.
3757
+ Confirmed verified IDs remove their stale blocks, while still-drifting or unknown
3758
+ IDs retain their evidence. Report text never supplies those identities. Dry mode
3759
+ still performs isolated proof and read-only build/artifact work, then prints the
3760
+ planned GitHub changes without creating/updating branches, PRs, labels or issues.
3761
+ It is not native compatibility qualification on the person's Mac.
3762
+
3763
+ See the [T2 verification report](verification/2026-11-07-compat-workflow-1248.md)
3764
+ for the data/credential boundary, fixtures and final committed-head evidence.
3765
+
3766
+ ### Isolated receipt harness (#1248 T1)
3767
+
3768
+ Run `bun scripts/compat-receipt.ts <id> <exact-version> --out <new-owned-directory> --disposable-runner`
3769
+ from the checkout on a GitHub-hosted runner or disposable Linux container. The
3770
+ explicit flag is required; a local personal Mac is refused even with a temporary
3771
+ HOME. The runner VM/container must be destroyed after the job. The command writes `summary.json` and `receipt.md` without
3772
+ changing COMPAT, trust on this machine, or any workflow. Its exit codes are 0 for
3773
+ a completed pass, 1 for failure, 3 for required work left not-run, and 2 for invalid
3774
+ input/output. `eligible` also requires the manifest's admission policy; a pass
3775
+ alone never overrides the Codex/agy policy or a required model/TUI leg.
3776
+
3777
+ The installer binds exact npm metadata and SRI before installing the verified
3778
+ local tarball into its private prefix, with empty user/global npm configs and a
3779
+ private cache. Release assets must match their tagged SHA-256 digest and checksum
3780
+ before bounded extraction; absolute/traversal/link/nonregular archive entries and
3781
+ size/count excesses refuse. No global installer or caller credential environment
3782
+ is used. Normal npm lifecycle behavior is not silently disabled; this does not
3783
+ certify an unreviewed lifecycle proof. Isolation uses fresh HOME/XDG/tool homes and
3784
+ an allowlisted environment, not a claim of kernel confinement for every installer.
3785
+
3786
+ Proof APIs load in a separate worker after that environment is established. The
3787
+ Codex backend's real production preparation is reused, including empty and
3788
+ ambient fixtures; its returned model `exec` command is never started. Kimi private
3789
+ configuration, exact host inventory and broker refusals are separate from native
3790
+ tool dispatch. Committed Claude transport/wrapper producers are imported through
3791
+ `runpy`, with optional exact-version/runtime-path inputs; their historical defaults
3792
+ and behavior assertions remain intact. No prepare evidence-description string is
3793
+ used as an execution-time proof.
3794
+
3795
+ | Proof family | T1 can run | Explicit not-run work |
3796
+ | --- | --- | --- |
3797
+ | Codex reviewer | Committed production prepare, actual metadata/native-canary checks and launch configuration assertions | Model-backed hub call, separate control artifact and human source review |
3798
+ | Kimi reviewer | Committed prepare/inventory/broker plus promoted native two-tool loop, Write positive/negative controls, preload guard and producer group cleanup | Human source review; unsupported native platform |
3799
+ | Claude implementer | Committed Write/Bash/rewrite and host-wrapper producer groups | Human upstream-impact review; unsupported launcher forms |
3800
+ | Pi | Artifact acquisition only in this core | Historical top-level producer needs import-safe/candidate-version extraction |
3801
+ | Qwen ACP | Promoted ACP identity/session/mapped-mode and actual published permission-handler producers, preload controls and group cleanup | Human lifecycle/source review; Linux does not replace required macOS arm64 |
3802
+ | Jcode | Reconstructed isolated serve/ACP/MCP, fixed-stream steering, telemetry and owned-group checks | Human source comparison; native macOS qualification remains unverified. The 0.99.1 Linux control is not qualified: telemetry identity and strict persisted-context binding fail; see the [reconstruction receipt](verification/2026-11-07-jcode-receipt-reconstruction-1248.md) |
3803
+ | agy and qwen-dual | Policy and unavailable/manual-leg reporting | No public agy installer; account/model/TUI or unspecified-platform legs |
3804
+
3805
+ Every manifest leg appears as pass, fail or not-run with a cause and next step.
3806
+ Missing producers are not inferred from configuration or other host tests. Partial
3807
+ receipts cannot qualify a candidate while required work is missing. Source/lifecycle
3808
+ semantic review is not a fetched-diff pass. Synthetic loopback fixture sentinels are
3809
+ not real provider API keys; parent account/model variables never reach a worker.
3810
+
3811
+ Default execution deadlines are 15 minutes overall, 3 minutes for installation
3812
+ and 2 minutes per proof-worker/group. Owned-process teardown has a separately
3813
+ bounded 10-second allowance, included in the JSON wall-time bounds. Output verification/publication has a
3814
+ separate 16-second allowance included in the total; elapsed time is sampled before
3815
+ publication. The summary
3816
+ separates `ownedStopConfirmed` from `processCleanup: proven|unproven` and gives its
3817
+ reason. An empty leader process group cannot prove lifetime cleanup: a helper can
3818
+ detach into a new group with ignored pipes and survive its launcher. Detected
3819
+ survivors and an unconfirmed owned stop fail the run. Producer cleanup legs assert
3820
+ that the native group they started stopped, using their original receipt evidence;
3821
+ they retain that pass or fail independently of harness lifetime cleanup. Native
3822
+ lifetime cleanup remains unproven in T1 and is reported without gating eligibility.
3823
+ A passing receipt with eligible policy and confirmed owned stop can be eligible
3824
+ while lifetime cleanup is unproven, provided no survivor was detected. The private
3825
+ workspace is kept until runner destruction; its location is reported only on stderr. A portable
3826
+ process supervisor belongs to a separate follow-up. Disposable runner lifetime is
3827
+ the containment boundary, not fresh HOME or process-group emptiness.
3828
+
3829
+ The output directory is held open before installation. Exclusive, no-follow
3830
+ writes are relative to that handle, so replacing an ancestor cannot redirect the
3831
+ receipt. The receipt excludes raw native stdout/stderr and private prefix paths.
3832
+ No PR is created by T1. The [T1b producer report](verification/2026-11-07-compat-receipt-producers-1248.md) maps the promoted Kimi and Qwen modules to their original receipts. Publisher integration is T2. The [Jcode reconstruction](verification/2026-11-07-jcode-receipt-reconstruction-1248.md) retains its failed native control legs and unverified Mac qualification.
3551
3833
 
3552
- For CI-opened PRs, the person still chooses between explicit `check.yml` dispatch with GITHUB_TOKEN and a GitHub App installation token. Dispatch avoids an additional App secret but needs Actions write permission in the publisher and exact-head evidence; it does not run the separate PR-only closing-refs/routing-receipt workflows. An App token lets normal PR events start checks, with person-owned scoped credentials confined to the publisher. Neither route is enabled here. Current [GitHub documentation](https://docs.github.com/en/actions/how-tos/write-workflows/choose-when-workflows-run/trigger-a-workflow) also describes approval-required PR runs for GITHUB_TOKEN automation; that is not unattended CI. See the audit for permissions, queue and gate trade-offs.
3553
3834
 
3554
3835
  ## Upgrade and crash recovery
3555
3836
 
@@ -3625,7 +3906,7 @@ or the plugin is older than the daemon it installed (#1179). It prints nothing w
3625
3906
  | Runtime | Control protocol window | Legacy status field |
3626
3907
  | --- | --- | --- |
3627
3908
  | 0.12.20 through 0.25.0 | 16 only | `protocol: 16` |
3628
- | 0.26.0 through 0.34.0 | 16 through 17 | `protocol: 16`, `protocolMin: 16`, `protocolMax: 17` |
3909
+ | 0.26.0 through 0.36.0 | 16 through 17 | `protocol: 16`, `protocolMin: 16`, `protocolMax: 17` |
3629
3910
 
3630
3911
  New clients choose the highest common protocol. The protocol window remains 16
3631
3912
  through 17, so the published protocol-16 client and channel plugin remain usable; unrelated feature
@@ -3633,7 +3914,13 @@ capabilities still require their own labels. A disjoint window refuses with 4426
3633
3914
  The compatibility-floor `protocol` field remains readable by old clients.
3634
3915
 
3635
3916
  Release N-1 is counted in minor versions, separately from this protocol window
3636
- (#1164, family contract entelecheia/ai-workspace#70). For 0.34.x, N-1 is 0.33.0,
3917
+ (#1164, family contract entelecheia/ai-workspace#70). For 0.36.x, N-1 is 0.35.0,
3918
+ the latest published patch of 0.35.x (exact `@staix/agent-mem` 0.23.1, control
3919
+ protocol 17 with descriptor floor 16). Every patch on 0.36.x keeps that release
3920
+ baseline. For 0.35.x, N-1 is 0.34.1,
3921
+ the latest published patch of 0.34.x (exact `@staix/agent-mem` 0.22.1, control
3922
+ protocol 17 with descriptor floor 16). Every patch on 0.35.x keeps that release
3923
+ baseline. For 0.34.x, N-1 is 0.33.0,
3637
3924
  the latest published patch of 0.33.x (exact `@staix/agent-mem` 0.22.1, control
3638
3925
  protocol 17 with descriptor floor 16). Every patch on 0.34.x keeps that release
3639
3926
  baseline. For 0.33.x, N-1 is 0.32.0,
@@ -4395,6 +4682,153 @@ and doctor. Every route without the `hub/` prefix, including named legacy routes
4395
4682
  and `sy/` selections, uses the fixed alias with one warning. Loading or reloading
4396
4683
  never rewrites the operator's routing files.
4397
4684
 
4685
+ #### Optional adec decision route (#554)
4686
+
4687
+ The optional `decision` route calls a separately managed, loopback-only
4688
+ `adec serve` using the [agent-decide route contract](https://github.com/STAIxBWLB/agent-decide/issues/4).
4689
+ The hub never starts or configures that service, reads its credentials, or calls
4690
+ its model directly. This backend is selected explicitly:
4691
+
4692
+ ```toml
4693
+ [hub_routes."hub/decision"]
4694
+ type = "decision"
4695
+ decision_backend = "adec"
4696
+ decision_mode = "shadow"
4697
+ policy_id = "ahub.chat"
4698
+ adec_endpoint = "http://127.0.0.1:8740/v1/route"
4699
+ decision_timeout_ms = 8000
4700
+ efficient = "fast"
4701
+ capable = "coding"
4702
+ candidates = [
4703
+ { alias = "fast", efforts = ["low", "medium"] },
4704
+ { alias = "coding", efforts = ["high"] },
4705
+ ]
4706
+ ```
4707
+
4708
+ Select it by editing the existing `[local] route` or class `route` to
4709
+ `"hub/decision"`. Do not append a duplicate `[local]` table. Ordinary routes,
4710
+ class `fixed_model` selections and a person's explicit model override retain
4711
+ their existing behavior; an explicit model bypasses this route.
4712
+
4713
+ Omitting `decision_mode` means `off`: no decision request or evidence is built.
4714
+ This delivery supports `shadow` only. It records the proposed alias/effort,
4715
+ margin, latency and decider while keeping the exact existing stage heuristic
4716
+ model, effort and conversation. `enforce` is explicitly refused at config load:
4717
+ `decision_mode enforce is not available yet; use shadow; tracked in #554`.
4718
+ There is no dormant application path or gateway effort plumbing. No route is
4719
+ enabled by default or deployed by this feature.
4720
+
4721
+ The configured alias/effort list has at most 26 pairs. Aliases narrow the adec
4722
+ policy; efforts are an additional hub-side response allowlist and are not sent
4723
+ as a policy override. Align the lists with the service policy: an unconfigured
4724
+ effort is refused as `outside_options`, keeping the heuristic. The request
4725
+ cannot add a policy candidate. The service assembles its question and
4726
+ owns its hard rules, margin threshold, in-memory pins and fallback. A valid
4727
+ `fallbackApplied` pair is recorded as the service's proposed fallback even when
4728
+ `abstain` is true. Every proposal, failure and `no_candidate` keeps the hub
4729
+ heuristic unchanged. An HTTP 400 is a caller/configuration
4730
+ error; inspect the policy id and allowed pairs. Transport errors, timeout,
4731
+ malformed responses and an out-of-list pair also keep the hub heuristic, with a
4732
+ closed reason in the route event. A failed service is not asked again in the
4733
+ same user turn. Operational diagnostics contain a closed cause and repair step,
4734
+ and are emitted once per state/configuration change; a successful reply resets
4735
+ the diagnostic so a later recurrence is visible. Per-call route records remain
4736
+ available for outcome correlation. The default total timeout is 8 seconds (configurable from 1 to
4737
+ 30000 ms), covering headers and the full bounded response. Redirects, ambient
4738
+ proxies, credentials and browser headers are not used. Endpoint URLs accept only
4739
+ HTTP numeric loopback with `/v1/route`, without userinfo, query or fragment.
4740
+
4741
+ Each eligible tool round carries the same opaque, route/session/user-turn-bound
4742
+ `turnId`. adec therefore reuses its pin while rechecking current hard rules.
4743
+ The hub does not send a proposal as `current`: no pair is applied in shadow,
4744
+ and the native/default effort is unknown. Explicit model selections bypass the
4745
+ service.
4746
+ Changing a service, provider, model, version or policy threshold requires a new
4747
+ shadow period. The hub does not recalibrate a remote policy. The optional decider `version` is recorded when configured on the service;
4748
+ otherwise it stays unknown and is not inferred from the model id. Moving
4749
+ `latest` version aliases are refused.
4750
+
4751
+ Evidence is a bounded data projection, never the forwarded conversation: a
4752
+ capped latest-user task fragment, the last assistant/tool tails, screened tool
4753
+ names and numeric stage dimensions. Whole selected sources pass the current
4754
+ public-view pattern/private-path/secret checks before UTF-8/JSON byte caps.
4755
+ Tool arguments, system/developer instructions and older history are not sent.
4756
+ The total evidence cap is 8 KiB; candidate and response payloads have finite
4757
+ bounds too. Evidence is labelled untrusted data, not instructions; injection
4758
+ resistance is not claimed. Review-observer-excluded and remote turns skip adec.
4759
+ A PII/private turn needs positive `onCampus()` before any evidence build or
4760
+ service call. Even on campus, its evidence is dimensions only, its context size
4761
+ is redacted to 0, and its separate `pii`/`private` flags reach adec so the service
4762
+ can enforce on-prem candidates/decider rules. The ordinary gateway campus and
4763
+ execution-budget checks still apply. Current board/turn privacy and observer
4764
+ facts are checked again across admission, campus and service awaits. A changed
4765
+ or unavailable authority refuses the stale turn instead of turning into a
4766
+ service-error fallback; inspect current task policy and retry. A returned proposal is checked again before telemetry. The original gateway
4767
+ execution path and its privacy/budget checks are unchanged. Source text, tool arguments, credentials
4768
+ and server error prose never enter route events.
4769
+
4770
+ This delivery is the adec consumer slice of #554. The direct System One backend
4771
+ and enforcement application remain separate unimplemented legs; the optional
4772
+ stage classifier is the ambiguity-band subsection below; the manual offline
4773
+ triage evaluation is the by-hand script
4774
+ below. Offline fake-service tests establish protocol and shadow
4775
+ behavior; no routing gain, native service/model run or production rollout is
4776
+ claimed.
4777
+
4778
+ #### Optional stage classifier band (#554)
4779
+
4780
+ An optional `stage` route can ask the same loopback service one classification
4781
+ question, and only when its own deterministic score is ambiguous. It is opt-in
4782
+ and off by default:
4783
+
4784
+ ```toml
4785
+ [hub_routes."hub/stage"]
4786
+ type = "stage"
4787
+ classifier = "decision"
4788
+ decision_backend = "adec"
4789
+ decision_mode = "shadow"
4790
+ policy_id = "ahub.stage"
4791
+ adec_endpoint = "http://127.0.0.1:8740/v1/route"
4792
+ efficient = "fast"
4793
+ capable = "coding"
4794
+ ambiguous_band = 0.05
4795
+ ```
4796
+
4797
+ `classifier` has one value, `"decision"`, and both `efficient` and `capable` are
4798
+ then required: they are the two options the question offers. A `stage` route
4799
+ without `classifier` keeps the deterministic picker and sends nothing.
4800
+ `ambiguous_band` is accepted only together with `classifier`, defaults to `0.05`
4801
+ and must be a finite number from 0 to 0.5. The band is measured against the
4802
+ route's own threshold: `abs(score - confidence_threshold) <= ambiguous_band` is
4803
+ ambiguous, with the threshold defaulting to 0.5. The default therefore asks only
4804
+ for the indecisive middle: the owned repeated-execution reading 0.46 lies four
4805
+ hundredths from the 0.5 default, inside the band, while a single reported
4806
+ failure (0.3) and an exception or critical failure (0.7 and 1) lie two tenths or
4807
+ more outside. `ambiguous_band = 0` asks nothing; the maximum 0.5 covers the whole
4808
+ score range at the default threshold. A value outside its range fails at load
4809
+ rather than silently widening or narrowing the band.
4810
+
4811
+ The two tiers are the whole question: candidates are `efficient` and `capable`
4812
+ with effort `none`, and the heuristic's own tier is sent as `current`. An answer
4813
+ is recorded in the route event as the decision fields (mode, chosen alias and
4814
+ effort, margin, latency, reason, screened decider) and changes no tier, model,
4815
+ effort or conversation: shadow keeps the exact heuristic routing. Abstain or
4816
+ `no_candidate`, a transport failure or timeout, `decision_mode = off` and an
4817
+ off-campus decider for a PII or private turn each keep the heuristic tier and
4818
+ record a closed reason in that event. `enforce` stays refused at load with the
4819
+ same message as a decision route. One question is asked per user turn, reused
4820
+ through the tool loop, and it dies with the turn: a turn that ends while the
4821
+ question is outstanding applies no answer and is not failed by it. The question
4822
+ carries R1's closed stage evidence (numeric signals, dimensions and scores),
4823
+ never the generic decision v1 conversation projection; a PII or private turn
4824
+ sends only the dimensions view. A held answer is reused only while the privacy
4825
+ and observer facts it was recorded with still hold: a changed reading drops it,
4826
+ and an unreadable one refuses the turn. A privacy or
4827
+ observer change detected across the request is different from a service failure:
4828
+ it refuses the stale turn, exactly as a decision route does, and the heuristic is
4829
+ not executed around that refusal. The PII
4830
+ screen, `assign()` and the escalation and advisor triggers never use this path.
4831
+
4398
4832
  Migrate the retired settings as follows:
4399
4833
 
4400
4834
  | Retired setting or route | In-process replacement |
@@ -4413,6 +4847,61 @@ row naming the file and the parse error, without the file's contents, and the
4413
4847
  alias check is skipped (#563). Hub summaries
4414
4848
  and triage use their fixed model directly.
4415
4849
 
4850
+ #### Offline triage evaluation (#554 AC5, by hand)
4851
+
4852
+ `scripts/decision-eval.ts` replays the board's planner-classified, non-PII tasks
4853
+ against a decider and against the hub's current `Inference.triage`, then reports
4854
+ each column's accuracy against the class a planner named and its latency. It is
4855
+ a person-run leg: it never runs in CI and needs a running `adec serve`
4856
+ ([route contract](https://github.com/STAIxBWLB/agent-decide/issues/4)), so
4857
+ neither column is exercised by the hermetic suite.
4858
+
4859
+ ```bash
4860
+ # adec early-decision route: the seven classes are the policy's candidate aliases
4861
+ bun scripts/decision-eval.ts --project . --decider route \
4862
+ --adec http://127.0.0.1:8740 --policy-id ahub.triage --effort default --limit 50
4863
+
4864
+ # adec System One endpoint: one choice question whose options are the classes
4865
+ bun scripts/decision-eval.ts --project . --decider systemone \
4866
+ --adec http://127.0.0.1:8740 --model <model> --limit 50
4867
+ ```
4868
+
4869
+ `--project` names the hub project root and `--db` any `hub.db` copy; `--limit`
4870
+ bounds the sample (default 50, at most 500) and `--timeout` the per-call deadline
4871
+ (default 8000 ms). `--out <file>` also writes the Markdown report. The endpoint
4872
+ must be literal loopback (`127.0.0.1` or `[::1]`) with the `/v1/route` or
4873
+ `/v1/systemone` path; anything else is refused before a row is read. A
4874
+ `--policy-id` the service does not hold answers 404, which the client reports as
4875
+ the closed reason `http`, so every row is then a miss: check the service's
4876
+ policies and that `--effort` is one the policy allows before reading the table.
4877
+
4878
+ The sample is the board's newest rows that a planner classified: a row whose
4879
+ class sits outside the closed class list, whose history carries a hub `triaged`
4880
+ or `class defaulted` event, or whose title is empty is excluded, and so is any
4881
+ row carrying a `pii` or `pii_path` signal, which is dropped before its text is
4882
+ read. Kept rows are read as a public view returns them, and each report lists the
4883
+ excluded counts and the sampled classes so the sample can be judged.
4884
+
4885
+ The script takes one consistent snapshot of `hub.db` into a temporary directory
4886
+ and opens the copy, so a run never opens the live board for writing. The snapshot
4887
+ is SQLite's own serialization of a read-only connection, not a copy of the
4888
+ database file and its `-wal`/`-shm` sidecars: a live writer that checkpoints and
4889
+ then reuses the WAL would leave separately copied files disagreeing about which
4890
+ frames are committed. Accuracy counts only rows a column labelled, a miss lowers
4891
+ coverage rather than accuracy, and the report adds p50/p95/max latency, the two
4892
+ columns' confusion and misses, and how often they agreed where both labelled a
4893
+ row.
4894
+
4895
+ Each run gets a fresh run id in its report and in every adec turn id, because
4896
+ adec keeps in-memory pins for the turn ids it has answered: without it, a second
4897
+ run over the same board, or over another project whose task ids overlap, can be
4898
+ answered from an earlier pin instead of a fresh classification, and both the
4899
+ accuracy and the latency would then describe that pin.
4900
+
4901
+ A gain here is evidence for the decider question (D5) only: nothing in this
4902
+ script reaches `Tasks.triage`, `assign()` or the PII screen, and no board row,
4903
+ route or config is changed by a run.
4904
+
4416
4905
  Route types: `stage` scores recent tools and holds capable recovery for two calls;
4417
4906
  `plan_execute` plans on capable until the first mutation and then stays efficient;
4418
4907
  `advisor` holds no-tool answers for APPROVE/REDO review; `escalation` starts efficient
@@ -4574,18 +5063,18 @@ durable-delivery retries remain the journal's responsibility.
4574
5063
 
4575
5064
  ## Documentation source verification
4576
5065
 
4577
- `docs/verified.json` maps README, the current security, operations and quickstart
4578
- pages, and every agent note to a full source commit and explicit covered paths.
5066
+ `docs/verified.json` maps README, every page directly under `docs/` and
5067
+ `docs/addons/`, and every agent note to a full source commit and explicit covered paths.
4579
5068
  A stamp records a human check of the cited paths, symbols, numeric limits and
4580
5069
  operational commands. It does not certify live deployment or prove prose
4581
5070
  correctness automatically. Specs, changelogs and the smoke ledger retain their
4582
- own dated evidence and are outside this manifest.
5071
+ own dated evidence and are outside this manifest; so does the retired GSD analysis.
4583
5072
 
4584
5073
  `node scripts/check-docs.mjs` also runs in `scripts/check.sh`. Missing manifest
4585
5074
  coverage, unresolved or nonancestor commits, removed source paths and a README
4586
5075
  status version different from `package.json` fail the gate. Source commits since
4587
5076
  a stamp and uncommitted covered changes produce sorted stale notices without
4588
- failing it. Counts are commits touching any covered path, rather than file or
5077
+ failing it; CI's `decision` job repeats them as warnings on every pull request. Counts are commits touching any covered path, rather than file or
4589
5078
  line counts; an unrelated commit leaves the document fresh. Git history must
4590
5079
  include the stamped ancestors (CI checks out full history).
4591
5080
 
@@ -4653,10 +5142,11 @@ makes `scripts/check.sh` run slice `i` of the full suite through `bun test --sha
4653
5142
  every test file in exactly one shard and balances them by the recorded per-file times; shard 1 also runs the docs check, typecheck, role check, bundle freshness and
4654
5143
  package contents, so each of those runs once per gate, and the others install and test. Each shard runs under the same 1500 s backstop as Linux inside a 25-minute job
4655
5144
  limit, and its last line is `check: OK (shard i/n)`. The required check `check (macos-latest)` is an aggregator job that passes only when every shard passed (or an
4656
- identical-tree full proof was reused), so branch protection and the reuse proof read the same names as before. `AHUB_CHECK_SHARD` is the full suite only: it cannot be
5145
+ identical-tree full proof was reused), so branch protection and the reuse proof read the same names as before. A stacked pull request (base not `main`) runs no macOS shard, and its `check (macos-latest)` fails with "macOS shards deferred", naming the base (#1307): GitHub allows 5 macOS jobs at once on this account, and such a PR is rebased and rerun once it targets `main`. A PR retargeted to `main` without a new commit gets its macOS run by a push, or by `gh pr close <n> && gh pr reopen <n>`; `gh run rerun` replays the old base and defers again. `AHUB_CHECK_SHARD` is the full suite only: it cannot be
4657
5146
  combined with `--changed`. A shard execs the system git once before its tests (`AHUB_CHECK_WARM_GIT`, default `/usr/bin/git`; a failure of it is ignored), because the first execs of `/usr/bin/git` on a fresh hosted macOS runner outlast the 1000 ms some tests give it. `scripts/test-timings.json` is advice for balance, never a list of tests: a file missing from it still runs (Bun gives it the median time).
4658
5147
  Regenerate it from a green macOS leg when the shards drift apart: `gh api --allow-escape-sequences repos/<owner>/<repo>/actions/jobs/<macOS shard job id>/logs`
4659
- for each shard, or from one unsharded leg's log, then `bun scripts/make-test-timings.ts <log>`.
5148
+ for each shard, or from one unsharded leg's log, then `bun scripts/make-test-timings.ts <log>...`, or `bun scripts/refresh-test-timings.ts` for the newest green run (#1257).
5149
+ 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).
4660
5150
  The `closing-refs` workflow fails a PR whose title, body or commit messages would make
4661
5151
  GitHub close an issue the text only mentions (`Refs #N`, a negated or qualified keyword);
4662
5152
  an issue linked only in the sidebar passes (#760).
@@ -4929,7 +5419,34 @@ that the file is untracked; a dropped value is reported by the settings result.
4929
5419
 
4930
5420
  ## SDLC artifact receipts and gates
4931
5421
 
4932
- The playbook lifecycle (#257, #481) is off without `.agenthub/sdlc.toml`. When enabled its stages are intent, spec, plan, build, test, review, merge, release and maintain, grouped as Plan, Design, Build, Test, Deploy and Maintain. Advise shows blockers; enforce checks implemented head-bound review and approval gates. Stored implement/verify receipts read as build/test; new enabled receipts use canonical ids. See [the SDLC contract](sdlc.md) for gates, required check names, local receipts, console-only readbacks and the S0-S8 delivery table. A person accepts a spec issue with `ahub sdlc accept <task> --issue <n>` (S1). The planner records plan reviews with review and CI scope (`hub_plan_review`, `ahub sdlc plan-review`) and grooms with `ahub backlog groom`; `ahub backlog return <task> <revision> <reason>` returns accepted, untouched work (S9). `ahub sdlc costs [owner/repo]` reports review rounds and CI runs of merged PRs without writing the board (S10). `ahub sdlc metrics [--since <YYYY-MM-DD|ISO time>]` (the planner tool `hub_sdlc_metrics`, planner or person, read-only) reports lead times, first-pass approval and check rates, rework rounds, stale-head re-reviews and open stalls from board history, with `unknown` counted and never 0; optional `[bands.<metric>]` in `sdlc.toml` add control bands that the daemon checks every five minutes in advise or enforce, writing a hub notice (`log`), a read-only `triage` backlog task (`diagnose`) or a `plan` backlog card (`propose`), one per breach episode and never a GitHub issue (S7, see [metrics](sdlc.md#sdlc-metrics-and-control-bands-481-s7)). With the lifecycle on, a task's issue identity is linked when it is proposed or accepted, from the one issue it names (an imported GitHub issue, or a `#N`, `owner/repo#N` or issue URL in its title); a title that names a sibling repository (`agent-mem#13`) links only when `refs.repo` names it, and without `refs.repo` the propose result says to set it. `ahub backlog groom` also backfills up to 32 links per call, within 1 s (#723). S11 release trains ship in 0.12.37 (see [release scheduling](#planner-release-scheduling)). S3 structured review findings (an open Important finding blocks approval in enforce; `max_nits` in `sdlc.toml` caps nits) and S2 literal-path plan conformance with the person-only `ahub sdlc accept-departure <task> <head> <reason...>` are in source; see [findings](sdlc.md#structured-review-findings-481-s3) and [plan conformance](sdlc.md#plan-conformance-481-s2). S4 [test integrity](sdlc.md#test-integrity-481-s4) and S6 [release authorization](#release-approval-and-optional-tag-guard) are in source too. S5 is in source as an [eval gate mechanism](sdlc.md#eval-gate-for-agent-configuration-481-s5) with no suite chosen, and S7 adds merge-time readback, [release metrics](sdlc.md#release-metrics-481-ac12) and an opt-in security baseline; a full live advise/release cycle and the per-release gates-run record remain pending. Owners/reviewers record bounded identities through `hub_sdlc_record`; these grant no additional authority. Off output, receipt and schema shapes stay unchanged.
5422
+ The playbook lifecycle (#257, #481) is off without `.agenthub/sdlc.toml`. When enabled its stages are intent, spec, plan, build, test, review, merge, release and maintain, grouped as Plan, Design, Build, Test, Deploy and Maintain. Advise shows blockers; enforce checks implemented head-bound review and approval gates. Stored implement/verify receipts read as build/test; new enabled receipts use canonical ids. See [the SDLC contract](sdlc.md) for gates, required check names, local receipts, console-only readbacks and the S0-S8 delivery table. A person accepts a spec issue with `ahub sdlc accept <task> --issue <n>` (S1). A PR merged outside the hub is recorded with `ahub sdlc adopt-merge <task> --pr <n>` (person or current conductor), which approves the task and releases dependents only at its recorded head with green required checks ([adoption](sdlc.md#adopting-a-pr-merged-outside-the-hub-1328-t3)). The planner records plan reviews with review and CI scope (`hub_plan_review`, `ahub sdlc plan-review`) and grooms with `ahub backlog groom`; `ahub backlog return <task> <revision> <reason>` returns accepted, untouched work (S9). `ahub sdlc costs [owner/repo]` reports review rounds and CI runs of merged PRs without writing the board (S10). `ahub sdlc metrics [--since <YYYY-MM-DD|ISO time>]` (the planner tool `hub_sdlc_metrics`, planner or person, read-only) reports lead times, first-pass approval and check rates, rework rounds, stale-head re-reviews and open stalls from board history, with `unknown` counted and never 0; optional `[bands.<metric>]` in `sdlc.toml` add control bands that the daemon checks every five minutes in advise or enforce, writing a hub notice (`log`), a read-only `triage` backlog task (`diagnose`) or a `plan` backlog card (`propose`), one per breach episode and never a GitHub issue (S7, see [metrics](sdlc.md#sdlc-metrics-and-control-bands-481-s7)). With the lifecycle on, a task's issue identity is linked when it is proposed or accepted, from the one issue it names (an imported GitHub issue, or a `#N`, `owner/repo#N` or issue URL in its title); a title that names a sibling repository (`agent-mem#13`) links only when `refs.repo` names it, and without `refs.repo` the propose result says to set it. `ahub backlog groom` also backfills up to 32 links per call, within 1 s (#723). S11 release trains ship in 0.12.37 (see [release scheduling](#planner-release-scheduling)). S3 structured review findings (an open Important finding blocks approval in enforce; `max_nits` in `sdlc.toml` caps nits) and S2 literal-path plan conformance with the person-only `ahub sdlc accept-departure <task> <head> <reason...>` are in source; see [findings](sdlc.md#structured-review-findings-481-s3) and [plan conformance](sdlc.md#plan-conformance-481-s2). S4 [test integrity](sdlc.md#test-integrity-481-s4) and S6 [release authorization](#release-approval-and-optional-tag-guard) are in source too. S5 is in source as an [eval gate mechanism](sdlc.md#eval-gate-for-agent-configuration-481-s5) with no suite chosen, and S7 adds merge-time readback, [release metrics](sdlc.md#release-metrics-481-ac12) and an opt-in security baseline; a full live advise/release cycle and the per-release gates-run record remain pending. Owners/reviewers record bounded identities through `hub_sdlc_record`; these grant no additional authority. Off output, receipt and schema shapes stay unchanged.
5423
+ ## Supervision proposals
5424
+
5425
+ `supervision.mode` is off by default and machine-local (`ahub settings set supervision.mode advisory`); a committed
5426
+ `.agenthub/config.json` cannot turn it on. `shadow` stores bounded proposals on the queue and does nothing else: no
5427
+ inbox row, no notice, no turn. `advisory` may also show a pending proposal in the console's existing inbox, where only
5428
+ an explicit accept or dismiss acts. The queue holds at most 100 pending proposals, three per task revision, and keeps
5429
+ 400 terminal rows for dedupe, so a reading already accepted, dismissed or expired is not proposed again for the same
5430
+ rule, task, revision and trigger. A reading past a bound is refused and counted: `hub_supervision_list` reports the total
5431
+ as `refused`, so a full queue never reads as "nothing to report".
5432
+
5433
+ A present role reads and decides them with `hub_supervision_list`, `hub_supervision_accept` and
5434
+ `hub_supervision_dismiss`, or with the advisory inbox row: the task's owner, its reviewer, the configured planner, the
5435
+ conductor and the person. There is no supervisor role. An acceptance runs the existing action the proposal names,
5436
+ through that action's own authority: `escalate` through the conductor for an agent and the board's own escalation for
5437
+ the person, and `recheck` or `request_integration` as the hub's notice to the owners, whose check re-run or integration
5438
+ is their own action and their own board record. An `escalate` proposal is therefore accepted by the conductor or the
5439
+ person only; another role's acceptance is refused and the proposal stays pending. Accepting writes nothing to the board.
5440
+
5441
+ Every refusal names its reason and starts nothing. A stale revision, a closed or vanished task, new input that cleared
5442
+ the pattern, or a replaced native session expires the proposal; a private task, a clipped reading (a revision longer
5443
+ than one rule reads), an unknown id, a caller with no role on the task, a caller that does not hold the action's own
5444
+ authority, or an owner's `needs_review` delivery refuses without spending it. An action whose outcome the hub could not
5445
+ observe is recorded `unknown` and never retried; a later read settles it from the board's own record at or after the
5446
+ intent time and inside the task revision the proposal was read under, and a restart keeps the dispositions, the dedupe
5447
+ keys and the unknown outcomes. There is no automatic pause, retry, cancel, reroute, approval or rollback, no resident
5448
+ worker and no timer. See [supervision rules, proposals and the decision path](design/supervision.md).
5449
+
4933
5450
  ## Optional Qwen Code peer
4934
5451
 
4935
5452
  Select Qwen per project with `ahub roster add qwen`; it defaults off and is absent
@@ -4941,16 +5458,32 @@ selected roster and existing capabilities; the TUI is always a person's start.
4941
5458
 
4942
5459
  ### Qwen's own TUI, driven through dual output (#286 Part 3)
4943
5460
 
4944
- `ahub qwen --mode tui` runs `qwen --input-file <in> --json-file <out> --mcp-config <hub server> --approval-mode default` in the terminal you ran it from. The daemon prepares the two files (mode 0600, under `<state dir>/qwen/qwen-dual/`) and returns the launch; the hub then appends one `submit` line per delivery and tails the event file from a saved offset. It needs a Qwen the dual-output compat entry verifies (`ahub agents` shows `qwen-dual`, verified 0.26.1 only; the headless `qwen` entry has its own ACP receipts) and refuses another version before it creates a file. The TUI is explicit only: `ahub qwen` without `--mode` is still headless, Qwen is not a start-mode peer, and the hub never opens this terminal by itself. The TUI start is refused for an extra Qwen instance, off roster, outside a terminal, and while a headless Qwen runs (`ahub stop qwen` first); a headless start is refused while the TUI holds its terminal.
5461
+ `ahub qwen --mode tui` runs `qwen --input-file <in> --json-file <out> --mcp-config <hub server> --approval-mode default` in the terminal you ran it from. The daemon prepares the two files (mode 0600, under `<state dir>/qwen/qwen-dual/`) and returns the launch; the hub then appends one `submit` line per delivery and tails the event file from a saved offset. It needs a Qwen the dual-output compat entry verifies (`ahub agents` shows `qwen-dual`, verified 0.26.1 and exact 0.27.0 and 0.27.1; the headless `qwen` entry has its own ACP receipts) and refuses another version before it creates a file. The TUI is explicit only: `ahub qwen` without `--mode` is still headless, Qwen is not a start-mode peer, and the hub never opens this terminal by itself. The TUI start is refused for an extra Qwen instance, off roster, outside a terminal, and while a headless Qwen runs (`ahub stop qwen` first); a headless start is refused while the TUI holds its terminal.
4945
5462
 
4946
5463
  - What the hub does: a delivery becomes a `submit`; the last assistant message of the turn (an `assistant` event whose `stop_reason` is not `tool_use`, then `message_stop`) is shared as the answer; busy and idle follow the events. A `can_use_tool` request goes to the console approval path (`ahub permit`, the dashboard), and the hub's own tools are approved only by their exact `mcp__agent-hub__<tool>` name. If you answer a prompt in the Qwen terminal first, the hub's pending approval is withdrawn.
4947
- - **Limit 1, a deny ends the turn without an answer.** Qwen emits nothing when the hub denies: it cancels the whole turn. The hub ends the turn itself, shares no answer, settles the delivery as `completed` (a deny is a known outcome, and a `needs_review` would hold every later message to Qwen until a person resolved it) and says so in a notice. A turn whose outcome is not known (Qwen exited, an Esc followed by a new prompt, an event file that became unreadable) is the one that settles `needs_review`. Qwen's own notice that a background shell finished (a `user` event that is wholly one or more `<task-notification>` envelopes) is not a new prompt: it ends no hub turn and leaves an idle peer idle (task 517).
5464
+ - **Limit 1, a deny is not a readiness ACK.** The known denied delivery completes without a shared answer, but queued messages remain unsubmitted behind a durable input fence. The denied turn's own assistant/Stop does not release it. After 30 s without recovery proof the peer reports offline, keeping the fence. Type a new plain, tool-free prompt (or press Esc first) in the Qwen terminal and finish that personal turn; its same-session final assistant/message_stop can restore readiness even after timeout. Alternatively, end Qwen in that terminal and run `ahub qwen --mode tui` for a verified new native generation. Merely making the event file readable, replaying session_start or restarting the hub does not release a deny fence. A new personal USER must be observed after adoption. An uncertain original turn still settles `needs_review`; a deny retains its known `completed` disposition. Background task-notification events are not personal USER recovery proof.
4948
5465
  - **Limit 2, the hub cannot stop a Qwen turn.** The input protocol has only `submit` and `confirmation_response`, and a signal does not stop a running turn. The inactivity watchdog therefore never cancels: after `watchdog_ms` of silence it marks the turn stalled (`ahub status`, the console and the dashboard say "press Esc in the Qwen terminal") and keeps the peer busy. The hub never types into your terminal and never signals Qwen to stop a turn.
4949
5466
  - A Qwen write or shell command that names the hub state directory is refused (see [security](security.md): the input file is a prompt channel).
4950
- - If the hub cannot read the event file the peer is `detached`, shown as offline with a notice, never idle: Qwen itself keeps working, and the hub reattaches when the file is readable again.
5467
+ - A short or unconfirmed input write, or an input file ending without newline, reports offline with the delivery held `needs_review`. No remainder or second message is appended. A personal turn cannot repair this input file; inspect and end Qwen in its terminal, then run `ahub qwen --mode tui` for a verified fresh generation. Crash detection reads the actual tail; a torn prefix ending with newline is an explicit undetected ceiling.
5468
+ - If the hub cannot read the event file the peer is `detached`, shown as offline with a notice, never idle: Qwen itself keeps working, and the hub reattaches when the file is readable again. A pending deny excludes every event buffered before restored EOF, even on the same inode; follow the plain, tool-free recovery procedure above after reattachment. Tool/control activity can invalidate the completion proof, so tool-assisted recovery is not promised; completing a USER line begun before restored EOF does not supply recovery proof.
4951
5469
  - Restart: if the hub restarts while your Qwen keeps running, it reads on from its saved offset (no event twice, no launch). If Qwen is gone, `ahub qwen --mode tui` starts `qwen -r <session id>` on the same two files; the earlier submits are not replayed and the recorded answers are not shared again. Recovery never restores this terminal as a headless worker, and `ahub stop qwen` refuses: end Qwen in its own terminal.
4952
5470
 
4953
- Receipt-verified native ACP identities are qwen-code 0.25.0 and 0.26.0 ([dated receipt](verification/2026-10-22-kimi-qwen-compat.md)), 0.26.1 ([0.26.1 receipt](verification/2026-10-26-qwen-0261-acp.md)), 0.26.4 ([0.26.4 ACP receipt](verification/2026-10-31-qwen-0264-acp.md)), 0.26.5 ([0.26.5 ACP receipt](verification/2026-11-03-qwen-0265-acp.md)) and 0.26.8 ([0.26.8 ACP receipt](verification/2026-11-06-qwen-0268-acp.md)). The separate [0.26.4](verification/2026-10-31-qwen-0264-dual-output.md), [0.26.5](verification/2026-11-03-qwen-0265-dual-output.md), and [0.26.8](verification/2026-11-06-qwen-0268-dual-output.md) dual-output attempts did not establish their queued-turn criterion, so `qwen-dual` stays at 0.26.1. A CLI version label alone
5471
+ The [2026-11-10 account-free receipt](verification/2026-11-10-qwen-0270-dual-output.md)
5472
+ qualifies exact 0.27.0 against matched private 0.26.1 on macOS arm64; the
5473
+ [0.27.1 receipt](verification/2026-11-10-qwen-0271-dual-output.md) repeats the same
5474
+ Q2 and Q3/Q5/Q6/Q7 suite on exact 0.27.1 against matched 0.27.0. Normal-Bus
5475
+ Q2 has two user/final-Stop/ordinary-provider turns after owned stop; Q3's five
5476
+ permission cases, unread-FIFO Q5, same-session/no-replay/assistant-context Q6 and
5477
+ identity/guard Q7 also passed, with final closure and protected/artifact/source
5478
+ fences. Q4 retains the external-stop limit. The separate direct-busy pair emitted
5479
+ one user/assistant/Stop with both markers in one assistant, so the original
5480
+ native-busy-submit queued-turn claim remains unreproduced. Adoption, reattachment
5481
+ outside the durable deny-fence path do not prove native quiescence in every path. The deny fence is source/fake verified, not a new native cancel ACK qualification. Real-model
5482
+ turns, this repository's live dual-output TUI use, Linux and lifetime containment
5483
+ remain unverified; the basic ACP/setter contracts and automation eligibility are
5484
+ separate.
5485
+
5486
+ Receipt-verified native ACP identities are qwen-code 0.25.0 and 0.26.0 ([dated receipt](verification/2026-10-22-kimi-qwen-compat.md)), 0.26.1 ([0.26.1 receipt](verification/2026-10-26-qwen-0261-acp.md)), 0.26.4 ([0.26.4 ACP receipt](verification/2026-10-31-qwen-0264-acp.md)), 0.26.5 ([0.26.5 ACP receipt](verification/2026-11-03-qwen-0265-acp.md)), 0.26.8 ([0.26.8 ACP receipt](verification/2026-11-06-qwen-0268-acp.md)), 0.26.9 ([0.26.9 ACP receipt](verification/2026-11-08-qwen-0269-acp.md)) and 0.27.0 ([0.27.0 ACP receipt](verification/2026-11-09-qwen-0270-acp.md)). The separate [0.26.4](verification/2026-10-31-qwen-0264-dual-output.md), [0.26.5](verification/2026-11-03-qwen-0265-dual-output.md), and [0.26.8](verification/2026-11-06-qwen-0268-dual-output.md) dual-output attempts did not establish their queued-turn criterion, those versions remain unverified by `qwen-dual`; exact 0.27.0 and 0.27.1 have the separate matched receipts above. A CLI version label alone
4954
5487
  is insufficient: startup verifies its native identity/version and advertised mode
4955
5488
  ids before any prompt. The earlier local installation reported CLI 0.25.0 while
4956
5489
  its package/ACP source said 0.24.1; that was not a ready identity. The 0.26.0 receipt
@@ -5001,11 +5534,11 @@ Native policy is unmanaged and has NO hub sandbox; no permission_modes.jcode or
5001
5534
 
5002
5535
  ## Optional Antigravity (agy) peer
5003
5536
 
5004
- 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: 1.4.2, 1.4.7 and 1.4.12 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)), any other 1.4.x launches with a stderr warning (agy updates itself; set `AGY_CLI_DISABLE_AUTO_UPDATE=1` for a live run, #1140), 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.
5537
+ Antigravity is optional and off roster by default. Use `ahub roster add agy`, then run `ahub agy` in a terminal: it runs the Antigravity CLI as a fresh pull-only TUI in that terminal. It accepts the 1.4.x line plus exact 1.5.3: 1.4.2, 1.4.7, 1.4.12 and 1.5.3 are the verified versions ([1.4.7 receipt](verification/2026-10-26-agy-1.4.7.md), [1.4.12 launcher nonce receipt](verification/2026-11-03-agy-1.4.12-launcher-nonce.md), [1.5.3 account-free receipt](verification/2026-11-08-agy-1.5.3.md)), any other 1.4.x launches with a stderr warning (agy updates itself, so the launcher sets `AGY_CLI_DISABLE_AUTO_UPDATE=1` for its version probe and the TUI it starts, #1140, #1286), and other versions are refused (#589) unless the person trusts that exact version with `ahub agents trust agy <version>` (#691). The running hub must advertise `native_hook_launch`; an older hub refuses before any write with an upgrade-or-restart remedy. Only the person's launcher starts it: conductor starts are refused, there is no controlled restore or resume, and a declared agy extra instance is refused when the config loads (#625). Headless/print, resume (`--conversation`, `--continue`, `--new`), `--mode`, `--dangerously-skip-permissions` and `--unattended` are refused until their native mapping is verified; `--print-command` previews without writing.
5005
5538
 
5006
5539
  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`.
5007
5540
 
5008
- Like Kimi's TUI, agy is pull-only: it reads `hub_inbox` and shares results with `hub_send`, messages do not interrupt it, and automatic routing never picks it. Its roles are capped at implementer and verifier; a plan or review assignment and PII work are refused. Native permissions are unmanaged, with no hub sandbox, hub permission mode, quota source or session resume. Plugin hooks bound to that launch carry the hub's turn facts and report each completed native turn. A native read is recorded as a peer `Read` fact: `view_file` (`AbsolutePath`) in 1.4.2 and `read_file` (`Path`) in 1.4.3; a `StartLine`/`EndLine` range counts as a partial read, never a whole-file view (#555). The live TUI/account leg is unverified ([T0 receipt](verification/2026-10-19-agy-p1-t0.md)). The 1.4.3 T0 re-run keeps 1.4.3 unverified: its `call_mcp_tool` schema and native tool names changed, and the TUI attaches the hub tools only from the second model turn ([1.4.3 receipt](verification/2026-10-21-agy-1.4.3-t0.md), #607).
5541
+ Like Kimi's TUI, agy is pull-only: it reads `hub_inbox` and shares results with `hub_send`, messages do not interrupt it, and automatic routing never picks it. Its roles are capped at implementer and verifier; a plan or review assignment and PII work are refused. Native permissions are unmanaged, with no hub sandbox, hub permission mode, quota source or session resume. Plugin hooks bound to that launch carry the hub's turn facts and report each completed native turn. When messages wait at a model boundary (`SessionStart`, `PreInvocation`), the hook adds one count-only line asking it to call `hub_inbox`, never a body or sender (#1280). A native read is recorded as a peer `Read` fact: `view_file` (`AbsolutePath`) in 1.4.2 and `read_file` (`Path`) in 1.4.3; a `StartLine`/`EndLine` range counts as a partial read, never a whole-file view (#555). The live TUI/account leg is unverified ([T0 receipt](verification/2026-10-19-agy-p1-t0.md)). The 1.4.3 T0 re-run keeps 1.4.3 unverified: its `call_mcp_tool` schema and native tool names changed, and the TUI attaches the hub tools only from the second model turn ([1.4.3 receipt](verification/2026-10-21-agy-1.4.3-t0.md), #607).
5009
5542
 
5010
5543
  ## Configured ACP adapters (#451 A3)
5011
5544
 
@@ -5616,7 +6149,7 @@ A headless Claude implementer (#525-4) is declared separately:
5616
6149
  "claude-impl": { "kind": "claude", "roles": ["implementer"], "start_mode": "headless", "worktree": ".worktrees/claude-impl", "permission_mode": "ask" }
5617
6150
  ```
5618
6151
 
5619
- A headless Claude implementer may name its model (#844): `"model": "claude-sonnet-5-5"` on its declaration passes `--model <value>` on every native turn, resumed ones included. It is one bounded word (letters, digits and `._:/@+-`, up to 128 bytes, no spaces and no leading dash) and is accepted only on a headless implementer, only from the untracked `config.local.json`. A tracked-file declaration is ignored with a reason, and the key is tier 3: the dashboard and a settings session cannot read or change it, only the console or your editor. Unset, the argv is unchanged and Claude uses its own default. `ahub status` shows the model on the instance row as `model source`. Declarations are captured once when the hub daemon starts, so a changed or newly added `model` takes effect after a hub daemon restart (`ahub restart`); restarting only the instance keeps the old model.
6152
+ A headless Claude implementer may name its model (#844): `"model": "claude-sonnet-5-5"` on its declaration passes `--model <value>` on every native turn, resumed ones included. It is one bounded word (letters, digits and `._:/@+-`, up to 128 bytes, no spaces and no leading dash) and is accepted only on a headless implementer, only from the untracked `config.local.json`. A tracked-file declaration is ignored with a reason, and the key is tier 3: the dashboard and a settings session cannot read or change it, only the console or your editor. Unset, the argv is unchanged and Claude uses its own default. `ahub status` shows the model on the instance row as `model source`. Declarations are captured once when the hub daemon starts, so a changed or newly added `model` takes effect after a hub daemon restart (`ahub restart`); restarting only the instance keeps the old model. For a person-owned next-turn override without changing that configuration path, use [live peer model overrides](#live-peer-model-overrides-1317).
5620
6153
 
5621
6154
  Create and register the attached-branch worktree first; the hub never creates it implicitly. `ahub claude --as claude-impl` asks the hub to start the instance and returns. Idle holds no native child. Task deliveries use a persisted UUID per task: first `--session-id`, later `--resume`. Unscoped chat reuses a session only when exactly one task is in progress for the instance; otherwise it is ephemeral. Positive missing-transcript evidence starts fresh with a notice; unknown read evidence retains the id. Reset includes the per-peer session map. A child inbox read refuses a queued batch attributed to another task and leaves it queued for that task's own session.
5622
6155
 
@@ -5632,7 +6165,7 @@ Default-branch capture runs only at daemon startup when a Claude implementer is
5632
6165
 
5633
6166
  Project Git retains the core policy that clears credential.helper and core.askpass; an HTTPS push needing those helpers may fail, rather than importing credentials or relaxing that policy. Task branch/config proof reads are bounded synchronous reads (1.5 seconds per reader); slow or unknown evidence asks. The existing sandbox profile discovery is also synchronous; moving it to an asynchronous inventory proof with a shared deadline remains a follow-up. The nonce is visible in a permission response, so it proves a bounded grant rather than native-dispatch provenance.
5634
6167
 
5635
- The [native permission receipt](verification/2026-10-23-headless-claude-permissions.md) covers Claude Code 2.1.309, and the [2.1.310 receipt](verification/2026-10-26-claude-implementer-2.1.310.md) repeats it on 2.1.310 (with 2.1.309 as a control), and the [2.1.314 receipt](verification/2026-10-31-claude-implementer-2.1.314.md) repeats it and the host-wrapper procedure on 2.1.314 (with 2.1.310 as a control), and the [2.1.316 receipt](verification/2026-10-31-claude-implementer-2.1.316.md) repeats both on 2.1.316 (with 2.1.314 as a control), and the [2.1.318 receipt](verification/2026-11-05-claude-implementer-2.1.318.md) repeats both on 2.1.318 (with 2.1.316 as a control), and the [2.1.319 receipt](verification/2026-11-06-claude-implementer-2.1.319.md) repeats both on 2.1.319 (with 2.1.318 as a control), each with a deterministic loopback fixture and no real account/model call. It is not sandbox proof or a runtime receipt gate. The real account/model/person interaction remains a separate live leg.
6168
+ The [native permission receipt](verification/2026-10-23-headless-claude-permissions.md) covers Claude Code 2.1.309, and the [2.1.310 receipt](verification/2026-10-26-claude-implementer-2.1.310.md) repeats it on 2.1.310 (with 2.1.309 as a control), and the [2.1.314 receipt](verification/2026-10-31-claude-implementer-2.1.314.md) repeats it and the host-wrapper procedure on 2.1.314 (with 2.1.310 as a control), and the [2.1.316 receipt](verification/2026-10-31-claude-implementer-2.1.316.md) repeats both on 2.1.316 (with 2.1.314 as a control), and the [2.1.318 receipt](verification/2026-11-05-claude-implementer-2.1.318.md) repeats both on 2.1.318 (with 2.1.316 as a control), and the [2.1.319 receipt](verification/2026-11-06-claude-implementer-2.1.319.md) repeats both on 2.1.319 (with 2.1.318 as a control), and the [2.1.322 receipt](verification/2026-11-10-claude-implementer-2.1.322.md) repeats both on 2.1.322 (with 2.1.319 as a control), each with a deterministic loopback fixture and no real account/model call. It is not sandbox proof or a runtime receipt gate. The real account/model/person interaction remains a separate live leg.
5636
6169
 
5637
6170
  A headless Claude reviewer is run by the hub instead (task 223): declare
5638
6171
  `"claude-review": { "kind": "claude", "roles": ["reviewer"], "start_mode": "headless" }`
@@ -5770,7 +6303,7 @@ Native launcher connections retry transport timeouts/unclean closes with bounded
5770
6303
 
5771
6304
  ## amem runtime (agent-mem#13 P4)
5772
6305
 
5773
- The hub exact-pins @staix/agent-mem 0.22.1 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.
6306
+ The hub exact-pins @staix/agent-mem <!-- facts:agent-mem-pin -->0.23.1<!-- /facts:agent-mem-pin --> 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.
5774
6307
 
5775
6308
  ## Person-run backlog legs (#1176)
5776
6309
 
@@ -6344,7 +6877,7 @@ ahub worktrees tidy --confirm <fingerprint> # the person's own terminal: re-r
6344
6877
 
6345
6878
  ## Results: what a run you started left behind (#1054)
6346
6879
 
6347
- A run you started (a message you sent to a peer, from the console, `ahub say` or acon) settles into one **result** when the adapter's own signal says it ended and nothing else is pending: no queued continuation, open permission or question, owned child, running check or held delivery. Peers whose adapter declares no settle signal (Kimi in its own TUI, agy, person-typed Codex turns) leave none. Outcomes are `done`, `failed`, `limit` and `interrupted` (the hub restarted mid-run); an explicit stop by you and a budget pause leave no result. A result is **unread** until you mark it read; nothing a snapshot, `ahub status` or `ahub results` reads ever marks one.
6880
+ A run you started (a message you sent to a peer, from the console, `ahub say` or acon) settles into one **result** when the adapter's own signal says it ended and nothing else is pending: no queued continuation, open permission or question, owned child, running check or held delivery. Peers whose adapter declares no settle signal (agy, person-typed Codex turns) leave none; Kimi in its own TUI leaves one only when started with `ahub kimi` on the verified Kimi 2.5.2 (see [Kimi in its own TUI](#kimi-in-its-own-tui)). Outcomes are `done`, `failed`, `limit` and `interrupted` (the hub restarted mid-run); an explicit stop by you and a budget pause leave no result. A result is **unread** until you mark it read; nothing a snapshot, `ahub status` or `ahub results` reads ever marks one.
6348
6881
 
6349
6882
  - `ahub results [--unread]` lists them, newest first, unread ones marked `*`: id, `<peer>: <outcome word>` (a private result is `a private result`), when it settled and how long it ran. It prints no prompt and no reply.
6350
6883
  - `ahub results --read <id>` marks one read (it must exist and be unread). `--read-all` marks every unread result of the project. `--unread-last` lights the most recent read one again by deleting its receipt.
@@ -6405,13 +6938,13 @@ Corrupt or unreadable provenance stays unknown and held. The status next step di
6405
6938
 
6406
6939
  A ready memory profile does not prove a successful sync. Read the separate automatic-sync result and timestamp in `ahub status` or Memory. It resets to not run after daemon restart; it is not a machine-global record of manual CLI attempts. Missing remote configuration is the neutral `not-configured` state; an interrupted/stopped attempt is neutral `stopped`. Both keep their safe next step and produce no failure log under `quietSyncError`.
6407
6940
 
6408
- For policy-declined rows, a person runs `ahub memory declined --json` to inspect IDs and safe rule categories, never note text. The pinned agent-mem 0.22.1 public `inspectSyncPolicy` API bounds physical outbound inspection for shared-v1 and generation profiles. A complete result supplies the declined IDs and rules; `complete:false` means the scan is unavailable, stale or over its diagnostic bound, not zero declined rows. The command stays read-only and rechecks its profile binding. No migration or policy edit is performed automatically.
6941
+ For policy-declined rows, a person runs `ahub memory declined --json` to inspect IDs and safe rule categories, never note text. The pinned agent-mem 0.23.1 public `inspectSyncPolicy` API bounds physical outbound inspection for shared-v1 and generation profiles. A complete result supplies the declined IDs and rules; `complete:false` means the scan is unavailable, stale or over its diagnostic bound, not zero declined rows. The command stays read-only and rechecks its profile binding. No migration or policy edit is performed automatically.
6409
6942
 
6410
- The hub projects verified withheld/exported counts when a trusted SDK sync returns a successful placement result. That projection is covered by an injected-result fixture, not an activated-store sync. Agent-mem 0.22.1 requires a fresh `placementAttestation` even for an already active v3 store; the default hub supplies no such integration and therefore cannot perform that sync yet. Activation alone does not enable the hub's automatic sync, and no attestation is fabricated. A nonzero withheld count in a successful result is not a transport failure and does not mean those rows were deleted, rewritten or published. Inspect the IDs and rules before deliberately changing any source or approved policy; a forget operation does not remove its original text from physical history.
6943
+ The hub projects verified withheld/exported counts when a trusted SDK sync returns a successful placement result. That projection is covered by an injected-result fixture, not an activated-store sync. Agent-mem requires a fresh `placementAttestation` even for an already active v3 store; since 0.35.0 the daemon builds one with the package's own `createPlacementAttestation` on every sync pass and supplies no writer facts of its own, so no attestation is fabricated. A refused attestation is the closed cause `writer` in status, the dashboard and the log: its category, its cause class (`missing`, `changed`, `unavailable`) and the next step (repair the amem install and its host pin, then a person runs `amem migrate --sync-placement --dry-run`). Activation remains a person-run action. A nonzero withheld count in a successful result is not a transport failure and does not mean those rows were deleted, rewritten or published. Inspect the IDs and rules before deliberately changing any source or approved policy; a forget operation does not remove its original text from physical history.
6411
6944
 
6412
- A legacy store without active per-row placement still blocks a sync containing declined rows. Status names inactive placement and the person-only `amem migrate --sync-placement --dry-run` preview, which requires every local writer installation through repeatable `--writer-root` flags. It also names the missing host `placementAttestation` and keeps `ahub memory declined` as the safe inspection step. The native CLI supports activation from 0.22.0; the pinned core is 0.22.1. See the [activation preview and prerequisites](memory.md#automatic-sync-health-1173) before any separately authorized apply. Preview writes nothing, and activation does not migrate layouts, change policy or automatically raise a format floor. The hub does not invoke it or fabricate its proof.
6945
+ A legacy store without active per-row placement still blocks a sync containing declined rows. Status names inactive placement and the person-only `amem migrate --sync-placement --dry-run` preview, which requires every local writer installation through repeatable `--writer-root` flags. It keeps `ahub memory declined` as the safe inspection step. The native CLI supports activation from 0.22.0; the pinned core is 0.23.1. See the [activation preview and prerequisites](memory.md#automatic-sync-health-1173) before any separately authorized apply. Preview writes nothing, and activation does not migrate layouts, change policy or automatically raise a format floor. The hub does not invoke it or fabricate its proof.
6413
6946
 
6414
- The bounded diagnostic addresses #1173 AC4; AC5 has result projection only. The core activation command is available, while legitimate fresh host-attestation integration remains necessary for default-host v3 sync. #1173 remains open for that integration.
6947
+ The bounded diagnostic addresses #1173 AC4; AC5 has result projection and the host attestation. Whether an activated store syncs on a person's machine is not established by the isolated fixtures.
6415
6948
 
6416
6949
  For a transport or unknown failure, run `ahub memory sync` as a person to see the local diagnostic. Logs keep only the cause class and known declined count, once per unchanged failure episode. Complete declined-ID sets can distinguish a changed failure without placing IDs or bodies in the log; incomplete inspection keeps the set unknown. Existing write-time screening and profile/privacy fences remain. SDK adoption and isolated fixtures do not prove live rollout or a successful sync of the person's memory home.
6417
6950
 
@@ -6444,3 +6977,254 @@ Upgrade the broker, then every room member to a codec-capable release, then reco
6444
6977
  `ahub status` distinguishes local room storage opening from a failed broker
6445
6978
  connection; direct `ahub room status` failures expose only closed cause/action
6446
6979
  metadata. A healthy online link needs no broker repair advice.
6980
+
6981
+ ## Optional Orca companion contract (#1198 O0)
6982
+
6983
+ The [versioned O0 contract](../integrations/orca/host-contract-v1.md) and its
6984
+ [capability matrix](../integrations/orca/host-contract-v1.json) describe the
6985
+ installed Orca 1.4.252 declarations, pinned primary references and reusable
6986
+ fake-host/CLI fixtures. O0 installs no plugin and changes no ahub runtime.
6987
+ Worker and frame APIs differ: workspace inventory/navigation are worker-only;
6988
+ focused context lacks the exact workspace id, execution host and real root
6989
+ needed to select a project. Names and branches are never selection authority.
6990
+
6991
+ Terminal focus remains unsupported until a plugin terminal id can be bound to a
6992
+ current same-host CLI handle. Workspace navigation and manual `ahub console` /
6993
+ `ahub ui` commands remain available independently of a companion. No remote
6994
+ loopback URL is opened locally. Native local, remote, Windows and mobile results
6995
+ are recorded separately; declarations and fake results do not qualify them.
6996
+ The three baseline journeys count procedure actions only, with observed native
6997
+ counts still unknown. O1 must record actual open/disable/standalone UI proof.
6998
+
6999
+ ### Optional Orca companion: chooser and entry points (#1198 O1)
7000
+
7001
+ [`integrations/orca/`](../integrations/orca/README.md) holds the optional companion: a manifest, a
7002
+ trusted worker and a sidebar panel. It is not in the npm package, no ahub source refers to it, and ahub and
7003
+ Orca keep all their own functionality without it. It lists Orca's workspaces, you select one by its exact
7004
+ id (a name or branch never selects), and it opens an existing screen: `ahub ui` run as a short-lived child
7005
+ with the folder as its working directory only, or a terminal created in the workspace running `ahub console`
7006
+ or `acon ui`. A selection binds the id, host id, kind and the folder's real path on this Mac and is
7007
+ re-checked against a complete inventory before every effect; a duplicate, missing, truncated or changed
7008
+ identity, or a host not declared to be this Mac, refuses visibly and runs nothing. It never passes `--json`
7009
+ to `ahub ui`, never approves, assigns, completes, retries, stops or upgrades anything, and keeps no CLI
7010
+ output, one-time link or task text in plugin state or logs.
7011
+
7012
+ Install is explicit and in an isolated Orca profile first (`orca plugin validate`, `orca plugin dev load`
7013
+ with the fingerprint Orca prints); remove it with `orca plugin disable` and `orca plugin dev unload`. The
7014
+ fake-host checks are `test/orca-companion-entry.test.ts` and `test/orca-companion-independence.test.ts`.
7015
+ A **Show status** button (O2) reads the selected project's public status on a click only: version, tasks by
7016
+ state, and peer state with queue length, copied from `ahub status --json` through a closed allowlist so no
7017
+ free-text field (task title, a peer's current line, a notice, a path) is read. Offline, unavailable version,
7018
+ partial, stale and unknown stay distinct states; there is no poller, no transcript read and no terminal read.
7019
+ There is **no terminal focus**: O0 found no proof that a plugin terminal id names an `orca terminal switch`
7020
+ handle, so the companion never calls it and never replaces a terminal.
7021
+
7022
+ **Platforms (O3).** [`support-matrix.json`](../integrations/orca/support-matrix.json) records one verdict per
7023
+ combination and a test enforces that `supported` needs a receipt that no longer says NOT RUN. Today none is
7024
+ supported: macOS local is fixture-only, and remote, Windows, browser or mobile and Linux are unsupported, each
7025
+ with a person-run receipt template under `integrations/orca/receipts/`. A remote workspace is refused before
7026
+ anything runs and shows the existing remote console command to run on that host; a remote loopback link is never
7027
+ opened locally. On Windows every workspace is refused (`unsupported_platform`). Where a client has no external
7028
+ navigation no link is held. Mobile availability is not inferred from SSH reachability or from Orca's mobile
7029
+ pairing option.
7030
+
7031
+ **The native open and disable receipt is a person-run leg that has not been run**
7032
+ ([`native-receipt.md`](../integrations/orca/native-receipt.md)): the action counts in the companion's README
7033
+ are procedure counts, remote, Windows and mobile stay unqualified (O3), and there is no focus-existing-console
7034
+ action.
7035
+
7036
+ ### Orca terminal focus evidence recheck (#1198 O4)
7037
+
7038
+ The [O4 host-contract evidence](../integrations/orca/host-contract-v1.md#terminal-focus-recheck-o4-2026-11-09)
7039
+ records installed Orca 1.4.254. Generated plugin types match the O0 hashes; neither those types nor the
7040
+ shipped host declarations expose terminal focus or equate plugin terminalId with a CLI handle. The
7041
+ read-only CLI inventory was complete for its local host scope and carried runtime, incarnation and
7042
+ workspace identity fields, but no plugin-id mapping. Those freshness fields alone do not prove a binding.
7043
+
7044
+ Focus remains unsupported and runtime code is unchanged. Use the existing `ahub console` / `acon ui`
7045
+ command or select the terminal manually. No plugin was loaded into the everyday profile and no live
7046
+ terminal was switched, driven or replaced. The separate [O4 native receipt rows](../integrations/orca/native-receipt.md#terminal-focus-recheck-o4-person-run-leg)
7047
+ remain person-run **NOT RUN**; source checks, hosted CI and native acceptance are separate evidence.
7048
+
7049
+ ## Herdr companion host contract (#1199 H0)
7050
+
7051
+ [`integrations/herdr/host-contract-v1.md`](../integrations/herdr/host-contract-v1.md) freezes what an optional Herdr mod may
7052
+ rely on, taken from the installed app's own declarations (Herdr 0.1.13, herdr-core 0.1.18, hashes recorded), and records
7053
+ what was not observed. It changes no ahub runtime and installs nothing. `exec` is bounded (30 s, 8 MiB) and used for
7054
+ reads only. The pane's machine and cwd are a navigation hint: the project root comes from `ahub projects --json` read on
7055
+ that same machine, and a remote cwd is never resolved on this Mac. Herdr has no install or disable command, so a mod is
7056
+ a folder the person adds and removes, and what removal does to a shown copy is for the H1 native receipt. Existing
7057
+ terminal focus is unbuilt until a Herdr terminal can be mapped to an ahub console. The three baseline journeys are
7058
+ procedure counts that have not been run in a native window.
7059
+
7060
+ ### Who owns a pull-only peer (#1310)
7061
+
7062
+ `ahub status` (and `--json`) names the current owner of an attached channel peer, beside its standby rows: `<peer> owner: pid <n>; attached <age>; native session <id>`. The pid is what the owner's plugin reported at hello (`pid unknown` when it reported none or an unusable one). `attached` is when the attach finished, not when the hello arrived. The native session reads `unverified` until the hub has verified one through the native-facts path (today agy), and an id that is not a short plain token is never shown. The owner line is absent while a newer session is still arriving, while the peer is offline, and after a detach, so a claimant is never shown as attached, and a takeover replaces the whole line at once. Use it to see who holds a queued peer before running `ahub peer takeover`. It is display only: it never decides delivery, takeover or permission, and `status.json` on disk does not carry it.
7063
+
7064
+ ### Herdr project and machine entry (#1199 H1)
7065
+
7066
+ [`integrations/herdr/`](../integrations/herdr/README.md) is an optional mod: three files the person copies to
7067
+ `mods/ahub` in the Herdr app home, which Herdr reads live and which declares `place: none`, so no layout changes.
7068
+ It lists the focused space's machine and folder and that machine's registered projects, and opens nothing until a
7069
+ row is selected. Open console starts one new tab in the selected space running `ahub --project <id> console`, with the project root
7070
+ as the tab's folder. Before every effect it re-reads the space, the machine and the registrations and runs
7071
+ `ahub status --json` from the project folder, and refuses a changed, duplicate, offline or unready target. The local
7072
+ dashboard runs the existing `ahub ui` and keeps no link or ticket. A remote space gets the console tab or a copyable
7073
+ command, never a dashboard link. Remove it by deleting the folder. It starts, stops and upgrades nothing and is not an
7074
+ ahub dependency. `herdr-app check` accepts it in a scratch home; the native open and disable receipt is a person-run
7075
+ leg that has not been run.
7076
+
7077
+ ### Herdr status card and existing-console focus (#1199 H2)
7078
+
7079
+ The Herdr entry also offers three read-only actions. **Status** reads `ahub --project <id> status --json` from the project folder on the
7080
+ selected machine, on a click only, and shows task counts, peer states and queue lengths and the hub version from a closed
7081
+ allowlist, so no task or note text reaches it. Missing CLI, timeout, an exit error, no hub running, oversized or
7082
+ unrecognized output, an old hub, a partial reading and a stale one are distinct states. **Focus console** and **Peek
7083
+ console** (this computer only) accept a terminal only after `hc get` shows it live and running `ahub console` for the
7084
+ selected project, exactly one match, rechecked right before a single `pane.focus` or `terminal.peek`, and a focus is
7085
+ believed only after Herdr's `focused()` shows it. They never start, replace, type into or close a terminal, and
7086
+ Herdr's own working, blocked, done and idle words are shown, never sent to ahub. A console started through a wrapper is
7087
+ not recognized and the person uses Open console. The native focus receipt is a person-run leg that has not been run.
7088
+
7089
+ ### Herdr platform support matrix (#1199 H3)
7090
+
7091
+ [`integrations/herdr/support-matrix.json`](../integrations/herdr/support-matrix.json) records one verdict per combination and a
7092
+ test enforces that `supported` needs a receipt that no longer says NOT RUN. Today none is supported: macOS local is
7093
+ fixture-only, and remote, Windows, Linux and browser or mobile are unsupported, each with a person-run receipt template under
7094
+ `integrations/herdr/receipts/`. The remote console workflow is designed (read on that machine, new tab in that machine's space,
7095
+ no dashboard link, no remote focus) and exercised against the fixture only, because no remote machine is configured on the
7096
+ machine it was built on. On Windows every action refuses. Mobile is not inferred from SSH reachability or a machine being ready.
7097
+ [`baseline-comparison.md`](../integrations/herdr/baseline-comparison.md) lays the entry's journeys beside the H0 baseline as
7098
+ procedure counts: the entry costs one more action than the baseline when the pane is already in the right project, and its value
7099
+ is the verified machine and root, not a shorter path.
7100
+
7101
+ ## Bounded visual attachments (#1058)
7102
+
7103
+ `hub_visual` lets an ordinary local peer or the local worker annotate public work
7104
+ with a Mermaid diagram, comparison, table or before/after view. It is a separate
7105
+ tool, not extra fields in `hub_send`. Its input is `{payload, task?, to?}` and its
7106
+ receipt is `visual <id>`. `hub_visual_show {id}` explicitly reads a retained public
7107
+ record in this project. Read-only roles may read; publication still requires the
7108
+ ordinary shared-note capability and no-writes admission. Isolated fresh-reviewer
7109
+ MCP remains limited to `hub_review` and `hub_task_show`.
7110
+
7111
+ The stored payload is the exact acon `VisualPayload` shape. acon owns `ui.visual`,
7112
+ its sandboxed Mermaid renderer, table kit and asset route; the hub imports types
7113
+ only. The standalone dashboard shows a readable title and text/source. Stream
7114
+ stubs and task details load a visual on demand. A missing/older acon visual kit
7115
+ keeps the fallback rather than loading another renderer into the hub.
7116
+
7117
+ ```json
7118
+ {"payload":{"kind":"mermaid","title":"Review flow","source":"flowchart TD\nPlan --> Implement --> Review"}}
7119
+ ```
7120
+
7121
+ The four kinds are `mermaid` (`source`, optional `title`), `comparison` (2-6
7122
+ `options`, optional `title`), `table` (`columns`, `rows`, optional `caption`) and
7123
+ `beforeAfter` (`before`, `after`, optional `caption`). Each comparison option has a
7124
+ title, optional summary, up to 10 pros and 10 cons, and optional `recommended`.
7125
+ Tables allow at most 500 rows and 12 columns. Column fields are `key`, `label`,
7126
+ optional `align: start|end` and `format: text|number|percent`; percent values use
7127
+ percent units as acon does. Cells are strings or finite numbers.
7128
+
7129
+ Mermaid is self-contained source without a Markdown fence, at most 20 KiB UTF-8.
7130
+ The first non-comment line starts with a supported diagram keyword. This is only
7131
+ a header check, not parsing proof: acon shows source with a notice when its parser
7132
+ fails or the renderer times out. The hub adds no parser or Mermaid dependency.
7133
+
7134
+ Hub admission also bounds the entire serialized payload to 1 MiB and each text
7135
+ field: title 300 bytes, caption 2000, alt 1000, text side 20 KiB, option summary
7136
+ 4000, each pro/con 2000, table cell 4000, column key 128 and file path 4096. These
7137
+ are hub storage/admission ceilings, distinct from acon's payload type. Every text
7138
+ field and record key is screened before sanitization and again afterwards; an
7139
+ unsafe key is refused rather than renamed. Oversized or malformed data is refused
7140
+ with the field and repair step, never silently truncated or partially stored.
7141
+
7142
+ A before/after side is either `{text}` or a project path with alt text:
7143
+
7144
+ ```json
7145
+ {"payload":{"kind":"beforeAfter","caption":"Layout change","before":{"path":"artifacts/before.png","alt":"Previous layout"},"after":{"path":"artifacts/after.png","alt":"Updated layout"}}}
7146
+ ```
7147
+
7148
+ Paths are relative to the canonical hub project, not an inferred peer worktree.
7149
+ WebP asset display requires acon 0.1.7 or later (agent-console#81). Older 0.1.3/0.1.4 hosts refuse that MIME type; use PNG or JPEG there. The hub adds no transcoder.
7150
+
7151
+ Only a guarded public PNG, JPEG or WebP of at most 8 MiB is accepted; extension
7152
+ and byte signature must agree. SVG, secret/PII paths, hub state, outside paths,
7153
+ links swapped during inspection and two names for the same physical file refuse.
7154
+ The hub replaces paths in the payload with opaque asset ids and records its own
7155
+ hash. A later asset read repeats the current guard and hash checks; a changed or
7156
+ newly private image is refused as changed since posted. Post it again using a
7157
+ current public file. A copied visual id in another project's database does not
7158
+ select that project's asset: the acon provider binds the project and instance,
7159
+ then rechecks metadata/privacy after the guarded read before returning bytes.
7160
+
7161
+ The default audience is the console, with an FYI chat stub. Explicit `to` uses
7162
+ local addressed delivery, including `to: "user"` for the console; an empty list
7163
+ broadcasts to local peers. An explicit
7164
+ remote recipient refuses the whole call, rather than silently dropping that
7165
+ target. The stub carries only `[visual <id>] <kind>: <title or caption>` and
7166
+ `refs.visual`. Peers receive no source, table/comparison body or inline image.
7167
+ This feature adds no visual transport over the cross-network broker.
7168
+
7169
+ Publication is refused in a private turn or on a PII task, including when policy
7170
+ or task privacy changes during an awaited image read. Current privacy also gates
7171
+ show, snapshots and assets after posting. Visual file access combines accepted
7172
+ runtime restrictions with the normally merged on-disk candidate policy. A pending
7173
+ stricter path rule protects new visual access immediately; a pending weaker file
7174
+ cannot remove the accepted restriction. Native sessions retain their existing
7175
+ configuration-adoption boundary. The raw visual tool input/result is
7176
+ excluded from observer capture even when the call is refused; amem/delivery
7177
+ capture retains only the sanitized stub. `events.jsonl` records only id, kind,
7178
+ payload byte count, image count and optional task id, never title/source/path or
7179
+ image bytes. A visual is explanatory material, not approval or completion proof,
7180
+ and a visual-only turn does not clear the task's no-write advisory.
7181
+
7182
+ Periodic snapshots and task lists read bounded metadata only. Full payload
7183
+ screening happens on an explicit show; image reads still check current privacy,
7184
+ existence and hash at the asset route. A moved or deleted image leaves the public
7185
+ caption/text/alt record readable but cannot serve its old bytes.
7186
+
7187
+ A recovery refusal asks you to retry after `ahub status` shows the hold released.
7188
+ Role or membership refusals name the missing authority, and a task/config change
7189
+ asks for a retry. If the privacy screen is unavailable, restore the configured screen and retry;
7190
+ if the visual exceeds its input limit, shorten the text first. Private context, paths and pattern hits
7191
+ retain a uniform privacy refusal. Rate limits are checked before expensive
7192
+ screening or file reads and checked again at publication.
7193
+
7194
+ Task-bound visuals live with their task. Unbound records expire after 30 days;
7195
+ `visuals.retention_days` is an integer setting from 1 to 3650 days, applied live,
7196
+ with the normal authority guard on raising retention. Expired/removed records
7197
+ are unavailable even before a maintenance prune runs. No documentation stamp or
7198
+ real-home policy change is performed by posting a visual.
7199
+
7200
+ ## Agent-authored records
7201
+
7202
+ Headless Record handling follows amem's effective machine and repository policy. Set `records: false` in the amem configuration to disable instruction, capture and Record preference; repository policy can only narrow machine policy. There is no hub-only override. Private or unverified contexts fail closed for capture without preventing ordinary answer routing.
7203
+
7204
+ Upgrade every amem consumer sharing a memory home together, including native CLI hooks and embedded hub/plugin copies. A 0.22.1 hook drain silently discards Record format-3 spool entries without a counted loss, and its config parser refuses the `records` key even when false, so set `records: false` only after every consumer is upgraded. The hub exact-pins 0.23.1 and uses its public `recordsEnabled` accessor for the active home and execution repository; it does not upgrade the other consumers automatically. No real home is migrated by the feature's fixtures.
7205
+
7206
+ Count-only `records capture`, `records forwarded`, `records brief` and `records recall` diagnostics report accepted/dropped rows or before/after UTF-8 bytes. Record text, anchors, native session IDs and credentials are absent from these diagnostics. An absent registry proof or an unavailable Record source preserves old note content; a privacy or policy change during a read withholds the stale block.
7207
+
7208
+ ## Claude Code companion contract (#1338 C0)
7209
+
7210
+ The [versioned host contract](../integrations/claude-code/host-contract-v1.md) freezes the seven C0 questions and two counted baseline procedures. Claude Code 2.1.319 and a scratch agent-hub 0.35.0 were probed with isolated HOME and CLAUDE_CONFIG_DIR, outside Git, with no Claude credentials copied or model turns. The final probes used an explicit noncredential environment allowlist after the initial inherited environment was corrected (receipt records the distinction). Real settings.json hashes matched at the isolated native-probe boundary only. A later read-only pre-push audit differed (confirmed 2026-11-09T08:12:37Z, cause UNKNOWN); the contract and receipt retain both observations without attributing the change.
7211
+
7212
+ Agent-marked direct CLI status, board and project reads succeeded; calling them from a live mod's `$.process` remains unproven. Channel delivery origins, gesture origins, panes/bands, statusLine coexistence and minimum mod version remain unproven. The status-line and channel-delivery surfaces are dropped pending proof; `ahub tail` is excluded (person-only refusal and free text). No surface is supported by C0, and every native surface receipt remains NOT RUN. No native UX improvement is claimed by passing fixture tests.
7213
+
7214
+ C1 now provides a separate [fixture-only read-only mod](../integrations/claude-code/README.md) against declared 2.1.319 types: pane, `/hub`, `/hub refresh` and `/hub console` (prints only). Native installation and the terminal receipt remain person-run NOT RUN; no supported/minimum host version is claimed. The C0 capability verdicts remain unchanged. C1 read-set revision 2 uses one project-scoped `status --json` process for version, peers and task-state counts; it never requests board or global project JSON. Task/role lists are unavailable. Binding checks canonical root and pinned daemon projectId; registry existence/uniqueness remains unverified, as stated in the amended AC1 and host contract. Reviewer-measured old board/project payload sizes and the separate source-CLI refresh measurement are recorded there, without raw packets or native UI claims. The existing separate-terminal fallback is `ahub --project <quoted root> console` for attention, or `ahub --project <quoted root> status` for peer liveness. Both baseline procedures count two actions from a focused Claude session (open terminal, submit command), with selection or consent counted separately. Install/remove, a one-action attention journey, disable independence and on/off model-input equality require later native receipts. No channel plugin, runtime, real statusLine or statusline-tee was changed.
7215
+
7216
+ ### Claude Code companion C2 declared views (#1338)
7217
+
7218
+ The optional [companion](../integrations/claude-code/README.md) adds a declared AbovePrompt attention band for fresh positive held-count, budget-record and first-active-permission facts, plus compact ToolUse views for four hub tools with the unchanged original behind a bounded session toggle. Missing fields are gaps in the pane, never waiting lines. Exact offline-owned-in_progress work cannot be inferred from current status WIP or offline-summary fields. The same single status read and canonical-root/pinned-projectId ceiling apply; no status line, channel row or additional CLI read is added.
7219
+
7220
+ Actual registered fake-host chains compare model results, queued channel text and composed system sections with the mod on/off, while render/toggle views change; counterfactual mutations prove the comparator can detect all three kinds of drift. This is source evidence. The native needs_review band raised/cleared, row UX, action counts and disable proof remain person-run NOT RUN; support remains fixture_only.
7221
+
7222
+ ### Claude Code companion C3 manual qualification (#1338)
7223
+
7224
+ The [manual-only placement procedure](../integrations/claude-code/README.md#manual-session-only-placement) uses a scratch folder and person-run session `--plugin-dir` opt-in in isolated HOME/config with a scratch hub. Copying files is not a registered CLI installation. Exit and restart without the flag to disable; discard only the owned scratch copy to remove. No persistent installation identifiers or second marketplace entry are qualified. The separate channel entry stays unchanged.
7225
+
7226
+ The [matrix](../integrations/claude-code/support-matrix.json) keeps terminal/desktop fixture_only and VS Code/mobile unsupported for the full AbovePrompt journey, without claiming their pane/tool rows proven or impossible. Each surface has its own native receipt, all NOT RUN; no native supported version or minimum is claimed. The support test rejects missing, placeholder, version/head-mismatched or incomplete receipts. Source declarations, fake-host equality and isolated static validation are separate from native painting, disable independence and version-boundary evidence.
7227
+
7228
+ For "what needs me?", the complete separate-console baseline is 2 procedure actions (open terminal, submit command). A fresh known-subset band can be noticed with 0 further actions or requested by 1 submitted refresh; complete console follow-up is still 2. Target selection/consent is additional. No observed action count or UX reduction is claimed until the person records it in the matching surface receipt.
7229
+
7230
+ C3's guarded static CLI leg is UNVERIFIED/person-run: version-only diagnostic child exit -6 / signal 6, zero stdout/stderr bytes, with unchanged file fences and no owned group remaining. Cause is UNKNOWN; `plugin validate` was NOT RUN and probing stopped without relaxing isolation. The path label 2.1.321 is metadata only, separate from the immutable 2.1.319 declarations and historical validation. No native support or minimum follows.