@staix/agent-hub 0.38.0 → 0.40.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 (195) hide show
  1. package/CHANGELOG.md +84 -0
  2. package/README.md +28 -12
  3. package/docs/adding-an-ai-tool.md +7 -5
  4. package/docs/agent-notes/README.md +23 -0
  5. package/docs/agent-notes/adapters.md +9 -5
  6. package/docs/agent-notes/benchmarks.md +2 -0
  7. package/docs/agent-notes/budget.md +9 -0
  8. package/docs/agent-notes/bus.md +1 -0
  9. package/docs/agent-notes/daemon.md +21 -9
  10. package/docs/agent-notes/local-worker.md +4 -2
  11. package/docs/agent-notes/security-review.md +56 -0
  12. package/docs/agent-notes/tasks.md +22 -6
  13. package/docs/agent-notes/tests.md +10 -9
  14. package/docs/contracts/companion-cli-v1.json +4 -0
  15. package/docs/design/adapters.md +142 -0
  16. package/docs/design/agent-hub-architecture.md +46 -1
  17. package/docs/design/agent-hub.md +10 -0
  18. package/docs/design/bus.md +7 -0
  19. package/docs/design/cli-output.md +183 -0
  20. package/docs/design/execution-reference.md +6 -1
  21. package/docs/design/roadmap.md +191 -0
  22. package/docs/design/task-board.md +185 -5
  23. package/docs/dogfood.md +30 -9
  24. package/docs/events.md +7 -7
  25. package/docs/memory.md +5 -5
  26. package/docs/operations.md +315 -54
  27. package/docs/profiles.md +101 -8
  28. package/docs/quickstart.md +47 -6
  29. package/docs/research.md +6 -3
  30. package/docs/roles.md +52 -0
  31. package/docs/sdlc.md +190 -2
  32. package/docs/security.md +90 -15
  33. package/docs/text-projection.md +1 -0
  34. package/docs/verification/2026-11-13-claude-implementer-2.1.323.md +59 -0
  35. package/docs/verification/2026-11-13-codex-01672-reviewer-isolation.md +69 -0
  36. package/docs/verification/2026-11-14-0.39.0.md +51 -0
  37. package/docs/verification/2026-11-14-codex-0169-reviewer-isolation.md +70 -0
  38. package/docs/verification/2026-11-14-codex-0169-reviewer-tool-call.md +48 -0
  39. package/docs/verification/2026-11-14-pi-152-compat.md +45 -0
  40. package/docs/verification/2026-11-15-0.40.0.md +39 -0
  41. package/docs/verification/2026-11-16-pi-loopback-1447.md +39 -0
  42. package/docs/verification/pi-152-model-free.ts +57 -0
  43. package/docs/verification/pi-152-native.mjs +21 -0
  44. package/docs/verified.json +48 -25
  45. package/package.json +4 -4
  46. package/plugins/agent-hub/.claude-plugin/plugin.json +1 -1
  47. package/plugins/agent-hub/kimi-hook.js +2266 -530
  48. package/plugins/agent-hub/kimi-review-policy-worker.js +16 -11
  49. package/plugins/agent-hub/server.js +2423 -645
  50. package/src/adapters/acp-model-policy.ts +1 -1
  51. package/src/adapters/acp-session-model.ts +35 -0
  52. package/src/adapters/acp.ts +14 -0
  53. package/src/adapters/agy/definition.ts +2 -2
  54. package/src/adapters/agy/hooks.ts +7 -0
  55. package/src/adapters/claude-channel.ts +1 -1
  56. package/src/adapters/claude-implementer.ts +8 -0
  57. package/src/adapters/claude-print-child.ts +26 -2
  58. package/src/adapters/claude-print.ts +4 -0
  59. package/src/adapters/codex-appserver.ts +90 -16
  60. package/src/adapters/codex-review-isolation.ts +63 -17
  61. package/src/adapters/compat.ts +10 -10
  62. package/src/adapters/conformance/fakes/acp-server.ts +11 -2
  63. package/src/adapters/conformance/fakes/app-server.ts +5 -1
  64. package/src/adapters/conformance/fakes/pi-rpc.ts +1 -1
  65. package/src/adapters/definitions/builtin-metadata.ts +12 -12
  66. package/src/adapters/definitions/native-cli-jcode-mcp.ts +18 -3
  67. package/src/adapters/definitions/native-config-defaults.ts +1 -1
  68. package/src/adapters/definitions/native-config-policy.ts +1 -1
  69. package/src/adapters/definitions/native-quota.ts +122 -0
  70. package/src/adapters/definitions/native-recovery.ts +3 -0
  71. package/src/adapters/definitions/qwen.ts +2 -2
  72. package/src/adapters/kimi-review.ts +23 -0
  73. package/src/adapters/kimi-wire-usage.ts +39 -16
  74. package/src/adapters/local-worker.ts +9 -4
  75. package/src/adapters/pi-state-model.ts +12 -0
  76. package/src/adapters/pi.ts +76 -11
  77. package/src/adapters/print-result-model.ts +24 -0
  78. package/src/adapters/registry-types.ts +12 -2
  79. package/src/adapters/registry.ts +19 -2
  80. package/src/adapters/reviewer-print.ts +132 -16
  81. package/src/adapters/role-eligibility.ts +99 -0
  82. package/src/adapters/same-directory.ts +16 -0
  83. package/src/cli/agy-mcp.ts +18 -7
  84. package/src/cli/answer-args.ts +11 -3
  85. package/src/cli/console-question.ts +1 -1
  86. package/src/cli/console-state.ts +98 -11
  87. package/src/cli/console.ts +6 -2
  88. package/src/cli/error-format.ts +19 -0
  89. package/src/cli/free-text.ts +20 -0
  90. package/src/cli/handoff-args.ts +1 -1
  91. package/src/cli/help.ts +350 -30
  92. package/src/cli/identity-audit.ts +8 -7
  93. package/src/cli/identity.ts +27 -4
  94. package/src/cli/init-prompt.ts +31 -2
  95. package/src/cli/init-roles.ts +156 -0
  96. package/src/cli/init-settings.ts +24 -2
  97. package/src/cli/init.ts +232 -17
  98. package/src/cli/main.js +2 -2
  99. package/src/cli/main.ts +250 -69
  100. package/src/cli/model.ts +1 -1
  101. package/src/cli/output-standard.ts +56 -0
  102. package/src/cli/output.ts +199 -9
  103. package/src/cli/preview.ts +1 -1
  104. package/src/cli/recovery-launch.ts +114 -0
  105. package/src/cli/recovery-package.ts +14 -7
  106. package/src/cli/recovery-version-preflight.ts +104 -0
  107. package/src/cli/roadmap.ts +215 -0
  108. package/src/cli/role-doctor.ts +39 -0
  109. package/src/cli/sdlc-output.ts +66 -1
  110. package/src/cli/smoke-pty-bridge.ts +7 -24
  111. package/src/cli/study-output.ts +54 -0
  112. package/src/cli/study.ts +14 -1
  113. package/src/cli/task-output.ts +3 -1
  114. package/src/cli/terminal-recovery.ts +14 -0
  115. package/src/cli/upgrade-presentation-flags.ts +2 -2
  116. package/src/cli/upgrade-presentation.ts +4 -0
  117. package/src/cli/upgrade-restore-state.ts +12 -3
  118. package/src/cli/upgrade-runtime.ts +40 -2
  119. package/src/cli/upgrade.ts +8 -4
  120. package/src/hub/advisor-survey.ts +139 -0
  121. package/src/hub/audit-source.ts +66 -0
  122. package/src/hub/board.ts +677 -15
  123. package/src/hub/budget.ts +54 -4
  124. package/src/hub/bus.ts +9 -0
  125. package/src/hub/check-runner.ts +3 -4
  126. package/src/hub/ci-watch.ts +19 -4
  127. package/src/hub/conductor.ts +14 -8
  128. package/src/hub/config-apply.ts +2 -1
  129. package/src/hub/config-edit-host.ts +77 -5
  130. package/src/hub/considered-findings.ts +47 -0
  131. package/src/hub/control-client.ts +1 -1
  132. package/src/hub/daemon.ts +585 -98
  133. package/src/hub/deliverable-files.ts +17 -1
  134. package/src/hub/dogfood-profile.ts +3 -2
  135. package/src/hub/events.ts +25 -4
  136. package/src/hub/execution-reference.ts +1 -1
  137. package/src/hub/folder-trigger.ts +11 -4
  138. package/src/hub/github-import.ts +81 -0
  139. package/src/hub/hub-tools.ts +117 -20
  140. package/src/hub/install-policy.ts +23 -0
  141. package/src/hub/kimi-usage.ts +34 -2
  142. package/src/hub/lifecycle-schema.ts +3 -3
  143. package/src/hub/memory-profile.ts +9 -1
  144. package/src/hub/memory-sync-state.ts +1 -0
  145. package/src/hub/model-overrides.ts +2 -1
  146. package/src/hub/no-writes.ts +5 -0
  147. package/src/hub/operational-authority.ts +8 -1
  148. package/src/hub/operational-view.ts +6 -2
  149. package/src/hub/peers.ts +2 -0
  150. package/src/hub/pi-failure.ts +7 -0
  151. package/src/hub/plan-conformance.ts +20 -2
  152. package/src/hub/question-desk.ts +26 -7
  153. package/src/hub/questions.ts +33 -5
  154. package/src/hub/quota-account.ts +34 -0
  155. package/src/hub/recovery-policy.ts +18 -4
  156. package/src/hub/research-evidence.ts +51 -3
  157. package/src/hub/research.ts +77 -13
  158. package/src/hub/restart.ts +21 -0
  159. package/src/hub/review-budget.ts +88 -0
  160. package/src/hub/review-findings.ts +93 -12
  161. package/src/hub/reviewer-pool-config.ts +6 -2
  162. package/src/hub/reviewer-pool.ts +39 -6
  163. package/src/hub/roadmap-triage.ts +86 -0
  164. package/src/hub/roadmap-unplaced.ts +169 -0
  165. package/src/hub/roadmap-view.ts +83 -0
  166. package/src/hub/roadmap.ts +127 -0
  167. package/src/hub/routing.ts +7 -3
  168. package/src/hub/sdlc-merge.ts +6 -5
  169. package/src/hub/sdlc-queue.ts +17 -7
  170. package/src/hub/sdlc-release.ts +1 -1
  171. package/src/hub/sdlc.ts +47 -8
  172. package/src/hub/security-audit.ts +178 -0
  173. package/src/hub/security-pass.ts +115 -0
  174. package/src/hub/settings.ts +11 -5
  175. package/src/hub/source-read.ts +80 -2
  176. package/src/hub/sources.ts +57 -9
  177. package/src/hub/specs-task.ts +7 -0
  178. package/src/hub/startup-event-seeds.ts +5 -3
  179. package/src/hub/startup-timing.ts +1 -0
  180. package/src/hub/synthesis-readiness.ts +279 -0
  181. package/src/hub/task-sweep.ts +29 -2
  182. package/src/hub/task-worktree.ts +37 -0
  183. package/src/hub/tasks.ts +1464 -76
  184. package/src/hub/text-projection.ts +11 -1
  185. package/src/memory/capture.ts +2 -1
  186. package/src/pi/dependency-publish.ts +50 -0
  187. package/src/pi/extension.ts +1 -1
  188. package/src/pi/launch.ts +1 -1
  189. package/src/pi/task-dependencies.ts +249 -0
  190. package/src/ui/index.html +56 -13
  191. package/src/ui/office-model.ts +11 -3
  192. package/src/ui/office-space.ts +50 -30
  193. package/src/ui/plugin-questions.ts +5 -0
  194. package/src/ui/plugin.ts +27 -12
  195. package/templates/config.json +1 -1
@@ -1,6 +1,6 @@
1
1
  # Operations guide
2
2
 
3
- This guide describes ahub 0.36.0 and control protocols 16 through 17. Live verification
3
+ This guide describes ahub 0.40.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
@@ -63,7 +63,7 @@ smoke ledger; the presence of this option proves no outstanding #273 live leg.
63
63
 
64
64
  ## Command output
65
65
 
66
- `ahub status`, `board`, `budget`, `doctor`, `projects`, `queue list`, `turns`, `report` and `usage` print shared console tables and labelled details.
66
+ `ahub status` defaults to an attention-first summary with next-step commands; `--verbose` or `--full` prints the detailed view, `--full` also keeps long identifiers whole, and `--ascii` uses ASCII markers. `board`, `budget`, `doctor`, `projects`, `queue list`, `turns`, `report` and `usage` print shared console tables and labelled details.
67
67
  `status --all` uses the projects table. `queue show`, `models status` and `budget execution status` show labelled fields; add `--json` for the raw fetched document.
68
68
  `report --by task` keeps the attribution and coverage sentences with section headings and aligned counters.
69
69
  Use `--json` for scripts; it returns the fetched data without color, and `status --json` keeps its existing document.
@@ -75,28 +75,38 @@ Text columns are a human interface, not a scripting contract. An identifier acce
75
75
  turn ids, queue ids, project ids, execution budget ids and ids in labelled views. Only status's informational settlement and hold ids are shortened;
76
76
  `status --full` keeps those whole too. Identifiers in suggested commands are always whole.
77
77
 
78
- `--color=auto|always|never` uses the console palette. Auto colors only a TTY with `TERM` other than `dumb`
79
- and empty `NO_COLOR`; pipes and redirects stay plain. Color never replaces a state or level word.
78
+ `--color=auto|always|never` uses the CLI output palette. `always` and `never` force the choice;
79
+ otherwise a non-empty `NO_COLOR` disables color, non-empty `FORCE_COLOR` or `CLICOLOR_FORCE`
80
+ enables it unless set to `0`, `FORCE_COLOR=0` or `CLICOLOR=0` disables it, and the fallback
81
+ colors a TTY whose `TERM` is not `dumb`. Pipes and redirects are plain by default. Color never
82
+ replaces a state or level word.
80
83
  TTY width is its columns (at least 80). A pipe uses a positive integer `COLUMNS` when supplied, otherwise rows
81
84
  are complete and unwrapped. Long fields wrap within their column; when whole metadata words and the readable flexible-column minimum do not fit, table bands retain every field. Each band carries the row id; when it cannot share a line with the metadata, a per-row id banner links them. Labelled two-column views keep each label beside its value, wrapping the value instead of separating labels and values into bands. In `turns`, the time and state cells wrap at word boundaries only when the file list needs the room and the listing gets shorter for it. When `projects` bands, the task list stays with the state columns in the first band and the second band is always PROJECT and ROOT. Console children receive the console's width
82
85
  minus its four-column indent and remain uncolored.
83
86
 
84
87
  ## Command help
85
88
 
86
- `ahub help`, `ahub --help` and `ahub -h` print the commands grouped by section;
89
+ `ahub help`, `ahub --help` and `ahub -h` print a short command summary grouped by section;
87
90
  `ahub help <command>` prints only that command's entries, and so does
88
- `ahub <command> -h` (or `--help`) when the flag is the only argument; anywhere else
91
+ `ahub <command> -h` (or `--help`) when the flag is the only argument, and
92
+ `ahub <command> <sub> -h` when the help lists that subcommand (#1433); anywhere else
89
93
  it is an ordinary argument, and `ahub claude` and `ahub codex` pass it on to the
90
- agent. An unknown command
94
+ agent. `ahub task propose`, `ahub goal new` and `ahub task handoff` refuse a
95
+ title word that starts with `--` and is not one of their flags, or is `-h`,
96
+ naming the word and the usage before anything is filed; put a lone `--` before
97
+ text that starts with dashes. An unknown command
91
98
  prints `unknown command "<name>"; run ahub help` and exits non-zero. Usages start
92
99
  at two spaces and descriptions at one fixed column, wrapped at word boundaries to
93
100
  the terminal width, read as at least 80 and at most 100 columns.
94
101
 
95
- Help uses the console palette: section headings bold cyan, `ahub <command>` words
102
+ Help uses the CLI output palette: section headings bold magenta, command words
96
103
  cyan, arguments and descriptions the terminal's default foreground. It has no
97
- `--color` flag: color is on only when standard output is a terminal, `TERM` is
98
- not `dumb` and `NO_COLOR` is empty or absent. Pipes and redirects get plain text
99
- without escape sequences, laid out for 80 columns.
104
+ `--color` flag. The same environment precedence as other CLI output applies:
105
+ non-empty `NO_COLOR` disables color; `FORCE_COLOR` or `CLICOLOR_FORCE` enables it
106
+ when non-empty and not `0`; `FORCE_COLOR=0` or `CLICOLOR=0` disables it; otherwise
107
+ color follows whether standard output is a terminal with `TERM` other than
108
+ `dumb`. Pipes and redirects are plain by default and the overview is laid out
109
+ for 80 columns.
100
110
 
101
111
  ### Shell completion
102
112
 
@@ -211,7 +221,7 @@ Home/End sequences is that many key presses, so a held key repeats its move. Hom
211
221
  or `<` jumps to a panel's first row and End or `>` to its last; the Events tab
212
222
  follows new events while the last row is selected and stays on a row you moved to.
213
223
  `w` opens the dashboard outside the Peers tab; in Peers it edits the selected
214
- peer's WIP limit. `:ui --all` works on the command line too. In the Peers tab the planner's row reads `(planner)`, and
224
+ peer's WIP limit. `:ui --all` works on the command line too. In the Peers tab the planner's row reads `(planner)` and the conductor's `(conductor)`, both when one peer holds the two (`claude (conductor, planner)`, #1414), and
215
225
  `l` then `y` makes the selected peer the planner (`ahub settings set planner <peer>`). In the Events
216
226
  tab a row's header line is tokenized and coloured exactly as the same event in
217
227
  the stream; only the header is tab-flattened before tokenizing. Body lines retain
@@ -575,9 +585,10 @@ with kind and task ids; all three carry task and peer ids only, and a PII task
575
585
  never joins a link.
576
586
 
577
587
  Console color policy is `--color=auto|always|never`, with `auto` as the default.
578
- Auto enables color only when both input and output are TTYs, `TERM` is not
579
- `dumb`, and `NO_COLOR` is empty or absent. Explicit `always` overrides these
580
- conditions, including redirected stream output; `never` disables styling.
588
+ Explicit `always` and `never` force the choice; otherwise the same `NO_COLOR`,
589
+ `FORCE_COLOR`, `CLICOLOR_FORCE`, `CLICOLOR=0` and `TERM` rules apply, using both
590
+ input and output TTY state for the fallback. Explicit `always` enables color on
591
+ redirected stream output.
581
592
  Neither option changes terminal size requirements, panel decisions, cursor
582
593
  management or the final reset. Invalid values fail before connecting.
583
594
 
@@ -652,7 +663,8 @@ and so is every help entry the gate has no class for yet;
652
663
  | `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) |
653
664
  | `ahub doctor --stale-anchors [--json]` | Allowed | a bounded read-only report of memory symbol anchors at current HEAD |
654
665
  | `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 |
655
- | `ahub roster [--json] [--color=...]` | Allowed | public roster status; add/remove retain conductor admission |
666
+ | `ahub roster [list] [--json] [--color=...]` | Allowed | public roster status; add/remove retain conductor admission |
667
+ | `ahub roles [--json] [--color=...]` | Allowed | each rostered peer's flow roles as the running hub settled them (#1411 T2); no operand |
656
668
  | `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 |
657
669
  | `ahub sdlc status\|explain [<task>] [--json] [--color=...]` | Allowed | public lifecycle status; private tasks stay stubs, without private evidence or receipts |
658
670
  | `ahub sdlc queue <owner/repo> [--json] [--color=...]`, `ahub sdlc release <owner/repo> [live-issue...] [--json] [--color=...]` | Allowed | public delivery/release readback for the checkout's GitHub origin, explicit SDLC config repos or person-imported public external records; no release authorization or mutation |
@@ -666,6 +678,7 @@ and so is every help entry the gate has no class for yet;
666
678
  | `ahub deliverables [--task <id>] [--approved] [--check] [--json]` | Allowed | only the rows `hub_task_show` would show the caller, through the same public screening (#933) |
667
679
  | `ahub room list [--json]`, `ahub room status [<name>] [--json]` | Allowed | room metadata only; every other `room` form, the inbox included, stays Console |
668
680
  | `ahub study show [<id> \| --after <id>] [--json] [--color=...]` | Allowed | the same read as `hub_study_show`: a private campaign, task or source shows ids, counts and states only; `study draft\|revise\|approve\|approve-protocol\|close` stay Console (#930) |
681
+ | `ahub study evidence <ev-id> [--revision <n>] [--json] [--color=...]` | Allowed | re-reads one evidence link through current research scope and privacy (#931); `study evidence --task` and `study check` stay Console |
669
682
 
670
683
  `backlog list`, `release list` and `sdlc costs|metrics` retain their existing
671
684
  planner/person policy. Their CLI forms stay Console for ordinary agents; a
@@ -713,7 +726,14 @@ project configuration, then open `ahub console` in a split terminal for approval
713
726
  ```
714
727
 
715
728
  Launch that peer with `ahub claude` for channel pushes, or select `codex` in
716
- `roles` and launch `ahub codex`. The conductor splits work into owned tasks,
729
+ `roles` and launch `ahub codex`. Only an interactive peer may conduct
730
+ (#1408, [roles](roles.md)): claude, codex, jcode and pi are `conductorEligible`.
731
+ The hub ignores a `conductor` on another kind, or on a peer whose effective
732
+ `peers.<peer>.start_mode` is `headless`, with a notice naming the fix, and gives
733
+ the role to nobody else, so the person conducts from `ahub console`. Setting the
734
+ conductor's start mode to `headless` is refused until the role moves, and
735
+ `ahub doctor`'s `roles` row names the settled holders and warns about an ignored
736
+ conductor. The conductor splits work into owned tasks,
717
737
  observes `hub_status`, moves stalled work and obtains review before reporting
718
738
  results and open decisions. It does not implement the tasks it handed out.
719
739
  `hub_peer_start` starts a peer in the start mode a person set for it (see
@@ -780,11 +800,30 @@ setting (`ahub settings set peers.pi.start_mode headless`), asks for the
780
800
  background peer instead. The project uses its existing OmniRoute connection for DGX;
781
801
  `pi.dgx_coding` and `pi.dgx_fast` select the gateway's configured model IDs.
782
802
  Every Pi start (headless, TUI, console or auto start) first runs the configured
783
- `pi.cmd` with `--version` (#847). Pi 1.4.0 and 1.5.0 are verified
784
- ([1.4.0 model-free receipt](verification/2026-10-26-pi-140-compat.md), [1.5.0](verification/2026-11-03-pi-150-compat.md)); another
803
+ `pi.cmd` with `--version` (#847). Pi 1.4.0, 1.5.0 and 1.5.2 are verified
804
+ ([1.4.0 model-free receipt](verification/2026-10-26-pi-140-compat.md), [1.5.0](verification/2026-11-03-pi-150-compat.md), [1.5.2](verification/2026-11-14-pi-152-compat.md)); another
785
805
  version, or one that cannot be read, is refused before Pi starts, unless the
786
806
  person trusts that exact version with `ahub agents trust pi <version>`.
787
807
 
808
+ `pi.max_steps` defaults to `100` managed tool-step attempts per native turn
809
+ (#1447 T3); this repository's tracked setting and the init template also use
810
+ `100`. Existing projects with explicit `pi.max_steps: 30` keep `30` until the
811
+ person edits that setting. Failed managed
812
+ calls count and the first rejected attempt is reported as `101/100`. The local
813
+ worker's `local.max_steps` default and repository setting remain `30`. This is a
814
+ source/config change; it does not restart a running Pi or change its active turn.
815
+
816
+ `pi.max_continuations` sets the number of extra turns after the initial tool-step
817
+ ceiling stop (#1447). Its default is `2`, with an integer range of `0..10`.
818
+ Each continuation asks Pi to checkpoint its completed work and next steps before
819
+ continuing. With the default, the third consecutive ceiling stop escalates the
820
+ task with `step_limit`; `0` escalates on the first ceiling stop. Model or transport
821
+ failures still use `inference_failed`. This key is config-only: set it in
822
+ `.agenthub/config.json` or override it in `.agenthub/config.local.json`, then reload
823
+ configuration and start or restart the Pi peer. It is sampled at the next Pi
824
+ start, without changing the running owner's continuation allowance or
825
+ `pi.max_steps` ceiling, and has no `ahub settings` row.
826
+
788
827
  ```bash
789
828
  ahub models setup # prepare bounded Qwen3.5 4B MLX in an existing Ollama service
790
829
  ahub models start # verify loopback Ollama/model readiness (no daemon spawn)
@@ -1051,13 +1090,18 @@ plugin stale when the module changed after setup, so run `ahub setup` again afte
1051
1090
  - **Space.** The plugin feeds acon's Space view from the dashboard's office model
1052
1091
  (`src/ui/office-space.ts`): peers are actors (state from condition, approvals and review, with
1053
1092
  approval, queue, paused and mode marks), the office rooms are queue, work, review and done zones,
1054
- tasks are cards, and overlap, conflict and cohort links and recent message arcs are links. Ids
1055
- are project-prefixed, every running project's scene is merged within acon's caps (32 actors, 200
1056
- cards, 64 links, newest links kept), and a project that has not answered within about 3 s is left
1093
+ tasks are cards, and overlap, conflict and cohort links and recent message arcs are links. Each
1094
+ project is one Space group (#1375) that every actor, zone and card names, so actor names stay
1095
+ bare; an actor carries its configured roles and, only while working, `since` (the open turn's
1096
+ start). Ids are project-prefixed, every running project's scene is merged within acon 0.2's caps
1097
+ (96 actors, 200 groups, 200 cards, 128 links, newest links kept; a record whose group is past the
1098
+ group bound loses its group reference), and a project that has not answered within about 3 s is left
1057
1099
  out of that poll (its last scene is kept as the baseline for its next answer). The running-project
1058
1100
  listing is reused for 10 s and then refreshed in the background, concurrent reads share one
1059
1101
  computation, and a viewer that passes back the combined cursor gets `changed: false` while the
1060
- scene, the per-project cursors and the project set are unchanged (#1380). Only labels and states
1102
+ scene, the per-project cursors and the project set are unchanged (#1380). The manifest
1103
+ declares how stale a reused reply may be: `inboxMaxAgeMs` 1000 and `spaceMaxAgeMs` 2000 (one
1104
+ poll interval). Only labels and states
1061
1105
  reach the scene, never message bodies, task details,
1062
1106
  approval titles or reasons; a PII task's card shows the `[pii]` stub.
1063
1107
 
@@ -1070,8 +1114,8 @@ repository. `test/companion-contract.test.ts` holds ahub to the file.
1070
1114
 
1071
1115
  ## Install and start
1072
1116
 
1073
- Use Bun <!-- facts:bun-floor -->1.4.2<!-- /facts:bun-floor --> or newer. Source checks and CI use the version pinned in
1074
- `.bun-version` (currently <!-- facts:bun-pinned -->1.4.2<!-- /facts:bun-pinned -->). Install the released package and install its Claude
1117
+ Use Bun <!-- facts:bun-floor -->1.4.4<!-- /facts:bun-floor --> or newer. Source checks and CI use the version pinned in
1118
+ `.bun-version` (currently <!-- facts:bun-pinned -->1.4.4<!-- /facts:bun-pinned -->). Install the released package and install its Claude
1075
1119
  channel plugin:
1076
1120
 
1077
1121
  ```bash
@@ -1097,9 +1141,65 @@ pushes reach the session. In SDLC `advise` or `enforce`, it names the person's
1097
1141
  spec acceptance (`ahub sdlc accept <task> --issue <n>`), plan-departure consent
1098
1142
  when needed (`ahub sdlc accept-departure <task> <head> <reason...>`) and guarded
1099
1143
  merge (`ahub sdlc merge <task>`) after the owner calls `hub_task_done` on an open
1100
- PR, reviewer approval and green exact-head CI. Preview, declined prompt and
1144
+ PR, reviewer approval and green exact-head CI. In those modes, when the project has a GSD
1145
+ `.planning/STATE.md` (a `gsd_state_version` in its frontmatter), it also points
1146
+ at [moving from GSD](sdlc.md#moving-from-gsd) (#1431); init only reads that
1147
+ file and never changes `.planning/`. Preview, declined prompt and
1101
1148
  refusal paths print no success next steps.
1102
1149
 
1150
+ Whether the repository commits its shared hub config is a choice made at init
1151
+ (#1411, amended by #1496). `--track-config` keeps `.agenthub/config.json`,
1152
+ `routing.toml` and `sdlc.toml` visible to git and lists them to commit. For a
1153
+ project at the Git repository root, init handles outside rules
1154
+ (`core.excludesFile` or `.git/info/exclude`) and earlier root `.gitignore`
1155
+ rules by appending a managed project `.gitignore`
1156
+ block: `!/.agenthub/`, `/.agenthub/*`, then `!/.agenthub/<name>` for each shared
1157
+ file to track. This also ignores other `.agenthub/` entries; teams sharing
1158
+ project packs, `.agenthub/ignore` or other files add their own `!` lines after
1159
+ the block. Projects below the repository root retain the earlier behavior:
1160
+ track-config succeeds when shared files are visible, and an ignoring rule is
1161
+ named with manual re-include guidance rather than changing that project.
1162
+ Dry-run and confirmation show those lines; apply names the rule
1163
+ class and project re-inclusion, and a second run changes nothing. Before project
1164
+ writes, Git verifies the planned rules in a disposable private temporary directory
1165
+ containing only the root and existing `.agenthub/.gitignore` text, using the real
1166
+ repository Git directory read-only. The scratch directory is removed on success
1167
+ or failure. Shared files must be visible and runtime state and local config must
1168
+ stay ignored. A project rule that still wins (such as a nested
1169
+ `.agenthub/.gitignore` rule) refuses with its location and the next step, without
1170
+ project writes. User-level configuration, excludes files and the index are never
1171
+ changed. A `routing.toml` whose `hub_routes` set `adec_endpoint` stays ignored and
1172
+ is reported, because that endpoint is this machine's and `routing.local.toml` can
1173
+ hold only class keys. Machine-local values in `config.json` are listed with the
1174
+ move to `config.local.json` before the first commit. `--no-track-config` ignores
1175
+ the three files, removes only the managed re-include block init wrote, verifies
1176
+ the result, and each checkout holds its own roles. The AGENTS.md block's role
1177
+ sentence follows the choice: tracked, it points at `.agenthub/config.json`
1178
+ `roles`; untracked, it says the checkout's hub holds the roles. A new project is
1179
+ asked at the prompt; with neither flag an existing project keeps its ignore state
1180
+ and its block sentence. Outside the managed re-include block, init avoids redundant ignore lines for
1181
+ paths a broader rule already ignores.
1182
+
1183
+ `ahub roles [--json]` prints each rostered peer's flow roles as the running hub
1184
+ settled them (defaults, overrides and ceilings applied), the planner with how it
1185
+ was chosen, and who reviews when no reviewer can run: the person when
1186
+ `review.pool` is set, otherwise a planner other than the task's owner (another
1187
+ family first, or only another family under `review.same_family = "never"`), else
1188
+ the person. A task worktree has no `.agenthub` of its own and no hub; this
1189
+ read-only command then reads the main worktree's hub, so an agent in a worktree
1190
+ gets the same answer as the project root (#1411 T2). `ahub doctor`'s
1191
+ `shared config` row compares whether `.agenthub/config.json` is committed with the
1192
+ block's role sentence: `tracked` and `untracked (by choice)` pass; a block that
1193
+ points at an uncommitted or ignored file, a committed file the block calls per
1194
+ checkout, or a committed file an ignore rule matches is a warning that names the
1195
+ rule and the command that fixes it.
1196
+
1197
+ `config.local.json` wins over `config.json` key by key, so each person keeps their
1198
+ own settings in a tracked project; `roles` merges per peer. The exceptions are
1199
+ deliberate: `release` is read only from the committed `config.json`;
1200
+ `action_policy`, `rooms` and `research.runners` only from `config.local.json`; and
1201
+ the machine-local fields below are ignored in a committed `config.json`.
1202
+
1103
1203
  `ahub up` waits for authenticated readiness. After 12 seconds, a verified live
1104
1204
  child that is still pending produces a `still starting, pid N` message on stderr;
1105
1205
  the CLI keeps waiting and confirms the retained runtime when it becomes ready.
@@ -1109,7 +1209,9 @@ An owned child observed to exit before readiness produces an error; a cancelled
1109
1209
  operation cannot confirm startup.
1110
1210
 
1111
1211
  Each completed daemon startup writes one `startup timings ms:` line to `hub.log`,
1112
- with fixed phase names and durations. The three event-seed consumers share one
1212
+ with fixed phase names and durations; the span before `task_runtime` carries
1213
+ the sub-phases `task_checks`, `task_ports`, `task_board` and `task_recovery`
1214
+ (#1445), and its board reads cover open tasks only. `task_checks` no longer waits for the first check-runner probe (about 8 s over ssh to a remote runner): startup waits for it at most 500 ms, `ahub status` reports the runner as unavailable with `runner probe in progress` until it settles, and `check_run` joins the same single probe. The three event-seed consumers share one
1113
1215
  lossless streaming pass; abandoned snapshot bodies are not read for startup.
1114
1216
  The [startup receipt](verification/2026-11-07-daemon-startup-1232.md) separates
1115
1217
  seed I/O from bounded usage-rollup I/O and records the isolated measurements.
@@ -1130,6 +1232,26 @@ value, or a flag given twice with different values, is refused with the allowed
1130
1232
  values, and nothing is written. Executables, secrets, models, providers, instances
1131
1233
  and permissions have no flags; they stay file edits.
1132
1234
 
1235
+ Who conducts, plans and reviews is chosen with three independent flags (#1408 T2):
1236
+ `--conductor <peer>|none`, `--planner <a,b,...>` and `--reviewer <a,b,...>|person`. Each
1237
+ is written to the shared `.agenthub/config.json` `roles` as an explicit list for every
1238
+ peer whose roles change, including the peer that loses a role (the per-peer merge would
1239
+ otherwise keep its default); implementer and verifier entries, and every other file, stay
1240
+ as they are. An existing project is changed only by a flag you give, and a flag whose
1241
+ choice already holds writes nothing. A peer that cannot hold the role is refused before
1242
+ any write, with the reason, the fix and the eligible peers: a conductor needs an
1243
+ interactive session (`conductorEligible` and a non-headless start mode, read the same way
1244
+ the loader and `ahub doctor` read them, so `config.local.json` wins over the shared
1245
+ file), a planner needs a planner-eligible kind, a reviewer a kind that can receive
1246
+ `hub_review`. `--conductor none` leaves the person conducting from `ahub console`;
1247
+ `--reviewer person` writes no reviewer peer, and the init summary says reviews go to the
1248
+ person. Moving the conductor writes both peers in one change, so the single-holder rule
1249
+ is not tripped. A `planner` setting, or a `config.local.json` `roles` entry for a peer
1250
+ the choice would change, would outrank the write, so init refuses it and names the key.
1251
+ `--dry-run` shows each changed peer as a `roles.<peer>` row. The guided prompt asks the
1252
+ three after the agents question, offering only eligible peers with installed agents first
1253
+ (Enter keeps the shipped holders).
1254
+
1133
1255
  A person at a terminal who runs `ahub init` on a new project with no flag that
1134
1256
  sets anything and no `--yes` is asked each setting in turn (#1065 T2): profile,
1135
1257
  the agents `ahub up` starts, design specs and their review mode, SDLC mode (with
@@ -1861,8 +1983,15 @@ ahub study show [rc-0123456789ab] # list campaigns (50 per page, --af
1861
1983
  ahub study close rc-0123456789ab 2 --reason "answered"
1862
1984
  ahub study approve-protocol <64-hex hash> # person only: approve one exact experiment protocol
1863
1985
  ahub study experiments --campaign rc-0123456789ab [--after 50] # read the recorded attempts (also --attempt ra-... or --plan <hash> --baseline ra-... --variant ra-...)
1986
+ ahub study evidence ev-... [--revision 2] # re-read one evidence link under current privacy (--task <task>: person-only authoring bindings)
1987
+ ahub study check 12 manifest.json # person only: offline synthesis readiness of one manifest; non-ready exits nonzero
1864
1988
  ```
1865
1989
 
1990
+ `ahub study evidence`, `ahub study check` and a manifest-bound `ahub task claim ... --manifest <file>
1991
+ --disposition resolved|qualified` (#931) need a running hub that advertises `research_synthesis`; the CLI
1992
+ refuses before sending to an older hub. What they report, and what `ready` does not mean, is in
1993
+ [profiles](profiles.md).
1994
+
1866
1995
  - **Contract.** The JSON names the question, scope, exclusions, registered source ids, 1 to 32 units
1867
1996
  (round, question, perspective, required output, sources, dependencies and a purpose: discovery,
1868
1997
  independent check, analysis or synthesis), deliverable sections, a stop policy (`maxUnits`,
@@ -1922,9 +2051,11 @@ ahub study experiments --campaign rc-0123456789ab [--after 50] # read the reco
1922
2051
  ids, counts, states and provenance and stubs its text as `[pii]`. Study tool arguments and results are kept out
1923
2052
  of hub-managed memory capture.
1924
2053
  - **Upgrades.** The daemon advertises `research_records`, `research_dispatch`, `research_dropped_offers`,
1925
- `research_experiments`, `research_comparisons`, `research_runners` and `research_evidence` (#931). While the
2054
+ `research_experiments`, `research_comparisons`, `research_runners`, `research_evidence` and
2055
+ `research_evidence_withdrawal` (#931). While the
1926
2056
  matching rows exist (for `research_runners`, stored runner receipts or any `research.runners` block; for
1927
- `research_evidence`, stored claim evidence links), a restart, upgrade or recovery onto a release without the
2057
+ `research_evidence`, stored claim evidence links; for `research_evidence_withdrawal`, withdrawn evidence
2058
+ revisions), a restart, upgrade or recovery onto a release without the
1928
2059
  feature is refused.
1929
2060
 
1930
2061
  ## Hub memory
@@ -1942,7 +2073,7 @@ ahub memory forget 1a2b3c4d # a person's; also promote, demote, sup
1942
2073
 
1943
2074
  `"memory": { "native": false }` in `.agenthub/config.json` turns it off for a project.
1944
2075
 
1945
- 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.
2076
+ The exact-pinned `@staix/agent-mem` 0.26.3 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.
1946
2077
 
1947
2078
  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).
1948
2079
 
@@ -2051,6 +2182,7 @@ ahub undo <turn> --yes --context # Codex's latest turn: also drop it from Codex
2051
2182
  `git gc` prunes them after `gc.pruneExpire` (two weeks by default); undoing an
2052
2183
  older turn says so.
2053
2184
  - Each `turn_end` event carries `files` and `snapshotMs` (`ahub export`).
2185
+ - Each `turn_end` event may carry `model` and `modelEvidence` (#1402): the model id exactly as the peer's native surface reported it (passed through `safeModelLabel`; a label it refuses is dropped whole, an alias is never expanded) and how it was learned, `served` (named for this turn's responses), `session` (the native session's current model) or `configured` (only the hub's own override). A turn with no observation records neither field. `ahub research` reads them into `ownerModels` and groups by model on the owner's turns.
2054
2186
 
2055
2187
  ## Edit conflicts
2056
2188
 
@@ -2487,7 +2619,7 @@ global CLI the way it was installed; `ahub doctor` names the exact step.
2487
2619
 
2488
2620
  ## Change the participating peers while the hub runs
2489
2621
 
2490
- `ahub roster` lists every known peer, whether it participates, its start mode,
2622
+ `ahub roster` or `ahub roster list` lists every known peer, whether it participates, its start mode,
2491
2623
  current state, queued messages and open tasks. `ahub roster --json` is the same
2492
2624
  ordered catalog view for scripts. Status and the console keep their existing lazy
2493
2625
  rows; an off-roster peer is shown only while it has retained messages, an uncertain
@@ -2590,7 +2722,10 @@ it does not recover an earlier model. Raw/pull-only native TUI attachments remai
2590
2722
  unsupported. A retained former override is labelled `native thread default (was override)`;
2591
2723
  a rejected start leaves the next start free to sample a corrected selection.
2592
2724
  The model and its source appear in `ahub status` and JSON output. An unknown native default remains
2593
- unknown. `pending next turn` means the desired value has not been acknowledged
2725
+ unknown. When no override, instance, launch or native baseline model is known, the
2726
+ last model a finished turn reported is shown with source `observed (served)` or
2727
+ `observed (session)` (#1402); a `configured` grade is never shown, and the
2728
+ observation is dropped when the peer goes offline or its adapter is replaced. `pending next turn` means the desired value has not been acknowledged
2594
2729
  at an eligible boundary; it does not claim the current turn changed models.
2595
2730
 
2596
2731
  Changing a desired value during a turn leaves that turn unchanged. Steering and
@@ -3288,6 +3423,13 @@ source has not reported yet says which. `--json` carries `kind`, `source`, `supe
3288
3423
  without them and the CLI classifies a window by its source. `ahub doctor` adds the row `kimi usage source` (counting, no ceiling, or unreadable).
3289
3424
  The console's peer detail (Enter on Peers) and the Usage detail, and the dashboard's Usage budgets row, show the same kind and source per window.
3290
3425
 
3426
+ While a Codex peer's account is budget-paused (#1440), the hub reads `codex rateLimits` through the attached TUI link every 60 seconds instead of the
3427
+ usual `usagePollMs` cadence (ten minutes), so a reset is seen early; it never redeems a credit or resumes a peer, and the existing reset/resume path
3428
+ still decides. For a paused peer `ahub budget` adds the account diagnostics that read allows: reset credits available with their earliest expiry
3429
+ (or `expiry unknown`), whether ordinary usage is allowed, `credits available` and `unlimited credits` (yes, no or unknown), `stale snapshot` when old,
3430
+ and `turns would use paid credits` when ordinary usage is not allowed but paid credits are. These fields change no admission, pause or resume, are
3431
+ held in memory only, and read unknown after a restart until the next native read; balances and account or credit identifiers are never kept.
3432
+
3291
3433
  Kimi Code CLI 2.1.1's observed 5-hour usage-limit refusal creates a hard budget reading (`kimi ACP usage-limit refusal`). `ahub status` shows a budget pause and `ahub budget` shows its source and reset estimate. The refusal gives no reset timestamp, so the hub estimates the reset at five hours after it was observed and resumes on the next budget tick after the existing one-minute grace. With `budget.wait_max_min` below that estimate, the existing budget relay automatically hands open tasks to an attached eligible peer; routing skips Kimi while paused. No checkpoint is requested from an exhausted agent.
3292
3434
  `ahub budget resume kimi` overrides the reading so the provider can be tried early. A new provider refusal ends that override and pauses it again; a pending soft checkpoint cannot postpone this hard pause.
3293
3435
  During one hub run, an early override followed by the same window's refusal keeps its earlier future reset bound; a provider's explicit reset remains authoritative. A restored pause without a per-window reading cannot identify that earlier window, so its next refusal starts a new estimate.
@@ -3510,8 +3652,10 @@ Planner badge, and the console marks their rows.
3510
3652
  Only those peers hold the role. Builtins are `claude`, `codex`, `kimi`, `qwen`
3511
3653
  and `jcode`; a declared planner-capable instance is also eligible. A singleton
3512
3654
  settings write stores a string for older configuration readers.
3513
- - `roles`: with no `planner` key, the `roles` planners stand. That is `claude`
3514
- by default.
3655
+ - `roles`: with no `planner` key, the `roles` planners stand. A new project gets
3656
+ `claude` from the shipped `templates/config.json`, which `ahub init` copies;
3657
+ change it with `ahub init --planner <peer>` on a new project or by editing
3658
+ `roles` in `.agenthub/config.json`.
3515
3659
  - `automatic`: when no rostered peer holds the role, the hub gives it to the
3516
3660
  first rostered peer of that list. It recomputes this at start and after
3517
3661
  each roster change, and writes nothing to disk.
@@ -3569,7 +3713,12 @@ for that head (#785): one `gh pr view` a minute, ended by a passed CI result, by
3569
3713
  shutdown; a restart does not restore it, and the next `hub_task_done` starts a new
3570
3714
  one. A failed or incomplete result is told once and the watcher keeps reading for a
3571
3715
  rerun of the same head: the first pending read after a newly told result renews the
3572
- deadline once, and a deadline after a told result ends silently (#540). On the result the owner and the reviewer each get one
3716
+ deadline once, and a deadline after a told result ends silently (#540). Cancelled
3717
+ attempts and a draft PR's deferred `check (macos-latest)` are pending to this watcher,
3718
+ not failures; it keeps watching for a replacement run. If GitHub returns multiple
3719
+ rows for one check, the hub uses an older-run filter only when workflow identity and
3720
+ start times identify one unique latest run; ambiguous duplicates cannot establish a
3721
+ pass (#1527). On the result the owner and the reviewer each get one
3573
3722
  `ci_completed: #<id> head <sha12> passed|failed|incomplete` task notice (ids only, the
3574
3723
  head cut to 12 characters; a person reviewer gets a console line instead), and
3575
3724
  unless CI failed, a review the hub held as premature for that head is offered
@@ -3871,6 +4020,13 @@ No PR is created by T1. The [T1b producer report](verification/2026-11-07-compat
3871
4020
 
3872
4021
  ## Upgrade and crash recovery
3873
4022
 
4023
+
4024
+ Before preparing or stopping a source, preview and uncommitted staging compare each automatically restored version-gated peer's configured executable with the verified target package's compatibility policy and current machine trust (#1426). A refused version names the peer/version and `ahub agents trust <peer> <version>` or installation of a verified version. Unknown observations remain unknown and block that source before commit. Preview may populate the private verified target-package cache; it does not prepare, stop or select a project runtime. The digest check uses the target's existing owned/hoisted dependency layout. Previously committed or commit-sent sources are not retroactively gated by a later executable/trust change. Ordinary Codex restoration does not acquire the separate reviewer sandbox version gate.
4025
+
4026
+ A refused restoration command now produces a private, per-attempt exit observation. The native command keeps its terminal descriptors; the reader accepts only the matching nonce/peer and a bounded complete record. The persisted cause is `version_refused` or `launch_exit`, with exit code and a bounded privacy-screened first hub refusal line (otherwise a neutral instruction to inspect the launch terminal). This observation blocks within the existing readiness slice; it is never evidence of native readiness, ownership or session settlement. Attempt files are disposed, and late writers cannot recreate their removed directory. Native/session fences still decide every retry and settlement.
4027
+
4028
+ Fix the named cause, then run the exact `ahub recovery resume <op>` command in the operation status. While its runner is still working, close the refused launch terminal and check status; resume after the runner blocks or exits. A direct peer start cannot bypass the recovery hold. A fresh resume launches once and retains the recorded conversation; it does not silently choose a new one.
4029
+
3874
4030
  ### Side by side project versions (#1039)
3875
4031
 
3876
4032
  `ahub --project <path|id> upgrade --to <version>` reviews and changes only that
@@ -3943,7 +4099,7 @@ or the plugin is older than the daemon it installed (#1179). It prints nothing w
3943
4099
  | Runtime | Control protocol window | Legacy status field |
3944
4100
  | --- | --- | --- |
3945
4101
  | 0.12.20 through 0.25.0 | 16 only | `protocol: 16` |
3946
- | 0.26.0 through 0.36.0 | 16 through 17 | `protocol: 16`, `protocolMin: 16`, `protocolMax: 17` |
4102
+ | 0.26.0 through 0.39.0 | 16 through 17 | `protocol: 16`, `protocolMin: 16`, `protocolMax: 17` |
3947
4103
 
3948
4104
  New clients choose the highest common protocol. The protocol window remains 16
3949
4105
  through 17, so the published protocol-16 client and channel plugin remain usable; unrelated feature
@@ -3951,7 +4107,10 @@ capabilities still require their own labels. A disjoint window refuses with 4426
3951
4107
  The compatibility-floor `protocol` field remains readable by old clients.
3952
4108
 
3953
4109
  Release N-1 is counted in minor versions, separately from this protocol window
3954
- (#1164, family contract entelecheia/ai-workspace#70). For 0.38.x, N-1 is 0.37.0,
4110
+ (#1164, family contract entelecheia/ai-workspace#70). For 0.39.x, N-1 is 0.38.0,
4111
+ the latest published patch of 0.38.x (exact `@staix/agent-mem` 0.24.0, control
4112
+ protocol 17 with descriptor floor 16). Every patch on 0.39.x keeps that release
4113
+ baseline. For 0.38.x, N-1 is 0.37.0,
3955
4114
  the latest published patch of 0.37.x (exact `@staix/agent-mem` 0.24.0, control
3956
4115
  protocol 17 with descriptor floor 16). Every patch on 0.38.x keeps that release
3957
4116
  baseline. For 0.37.x, N-1 is 0.36.0,
@@ -4197,9 +4356,9 @@ are a terminal and neither `--dry-run` nor `--yes` is given. With either flag, o
4197
4356
  through a pipe, the plan is printed as readable text (#814) and `--json` keeps the JSON plan and the `ahub: blocker:` lines; the exit codes are unchanged. The screens add no way to change an operation: every choice runs one
4198
4357
  of the commands in this section for you, so that command's refusals decide.
4199
4358
 
4200
- The screens use the console palette and `--color=auto|always|never`, with the
4201
- same `NO_COLOR` and `TERM=dumb` precedence. Auto colours a suitable TTY; explicit
4202
- always has the console's override behaviour. Raw JSON bypasses colour and width
4359
+ The screens use the CLI output palette and `--color=auto|always|never`, with the
4360
+ same `NO_COLOR`, `FORCE_COLOR`, `CLICOLOR_FORCE`, `CLICOLOR=0` and `TERM` rules.
4361
+ Auto colors a suitable TTY; explicit always has the console's override behaviour. Raw JSON bypasses colour and width
4203
4362
  handling. Default and never print the same readable pipe, dry-run, status and
4204
4363
  dispose text, and `--json` keeps the previous documents byte for byte. Presentation flags go after the command, for
4205
4364
  example `ahub recovery --color=never` or
@@ -5103,6 +5262,8 @@ The daemon advertises `task_cancel`; a current CLI refuses cancellation against
5103
5262
 
5104
5263
  Writing-owner no-op detection (#498) is independent of the time sweep: `task_sweep.no_writes_turns` defaults to 2, and 0 disables its notices. Known file changes, HEAD/shared-branch ref movement and task-tool effects reset the streak. A canonical snapshot with recorded branch, worktree-path or PR/head evidence is unknown. Negative canonical evidence also needs exclusive worktree scope and no `.worktrees` directory, so uncommitted work in a separate checkout is not reported as empty. Done advisories use the first acceptance in the current ownership span; plan updates do not discard earlier touches.
5105
5264
 
5265
+ A task that legitimately waits for a dated event (a CI or release window, a person-scheduled live leg, a quota reset) records a bounded wait instead of being swept (#1454): `hub_task_wait {id, until, reason}` from its owner, its planner or the person, with `until` an RFC 3339 time with a zone, in the future and at most 14 days ahead, and a one-line public `reason` of at most 200 characters. The tool is published only while `task_sweep.enabled` is true. While the wait is pending the `idle-owner` ladder is silent; after `until` it restarts from `until` (the first notice is `idle_min` later, step 3 still reassigns under `auto_reassign`). `review-pending`, `unaccepted-assignment` and `ready-unassigned` are never suppressed. Done, decline, return, reassignment or any other state-changing entry ends the wait. `ahub task show <id>` prints `waiting`, and `hub_planner_groom` lists a passed wait as `wait-passed` so a stale one is seen.
5266
+
5106
5267
  The between-turn task sweep (#186) is disabled by default. Set `task_sweep` in
5107
5268
  `.agenthub/config.json` (or its machine-local override) to enable it:
5108
5269
 
@@ -5227,7 +5388,7 @@ PR or push check with the identical Git tree and all three successful jobs. An a
5227
5388
  unreadable result runs the main gate again and refuses release. A manual
5228
5389
  `prepare_bundle` dispatch builds reviewable plugin assets without publishing;
5229
5390
  it is never accepted as full-gate evidence. A `timing_runs=20` dispatch runs only the daemon, PII screen and ACP
5230
- test files twenty times on macOS, in its own concurrency group; it does not replace the full gate. Each PR has its own CI concurrency group, so PRs run side by side; within a PR a newer pending run replaces the older pending one and an admitted run is never cancelled; main pushes and dispatches keep queueing every run. Two groups admitting the same tree at once may run it twice, never a false green (#609). `scripts/check.sh --changed [<base>]` runs every non-test step but only the affected test files, and the full suite when it cannot tell; the full gate stays CI's (#610).
5391
+ test files twenty times on macOS, in its own concurrency group; it does not replace the full gate. Each PR has its own CI concurrency group, so PRs run side by side; within a PR a newer head replaces the older run, pending or in progress (`cancel-in-progress` for pull requests only, #1490); main pushes and dispatches keep queueing every run and are never cancelled. A cancelled run is never a full-gate proof. A draft PR skips the macOS shards and its required `check (macos-latest)` fails with "macOS deferred" until `gh pr ready` starts a run that includes them (#1490). Two groups admitting the same tree at once may run it twice, never a false green (#609). `scripts/check.sh --changed [<base>]` runs every non-test step but only the affected test files, and the full suite when it cannot tell; the full gate stays CI's (#610).
5231
5392
  `scripts/check.sh` runs the suite under `scripts/hang-watch.sh`, which stops it when
5232
5393
  no test result line (`(pass)`, `(fail)`, `(skip)` or `(todo)`) and no test file header
5233
5394
  has appeared for `AHUB_CHECK_QUIET_S` seconds (300 by default, set to 300 in CI), so a
@@ -5236,7 +5397,7 @@ output through unchanged and appends one byte to a progress file for each of tho
5236
5397
  the watchdog polls that file's size. On a stop it prints where the run is and the process
5237
5398
  table below it first. `AHUB_CHECK_HANG_S` (2250 by default, sized in #1086 from two measured full runs on dgx02 of 1483 s and 1487 s of test time, 1.5 times the longer; it was 960) is only the backstop for a run
5238
5399
  that keeps printing results while hung; hosted CI sets 1500 on Linux inside a 35-minute
5239
- job limit (#378, #593, #752, task 516). The macOS leg runs as four shards (#548): `AHUB_CHECK_SHARD=i/n`
5400
+ job limit (#378, #593, #752, task 516). The macOS leg runs as four shards and the Ubuntu leg as six (#548, #1490): `AHUB_CHECK_SHARD=i/n`
5240
5401
  makes `scripts/check.sh` run slice `i` of the full suite through `bun test --shard=i/n --timings=scripts/test-timings.json`, which puts
5241
5402
  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
5242
5403
  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
@@ -5518,7 +5679,7 @@ that the file is untracked; a dropped value is reported by the settings result.
5518
5679
 
5519
5680
  ## SDLC artifact receipts and gates
5520
5681
 
5521
- 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.
5682
+ The playbook lifecycle (#257, #481) is off without `.agenthub/sdlc.toml`. When enabled its stages are intent, spec, plan, build, test, review, merge, release and maintain, grouped as Plan, Design, Build, Test, Deploy and Maintain. Advise shows blockers; enforce checks implemented head-bound review and approval gates. Stored implement/verify receipts read as build/test; new enabled receipts use canonical ids. See [the SDLC contract](sdlc.md) for gates, required check names, local receipts, console-only readbacks and the S0-S8 delivery table. A person accepts a spec issue with `ahub sdlc accept <task> --issue <n>` (S1). A PR merged outside the hub is recorded with `ahub sdlc adopt-merge <task> --pr <n>` (person or current conductor), which approves the task and releases dependents only at its recorded head with green required checks ([adoption](sdlc.md#adopting-a-pr-merged-outside-the-hub-1328-t3)). The planner records plan reviews with review and CI scope (`hub_plan_review`, `ahub sdlc plan-review`) and grooms with `ahub backlog groom`; `ahub backlog return <task> <revision> <reason>` returns accepted, untouched work (S9). `ahub sdlc costs [owner/repo]` reports review rounds and CI runs of merged PRs without writing the board (S10). `ahub sdlc metrics [--since <YYYY-MM-DD|ISO time>]` (the planner tool `hub_sdlc_metrics`, planner or person, read-only) reports lead times, first-pass approval and check rates, rework rounds, stale-head re-reviews and open stalls from board history, with `unknown` counted and never 0; optional `[bands.<metric>]` in `sdlc.toml` add control bands that the daemon checks every five minutes in advise or enforce, writing a hub notice (`log`), a read-only `triage` backlog task (`diagnose`) or a `plan` backlog card (`propose`), one per breach episode and never a GitHub issue (S7, see [metrics](sdlc.md#sdlc-metrics-and-control-bands-481-s7)). With the lifecycle on, a task's issue identity is linked when it is proposed or accepted, from the one issue it names (an imported GitHub issue, or a `#N`, `owner/repo#N` or issue URL in its title); a title that names a sibling repository (`agent-mem#13`) links only when `refs.repo` names it, and without `refs.repo` the propose result says to set it. `ahub backlog groom` also backfills up to 32 links per call, within 1 s (#723). S11 release trains ship in 0.12.37 (see [release scheduling](#planner-release-scheduling)). S3 structured review findings (an open Important finding blocks approval in enforce; `max_nits` in `sdlc.toml` caps nits) and S2 literal-path plan conformance with the person-only `ahub sdlc accept-departure <task> <head> <reason...>` are in source; see [findings](sdlc.md#structured-review-findings-481-s3) and [plan conformance](sdlc.md#plan-conformance-481-s2). S4 [test integrity](sdlc.md#test-integrity-481-s4) and S6 [release authorization](#release-approval-and-optional-tag-guard) are in source too. S5 is in source as an [eval gate mechanism](sdlc.md#eval-gate-for-agent-configuration-481-s5) with no suite chosen, and S7 adds merge-time readback, [release metrics](sdlc.md#release-metrics-481-ac12) and an opt-in security baseline; a full live advise/release cycle and the per-release gates-run record remain pending. Owners/reviewers record bounded identities through `hub_sdlc_record`; these grant no additional authority. Off output, receipt and schema shapes stay unchanged. #1403 adds a `[security]` table whose paths need a recorded `security_pass` on the approving review ([security pass](sdlc.md#security-pass-for-sensitive-paths-hub-task-895-1403-a2)), `ahub sdlc audit start|show` with a hub-written coverage ledger ([audit](sdlc.md#security-audit-with-a-coverage-ledger-hub-task-896-1403-a4-a5)), plan intent fields with advisory base drift on accept and done, and `ahub sdlc survey start|show` ([surveys](sdlc.md#advisor-surveys-and-considered-findings-1403-t7)); while survey or considered-finding state exists, a restart, upgrade or recovery onto a target without `advisor_surveys` is refused. The person may instruct the configured conductor in its own session to run `ahub sdlc configure` for `off`/`advise` and required checks ([#1432](sdlc.md#instructed-conductor-configuration-1432)).
5522
5683
  ## Supervision proposals
5523
5684
 
5524
5685
  `supervision.mode` is off by default and machine-local (`ahub settings set supervision.mode advisory`); a committed
@@ -5626,7 +5787,7 @@ Known ceiling (#559): jcode 0.98.1's top-level TUI spawns a shared server, witho
5626
5787
 
5627
5788
  TUI input may interleave with an ACP turn; there is no single-writer guard. Closing the TUI leaves the owned ACP session running, and native policy remains unmanaged. The isolated 0.98.1 transport receipt is [recorded separately](verification/2026-10-20-jcode-tui-0.98.1.md); it is not personal account or real provider verification.
5628
5789
 
5629
- After upgrading to the recipient-retry release, a Jcode project MCP entry written before `AGENTHUB_DELIVERY_ONLY` was added is intentionally stale. Once per project, the person runs `ahub jcode --mode headless` before using conductor/dashboard starts. The launcher rewrites only the owned entry with the delivery-only marker, preserving foreign entries and refusing collisions; recovery relaunches already use this CLI path. Readiness checks never rewrite the file, and an explicit false marker or any other drift remains refused. Until that rewrite, daemon starts keep their actionable stale-entry refusal rather than advertising a retry tool Jcode cannot use.
5790
+ After upgrading to the recipient-retry release, a Jcode project MCP entry written before `AGENTHUB_DELIVERY_ONLY` was added is intentionally stale. Once per project, the person runs `ahub jcode --mode headless` before using conductor/dashboard starts. The launcher rewrites only the owned entry with the delivery-only marker, preserving foreign entries and refusing collisions; recovery relaunches already use this CLI path. Readiness checks never rewrite the file, and an explicit false marker or any other drift remains refused. Until that rewrite, daemon starts keep their actionable stale-entry refusal rather than advertising a retry tool Jcode cannot use. `ahub jcode` and `ahub agy` compare the entry's `AGENTHUB_PROJECT_DIR` (and agy's `AGENTHUB_STATE_DIR`) by real path (#1423), so after a project directory is renamed with its old path left as a symlink, the hub's own entry is recognised and rewritten with the new paths. An entry for another project or peer, or a path that no longer resolves, is refused with the differing field: remove the `agent-hub-jcode` (or agy's `agent-hub`) key and run the command again.
5630
5791
 
5631
5792
 
5632
5793
  Native policy is unmanaged and has NO hub sandbox; no permission_modes.jcode or runtime mode mapping is invented. Quota and consumption remain unknown. Supported versions run from 0.98.0 up to, not including, 1.0.0 (#529); another version is refused before the owned daemon starts, with the version named and the trust command (#691). Every owned jcode process (version probe, daemon, ACP and TUI) runs with `JCODE_NO_TELEMETRY=1`. Native session/load (verified on 0.94.0, 0.98.1 and 0.99.1) cannot prove identity, so attached Jcode blocks controlled recovery before effects and crash recovery asks for deliberate native reopening. A requested load without an echoed identity refuses; no fresh session is presented as restored. Provider/tool/native teardown receipts remain unverified in the pinned contract report.
@@ -5823,6 +5984,62 @@ public stub; legend entries contain ids/counts, never task prose. Planning prior
5823
5984
  are described below. Native planner-cycle evidence remains unverified.
5824
5985
 
5825
5986
 
5987
+ ## Roadmap milestones (#1479 R1)
5988
+
5989
+ `ahub roadmap` (or `roadmap list`) reads board-backed milestones. `show <id>`
5990
+ adds public links, task placement and computed progress. Reads print for a person;
5991
+ `--json` returns the same public record. Unknown issue/spec evidence remains
5992
+ unknown, and private task membership is a count without task ids or titles.
5993
+
5994
+ ```sh
5995
+ ahub roadmap new --title "Reliable releases" --outcome "Every release has verified delivery evidence" --horizon now
5996
+ ahub roadmap link 1 issue owner/repo#42
5997
+ ahub roadmap link 1 spec task-board
5998
+ ahub roadmap show 1 --json
5999
+ ahub roadmap edit 1 --revision 2 --target 2026-12-01
6000
+ ahub roadmap order 1 10
6001
+ ahub roadmap state 1 active
6002
+ ```
6003
+
6004
+ Use the revision actually returned by `show`; the numbers above are examples.
6005
+ New/edit also accept `--order` and `--parent`; `--target none` or `--parent none`
6006
+ clears that field. `unlink <id> <kind> <ref>` removes a link. The configured
6007
+ planners, current unique conductor and the person may edit. Only the person
6008
+ records `state <id> done|dropped`; live-test delegation cannot write milestone
6009
+ content. Terminal milestones are final.
6010
+
6011
+ Explicit task links take precedence over issue inheritance across all milestones.
6012
+ Otherwise GitHub-import `Task.external` or the canonical plan issue identity
6013
+ places a task in its issue's milestone, labelled inherited from #N. Issue states
6014
+ come from matching persisted plan-review metadata and include their cache time;
6015
+ no GitHub lookup runs. Specs use the current complete spec graph; missing,
6016
+ nonancestor or incomplete proof stays unknown. Trains keep their delivery rules.
6017
+ Parent milestones are one-level organization, without automatic child membership.
6018
+
6019
+ A retained milestone requires a target advertising `roadmap` for controlled
6020
+ recovery; its row/link digest is part of the recovery proof. Empty databases
6021
+ retain the old format and integrity shape. R1 creates no GitHub milestone or issue,
6022
+ model answer, export, dashboard view or console panel. See [the module contract](design/roadmap.md).
6023
+
6024
+ ### Bottom-up placement (R3)
6025
+
6026
+ `ahub roadmap unplaced [--repo owner/name]` lists open issues, tasks and active or
6027
+ draft specs with their placement reason. Private tasks are counted but not shown;
6028
+ unavailable sources and capped or partial reads remain explicit, so an empty
6029
+ list is not proof that everything is placed. `ahub roadmap triage [--repo]`
6030
+ asks the configured planner or unique conductor's hub model for evidence-backed
6031
+ suggestions. It stores suggestions without linking anything; `triage --list`
6032
+ reads pending suggestions without a model call. The planner or conductor can
6033
+ accept or reject each suggestion with `ahub roadmap accept|reject <id>`. Accept
6034
+ creates a proposed milestone first when the suggestion names a new milestone,
6035
+ then adds its link; no link is applied without acceptance.
6036
+
6037
+ The person can use `ahub roadmap import-github [--repo owner/name]` to preview
6038
+ open GitHub milestones and their issue links. Add `--apply` to import them as
6039
+ proposed milestones and link open issues. Imports are idempotent, partial reads
6040
+ are marked, and nothing is written back to GitHub. See the [bottom-up placement
6041
+ contract](design/roadmap.md#bottom-up-placement-r3).
6042
+
5826
6043
  ## Planning and phased releases (#263)
5827
6044
 
5828
6045
  Use `ahub backlog list` to read public staged work (a table by rank with the reserved owner, dependencies and cut titles, then a count by reserved owner; `--full` and piped output keep whole titles and `--json` prints the raw listing), then `ahub backlog plan <id>
@@ -5889,7 +6106,12 @@ in the same write and sends it a fresh owner offer, so it can accept at once. A
5889
6106
  reserved peer that cannot take it (offline, paused, excluded, at its WIP limit)
5890
6107
  refuses the pull before any change, naming the peer and its reason; it is not
5891
6108
  passed over to another peer. `ahub route explain` previews the same reserved-only
5892
- choice. An unreserved pull keeps reserving a slot as above. A reserved offer that
6109
+ choice. An unreserved pull keeps reserving a slot as above. A refused pull
6110
+ (#1430) names each owner refusal routing recorded (peer and reason, never task
6111
+ text) beside the WIP or hold detail, and ends with the next step: reserve a
6112
+ peer with `hub_backlog_plan` `fields.reserved` and pull again, or, when a
6113
+ person's reservation is retained, ask the person to change it. A conductor's
6114
+ `hub_task_assign` on a backlog card names the same route. A reserved offer that
5893
6115
  was never started can return untouched. Omitting planning fields retains its
5894
6116
  reservation, so `tasks.auto_pull` can offer it again as soon as the slot is free.
5895
6117
 
@@ -6264,7 +6486,7 @@ Default-branch capture runs only at daemon startup when a Claude implementer is
6264
6486
 
6265
6487
  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.
6266
6488
 
6267
- 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.
6489
+ 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), and the [2.1.323 receipt](verification/2026-11-13-claude-implementer-2.1.323.md) repeats both on 2.1.323 (with 2.1.322 as a control), 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.
6268
6490
 
6269
6491
  A headless Claude reviewer is run by the hub instead (task 223): declare
6270
6492
  `"claude-review": { "kind": "claude", "roles": ["reviewer"], "start_mode": "headless" }`
@@ -6302,7 +6524,7 @@ A reviewer has a review scope (#852): `full` (reads the code, runs the affected
6302
6524
 
6303
6525
  Start them with `ahub claude --as claude-review`, `ahub codex --as codex-review` and `ahub kimi --as kimi-review`; stop with `ahub stop <id>`. For the Claude and Codex reviewers the command asks the running hub to start the reviewer and returns: nothing runs in that terminal, it takes no launch arguments, and `--print-command` or `--dry-run` prints a hub-start note instead of a launch (#720). Fresh Claude and Codex variants share the project checkout; the Kimi variant runs in a clean temporary working directory and reviews only the screened brief and host facts. All fresh variants refuse a custom worktree or permission mode. Codex and Kimi require `review_mode: "fresh"`; without it, an existing headless instance with the reviewer role keeps its native app-server/ACP behavior, worktree and permission options and does not join this pool. Claude retains its task 223 automatic headless-reviewer declaration. The agy reviewer slot remains automatically unavailable (`agy is an implementer peer (#485)`). A failed or unsupported fresh start never downgrades to a native continuing session. Ordinary implementer instances retain their own adapters. The default logical pool order is Claude, Codex, Kimi. Only configured kinds with at least one declared reviewer count as slots, including declared ones that are offline, paused, quota-limited or failing, so availability never renumbers them; configured kinds with no declaration are listed after the walk as `no declared reviewer`. `review.rerotate` defaults to false. Pool selection starts at PR number modulo the number of declared kind slots, or task id when there is no PR, then skips the implementer's family and unavailable candidates. Delta review prefers the preceding eligible independent family in a fresh child. A preceding same-family fallback does not outrank a newly available independent family. `ahub route explain` shows the same pure walk.
6304
6526
 
6305
- Codex requires a verified `codex-cli` (0.146.0, 0.163.0, 0.164.0 or 0.166.0) or one the person trusts on this machine, and a passing bounded runtime receipt before its model child starts. 0.146.0 and 0.163.0 passed the [2026-10-22 model-free production admission](verification/2026-10-22-codex-reviewer-isolation.md) and 0.164.0 the [2026-10-24 one](verification/2026-10-24-codex-0164-reviewer-isolation.md); 0.166.0 passed the [2026-10-31 model-free procedure](verification/2026-10-31-codex-0166-reviewer-isolation.md). Its [first authorized model review](verification/2026-10-31-codex-0166-reviewer-tool-call.md) missed a marker hidden by the fixture's accepted plan, so that admission was reverted. After a committed model-free envelope regression and a fixture correction, the separately authorized [2026-11-02 single model review](verification/2026-11-02-codex-0166-reviewer-tool-call.md) persisted one approved verdict with the required marker and exact head; 0.166.0 is now verified. 0.167.0 passed the [2026-11-06 model-free procedure](verification/2026-11-06-codex-0167-reviewer-isolation.md) with 0.166.0 as control. The separately authorized [single model-backed attempt](verification/2026-11-06-codex-0167-reviewer-tool-call.md) failed a harness readiness/readback check after startup and marker preconditions; a complete persisted verdict/head/marker result was not recorded, so the model/tool outcome is unknown and 0.167.0 remains unverified. No retry was made. It joins the verified set only after a separately authorized model-backed tool-call run succeeds; until then it is refused unless the person runs `ahub agents trust codex-review 0.167.0`, and every runtime proof still runs. A refusal names the installed and verified versions. Either set `codex_bin` to a verified executable, or run `ahub agents trust codex-review <version>`: trust lifts only the version pin, and every proof below still runs before each child (#691). Each launch approves exactly `hub_review` and `hub_task_show` per tool (`approval_mode = "approve"`), never through a server-wide default: without it Codex 0.164.0 listed the tools but refused the call, so reviews ended with no verdict (#783). A model-free receipt proves the inventory, not that a verdict reaches the hub; a [model-backed 0.164.0 run](verification/2026-10-25-codex-0164-reviewer-tool-call.md) recorded one verdict through that path. The producer checks native binary/config stability, configured MCP inventory with only the two hub tools, effective Apps/plugins/hooks disablement, an explicit empty legacy `notify` command and a named filesystem profile. Apps needs separate feature readback because configured inventory omits runtime connectors. Web search is requested disabled; its effective turn mode is not read back and managed requirements can select Cached (see the verification ceiling). Each launch proves public-read, exact/glob/symlink private-denial, standard host credential denial and write-denial in temporary fixtures. Standard credential and configured tool-home/XDG subtrees are denied independently of project `local.deny`. Its sandboxed shell is filesystem read-only with private paths denied and network configured disabled; it is not Claude's Read/Grep/Glob-only tool whitelist. No credential home is copied.
6527
+ Codex requires a verified `codex-cli` (0.146.0, 0.163.0, 0.164.0, 0.166.0 or 0.169.0) or one the person trusts on this machine, and a passing bounded runtime receipt before its model child starts. 0.146.0 and 0.163.0 passed the [2026-10-22 model-free production admission](verification/2026-10-22-codex-reviewer-isolation.md) and 0.164.0 the [2026-10-24 one](verification/2026-10-24-codex-0164-reviewer-isolation.md); 0.166.0 passed the [2026-10-31 model-free procedure](verification/2026-10-31-codex-0166-reviewer-isolation.md). Its [first authorized model review](verification/2026-10-31-codex-0166-reviewer-tool-call.md) missed a marker hidden by the fixture's accepted plan, so that admission was reverted. After a committed model-free envelope regression and a fixture correction, the separately authorized [2026-11-02 single model review](verification/2026-11-02-codex-0166-reviewer-tool-call.md) persisted one approved verdict with the required marker and exact head; 0.166.0 is now verified. 0.167.0 passed the [2026-11-06 model-free procedure](verification/2026-11-06-codex-0167-reviewer-isolation.md) with 0.166.0 as control. The separately authorized [single model-backed attempt](verification/2026-11-06-codex-0167-reviewer-tool-call.md) failed a harness readiness/readback check after startup and marker preconditions; a complete persisted verdict/head/marker result was not recorded, so the model/tool outcome is unknown and 0.167.0 remains unverified. No retry was made. It joins the verified set only after a separately authorized model-backed tool-call run succeeds; until then it is refused unless the person runs `ahub agents trust codex-review 0.167.0`, and every runtime proof still runs. 0.167.2 passed the [2026-11-13 model-free procedure](verification/2026-11-13-codex-01672-reviewer-isolation.md) with 0.166.0 and 0.167.0 as controls and stays out of the verified set on the same terms (`ahub agents trust codex-review 0.167.2`). 0.169.0 passed the [2026-11-14 model-free procedure](verification/2026-11-14-codex-0169-reviewer-isolation.md) with 0.166.0 and 0.167.2 as controls (six of the seven re-read source files changed and were re-read, and the app-server schema comparison found no removed type, property or enum value), and the separately authorized [single model-backed review](verification/2026-11-14-codex-0169-reviewer-tool-call.md) persisted one approved verdict with the required marker and exact head; 0.169.0 is verified. Four earlier starts of that harness were refused at the isolation proof before any model request, a fixture deny-list artifact that the receipt records. A refusal names the installed and verified versions. Either set `codex_bin` to a verified executable, or run `ahub agents trust codex-review <version>`: trust lifts only the version pin, and every proof below still runs before each child (#691). Each launch approves exactly `hub_review` and `hub_task_show` per tool (`approval_mode = "approve"`), never through a server-wide default: without it Codex 0.164.0 listed the tools but refused the call, so reviews ended with no verdict (#783). A model-free receipt proves the inventory, not that a verdict reaches the hub; a [model-backed 0.164.0 run](verification/2026-10-25-codex-0164-reviewer-tool-call.md) recorded one verdict through that path. The producer checks native binary/config stability, configured MCP inventory with only the two hub tools, effective Apps/plugins/hooks disablement, an explicit empty legacy `notify` command and a named filesystem profile. Apps needs separate feature readback because configured inventory omits runtime connectors. Web search is requested disabled; its effective turn mode is not read back and managed requirements can select Cached (see the verification ceiling). Each launch proves public-read, exact/glob/symlink private-denial, standard host credential denial and write-denial in temporary fixtures. Standard credential and configured tool-home/XDG subtrees are denied independently of project `local.deny`. Its sandboxed shell is filesystem read-only with private paths denied and network configured disabled; it is not Claude's Read/Grep/Glob-only tool whitelist. No credential home is copied.
6306
6528
 
6307
6529
  Kimi requires a compat-admitted Kimi Code on the hub's PATH (receipt-verified 2.2.0, 2.3.0, 2.3.1, 2.3.2, 2.4.1 and 2.5.1), signed in through its managed OAuth provider, and a passing runtime preparation before each child; an unverified/untrusted version or a failed preparation is unavailable with its reason. The [2.3.0](verification/2026-10-22-kimi-qwen-compat.md), [2.3.1](verification/2026-10-25-kimi-231-reviewer-compat.md), [2.3.2](verification/2026-10-26-kimi-232-reviewer-compat.md), [2.4.1](verification/2026-10-31-kimi-241-reviewer-compat.md) and [2.5.1](verification/2026-11-06-kimi-251-reviewer-compat.md) receipts are model-free and do not verify real login/provider readiness. Each review runs a new `kimi -p` child without Seatbelt, in a private `KIMI_CODE_HOME` with managed-provider-only config, a clean temporary working directory and an empty skills directory. Its agent may call only `hub_review` and `hub_task_show`, through a task-bound loopback MCP session that never carries the hub's control token, and has no native read, file or shell tool: it reviews the screened brief and host facts only. Its `credentials/`, `oauth/` and `device_id` link to the person's native Kimi files, so it shares the native login, refresh lock and the Kimi account's budget; no token is copied. A stop revokes its verdict authority first, then waits briefly while an OAuth refresh holds the lock; a forced stop mid-refresh may require a native re-login. The Kimi backend records no measured token counts here, so its usage stays unknown; the 2.3.0 receipt makes no usage claim. This is a native tool-authority boundary, not filesystem or network isolation.
6308
6530
 
@@ -6310,7 +6532,7 @@ A dangling or unreadable standard/configured credential root makes the Codex rev
6310
6532
 
6311
6533
  agy is not a reviewer (person decision, 2026-10-19): it is an optional implementer peer (see [Optional Antigravity peer](#optional-antigravity-agy-peer)), and its retained reviewer slot is outside the default pool and always unavailable with `agy is an implementer peer (#485)`. A manual pool accepts only registered reviewer kinds (Claude, Codex, Kimi, agy), so local/Pi are refused. An explicit pool without declared candidates blocks for person action; an omitted pool retains legacy routing without declarations and falls back to an eligible planner when fresh candidates are exhausted. The exhausted pool walk remains recorded; without an eligible planner, the person reviews. A manual pool may name agy, or a Kimi reviewer whose preparation fails; the reason appears as an unavailable skip, and they never run or count as approval. Do not substitute plan mode for isolation.
6312
6534
 
6313
- A failed start or any child ending without a saved verdict advances to the remaining eligible candidates; no quota meaning is guessed from text. A request that went stale before its child started (a new head, review revision or reviewer) is skipped with one `hub.log` line; a still-current request whose review policy changed moves on as `no_verdict`. Neither marks the reviewer unavailable (#781). A child that ends without a verdict leaves one bounded `hub.log` line: its exit code and the hub tools it called, screened like any refusal, never tool arguments or model text. Its delivery completes only once the re-offer is confirmed; an unconfirmed re-offer stays `needs_review`. A manually named reviewer's no-verdict, and one with no declared pool, goes to the person, never to an agent the person did not choose (task 453). A same-family fallback is a distinct fresh reviewer session. Exhaustion records `blocked: no reviewer can run`; with no explicit pool the eligible planner fallback is retained, while an explicit pool or absent eligible planner leaves person action. It never auto-approves. A per-review isolation preparation failure excludes that peer from later tasks until a verified restart. Its reason names one cause from a closed list (`version`, `binary`, `mcp_inventory`, `plugins_hooks_apps`, `sandbox_proof`, `credential_root`, `timeout`, `unknown`) with a fixed hint, on the peer's `reviewer` line in `ahub status` and in a `hub.log` line, and never a path, native CLI text or token (#722). Only the Codex preparation classifies its failures; other reviewers report `unknown`. Recovery targets must advertise `reviewer_pool` when a pool is explicitly configured or fresh reviewer instances are declared. Verdict history retains `reviewContext` and adds `reviewerFamily` and `reviewerReason` from the host.
6535
+ A failed start or any child ending without a saved verdict advances to the remaining eligible candidates; no quota meaning is guessed from text. A request that went stale before its child started (a new head, review revision or reviewer) is skipped with one `hub.log` line; a still-current request whose review policy changed moves on as `no_verdict`. Neither marks the reviewer unavailable (#781). A child that ends without a verdict leaves one bounded `hub.log` line: its exit code and the hub tools it called, screened like any refusal, never tool arguments or model text. Its delivery completes only once the re-offer is confirmed; an unconfirmed re-offer stays `needs_review`. A manually named reviewer's no-verdict, and one with no declared pool, goes to the person, never to an agent the person did not choose (task 453). A same-family fallback is a distinct fresh reviewer session. Exhaustion records `blocked: no reviewer can run`; with no explicit pool the eligible planner fallback is retained, while an explicit pool or absent eligible planner leaves person action. It never auto-approves. A per-review isolation preparation failure excludes that peer from later tasks until a verified restart. Its reason names one cause from a closed list (`version`, `binary`, `mcp_inventory`, `plugins_hooks_apps`, `sandbox_proof`, `credential_root`, `fixture_root_denied`, `timeout`, `unknown`) with a fixed hint, on the peer's `reviewer` line in `ahub status` and in a `hub.log` line, and never a path, native CLI text or token (#722). Only the Codex preparation classifies its failures; other reviewers report `unknown`. Recovery targets must advertise `reviewer_pool` when a pool is explicitly configured or fresh reviewer instances are declared. Verdict history retains `reviewContext` and adds `reviewerFamily` and `reviewerReason` from the host.
6314
6536
 
6315
6537
  Fake-CLI tests and CI cover these host contracts. [Offline isolation evidence](verification/2026-10-19-reviewer-isolation.md) and fake-CLI tests do not prove an account/model review or observed network denial. Native acceptance remains a separate [manual smoke leg](smoke.md#reviewer-pool-native-legs-519-2026-10-19); existing task 223 Claude behavior has no new live proof here. Kimi's authenticated fresh-verdict receipts, and its still-open interactive-TUI coexistence and usage checks, are tracked in [Kimi smoke legs](smoke.md#kimi-reviewer-and-task-bound-mcp-533).
6316
6538
 
@@ -6402,7 +6624,7 @@ Native launcher connections retry transport timeouts/unclean closes with bounded
6402
6624
 
6403
6625
  ## amem runtime (agent-mem#13 P4)
6404
6626
 
6405
- The hub exact-pins @staix/agent-mem <!-- facts:agent-mem-pin -->0.24.0<!-- /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.
6627
+ The hub exact-pins @staix/agent-mem <!-- facts:agent-mem-pin -->0.26.3<!-- /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.
6406
6628
 
6407
6629
  ## Person-run backlog legs (#1176)
6408
6630
 
@@ -6470,6 +6692,7 @@ The selected project's configured conductor may run the commands below through i
6470
6692
  | doctor --orphans --kill | Selected project's positively identified hub-owned process only; no cross-project registrations or unsigned process files. Prints the stopped pids for a person; `--json` prints the hub's reply |
6471
6693
  | logs / export | Bounded daemon projections, with unsupported/private records withheld; logs -f ends when authority ends |
6472
6694
  | settings set | Only the thirteen existing live registry keys listed below |
6695
+ | sdlc configure [--mode off\|advise] [--required-checks <names>] | Only on the person's direct instruction in the conductor's own session (#1432); stages `off`/`advise` and the required check names for the next hub start, never `enforce` or while running or file mode is `enforce` ([contract](sdlc.md#instructed-conductor-configuration-1432)) |
6473
6696
 
6474
6697
  The exact settings keys are `task_sweep.enabled`, `task_sweep.auto_reassign`, `task_sweep.no_writes_turns`, `task_sweep.interval_s`, `task_sweep.unaccepted_min`, `task_sweep.idle_min`, `task_sweep.review_min`, `task_sweep.ready_min`, `task_sweep.ladder_min`, `snapshots.enabled`, `research.enabled`, `approvals.notify` and `tasks.escalate_after`. New keys receive no authority by prefix. Generic roster setting writes still use the dedicated roster lifecycle. Conductor setting records name the initiating peer, and conductor writes preserve the person's pending undo record. An intervening write can still invalidate that undo through the existing file-digest guard; preserving the record does not bypass that guard. Permission modes, roles, `models start|stop`, arbitrary configuration reload and undo remain person commands. `task cancel` remains a separate own-task `hub_task_cancel` permission, not a conductor operation.
6475
6698
 
@@ -7005,7 +7228,14 @@ A peer asks with `hub_ask` (the same tool for Claude, Codex, Kimi, Jcode, Pi and
7005
7228
  - **Expiry.** `questions.ttl_s` (60 to 2592000, default 86400) expires an unanswered question. The peer gets a hub notice of kind `status`, never an answer, and a waiting call is told `cancelled` with reason `expired`.
7006
7229
  - **Restart.** Open questions are stored in `hub.db` and survive a restart. A waiting call ends `pending` at shutdown and at a recovery `prepare`; the row stays open and its answer takes the late path. A row whose peer is back with a different native session is cancelled (`session_changed`); a peer that reports no session is never cancelled for it.
7007
7230
  - **Bounds.** At most 8 open questions per peer and 64 in all: a loop of questions turns into a refusal, not a flood.
7008
- - **Answering.** Three surfaces, one control message (`answer`, console only; `questions`, console only, lists the open rows). In `ahub console`, `A` answers the oldest open question key by key: a digit picks an option (single choice moves on, multi toggles and Enter moves on), `o` types free text where the question allows it (a paste goes into that text, printable characters only, so a pasted Enter or Esc cannot send or leave the answer), Esc leaves and the question stays open. The question and every numbered option are shown in a wrapped area (the body in panels mode, the stream in stream mode), never in the one-line footer, which holds only the keys and the text being typed, so no option is ever off screen while a digit can pick it. A question id is the agent's, so the flow keeps its picks in Maps: `constructor` and `toString` are valid ids; `n` (the attention key) opens the same flow for the question it selects. The last answer is sent at once with no confirm step: answering is neither outward nor destructive. `ahub answer` lists the open questions; `ahub answer <set> <question>=<option>[,<option>]... [--other [<question>=]<text>]...` answers one set (person only: an agent shell is refused before it reaches the hub). In the acon console an open question is an inbox item (`group: decision`, `kind: question`, title `<peer> asks: <first prompt>`, a stub for a private question) whose `answer` verb carries a form built from the stored row; it needs a console that advertises `inbox.form` and `action.meta`, otherwise the item is a plain decision with an `open` verb that links to the Agents panel. The plugin accepts an answer only with the console's own verified person `meta` (`via: "console"`), and refuses one without it before it reaches the hub; the verified identity is recorded on the answered row and on its `question` event (`person`, acon answers only). A stale or superseded set answers `{ ok: false, error }` naming its terminal state.
7231
+ - **Answering.** The person uses the existing console, terminal or acon paths (`questions` remains a console-only read). Ordinary `answer` writes remain console-only; the per-set instructed-conductor exception is described below. In `ahub console`, `A` answers the oldest open question key by key: a digit picks an option (single choice moves on, multi toggles and Enter moves on), `o` types free text where the question allows it (a paste goes into that text, printable characters only, so a pasted Enter or Esc cannot send or leave the answer), Esc leaves and the question stays open. The question and every numbered option are shown in a wrapped area (the body in panels mode, the stream in stream mode), never in the one-line footer, which holds only the keys and the text being typed, so no option is ever off screen while a digit can pick it. A question id is the agent's, so the flow keeps its picks in Maps: `constructor` and `toString` are valid ids; `n` (the attention key) opens the same flow for the question it selects. The last answer is sent at once with no confirm step: answering is neither outward nor destructive. `ahub answer` lists the open questions; `ahub answer <set> <question>=<option>[,<option>]... [--other [<question>=]<text>]...` answers one set as the person (an agent shell without the guarded `--instructed` path is refused before it reaches the hub). In the acon console an open question is an inbox item (`group: decision`, `kind: question`, title `<peer> asks: <first prompt>`, a stub for a private question) whose `answer` verb carries a form built from the stored row; it needs a console that advertises `inbox.form` and `action.meta`, otherwise the item is a plain decision with an `open` verb that links to the Agents panel. The plugin accepts an answer only with the console's own verified person `meta` (`via: "console"`), and refuses one without it before it reaches the hub; the verified identity is recorded on the answered row and on its `question` event (`person`, acon answers only). A stale or superseded set answers `{ ok: false, error }` naming its terminal state.
7232
+ - **Instructed conductor answer (#1473).** After the person directly decides and explicitly asks the unique configured conductor in its own session to record that decision, the conductor may use `hub_ask_answer {set, answers, instruction}` or the CLI below. The quote is required for that one open set. Hub/task/review/file/peer messages and relays never supply this instruction. This cooperative claim follows the release-consent precedent (#1328); it is not independent verification of the quote, release consent, standing delegation or permission to answer in another project. The asking peer cannot answer its own set, including when it is the conductor. Private questions/callers, child tools ownership, live-test/delegated runs, wrong actors, missing/empty quotes and non-open sets are refused with `ahub console` as the person's next step. A relayed decision is final under the same existing validation, expiry, supersede and cancellation rules. The row records surface `conductor`, its peer actor and `instructed: true`; public provenance reads "answered by <conductor> on the person's instruction" in question/answer views and in the waiting result or late envelope. The quote stays only in `hub.db`, never even in question readback, the peer envelope, logs, events or memory capture. The CLI audit records instructed provenance without quote/answer text.
7233
+
7234
+ ```bash
7235
+ ahub answer qs-0123456789ab choice=option --instructed "Record the option I just selected."
7236
+ ```
7237
+
7238
+ Use the actual open set, question and offered option ids; the example records no standing authority. Without `--instructed`, an agent shell retains the existing person-only refusal. The Agents view shows completed instructed answers under Recorded answers; the acon inbox also lists a read-only answered item that links to that view. The instruction quote is not shown. The person's console and ordinary terminal answers are unchanged.
7009
7239
  - **Attention.** An open question is a `question` need (level `act`) and the status `waiting` while one is open, ranked after approvals and permission defaults. It is level-triggered: viewing or listing it never clears it; only an answer, a supersede, a cancel or an expiry does. The model carries the set id, the asking peer and the time, never a prompt or an option. The console reads the list only from a hub whose status lists the `questions` feature, and prints one stream line (peer and count, no text) when a new question arrives.
7010
7240
  - **Recovery.** A new daemon feature label, `questions`, marks the protocol. Recovery refuses a target without it while a question is open or an answer is still owed (`target lacks questions`), because an older daemon would silently ignore the table; answer or cancel the questions first. A recovery `prepare` ends every waiting call as `pending` at once, so a waiting `hub_ask` never holds the prepare for its window. The Claude plugin reports a hub without the label as "this hub does not support questions".
7011
7241
  - **Events.** `question` records `set`, `peer`, `event` (`asked`, `answered`, `pending`, `superseded`, `cancelled`, `expired`, `unavailable`), `latencyMs`, `surface`, `reason`, `questions` (a count) and `private`; never any text.
@@ -7036,13 +7266,13 @@ Corrupt or unreadable provenance stays unknown and held. The status next step di
7036
7266
 
7037
7267
  ## Memory sync diagnosis (#1173)
7038
7268
 
7039
- 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`.
7269
+ 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 (shared v1, generation and sharded homes alike) 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`.
7040
7270
 
7041
- 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.
7271
+ 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.26.3 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.
7042
7272
 
7043
7273
  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.
7044
7274
 
7045
- 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.
7275
+ 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.26.3. 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.
7046
7276
 
7047
7277
  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.
7048
7278
 
@@ -7193,10 +7423,41 @@ real-home policy change is performed by posting a visual.
7193
7423
 
7194
7424
  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.
7195
7425
 
7196
- 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.
7426
+ 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.26.0 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.
7197
7427
 
7198
7428
  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.
7199
7429
 
7200
7430
  ## Claude Code companion (moved, #1338)
7201
7431
 
7202
7432
  The Claude Code companion moved to [STAIxBWLB/ahub-claude](https://github.com/STAIxBWLB/ahub-claude) (#1387). Its code, tests and receipts live there; nothing of it remains in this repository. It is separate from the channel plugin `plugins/agent-hub` that ahub ships. It stays `fixture_only` with manual session-only placement, and its native receipts are person-run and not run.
7433
+
7434
+ ## Reviewer quota admission and review caps (#1446)
7435
+
7436
+ `review.gate` accepts a finite number in `0..1` or `"off"` and defaults to `0.8`; a declared reviewer with known account usage at or above that floor is skipped. `review.unknown_quota` defaults to `skip`, so unknown, missing or stale quota evidence is skipped. Setting `review.unknown_quota = "pass"` admits unknown readings while keeping the numeric floor for known readings. An admitted unknown candidate never supplies quota-wait evidence. Setting `review.gate = "off"` disables the floor, unknown-reading check and every quota wait. Actual Budget pauses and manual pauses still block under either opt-out, as do the existing role, health, failed-reviewer and same-family constraints. Neither setting turns unknown usage into a known reading or clears a cleanup hold.
7437
+
7438
+ Both keys use the existing registered settings path and the same tier and `raises` risk as `review.gate`: use a person terminal or an `ahub ui --settings` session. An ordinary dashboard session or conductor does not gain write authority. These examples change the machine-local override through that guarded path:
7439
+
7440
+ ```bash
7441
+ ahub settings set review.gate off
7442
+ ahub settings set review.gate 0.8
7443
+ ahub settings set review.unknown_quota pass
7444
+ ahub settings set review.unknown_quota skip
7445
+ ahub settings set review.unknown_quota inherit
7446
+ ahub settings set review.gate inherit
7447
+ ```
7448
+
7449
+ `inherit` removes only the machine-local override; a project value or default still applies. `ahub route explain`, the routing line and `ahub budget` name the active quota admission rule. The unknown-quota skip reason names both opt-outs. These commands change admission policy only: there is no new account source, transport or resume path.
7450
+
7451
+ `review.max_minutes` defaults to `20` and caps each actual native review child once, regardless of activity. A cap uses owned process cleanup and records `reviewerFailure.reason = "review time cap"`; the task remains reviewable through the existing fallback.
7452
+
7453
+ With the numeric gate enabled, a quota wait requires every declared candidate to be actually quota-paused or skipped at the known floor, with a known reset for each, and no other blocker. The routing history names each candidate, paused/floor state and reset. The earliest reset only wakes a recheck, including Budget's existing reset plus 60-second expiry grace. `task_sweep.review_min` supplies the sole hard deadline; its initial deadline is bound to task incarnation/head/repository and survives restart without extension. Unknown evidence under the default skip policy, another blocker or expiry uses existing planner/person fallback. With unknown pass, an otherwise eligible unknown candidate is admitted instead of waiting; with gate off, no quota wait is retained. Head, privacy, close and shutdown changes cancel the old timer. Quota refusals never permanently exclude that reviewer for the head.
7454
+
7455
+ Hard reviewer refusals pause the canonical account and its siblings through Budget when observed, independently of eventual task reroute. A stop or cleanup failure cannot discard the observation. Account handoff waits until the owned group/watch settles; Kimi stderr remains admissible only after that settlement. Existing attached Codex account siblings supply the #1440 reads; reviewer-only children have no additional account transport. Without an attached source there is no claim of early reset observation. Only the existing Budget resume policy can release a hard pause; credit flags never do so.
7456
+
7457
+ Claude native `rate_limit_event` rejected frames and `assistant.error = "rate_limit"` are admitted at their outer envelope. Codex 0.166.0 exec supplies only a native error message, so matching is restricted to pinned refusal prefixes inside outer `error`/`turn.failed`; it never parses reset prose. These shapes follow the [official Claude parser](https://github.com/anthropics/claude-agent-sdk-python/blob/d48fa33d9c587d3b9f76307add4b0f9382afbba4/src/claude_agent_sdk/_internal/message_parser.py), [Codex exec schema](https://github.com/openai/codex/blob/rust-v0.166.0/codex-rs/exec/src/exec_events.rs) and [Codex refusal formatter](https://github.com/openai/codex/blob/rust-v0.166.0/codex-rs/protocol/src/error.rs).
7458
+
7459
+ Kimi has no verified typed quota error frame. The narrow exception requires a hub-owned nonzero child exit and a complete bounded own-stderr line starting `error: failed to run prompt: provider.` and containing `usage limit`. It is observed on 2.2.0, unverified on 2.5.2, and always has UNKNOWN reset, so never admits a wait. See the [authorized diagnostic receipt](verification/2026-10-19-kimi-agy-reviewer-isolation.md). Stdout/model/tool text and wire-log errors are never quota evidence.
7460
+
7461
+ Kimi reviewer usage is read from its isolated native session index/wire usage through the existing counter before profile removal, attributed once to the review task. A journal ACK precedes spawn; terminal accounting follows confirmed group settlement and usage read. An unmatched start, damaged replay or incomplete count makes soft headroom UNKNOWN across restart. No host start/cap timestamp clears it. Incomplete logs or missing terminal ACK retain the profile through the existing cleanup hold. Events carry only opaque attempt ids, enums, counts and times. These synthetic paths do not certify a live account reset or a newer native Kimi diagnostic.
7462
+
7463
+ Controlled recovery advertises `reviewer_quota`. A target needs it only when reviewer accounting/wait history is retained or the project explicitly configures `review.gate`, `review.unknown_quota` or `review.max_minutes` (including `unknown_quota = "skip"` and `gate = "off"`); legacy empty state remains compatible with older targets. Snapshot integrity binds ordered safe accounting fields, complete/pending/unknown counts and replay completeness, with no native session/home/text. Missing or changed journal state refuses target restoration. Ending a quota wait at its original deadline is separate from native review readiness: failed enforce-mode CI cannot extend the quota wait, and no premature native review is sent.