@staix/agent-hub 0.39.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 (110) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/README.md +12 -6
  3. package/docs/adding-an-ai-tool.md +1 -1
  4. package/docs/agent-notes/README.md +7 -0
  5. package/docs/agent-notes/adapters.md +5 -3
  6. package/docs/agent-notes/benchmarks.md +2 -0
  7. package/docs/agent-notes/budget.md +1 -0
  8. package/docs/agent-notes/bus.md +1 -0
  9. package/docs/agent-notes/daemon.md +8 -3
  10. package/docs/agent-notes/local-worker.md +3 -1
  11. package/docs/agent-notes/security-review.md +1 -0
  12. package/docs/agent-notes/tasks.md +7 -2
  13. package/docs/agent-notes/tests.md +7 -7
  14. package/docs/contracts/companion-cli-v1.json +4 -0
  15. package/docs/design/adapters.md +91 -0
  16. package/docs/design/agent-hub-architecture.md +17 -0
  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 +34 -0
  23. package/docs/dogfood.md +11 -4
  24. package/docs/events.md +4 -4
  25. package/docs/memory.md +3 -3
  26. package/docs/operations.md +153 -41
  27. package/docs/profiles.md +1 -0
  28. package/docs/quickstart.md +17 -4
  29. package/docs/sdlc.md +3 -1
  30. package/docs/security.md +40 -4
  31. package/docs/verification/2026-11-14-codex-0169-reviewer-isolation.md +70 -0
  32. package/docs/verification/2026-11-14-codex-0169-reviewer-tool-call.md +48 -0
  33. package/docs/verification/2026-11-14-pi-152-compat.md +45 -0
  34. package/docs/verification/2026-11-15-0.40.0.md +39 -0
  35. package/docs/verification/2026-11-16-pi-loopback-1447.md +39 -0
  36. package/docs/verification/pi-152-model-free.ts +57 -0
  37. package/docs/verification/pi-152-native.mjs +21 -0
  38. package/docs/verified.json +22 -22
  39. package/package.json +3 -3
  40. package/plugins/agent-hub/.claude-plugin/plugin.json +1 -1
  41. package/plugins/agent-hub/kimi-hook.js +332 -89
  42. package/plugins/agent-hub/kimi-review-policy-worker.js +16 -11
  43. package/plugins/agent-hub/server.js +417 -160
  44. package/src/adapters/agy/definition.ts +1 -1
  45. package/src/adapters/claude-channel.ts +1 -1
  46. package/src/adapters/codex-review-isolation.ts +61 -17
  47. package/src/adapters/compat.ts +7 -7
  48. package/src/adapters/definitions/builtin-metadata.ts +6 -6
  49. package/src/adapters/definitions/native-config-defaults.ts +1 -1
  50. package/src/adapters/definitions/native-config-policy.ts +1 -1
  51. package/src/adapters/definitions/qwen.ts +1 -1
  52. package/src/adapters/local-worker.ts +5 -3
  53. package/src/adapters/pi.ts +54 -11
  54. package/src/adapters/registry-types.ts +2 -1
  55. package/src/adapters/reviewer-print.ts +2 -1
  56. package/src/cli/answer-args.ts +11 -3
  57. package/src/cli/console-question.ts +1 -1
  58. package/src/cli/console-state.ts +95 -10
  59. package/src/cli/console.ts +6 -2
  60. package/src/cli/error-format.ts +19 -0
  61. package/src/cli/help.ts +290 -25
  62. package/src/cli/identity-audit.ts +8 -7
  63. package/src/cli/identity.ts +17 -0
  64. package/src/cli/init.ts +102 -9
  65. package/src/cli/main.js +2 -2
  66. package/src/cli/main.ts +57 -21
  67. package/src/cli/output-standard.ts +56 -0
  68. package/src/cli/output.ts +143 -8
  69. package/src/cli/roadmap.ts +215 -0
  70. package/src/cli/smoke-pty-bridge.ts +7 -24
  71. package/src/cli/task-output.ts +3 -1
  72. package/src/cli/upgrade-presentation-flags.ts +2 -2
  73. package/src/hub/board.ts +200 -3
  74. package/src/hub/bus.ts +9 -0
  75. package/src/hub/check-runner.ts +3 -4
  76. package/src/hub/ci-watch.ts +19 -4
  77. package/src/hub/control-client.ts +1 -1
  78. package/src/hub/daemon.ts +245 -43
  79. package/src/hub/events.ts +2 -2
  80. package/src/hub/execution-reference.ts +1 -1
  81. package/src/hub/github-import.ts +81 -0
  82. package/src/hub/hub-tools.ts +34 -9
  83. package/src/hub/install-policy.ts +23 -0
  84. package/src/hub/lifecycle-schema.ts +2 -2
  85. package/src/hub/no-writes.ts +3 -0
  86. package/src/hub/operational-authority.ts +3 -1
  87. package/src/hub/operational-view.ts +1 -1
  88. package/src/hub/pi-failure.ts +7 -0
  89. package/src/hub/question-desk.ts +26 -7
  90. package/src/hub/questions.ts +33 -5
  91. package/src/hub/restart.ts +7 -0
  92. package/src/hub/roadmap-triage.ts +86 -0
  93. package/src/hub/roadmap-unplaced.ts +169 -0
  94. package/src/hub/roadmap-view.ts +83 -0
  95. package/src/hub/roadmap.ts +127 -0
  96. package/src/hub/sdlc-merge.ts +5 -4
  97. package/src/hub/sdlc-queue.ts +3 -3
  98. package/src/hub/sdlc.ts +37 -2
  99. package/src/hub/specs-task.ts +7 -0
  100. package/src/hub/task-sweep.ts +29 -2
  101. package/src/hub/task-worktree.ts +37 -0
  102. package/src/hub/tasks.ts +381 -7
  103. package/src/pi/dependency-publish.ts +50 -0
  104. package/src/pi/extension.ts +1 -1
  105. package/src/pi/launch.ts +1 -1
  106. package/src/pi/task-dependencies.ts +249 -0
  107. package/src/ui/index.html +53 -13
  108. package/src/ui/plugin-questions.ts +5 -0
  109. package/src/ui/plugin.ts +6 -1
  110. 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,15 +75,18 @@ 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
91
  `ahub <command> -h` (or `--help`) when the flag is the only argument, and
89
92
  `ahub <command> <sub> -h` when the help lists that subcommand (#1433); anywhere else
@@ -96,11 +99,14 @@ prints `unknown command "<name>"; run ahub help` and exits non-zero. Usages star
96
99
  at two spaces and descriptions at one fixed column, wrapped at word boundaries to
97
100
  the terminal width, read as at least 80 and at most 100 columns.
98
101
 
99
- 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
100
103
  cyan, arguments and descriptions the terminal's default foreground. It has no
101
- `--color` flag: color is on only when standard output is a terminal, `TERM` is
102
- not `dumb` and `NO_COLOR` is empty or absent. Pipes and redirects get plain text
103
- 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.
104
110
 
105
111
  ### Shell completion
106
112
 
@@ -579,9 +585,10 @@ with kind and task ids; all three carry task and peer ids only, and a PII task
579
585
  never joins a link.
580
586
 
581
587
  Console color policy is `--color=auto|always|never`, with `auto` as the default.
582
- Auto enables color only when both input and output are TTYs, `TERM` is not
583
- `dumb`, and `NO_COLOR` is empty or absent. Explicit `always` overrides these
584
- 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.
585
592
  Neither option changes terminal size requirements, panel decisions, cursor
586
593
  management or the final reset. Invalid values fail before connecting.
587
594
 
@@ -656,7 +663,7 @@ and so is every help entry the gate has no class for yet;
656
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) |
657
664
  | `ahub doctor --stale-anchors [--json]` | Allowed | a bounded read-only report of memory symbol anchors at current HEAD |
658
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 |
659
- | `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 |
660
667
  | `ahub roles [--json] [--color=...]` | Allowed | each rostered peer's flow roles as the running hub settled them (#1411 T2); no operand |
661
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 |
662
669
  | `ahub sdlc status\|explain [<task>] [--json] [--color=...]` | Allowed | public lifecycle status; private tasks stay stubs, without private evidence or receipts |
@@ -793,11 +800,30 @@ setting (`ahub settings set peers.pi.start_mode headless`), asks for the
793
800
  background peer instead. The project uses its existing OmniRoute connection for DGX;
794
801
  `pi.dgx_coding` and `pi.dgx_fast` select the gateway's configured model IDs.
795
802
  Every Pi start (headless, TUI, console or auto start) first runs the configured
796
- `pi.cmd` with `--version` (#847). Pi 1.4.0 and 1.5.0 are verified
797
- ([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
798
805
  version, or one that cannot be read, is refused before Pi starts, unless the
799
806
  person trusts that exact version with `ahub agents trust pi <version>`.
800
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
+
801
827
  ```bash
802
828
  ahub models setup # prepare bounded Qwen3.5 4B MLX in an existing Ollama service
803
829
  ahub models start # verify loopback Ollama/model readiness (no daemon spawn)
@@ -1088,8 +1114,8 @@ repository. `test/companion-contract.test.ts` holds ahub to the file.
1088
1114
 
1089
1115
  ## Install and start
1090
1116
 
1091
- Use Bun <!-- facts:bun-floor -->1.4.2<!-- /facts:bun-floor --> or newer. Source checks and CI use the version pinned in
1092
- `.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
1093
1119
  channel plugin:
1094
1120
 
1095
1121
  ```bash
@@ -1122,21 +1148,37 @@ file and never changes `.planning/`. Preview, declined prompt and
1122
1148
  refusal paths print no success next steps.
1123
1149
 
1124
1150
  Whether the repository commits its shared hub config is a choice made at init
1125
- (#1411). `--track-config` keeps `.agenthub/config.json`, `routing.toml` and
1126
- `sdlc.toml` visible to git and lists them to commit; a rule that ignores one of
1127
- them (in `.gitignore`, `.git/info/exclude` or the person's global ignore file) is
1128
- named as `git check-ignore -v` reports it, and init writes nothing until that line
1129
- changes. A `routing.toml` whose `hub_routes` set `adec_endpoint` stays ignored and
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
1130
1172
  is reported, because that endpoint is this machine's and `routing.local.toml` can
1131
1173
  hold only class keys. Machine-local values in `config.json` are listed with the
1132
1174
  move to `config.local.json` before the first commit. `--no-track-config` ignores
1133
- the three files, and each checkout holds its own roles. The AGENTS.md block's role
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
1134
1177
  sentence follows the choice: tracked, it points at `.agenthub/config.json`
1135
1178
  `roles`; untracked, it says the checkout's hub holds the roles. A new project is
1136
1179
  asked at the prompt; with neither flag an existing project keeps its ignore state
1137
- and its block sentence. Every `.gitignore` line init adds is checked with
1138
- `git check-ignore` first, so init adds no line for a path a broader rule already
1139
- ignores.
1180
+ and its block sentence. Outside the managed re-include block, init avoids redundant ignore lines for
1181
+ paths a broader rule already ignores.
1140
1182
 
1141
1183
  `ahub roles [--json]` prints each rostered peer's flow roles as the running hub
1142
1184
  settled them (defaults, overrides and ceilings applied), the planner with how it
@@ -1169,7 +1211,7 @@ operation cannot confirm startup.
1169
1211
  Each completed daemon startup writes one `startup timings ms:` line to `hub.log`,
1170
1212
  with fixed phase names and durations; the span before `task_runtime` carries
1171
1213
  the sub-phases `task_checks`, `task_ports`, `task_board` and `task_recovery`
1172
- (#1445), and its board reads cover open tasks only. The three event-seed consumers share one
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
1173
1215
  lossless streaming pass; abandoned snapshot bodies are not read for startup.
1174
1216
  The [startup receipt](verification/2026-11-07-daemon-startup-1232.md) separates
1175
1217
  seed I/O from bounded usage-rollup I/O and records the isolated measurements.
@@ -2031,7 +2073,7 @@ ahub memory forget 1a2b3c4d # a person's; also promote, demote, sup
2031
2073
 
2032
2074
  `"memory": { "native": false }` in `.agenthub/config.json` turns it off for a project.
2033
2075
 
2034
- The exact-pinned `@staix/agent-mem` 0.26.0 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.
2035
2077
 
2036
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).
2037
2079
 
@@ -2577,7 +2619,7 @@ global CLI the way it was installed; `ahub doctor` names the exact step.
2577
2619
 
2578
2620
  ## Change the participating peers while the hub runs
2579
2621
 
2580
- `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,
2581
2623
  current state, queued messages and open tasks. `ahub roster --json` is the same
2582
2624
  ordered catalog view for scripts. Status and the console keep their existing lazy
2583
2625
  rows; an off-roster peer is shown only while it has retained messages, an uncertain
@@ -3671,7 +3713,12 @@ for that head (#785): one `gh pr view` a minute, ended by a passed CI result, by
3671
3713
  shutdown; a restart does not restore it, and the next `hub_task_done` starts a new
3672
3714
  one. A failed or incomplete result is told once and the watcher keeps reading for a
3673
3715
  rerun of the same head: the first pending read after a newly told result renews the
3674
- 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
3675
3722
  `ci_completed: #<id> head <sha12> passed|failed|incomplete` task notice (ids only, the
3676
3723
  head cut to 12 characters; a person reviewer gets a console line instead), and
3677
3724
  unless CI failed, a review the hub held as premature for that head is offered
@@ -4309,9 +4356,9 @@ are a terminal and neither `--dry-run` nor `--yes` is given. With either flag, o
4309
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
4310
4357
  of the commands in this section for you, so that command's refusals decide.
4311
4358
 
4312
- The screens use the console palette and `--color=auto|always|never`, with the
4313
- same `NO_COLOR` and `TERM=dumb` precedence. Auto colours a suitable TTY; explicit
4314
- 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
4315
4362
  handling. Default and never print the same readable pipe, dry-run, status and
4316
4363
  dispose text, and `--json` keeps the previous documents byte for byte. Presentation flags go after the command, for
4317
4364
  example `ahub recovery --color=never` or
@@ -5215,6 +5262,8 @@ The daemon advertises `task_cancel`; a current CLI refuses cancellation against
5215
5262
 
5216
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.
5217
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
+
5218
5267
  The between-turn task sweep (#186) is disabled by default. Set `task_sweep` in
5219
5268
  `.agenthub/config.json` (or its machine-local override) to enable it:
5220
5269
 
@@ -5339,7 +5388,7 @@ PR or push check with the identical Git tree and all three successful jobs. An a
5339
5388
  unreadable result runs the main gate again and refuses release. A manual
5340
5389
  `prepare_bundle` dispatch builds reviewable plugin assets without publishing;
5341
5390
  it is never accepted as full-gate evidence. A `timing_runs=20` dispatch runs only the daemon, PII screen and ACP
5342
- 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).
5343
5392
  `scripts/check.sh` runs the suite under `scripts/hang-watch.sh`, which stops it when
5344
5393
  no test result line (`(pass)`, `(fail)`, `(skip)` or `(todo)`) and no test file header
5345
5394
  has appeared for `AHUB_CHECK_QUIET_S` seconds (300 by default, set to 300 in CI), so a
@@ -5348,7 +5397,7 @@ output through unchanged and appends one byte to a progress file for each of tho
5348
5397
  the watchdog polls that file's size. On a stop it prints where the run is and the process
5349
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
5350
5399
  that keeps printing results while hung; hosted CI sets 1500 on Linux inside a 35-minute
5351
- 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`
5352
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
5353
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
5354
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
@@ -5935,6 +5984,62 @@ public stub; legend entries contain ids/counts, never task prose. Planning prior
5935
5984
  are described below. Native planner-cycle evidence remains unverified.
5936
5985
 
5937
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
+
5938
6043
  ## Planning and phased releases (#263)
5939
6044
 
5940
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>
@@ -6419,7 +6524,7 @@ A reviewer has a review scope (#852): `full` (reads the code, runs the affected
6419
6524
 
6420
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.
6421
6526
 
6422
- 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. 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`). 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.
6423
6528
 
6424
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.
6425
6530
 
@@ -6427,7 +6532,7 @@ A dangling or unreadable standard/configured credential root makes the Codex rev
6427
6532
 
6428
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.
6429
6534
 
6430
- 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.
6431
6536
 
6432
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).
6433
6538
 
@@ -6519,7 +6624,7 @@ Native launcher connections retry transport timeouts/unclean closes with bounded
6519
6624
 
6520
6625
  ## amem runtime (agent-mem#13 P4)
6521
6626
 
6522
- The hub exact-pins @staix/agent-mem <!-- facts:agent-mem-pin -->0.26.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.
6523
6628
 
6524
6629
  ## Person-run backlog legs (#1176)
6525
6630
 
@@ -7123,7 +7228,14 @@ A peer asks with `hub_ask` (the same tool for Claude, Codex, Kimi, Jcode, Pi and
7123
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`.
7124
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.
7125
7230
  - **Bounds.** At most 8 open questions per peer and 64 in all: a loop of questions turns into a refusal, not a flood.
7126
- - **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.
7127
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.
7128
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".
7129
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.
@@ -7156,11 +7268,11 @@ Corrupt or unreadable provenance stays unknown and held. The status next step di
7156
7268
 
7157
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`.
7158
7270
 
7159
- 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.0 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.
7160
7272
 
7161
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.
7162
7274
 
7163
- 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.0. 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.
7164
7276
 
7165
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.
7166
7278
 
package/docs/profiles.md CHANGED
@@ -8,6 +8,7 @@
8
8
 
9
9
  - Research: question=plan, survey=summarize, extract=bulk_edit, analyze=implement, synthesize=summarize, draft=implement, fact_check=test, review=review, triage=triage.
10
10
  - Writing: outline=plan, draft=implement, edit=bulk_edit, translate=implement, fact_check=test, format=bulk_edit, review=review, summarize=summarize.
11
+ - A writing project may configure a class check to run `atex check --json`. Selecting the profile does not install atex or run that check automatically.
11
12
  - General: plan=plan, do=implement, check=test, review=review, summarize=summarize, triage=triage.
12
13
  - Existing base names remain accepted in every profile. Unknown aliases and another profile's aliases refuse before proposal effects. The board stores the base plus the selected profile/class on non-dev tasks; old rows stay unchanged. Routing, reviewer choice, budgets, outcomes and checks run on the base.
13
14
  - Non-dev plans accept paths, sections, sources and claims. Use full section anchors such as `report.md#methods` and explicit source ids. Equal declared anchors or source ids produce overlap notices. Two document tasks naming distinct section anchors can share a file without a broad path notice; a task without section declarations still reserves the whole path. Claims are evidence ids, not overlap claims. Dev keeps its existing four plan keys.
@@ -4,7 +4,7 @@ agent-hub lets the coding agents on one machine work as peers in one project dir
4
4
 
5
5
  ## Install
6
6
 
7
- Needs [Bun](https://bun.sh) <!-- facts:bun-floor -->1.4.2<!-- /facts:bun-floor --> or newer and macOS (Linux works without the `local` worker's `bash` and `git` tools, which need the macOS sandbox).
7
+ Needs [Bun](https://bun.sh) <!-- facts:bun-floor -->1.4.4<!-- /facts:bun-floor --> or newer and macOS (Linux works without the `local` worker's `bash` and `git` tools, which need the macOS sandbox).
8
8
 
9
9
  Node alone is not supported. Keep `bun` on PATH even if you install with npm.
10
10
  The registry package uses the `staix` organization scope. Install from npm:
@@ -18,7 +18,7 @@ Or use the matching GitHub release:
18
18
 
19
19
  <!-- facts:install-tag -->
20
20
  ```bash
21
- bun add -g github:STAIxBWLB/agent-hub#v0.39.0
21
+ bun add -g github:STAIxBWLB/agent-hub#v0.40.0
22
22
  ahub setup
23
23
  ```
24
24
  <!-- /facts:install-tag -->
@@ -50,6 +50,19 @@ terminal in that project: it reviews the plan with you, applies it and follows
50
50
  it; other projects keep their version. It then names the `bun add -g` and
51
51
  `ahub setup` step when your global CLI or plugin is older than the new daemon.
52
52
 
53
+ ## Upgrading to 0.40.0
54
+
55
+ This release requires Bun 1.4.4 or newer. It adds roadmap milestones and
56
+ bottom-up placement, updates the status and help presentation, and prepares
57
+ dependencies for accepted Pi task worktrees. The exact agent-mem dependency is
58
+ 0.26.3. Pi's sandbox listener policy remains unchanged.
59
+
60
+ CI readbacks now select the uniquely newest run when same-name check rows have
61
+ unambiguous workflow and start-time evidence. Cancelled and draft-deferred
62
+ checks stay pending in the CI watcher while it waits for a replacement run.
63
+
64
+ `ahub upgrade` does not update the global CLI or the shared Claude plugin: run `bun add -g @staix/agent-hub@0.40.0` and then `ahub setup` yourself, and `ahub doctor` warns while either is older than a running daemon.
65
+
53
66
  ## Upgrading to 0.39.0
54
67
 
55
68
  Reviewers are now admitted by quota: `review.gate` defaults to 0.8 and `review.unknown_quota` to `skip`, so a reviewer whose account usage is at or above 80%, or unknown, is skipped and the task takes the existing fallback, and `review.max_minutes` (default 20) caps each native review. To admit unknown readings run `ahub settings set review.unknown_quota pass`, or turn the floor off with `ahub settings set review.gate off`, from a person terminal ([reviewer quota admission](operations.md#reviewer-quota-admission-and-review-caps-1446), #1446, #1467). The conductor must run interactively: a project whose `roles` give `conductor` to kimi, qwen, local or agy, or to a peer that starts headless, loses that role on upgrade with a notice naming the fix, and the person conducts from `ahub console` meanwhile; `ahub doctor` gains a `roles` row and a `shared config` row, which warns with the fixing command when `.agenthub/config.json` is not committed although the AGENTS.md block points at it (#1408, #1411). The `@staix/agent-mem` pin moves from 0.24.0 to 0.26.0: the curated index moves to `index-v4.db` and non-Claude Records spool as `hook-v4-`, which a 0.38.0 hub sharing the home leaves pending, so upgrade every hub and `amem` CLI sharing a home together, and raise its curated format floor to 0.25.0 (needed only for `preference` notes) after that. Nothing else changes until you use it: `ahub init --conductor|--planner|--reviewer` and `--track-config`, `ahub roles`, `ahub sdlc audit`, `[security]` paths in `sdlc.toml` and `ahub sdlc configure` ([roles](roles.md#choosing-who-conducts-plans-and-reviews), [lifecycle](sdlc.md)). N-1 is published 0.38.0 and control remains 16 through 17.
@@ -445,7 +458,7 @@ or set `OMNIROUTE_API_KEY`. The `.agenthub/routing.toml` that `ahub init` writes
445
458
  | `ahub settings set planner <peer>[,<peer>...]` | pin up to eight planners; status reports whether they came from settings, roles or the automatic choice |
446
459
  | `ahub settings reload` | apply edited config files without a restart; guarded values wait for your `y` in this terminal, and restart-only keys stay pending |
447
460
  | `ahub settings edit <file> set <path> <json>` | change an instance, the review block or the `sdlc.toml` lifecycle with a validated diff and a backup; `ahub settings backups` lists the backups |
448
- | `ahub status` | peers, queues, pauses; `ahub budget` for quota windows |
461
+ | `ahub status [--ascii]` | peers, queues, pauses; `--ascii` uses ASCII markers; `ahub budget` for quota windows |
449
462
  | `ahub usage [--by peer\|task\|issue\|pr\|release\|day\|model]` | tokens per group, each number with its source; `ahub usage limits` for pauses and resets |
450
463
  | `ahub worktrees` | live and settled worktrees; `ahub worktrees tidy` previews what is safe to remove, and only you confirm it with `--confirm <fingerprint>` |
451
464
  | `ahub answer` | the questions agents asked you with `hub_ask`; `ahub answer <set> <question>=<option>` answers one set, or press `A` in `ahub console` |
@@ -461,7 +474,7 @@ More: `ahub help`. How it is built and why: [`docs/specs/2026-09-19-agent-hub-de
461
474
 
462
475
  ## Shared memory
463
476
 
464
- The hub exact-pins the first-party `@staix/agent-mem` <!-- facts:agent-mem-pin -->0.26.0<!-- /facts:agent-mem-pin --> core, including deterministic capture; no claude-mem worker is needed. Existing shared-v1 memory remains the default; upgrading does not migrate it. Managed agents use screened `hub_memory_search`, `hub_memory_show` and `hub_memory_graph` tools, or propose a correction with `hub_memory_correct`; only a person accepts candidates through the supported `amem review` path. Since agent-mem 0.7.0, `amem review` also accepts candidates on a selected generation.
477
+ The hub exact-pins the first-party `@staix/agent-mem` <!-- facts:agent-mem-pin -->0.26.3<!-- /facts:agent-mem-pin --> core, including deterministic capture; no claude-mem worker is needed. Existing shared-v1 memory remains the default; upgrading does not migrate it. Managed agents use screened `hub_memory_search`, `hub_memory_show` and `hub_memory_graph` tools, or propose a correction with `hub_memory_correct`; only a person accepts candidates through the supported `amem review` path. Since agent-mem 0.7.0, `amem review` also accepts candidates on a selected generation.
465
478
 
466
479
  Before any real generation migration, upgrade every hub sharing that memory home to 0.12.30 or later and check its authenticated binding with `ahub memory profile-check` in each custom registry. Ready bindings prove compatibility, not an atomic live cutover: quiesce consumers and close their handles before migrating, then reopen through the supported session-preserving lifecycle. Invalid or changed profiles disable native memory without falling back to legacy writes; the bus and board continue. See [memory operations](operations.md#hub-memory) for the remaining rollout gates.
467
480
 
package/docs/sdlc.md CHANGED
@@ -162,6 +162,8 @@ A reviewer records the head it actually reviewed. If GitHub no longer reports th
162
162
 
163
163
  Use structured gh JSON/GraphQL read-only calls (the guarded merge below is the one exception) with validated repository and numeric artifact identities. No shell interpolation, PR/issue body fetching, token logging or unbounded comment storage. Failure yields unknown. Required checks come from repository rules or explicitly configured names; an empty/unknown set is not silently green. Review-thread status is counted, not copied. Cancellation and task-owner generation fencing prevent a late read from approving reassigned work.
164
164
 
165
+ GitHub may return more than one row for a named check after a rerun or cancellation. When every row has a workflow identity and start time, and those identify one uniquely newest run of the same workflow, the hub evaluates that run and drops older rows. If workflow identity or ordering is ambiguous, it retains the rows; duplicate evidence remains a blocker rather than a guessed pass. In the CI watcher, cancelled attempts and a draft PR's deferred `check (macos-latest)` read as pending so the watcher can wait for a replacement run; the aggregate draft check still must pass before review readiness.
166
+
165
167
  ahub sdlc status and explain expose mode, stage, gate, observed/reviewed/local-check heads, next actor and next action. Console/dashboard derive the same result. Merge ordering compares exact PR path sets, reports intersections and never guesses an automatic landing order where dependencies are unknown. Release readiness lists merged work since the tag, stale/nonancestor documentation stamps and open native/live receipts; each unknown remains visible.
166
168
 
167
169
  ## Composition and measurement
@@ -453,7 +455,7 @@ A review request is premature if its task head does not match the PR head, confi
453
455
 
454
456
  **Evidence in the review request (#824).** A fresh reviewer cannot run tests or read `gh`, so the request carries the hub's own reading of the admission it already made, for every reviewer: `Hub-verified at <head>: required checks <names> passed at this exact head; no bot review thread is waiting for a reply` (plus `via identical-tree run <n>` when the hub reused one), or in advise mode `Hub-verified at <head>: not ready: <blockers>`. No admission (lifecycle off) and a PII task get no block, and no new `gh` call is made for it: it renders what `reviewRequestAdmission` read. `ReviewReadiness.checks` names the required checks that were judged. When the admission is ready and the hub ran no check of its own, the checklist's check line says CI passed at this exact head and that test execution or CI evidence is not an unmet item (name a specific missing test or behaviour instead); otherwise the old wording stays. The text comes only from the hub's reads and recorded `check passed` events, never from the builder's summary or a `hub_sdlc_record` claim, and a review-only reviewer still gets no builder summary (#223 R2).
455
457
 
456
- CI controllers are serialized per pull request (`check-pr-<number>`) and for main pushes and ordinary dispatches (`check-main`), for the entire workflow and without canceling an admitted controller (#609); macOS timing dispatches use their own macos-timing group. Within a PR `queue: single` lets a newer pending run replace the older pending one; main keeps `queue: max`, which preserves up to 100 waiting controllers ([GitHub concurrency documentation](https://docs.github.com/en/actions/how-tos/write-workflows/choose-when-workflows-run/control-workflow-concurrency)). Different PRs run side by side: a repository-wide lock serialized every PR (17-18 min alone, 40-54 min with 4-5 PRs in flight on 2026-10-20). Two groups admitting the same tree at the same instant can run it twice; that duplicate costs one run and never a false green. Required job names and read-only token permissions are unchanged. Before PR or push gates, `scripts/ci-reuse.mjs` reuses successful full proof for the identical Git tree, including its workflow. On reuse the shard jobs are skipped, and the aggregate jobs `check (ubuntu-latest)`, `check (macos-latest)` and `seeded guards` report their exact required names. They run only a `Reuse verified identical-tree full gate` marker step naming the original proof; full setup and gates are skipped. Skipped jobs and successful reuse-reporting jobs never count as fresh full proof. A running identical-tree gate refuses duplicate admission; unknown active coverage refuses safely. Only a 404, a timeout on the individual read limit, or malformed successful proof is dropped: a failed successful-run list drops that proof phase, while a failed commit or jobs read drops only that candidate and continues the bounded search. Other failures (5xx, 403, 429, response size bounds, authentication and unclassified errors) remain unknown. Exhausting the overall deadline or request budget stays unknown even when a request reports a timeout. Without verified proof, a complete empty active scan requires a fresh gate. An unreadable, truncated or unidentifiable active inventory, or exhaustion of the shared request budget or deadline, stays unknown and refuses admission. The release reader (`--require`) still refuses without verified identical-tree full proof. Metadata reads are bounded to 100 recent successes/active runs and 240 calls within 60 seconds. Pending serialized controllers are not admitted gates. Run focused tests and `scripts/check.sh --changed` locally; CI carries the full-suite gate; a known flake warrants only one rerun of its failed job with recorded evidence.
458
+ CI controllers are serialized per pull request (`check-pr-<number>`) and for main pushes and ordinary dispatches (`check-main`), for the entire workflow (#609); macOS timing dispatches use their own macos-timing group. Within a PR a newer head replaces the older run: `queue: single` replaces a pending one and `cancel-in-progress` (pull requests only, #1490) cancels an in-progress one, and a cancelled run is never a full-gate proof because reuse needs all three required jobs to have succeeded. A draft PR does not start the macOS shards and its required `check (macos-latest)` fails with "macOS deferred" (never a skip, which a proof could borrow); `gh pr ready` starts a run that includes them. Main never cancels and keeps `queue: max`, which preserves up to 100 waiting controllers ([GitHub concurrency documentation](https://docs.github.com/en/actions/how-tos/write-workflows/choose-when-workflows-run/control-workflow-concurrency)). Different PRs run side by side: a repository-wide lock serialized every PR (17-18 min alone, 40-54 min with 4-5 PRs in flight on 2026-10-20). Two groups admitting the same tree at the same instant can run it twice; that duplicate costs one run and never a false green. Required job names and read-only token permissions are unchanged. Before PR or push gates, `scripts/ci-reuse.mjs` reuses successful full proof for the identical Git tree, including its workflow. On reuse the shard jobs are skipped, and the aggregate jobs `check (ubuntu-latest)`, `check (macos-latest)` and `seeded guards` report their exact required names. They run only a `Reuse verified identical-tree full gate` marker step naming the original proof; full setup and gates are skipped. Skipped jobs and successful reuse-reporting jobs never count as fresh full proof. A running identical-tree gate refuses duplicate admission; unknown active coverage refuses safely. Only a 404, a timeout on the individual read limit, or malformed successful proof is dropped: a failed successful-run list drops that proof phase, while a failed commit or jobs read drops only that candidate and continues the bounded search. Other failures (5xx, 403, 429, response size bounds, authentication and unclassified errors) remain unknown. Exhausting the overall deadline or request budget stays unknown even when a request reports a timeout. Without verified proof, a complete empty active scan requires a fresh gate. An unreadable, truncated or unidentifiable active inventory, or exhaustion of the shared request budget or deadline, stays unknown and refuses admission. The release reader (`--require`) still refuses without verified identical-tree full proof. Metadata reads are bounded to 100 recent successes/active runs and 240 calls within 60 seconds. Pending serialized controllers are not admitted gates. Run focused tests and `scripts/check.sh --changed` locally; CI carries the full-suite gate; a known flake warrants only one rerun of its failed job with recorded evidence.
457
459
 
458
460
  `hub_sdlc_costs` and the person's `ahub sdlc costs [owner/repo]` report linked merged PRs without changing the board. A review round is a board done-to-verdict handoff, not each reviewer in a multi-reviewer round. An observed handoff still counts when its declared scope was none. The report counts distinct check-workflow run ids, extra attempts (`run_attempt - 1`), full re-reviews, delta rounds and summed review intervals, with GitHub review counts alongside them. Unspecified scope and unavailable evidence stay unknown/incomplete. Only current public links are projected; a private counterpart withholds the whole PR. Up to 16 linked PR reads share 20 seconds; each PR covers at most 100 commits, reviews and recent check-workflow runs, and the pure aggregator bounds 500 tasks, 200 PRs and 10,000 history entries. Truncation is explicit. S10 exposes pure band-breach proposal data; S7 owns rolling baselines, band configuration, automatic scheduling and board-card creation.
459
461