@staix/agent-hub 0.46.1 → 0.47.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 (130) hide show
  1. package/CHANGELOG.md +79 -0
  2. package/README.md +8 -4
  3. package/docs/adding-an-ai-tool.md +20 -4
  4. package/docs/agent-notes/adapters.md +3 -3
  5. package/docs/agent-notes/benchmarks.md +7 -1
  6. package/docs/agent-notes/daemon.md +5 -4
  7. package/docs/agent-notes/tasks.md +4 -2
  8. package/docs/agent-notes/tests.md +3 -0
  9. package/docs/contracts/companion-cli-v1.json +3 -0
  10. package/docs/data-policy.md +9 -0
  11. package/docs/design/adapters.md +14 -0
  12. package/docs/design/cli-output-inventory.md +362 -0
  13. package/docs/design/cli-output.md +42 -1
  14. package/docs/design/execution-reference.md +5 -2
  15. package/docs/design/guidance-probes.md +2 -2
  16. package/docs/design/refusal-inventory.md +26 -0
  17. package/docs/design/roadmap.md +4 -0
  18. package/docs/design/task-board.md +17 -1
  19. package/docs/dogfood.md +26 -10
  20. package/docs/events.md +9 -0
  21. package/docs/friction.md +46 -0
  22. package/docs/memory.md +35 -3
  23. package/docs/operations.md +63 -15
  24. package/docs/profiles.md +1 -0
  25. package/docs/quickstart.md +8 -2
  26. package/docs/roles.md +6 -0
  27. package/docs/sdlc.md +44 -1
  28. package/docs/security.md +16 -7
  29. package/docs/specs/2026-09-19-agent-hub-design.md +17 -0
  30. package/docs/specs/2026-09-19-multi-project-design.md +7 -1
  31. package/docs/verification/2026-11-25-agy-1.5.16.md +31 -0
  32. package/docs/verification/2026-11-25-claude-implementer-2.1.332.md +47 -0
  33. package/docs/verification/2026-11-25-codex-0172-reviewer-isolation.md +47 -0
  34. package/docs/verification/2026-11-25-kimi-272-reviewer-compat.md +38 -0
  35. package/docs/verification/2026-11-25-kimi-tui-272.md +14 -0
  36. package/docs/verification/2026-11-25-pi-160-compat.md +40 -0
  37. package/docs/verification/2026-11-26-0.47.0.md +43 -0
  38. package/docs/verification/2026-11-26-codex-0172-reviewer-tool-call.md +29 -0
  39. package/docs/verification/dogfood/2026-11-24.md +2829 -0
  40. package/docs/verification/pi-160-model-free.ts +57 -0
  41. package/docs/verification/pi-160-native.mjs +21 -0
  42. package/docs/verified.json +43 -31
  43. package/package.json +2 -2
  44. package/plugins/agent-hub/.claude-plugin/plugin.json +1 -1
  45. package/plugins/agent-hub/kimi-hook.js +579 -126
  46. package/plugins/agent-hub/server.js +668 -138
  47. package/src/adapters/acp.ts +5 -0
  48. package/src/adapters/channel-peer.ts +7 -0
  49. package/src/adapters/claude-print-child.ts +27 -5
  50. package/src/adapters/codex-appserver.ts +9 -0
  51. package/src/adapters/compat.ts +12 -11
  52. package/src/adapters/configured-acp.ts +45 -2
  53. package/src/adapters/configured-print.ts +163 -0
  54. package/src/adapters/conformance/index.ts +1 -0
  55. package/src/adapters/conformance/print.ts +57 -0
  56. package/src/adapters/definitions/native-activity.ts +57 -0
  57. package/src/adapters/definitions/native-factories.ts +4 -2
  58. package/src/adapters/jcode.ts +10 -2
  59. package/src/adapters/local-worker.ts +2 -0
  60. package/src/adapters/registry-types.ts +5 -3
  61. package/src/adapters/role-eligibility.ts +5 -0
  62. package/src/cli/bench.ts +2 -1
  63. package/src/cli/broker.ts +2 -1
  64. package/src/cli/capabilities-output.ts +10 -14
  65. package/src/cli/configured-acp-entry.ts +10 -2
  66. package/src/cli/console-state.ts +25 -5
  67. package/src/cli/error-format.ts +2 -0
  68. package/src/cli/guidance.ts +1 -1
  69. package/src/cli/handoff-output.ts +20 -17
  70. package/src/cli/help.ts +78 -40
  71. package/src/cli/init-settings.ts +15 -0
  72. package/src/cli/intake-output.ts +13 -13
  73. package/src/cli/launch.ts +3 -2
  74. package/src/cli/learn-output.ts +40 -21
  75. package/src/cli/main.ts +148 -77
  76. package/src/cli/memory.ts +47 -2
  77. package/src/cli/output.ts +54 -31
  78. package/src/cli/roadmap.ts +2 -2
  79. package/src/cli/room-output.ts +71 -0
  80. package/src/cli/room.ts +19 -33
  81. package/src/cli/schedule-output.ts +20 -19
  82. package/src/cli/sdlc-output.ts +188 -170
  83. package/src/cli/source-output.ts +17 -14
  84. package/src/cli/specs.ts +13 -13
  85. package/src/cli/study-output.ts +66 -69
  86. package/src/cli/task-output.ts +106 -158
  87. package/src/cli/terminal-recovery.ts +2 -1
  88. package/src/cli/upgrade-runtime.ts +2 -1
  89. package/src/cli/warn-line.ts +18 -0
  90. package/src/cli/worktrees-output.ts +25 -23
  91. package/src/hub/audit-source.ts +45 -0
  92. package/src/hub/board.ts +141 -5
  93. package/src/hub/bus.ts +13 -2
  94. package/src/hub/config-apply.ts +14 -1
  95. package/src/hub/config-trust.ts +1 -0
  96. package/src/hub/control-client.ts +1 -1
  97. package/src/hub/daemon.ts +371 -45
  98. package/src/hub/handoff.ts +5 -1
  99. package/src/hub/hub-tools.ts +23 -5
  100. package/src/hub/instance-config.ts +3 -3
  101. package/src/hub/learn-followup.ts +103 -0
  102. package/src/hub/learning.ts +63 -1
  103. package/src/hub/manager.ts +15 -1
  104. package/src/hub/memory-policy.ts +2 -1
  105. package/src/hub/memory-review.ts +217 -0
  106. package/src/hub/peer-activity.ts +37 -0
  107. package/src/hub/peers.ts +3 -0
  108. package/src/hub/project-move.ts +258 -0
  109. package/src/hub/registry.ts +16 -5
  110. package/src/hub/restart.ts +7 -0
  111. package/src/hub/review-brief.ts +8 -4
  112. package/src/hub/review-checkout.ts +26 -0
  113. package/src/hub/review-findings.ts +6 -3
  114. package/src/hub/risk-tier.ts +129 -0
  115. package/src/hub/roadmap-check.ts +1 -0
  116. package/src/hub/routing.ts +3 -1
  117. package/src/hub/sdlc-merge.ts +9 -0
  118. package/src/hub/sdlc-metrics.ts +24 -1
  119. package/src/hub/sdlc-queue.ts +1 -1
  120. package/src/hub/sdlc.ts +15 -6
  121. package/src/hub/settings.ts +2 -0
  122. package/src/hub/spec-readback.ts +136 -0
  123. package/src/hub/specs.ts +1 -1
  124. package/src/hub/task-list-page.ts +1 -1
  125. package/src/hub/tasks.ts +558 -65
  126. package/src/hub/ui.ts +4 -2
  127. package/src/ui/index.html +26 -2
  128. package/src/ui/overview-model.ts +138 -0
  129. package/src/ui/plugin.ts +30 -4
  130. package/templates/roles/ops/project-manager.md +1 -1
@@ -84,6 +84,7 @@ The transport probe found an inherited Unix socket on macOS. On Linux with Yama
84
84
  `status --all` uses the projects table. `queue show`, `models status` and `budget execution status` show labelled fields; add `--json` for the raw fetched document.
85
85
  `report --by task` keeps the attribution and coverage sentences with section headings and aligned counters.
86
86
  Use `--json` for scripts; it returns the fetched data without color, and `status --json` keeps its existing document.
87
+ Every human view prints on the shared Report layout (a header, a `▸` mark per section and state markers) and takes `--ascii` for ASCII markers (#1654). Stderr warnings read `ahub: warning: <what>: <why>`, with a `→` line naming the next step where the fix is known; `ahub: blocker:` lines are unchanged, and `--json` output and exit codes stay the same.
87
88
  `sdlc status`, `sdlc explain`, `sdlc queue`, `sdlc release`, `sdlc metrics`, `sdlc costs`, `sdlc merge` and `sdlc authorize-release` print readable output by default (#814, #899: aligned columns, wrapped text, readable times, `--color=auto|always|never`). A script that parsed their JSON must pass `--json`, which prints exactly the document they printed before. `sdlc export` is a data format and stays JSON, as do `export`, `research export` and `bench export`.
88
89
  `restart` and `upgrade` off an interactive terminal (a pipe, `--dry-run`), `recovery status` and the results of `recovery reattach`, `resume`, `abort` and `dispose`, `models setup` and `start`, `queue resolve`, and `budget execution configure` and `disable` print readable text by default (#814); a script that parsed their JSON must pass `--json`, which prints exactly the document they printed before, including `restart --json --yes`. A readable plan lists each project, each peer with how it runs and what happens to it, every blocker, every reconnect-only session and every fresh start, and says nothing was changed; `--json` keeps those as stderr lines. A pipe wraps at `COLUMNS` when it is set, else at 80 columns.
89
90
  `task show`, `task cancel`, `backlog groom`, `backlog return|plan|pin|split|undo|pull-ready` and the `release` commands (`list`, `show`, `new`, `plan`, `activate|freeze|ship|drop`) print a readable block by default (#814): the task or release as the hub holds it, a table for lists, every identifier whole, long text wrapped to the terminal. A script that parsed their JSON must pass `--json`, which prints the hub tool's text exactly as before. A private task arrives from the hub as its stub and is shown as that stub. Because these commands also take free text, `--json` and `--color=` count as flags only at the start or the end of the arguments: `--json` in the middle of a reason is part of the reason, and a value flag's value (`task cancel --reason --json`) is never a flag. A reason that ends in a bare `--json` loses it to the flag. `backlog add|pull`, `task escalate|assign|unassign` already answered one sentence and are unchanged.
@@ -972,14 +973,22 @@ themes. The Office scene keeps its own rules until R5.
972
973
  ### Dashboard app shell and keys (#469 R2)
973
974
 
974
975
  From 1024px up, a sticky top bar holds the project context, the connection status (a coloured dot and its text, green when live
975
- and red when disconnected or closed), the attention badge, the theme switch and a shortcuts button; the eight views sit in a
976
+ and red when disconnected or closed), the attention badge, the theme switch and a shortcuts button; the nine views sit in a
976
977
  left sidebar with an icon and a label, and the approval count still rides on Agents. Below 1024px the same nav is one row of
977
978
  tabs that scrolls sideways inside itself, so the page never scrolls sideways. The view names, their order, the
978
- `agent-hub-view` cookie and every id are unchanged; Roadmap is the eighth view, added by R5 (#1483).
979
+ `agent-hub-view` cookie and every id are unchanged; Roadmap is the eighth view, added by R5 (#1483), and Overview the ninth (#1514, key 9).
979
980
 
980
- Keys: `1` to `8` switch to Board, Office, Stream, Agents, Message, Memory, Settings and Roadmap, `?` opens the key list, and `Esc` closes
981
+ Overview shows five widgets over the board's public history: throughput (tasks proposed and done per week, last 8 weeks),
982
+ pulse (board events per day, last 84 days), peer health (each owner's first-pass approval rate over 30 days), peer
983
+ workload (open tasks per owner by state) and recent trouble (the 20 latest failed checks, `changes_requested` verdicts
984
+ and open stalls). A figure the board cannot derive reads `unknown`, never 0 (turn errors are not on the board, so they
985
+ are always `unknown`). A private task is counted in `withheld` only and adds no title, owner or time to any widget. The
986
+ first-pass rate comes from the same `taskSample` as `ahub sdlc metrics`, so the two agree on one board. The figures are
987
+ built only while the Overview view is open, and reused until the board revision, the UTC day or the open stalls change.
988
+
989
+ Keys: `1` to `9` switch to Board, Office, Stream, Agents, Message, Memory, Settings, Roadmap and Overview, `?` opens the key list, and `Esc` closes
981
990
  the key list or the task detail (both are native dialogs). View keys are ignored while you type in an input, a textarea or a
982
- select, with Ctrl, Alt or Cmd held, and while a dialog is open. Icons come from one inline SVG sprite of nine Tabler icons;
991
+ select, with Ctrl, Alt or Cmd held, and while a dialog is open. Icons come from one inline SVG sprite of twelve Tabler icons;
983
992
  the MIT notice is in `THIRD_PARTY_NOTICES.md`. Nothing is fetched and no package is added.
984
993
 
985
994
  ### Dashboard board, side sheets and the Plan sheet (#469 R3)
@@ -1056,7 +1065,7 @@ when a project stops; `ahub ui --all --stop` stops only the manager. Existing
1056
1065
  `ahub projects --json` returns machine-readable live status. Use a listed ID or a
1057
1066
  path with `--project`; the selector must precede the command. `ahub projects remove
1058
1067
  <id>` forgets a stopped registration without deleting project data. A moved root
1059
- gets a new registration. Missing roots remain visible until removed.
1068
+ gets a new registration unless you re-key it first. Missing roots remain visible until removed.
1060
1069
 
1061
1070
  Runtime state stays in each project's `.agenthub/state/`. The machine registry is
1062
1071
  `~/.agenthub/registry.db`; existing `ports.json` allocations are imported once.
@@ -1080,6 +1089,37 @@ Incompatible or unverified processes are shown explicitly and are never killed b
1080
1089
  PID-name matching. See the operations guide and the
1081
1090
  [multi-project specification](specs/2026-09-19-multi-project-design.md).
1082
1091
 
1092
+ ### Move an existing registration
1093
+
1094
+ Stop the old hub before moving the repository. After moving it, run
1095
+ `ahub projects move <old-id|old-root> <new-root>` from your terminal.
1096
+ This previews the preserved port, database row and marker counts, and the
1097
+ registered projects with handoff references to the old ID. Use `--state <dir>`
1098
+ if the moved state is outside the new root's `.agenthub/state` directory.
1099
+ Stop every hub named by the preview refusal. If the old hub is still running
1100
+ and cannot be reached at its registered path, move the directory back and
1101
+ stop the hub there. Settle any pending deliveries before moving.
1102
+
1103
+ Repeat the preview command with its `--confirm <fingerprint>` flag before
1104
+ running `ahub up` at the new root. The move checks the preview again, backs up
1105
+ all affected databases and markers under `.agenthub/archive/move-<UTC time>/`,
1106
+ and changes the registry while preserving the port. An interrupted apply
1107
+ is restored on the next registry operation if its registry transaction did
1108
+ not commit.
1109
+
1110
+ The move rebinds both incoming and outgoing handoff references. It leaves memory
1111
+ project keys and archived recovery history at their original identities and
1112
+ archives the current Pi recovery bookmark if present. Run `ahub autonomy on`
1113
+ from the new root if you want to grant autonomy there.
1114
+
1115
+ For a manual restore, stop every affected hub, save a fresh backup, and use
1116
+ the archive's `restore.json` to map database backups and marker copies to
1117
+ their destinations. A whole-file SQLite restore requires the destination DB
1118
+ and its WAL/SHM files to be closed and moved aside before copying the backup.
1119
+ Keep any unrelated registry changes by restoring only the moved registration
1120
+ from the registry backup. Move the repository back to its original root
1121
+ before restarting the restored registration.
1122
+
1083
1123
  ## acon console plugin (#935, #1012)
1084
1124
 
1085
1125
  `ahub setup` registers agent-hub as a plugin of the family console
@@ -1090,10 +1130,10 @@ the directory 0700, the file 0600, replaced atomically) naming the installed mod
1090
1130
  up to date` or why it was not registered. acon reads the file at its next start and marks the
1091
1131
  plugin stale when the module changed after setup, so run `ahub setup` again after each upgrade.
1092
1132
 
1093
- - **Panels.** The plugin's panels are the dashboard's eight views, and the panel is the `ahub ui`
1133
+ - **Panels.** The plugin's panels are the dashboard's nine views, and the panel is the `ahub ui`
1094
1134
  page itself, following acon's theme. It reaches project hubs only through the manager's own
1095
1135
  listing and forwarding (`ahub ui --all`): registered project and instance ids, the manager's
1096
- closed action list and the eight view names. There is no new protocol. An answer, a result
1136
+ closed action list and the nine view names. There is no new protocol. An answer, a result
1097
1137
  receipt or a review comment sent from acon goes through a manager port of its own (`answer`,
1098
1138
  `receipt`, `consoleControl`) that needs acon's verified person `meta`.
1099
1139
  - **Inbox.** acon's inbox lists each running project's pending approvals (Allow once / Deny,
@@ -1233,7 +1273,7 @@ operation cannot confirm startup.
1233
1273
  Each completed daemon startup writes one `startup timings ms:` line to `hub.log`,
1234
1274
  with fixed phase names and durations; the span before `task_runtime` carries
1235
1275
  the sub-phases `task_checks`, `task_ports`, `task_board` and `task_recovery`
1236
- (#1445), and its board reads cover open tasks only. The work after readiness is split into one boundary per step (`post_ready_handoff`, `_queue`, `_watch`, `_reconcile`, `_goals`, `_leases`, `_crash`, `_pi`, `_drift`, #1591), so a slow start names the step that held control replies. `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
1276
+ (#1445), and its board reads cover open tasks only. The work after readiness is split into one boundary per step (`post_ready_handoff`, `_queue`, `_watch`, `_reconcile`, `_goals`, `_leases`, `_crash`, `_pi`, `_drift`, #1591), so a slow start names the step that held control replies. `post_ready_reconcile` pages the memory store for task keys that still need settlement and rechecks current approval and privacy on the board. If discovery is unavailable, startup uses the approved-task point checks. `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
1237
1277
  lossless streaming pass; abandoned snapshot bodies are not read for startup.
1238
1278
  The [startup receipt](verification/2026-11-07-daemon-startup-1232.md) separates
1239
1279
  seed I/O from bounded usage-rollup I/O and records the isolated measurements.
@@ -2107,7 +2147,9 @@ ahub memory forget 1a2b3c4d # also promote, demote, supersede, rebu
2107
2147
 
2108
2148
  `"memory": { "native": false }` in `.agenthub/config.json` turns it off for a project.
2109
2149
 
2110
- The declared `@staix/agent-mem` range (`>=0.33.0 <1.0.0` in `package.json`, resolved to 0.38.0 by `bun.lock`) resolves `AMEM_HOME`, then `$AGENTHUB_HOME/memory`, then `~/.agenthub/memory`. A plain release inside that range opens memory without a hub release when its host API range intersects the supported `[1, 1]`; an out-of-range, unattested, prerelease or host-API-incompatible package refuses to open it. A new minor can raise the store format floor: an older hub or amem cannot read a store a newer one wrote, so roll back the hub together with the store. An absent `M/profile.json` selects shared v1; an explicit generation selects `M/generations/G` with the package's readonly legacy bridge. All daemon memory consumers and the hub memory/goal CLI use that selected profile. Invalid metadata or a missing selected generation makes native memory unavailable while the bus and board continue; there is no fallback to legacy writes. Inspect the daemon's memory binding/availability before interpreting missing memory as an empty store.
2150
+ A scheduled memory review is off by default. `memory.review` in `.agenthub/config.local.json` (it needs both `max_tokens_run` and `max_tokens_week`) files one `review`-class card per period over the notes whose code anchors no longer resolve, and `ahub memory review on|off|status` is the person's switch. While a turn works that card, the hub refuses tool calls outside the review's scope and stops the review at either token cap ([scheduled review](memory.md#scheduled-review-and-its-switch-1329-part-1)).
2151
+
2152
+ The declared `@staix/agent-mem` range (`>=0.39.0 <1.0.0` in `package.json`, resolved to 0.39.0 by `bun.lock`) resolves `AMEM_HOME`, then `$AGENTHUB_HOME/memory`, then `~/.agenthub/memory`. A plain release inside that range opens memory without a hub release when its host API range intersects the supported `[1, 1]`; an out-of-range, unattested, prerelease or host-API-incompatible package refuses to open it. A new minor can raise the store format floor: an older hub or amem cannot read a store a newer one wrote, so roll back the hub together with the store. An absent `M/profile.json` selects shared v1; an explicit generation selects `M/generations/G` with the package's readonly legacy bridge. All daemon memory consumers and the hub memory/goal CLI use that selected profile. Invalid metadata or a missing selected generation makes native memory unavailable while the bus and board continue; there is no fallback to legacy writes. Inspect the daemon's memory binding/availability before interpreting missing memory as an empty store.
2111
2153
 
2112
2154
  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).
2113
2155
 
@@ -3718,6 +3760,7 @@ Planner holders propose and split tasks and read project-wide grooming. Each
3718
3760
  task's effective planner gets its backlog and sweep notices. `ahub status`
3719
3761
  prints the holders with their source, the dashboard's Agents view shows a
3720
3762
  Planner badge, and the console marks their rows.
3763
+ A proposal may name why the work is split off with `reason` (`explore`, `parallel`, `context`, `verify`, `capability` or `person`): `hub_task_show`, `hub_task_list`, `ahub task show` and the board show it, `parallel` siblings with overlapping paths are refused, and `ahub sdlc metrics` groups by it.
3721
3764
 
3722
3765
  - `setting`: `planner` in `.agenthub/config.json` or `config.local.json` (the
3723
3766
  machine's file wins), either one id or a list of up to eight distinct ids.
@@ -4229,7 +4272,7 @@ or the plugin is older than the daemon it installed (#1179). It prints nothing w
4229
4272
  | Runtime | Control protocol window | Legacy status field |
4230
4273
  | --- | --- | --- |
4231
4274
  | 0.12.20 through 0.25.0 | 16 only | `protocol: 16` |
4232
- | 0.26.0 through 0.39.0 | 16 through 17 | `protocol: 16`, `protocolMin: 16`, `protocolMax: 17` |
4275
+ | 0.26.0 through 0.47.0 | 16 through 17 | `protocol: 16`, `protocolMin: 16`, `protocolMax: 17` |
4233
4276
 
4234
4277
  New clients choose the highest common protocol. The protocol window remains 16
4235
4278
  through 17, so the published protocol-16 client and channel plugin remain usable; unrelated feature
@@ -4237,7 +4280,10 @@ capabilities still require their own labels. A disjoint window refuses with 4426
4237
4280
  The compatibility-floor `protocol` field remains readable by old clients.
4238
4281
 
4239
4282
  Release N-1 is counted in minor versions, separately from this protocol window
4240
- (#1164, family contract entelecheia/ai-workspace#70). For 0.39.x, N-1 is 0.38.0,
4283
+ (#1164, family contract entelecheia/ai-workspace#70). For 0.47.x, N-1 is 0.46.1,
4284
+ the latest published patch of 0.46.x (declared `@staix/agent-mem` `>=0.33.0 <1.0.0`,
4285
+ 0.38.0 in its fixture lock, control protocol 17 with descriptor floor 16). Every
4286
+ patch on 0.47.x keeps that release baseline. For 0.39.x, N-1 is 0.38.0,
4241
4287
  the latest published patch of 0.38.x (exact `@staix/agent-mem` 0.24.0, control
4242
4288
  protocol 17 with descriptor floor 16). Every patch on 0.39.x keeps that release
4243
4289
  baseline. For 0.38.x, N-1 is 0.37.0,
@@ -5851,7 +5897,7 @@ that the file is untracked; a dropped value is reported by the settings result.
5851
5897
 
5852
5898
  ## SDLC artifact receipts and gates
5853
5899
 
5854
- 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)).
5900
+ The playbook lifecycle (#257, #481) is off without `.agenthub/sdlc.toml`. When enabled its stages are intent, spec, plan, build, test, review, merge, release and maintain, grouped as Plan, Design, Build, Test, Deploy and Maintain. Advise shows blockers; enforce checks implemented head-bound review and approval gates. Stored implement/verify receipts read as build/test; new enabled receipts use canonical ids. See [the SDLC contract](sdlc.md) for gates, required check names, local receipts, console-only readbacks and the S0-S8 delivery table. A person accepts a spec issue with `ahub sdlc accept <task> --issue <n>` (S1). A PR merged outside the hub is recorded with `ahub sdlc adopt-merge <task> --pr <n>` (person or current conductor), which approves the task and releases dependents only at its recorded head with green required checks ([adoption](sdlc.md#adopting-a-pr-merged-outside-the-hub-1328-t3)). The planner records plan reviews with review and CI scope (`hub_plan_review`, `ahub sdlc plan-review`) and grooms with `ahub backlog groom`; `ahub backlog return <task> <revision> <reason>` returns accepted, untouched work (S9). `ahub sdlc costs [owner/repo]` reports review rounds and CI runs of merged PRs without writing the board (S10). `ahub sdlc metrics [--since <YYYY-MM-DD|ISO time>]` (the planner tool `hub_sdlc_metrics`, planner or person, read-only) reports lead times, first-pass approval and check rates, rework rounds, stale-head re-reviews and open stalls from board history, with `unknown` counted and never 0; optional `[bands.<metric>]` in `sdlc.toml` add control bands that the daemon checks every five minutes in advise or enforce, writing a hub notice (`log`), a read-only `triage` backlog task (`diagnose`) or a `plan` backlog card (`propose`), one per breach episode and never a GitHub issue (S7, see [metrics](sdlc.md#sdlc-metrics-and-control-bands-481-s7)). With the lifecycle on, a task's issue identity is linked when it is proposed or accepted, from the one issue it names (an imported GitHub issue, or a `#N`, `owner/repo#N` or issue URL in its title); a title that names a sibling repository (`agent-mem#13`) links only when `refs.repo` names it, and without `refs.repo` the propose result says to set it. `ahub backlog groom` also backfills up to 32 links per call, within 1 s (#723). S11 release trains ship in 0.12.37 (see [release scheduling](#planner-release-scheduling)). S3 structured review findings (an open Important finding blocks approval in enforce; `max_nits` in `sdlc.toml` caps nits) and S2 literal-path plan conformance with the person-only `ahub sdlc accept-departure <task> <head> <reason...>` are in source; see [findings](sdlc.md#structured-review-findings-481-s3) and [plan conformance](sdlc.md#plan-conformance-481-s2). S4 [test integrity](sdlc.md#test-integrity-481-s4) and S6 [release authorization](#release-approval-and-optional-tag-guard) are in source too. S5 is in source as an [eval gate mechanism](sdlc.md#eval-gate-for-agent-configuration-481-s5) with no suite chosen, and S7 adds merge-time readback, [release metrics](sdlc.md#release-metrics-481-ac12) and an opt-in security baseline; a full live advise/release cycle and the per-release gates-run record remain pending. Owners/reviewers record bounded identities through `hub_sdlc_record`; these grant no additional authority. Off output, receipt and schema shapes stay unchanged. #1403 adds a `[security]` table whose paths need a recorded `security_pass` on the approving review ([security pass](sdlc.md#security-pass-for-sensitive-paths-hub-task-895-1403-a2)), `ahub sdlc audit start|show` with a hub-written coverage ledger ([audit](sdlc.md#security-audit-with-a-coverage-ledger-hub-task-896-1403-a4-a5)), plan intent fields with advisory base drift on accept and done, and `ahub sdlc survey start|show` ([surveys](sdlc.md#advisor-surveys-and-considered-findings-1403-t7)); while survey or considered-finding state exists, a restart, upgrade or recovery onto a target without `advisor_surveys` is refused. The person may instruct the configured conductor in its own session to run `ahub sdlc configure` for `off`/`advise` and required checks ([#1432](sdlc.md#instructed-conductor-configuration-1432)). In `advise` or `enforce`, `ahub sdlc readback start|show <task>` (person or current conductor) asks a reviewer-role peer that neither proposed nor owns the task to state the spec issue back, a report that never gates acceptance ([spec read-back](sdlc.md#spec-read-back-1658)), and an optional `[risk]` table in `sdlc.toml` derives a risk tier from a filed change's paths, a `high` change owing a verifier card from a peer other than the implementer ([risk tier](sdlc.md#minimum-review-by-risk-tier-1645)).
5855
5901
  ## Supervision proposals
5856
5902
 
5857
5903
  `supervision.mode` is off by default and machine-local (`ahub settings set supervision.mode advisory`); a committed
@@ -5956,7 +6002,7 @@ A busy jcode takes an `important` message into its running turn (#572): the hub
5956
6002
 
5957
6003
  jcode has no switch to choose which MCP servers its `serve` and `acp` load, so the hub-owned jcode starts every server named in `<JCODE_HOME>/mcp.json` and the project's `.jcode/mcp.json`, `.mcp.json` and `.claude/mcp.json`, besides the hub's own (#572). `ahub doctor` lists their names in its `jcode MCP servers` row (names only, from those four files only). To keep a server out, remove it from those files, or point `jcode_home` at a separate home. `ahub init` does the second for you (#1627): when jcode is installed or rostered and `jcode_home` is still your own `~/.jcode`, it creates `<hub home>/jcode/<project id>` holding only the hub's MCP entry, the servers you listed in `jcode_mcp_allow` (copied from your `mcp.json`) and the hub skill trees, leaves `jcode_home` unchanged (a new home has no login, and switching would break a working jcode), and prints your steps: `JCODE_HOME=<home> jcode login`, then `ahub init` again, which sets `jcode_home` in `.agenthub/config.local.json` (never the tracked file) once the home holds a login. Provider and model defaults stay in your own `config.toml` and are not copied. It never reads or copies your login, sessions or history and never changes your own home. `ahub init --no-jcode-home` skips it, `--dry-run` lists what it would write, and a second run only reports drift. `ahub roster add <peer>` shows a preflight first (CLI version verdict, start mode and, for jcode, the home and the MCP servers that would load) and asks y/N; with no terminal it refuses unless `--yes` is given, which a configured conductor keeps using. Probe receipt: `docs/verification/2026-11-22-jcode-separate-home.md`. To accept servers on purpose (for example `amem`, `vmem` and `ares`), list their names in `jcode_mcp_allow` in `.agenthub/config.local.json` (machine-local, never read from the tracked config, never editable from settings; an instance's own `jcode_mcp_allow` or the inherited top-level list applies): the row then reads `ok` and names them as allowed by the person, any other extra server still fails and is named, and an unreadable file still fails. This changes only what `ahub doctor` accepts, not what jcode loads, and it matches by name only, so another server registered under an allowed name also passes (#1621).
5958
6004
 
5959
- Known ceiling (#559): jcode 0.98.1's top-level TUI spawns a shared server, without `--temporary-server` or `--owner-pid`, when nothing answers on the dialed socket at startup or on its reload-handoff reconnect, and no native flag prevents it. A hub stop or an owned-server crash between the launcher's confirm and the TUI's check can leave an unowned jcode server on the private socket under the person's `JCODE_HOME`; stop it by hand. Revisit if upstream adds an owner flag. An option that differs from the running session (`--model`, `--provider-profile`, `--session-id`) is refused by name.
6005
+ Known ceiling (#559): jcode 0.98.1's top-level TUI spawns a shared server, without `--temporary-server` or `--owner-pid`, when nothing answers on the dialed socket at startup or on its reload-handoff reconnect, and no native flag prevents it. A hub stop or an owned-server crash between the launcher's confirm and the TUI's check can leave an unowned jcode server on the private socket under the person's `JCODE_HOME`; stop it by hand. Revisit if upstream adds an owner flag. When such a server answers on the private socket, the hub records the hello it refuses: `ahub status` lists the peer as detached in Attention with the launch that puts it back under the hub (`ahub jcode`, or `ahub jcode --as <id>` for an extra instance), `ahub status --json` carries `peers.<id>.detached`, and a hub-owned launch clears it. A daemon restart forgets the record until that server's next refused hello. An option that differs from the running session (`--model`, `--provider-profile`, `--session-id`) is refused by name.
5960
6006
 
5961
6007
  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.
5962
6008
 
@@ -6013,6 +6059,8 @@ Extra instances use the existing `instances` block. For example, `"myagent-revie
6013
6059
 
6014
6060
  Configured kinds are cloud peers and never receive PII work. Quota and context are unknown, and a kind with no budget source is exempt from quota accounting, so pause it by hand if its provider refuses. After a crash the hub resumes a recorded session through `session/load` only when the agent echoes the same id, and it never reuses a recorded model. Controlled recovery (`ahub upgrade`, `restart`, `recovery`) refuses a running configured kind: stop it, then start it again with its session id. While the project declares adapters, the upgrade or restart target must advertise `configured_acp`.
6015
6061
 
6062
+ A declaration with `"transport": "print"` adds an advisory peer for a CLI that does not speak ACP. It names `command`, `args`, `displayName`, `roles`, `versionArgs`, `versionPin` (matched against the whole trimmed probe output) and `timeoutS` (1 to 300), and passes the prompt through one `{prompt}` placeholder in `args` or `stdin: true`. Each public message runs one new process group in the read-only hub sandbox, with no network, no credentials and no hub tools, and its capped stdout is delivered as that peer's message; a timeout or nonzero exit reports a failed turn with a screened stderr tail. Private and PII requests are refused before spawn. A print peer never owns a task or joins the reviewer pool, even with the `reviewer` role, so a tool-capable reviewer or the person files the verdict. `ahub <kind>` takes only `--mode headless` and `--print-command`/`--dry-run`, with no instances or sessions, and the running hub must advertise `configured_print` ([adding an AI tool](adding-an-ai-tool.md#4-config-only-adapters-451-a3-1515)).
6063
+
6016
6064
  ## External adapter modules (#451 A4)
6017
6065
 
6018
6066
  A bundled adapter module is authorized by the person with `adapter_modules` (at most 16 rows of `path` and `sha256`) in an untracked `.agenthub/config.local.json`; in `config.json` or a tracked file it is ignored with a notice, and settings never edit it. Only daemon startup imports a module: settings, reload, previews and CLI reads never do, so a change needs a restart. The module must be a single self-contained ESM file inside the project (no symlinked, world-writable or oversized file) whose bytes match the pin, and it may import only Node/Bun builtins and `@staix/agent-hub/adapter`; the scanner also refuses any `require`, `eval` or `Function` word token. Each import must settle within 2 s. A module that fails any check is refused on its own, with a bounded reason in the status reply, while startup and the other adapters continue; its roster row stays inert. A loaded kind is headless, cloud (never PII), off roster until `ahub roster add <kind>`, and has no controlled recovery: stop it and start it again with its recorded session id. While modules are declared, the upgrade or restart source and target must advertise `external_adapter_modules`. Extra `instances` of a module kind (#754) exist only when the module opts in with `headlessInstances` (headless; implementer, verifier or continuing reviewer) and the person declares them in `config.local.json`; each needs its own worktree, is bound to what startup verified, and needs `external_adapter_instances` on both sides of a restart or upgrade ([security](security.md)). Bundling, the accepted definition subset and the conformance kit (`@staix/agent-hub/conformance`, for module CI only) are in [Adding an AI tool](adding-an-ai-tool.md#5-external-adapter-modules-451-a4). A pin authorizes code that runs with the daemon's rights; it is not a sandbox ([security](security.md)).
@@ -6715,7 +6763,7 @@ Start them with `ahub claude --as claude-review`, `ahub codex --as codex-review`
6715
6763
 
6716
6764
  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.
6717
6765
 
6718
- 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.
6766
+ Kimi requires a compat-admitted Kimi Code on the hub's PATH (receipt-verified 2.2.0, 2.3.0, 2.3.1, 2.3.2, 2.4.1, 2.5.1 and 2.7.2), signed in through its managed OAuth provider, and a passing runtime preparation before each child; an unverified/untrusted version or a failed preparation is unavailable with its reason. The [2.3.0](verification/2026-10-22-kimi-qwen-compat.md), [2.3.1](verification/2026-10-25-kimi-231-reviewer-compat.md), [2.3.2](verification/2026-10-26-kimi-232-reviewer-compat.md), [2.4.1](verification/2026-10-31-kimi-241-reviewer-compat.md) and [2.5.1](verification/2026-11-06-kimi-251-reviewer-compat.md) receipts are model-free and do not verify real login/provider readiness. Each review runs a new `kimi -p` child without Seatbelt, in a private `KIMI_CODE_HOME` with managed-provider-only config, a clean temporary working directory and an empty skills directory. Its agent may call only `hub_review` and `hub_task_show`, through a task-bound loopback MCP session that never carries the hub's control token, and has no native read, file or shell tool: it reviews the screened brief and host facts only. Its `credentials/`, `oauth/` and `device_id` link to the person's native Kimi files, so it shares the native login, refresh lock and the Kimi account's budget; no token is copied. A stop revokes its verdict authority first, then waits briefly while an OAuth refresh holds the lock; a forced stop mid-refresh may require a native re-login. The Kimi backend records no measured token counts here, so its usage stays unknown; the 2.3.0 receipt makes no usage claim. This is a native tool-authority boundary, not filesystem or network isolation.
6719
6767
 
6720
6768
  A dangling or unreadable standard/configured credential root makes the Codex reviewer unavailable with only its path class in the reason (for example `~/.docker` or `$DOCKER_CONFIG`, never an expanded path or contents); repair the root and start the reviewer again.
6721
6769
 
@@ -6813,7 +6861,7 @@ Native launcher connections retry transport timeouts/unclean closes with bounded
6813
6861
 
6814
6862
  ## amem runtime (agent-mem#13 P4)
6815
6863
 
6816
- The hub accepts @staix/agent-mem <!-- facts:agent-mem-pin -->>=0.33.0 <1.0.0<!-- /facts:agent-mem-pin --> (a range `bun.lock` resolves; a newer plain release in it with a supported host API needs no hub release) for recall, curated evidence and local deterministic capture. No runtime call reaches a claude-mem worker; `memory.worker_url` is ignored. The person's `ahub memory import claude-mem` remains explicit and off by default. Existing profile, alias, PII and private-turn fences still apply. `ask --remember` and context checkpoints propose machine-local candidates, never automatic curated evidence. See [memory integration](memory.md#in-process-recall-and-capture-agent-mem13-p4) for changed behavior and bounded-view ceilings.
6864
+ The hub accepts @staix/agent-mem <!-- facts:agent-mem-pin -->>=0.39.0 <1.0.0<!-- /facts:agent-mem-pin --> (a range `bun.lock` resolves; a newer plain release in it with a supported host API needs no hub release) for recall, curated evidence and local deterministic capture. No runtime call reaches a claude-mem worker; `memory.worker_url` is ignored. The person's `ahub memory import claude-mem` remains explicit and off by default. Existing profile, alias, PII and private-turn fences still apply. `ask --remember` and context checkpoints propose machine-local candidates, never automatic curated evidence. See [memory integration](memory.md#in-process-recall-and-capture-agent-mem13-p4) for changed behavior and bounded-view ceilings.
6817
6865
 
6818
6866
  ## Person-run backlog legs (#1176)
6819
6867
 
package/docs/profiles.md CHANGED
@@ -184,6 +184,7 @@ sending a manifest-bound verdict that an older hub could silently downgrade.
184
184
  - Acceptance criteria are profile-independent (#507b): a task's recorded criteria checklist (docs/sdlc.md, Acceptance-criteria checklist) is listed in every profile's review request, ahead of the profile's `review_checklist` lines, and an unmet item that starts with a criterion id names it; a profile only changes the wording of its checklist, never the criteria or their ids.
185
185
  - Every shipped profile's `review_checklist` carries one error-message item (#1095): the reviewer names each new or changed error, refusal or failure message that lacks its cause or its next step. Because `review_checklist` replaces as a unit, a project that sets its own `profile_overrides.review_checklist`, and a pack (whose rubric lines become that override), does not get the item unless it adds one. The shipped lists are what a project without an override sees.
186
186
  - Recurring unmet criteria become a candidate, never a change (#514a): when reviews name the same criterion id unmet on at least 3 tasks of one profile and class within 30 days, and those tasks make up at least 2 separate pieces of work (tasks sharing a PR or a branch count once), the hub files one backlog card with the `profile_overrides.review_checklist` line to consider. The line is text, and nothing applies it on its own. By hand: `profile_overrides` is not machine-local, so you choose the shared `.agenthub/config.json` (every checkout) or `config.local.json` (this machine), and add the line to your current checklist because `review_checklist` replaces as a unit. With the command (#514b): `ahub learn list` shows the open cards, `ahub learn accept <id>` adds that one line to your current checklist in `.agenthub/config.local.json` (this machine only, never the shared or any tracked file) through the settings writer, closes the card, and says it applies after a restart; `ahub settings undo` puts the previous file back; `ahub learn reject <id>` only closes the card. The line is rebuilt from the key line of the card and the board's own evidence, never parsed from the card text. Person only: an agent shell and the configured conductor are refused. PII tasks and evidence-only verdicts never count.
187
+ - A followed line is measured, and proposed for removal when it stops helping (#1642): `ahub learn accept` on an addition card records the acceptance (the line's profile, class and criterion, the time, and the rate of unmet criteria over the 30 days before it) as a fixed suffix on the card's own note, and a card accepted before that record exists has its before rate recomputed from the board. `ahub learn list --accepted` shows every followed line with the checklist size (lines of 16, characters) and a status from the reviews since: `insufficient` below 5 reviewed tasks, then `helping`, `no-change` or `worse` against the before rate. A line with at least 5 reviewed tasks in its window and `no-change` or `worse` gets one removal backlog card, and `ahub learn accept <id>` on it (person only, as above) removes only that line through the same settings writer, so `ahub settings undo` puts the previous file back and the change applies after a restart; `ahub learn reject <id>` closes the card and starts its window again, so a later window can file its own. When no checklist line, or more than one, starts with the card's generated marker, the accept removes nothing and refuses: with no match it names `ahub learn reject <id>` for that card, and with several it asks you to remove the one you mean in `.agenthub/config.local.json`, then reject the card. The line is the unit: a generated line is followed only while the checklist still carries its generated prefix, and a hand-written or edited line is listed `untracked` and never removed. PII tasks and evidence-only verdicts never count on either side. At the 16-line cap, a new candidate's card names the weakest followed line.
187
188
  - `profile_overrides` in shared/local config selects project data over the chosen shipped profile. `classes`, `role_text` and `catalog_roles` maps merge by key across layers; `plan_keys`, `agents`, `example_checks` and `review_checklist` replace as units. A local `profile` selects the active base for both init and native contracts.
188
189
  - Classes may add or remap profile aliases to existing base classes. Existing base names keep their meanings; class maps are bounded to 32 override entries. Task storage and route explanations preserve the alias, including a dev custom alias, while routing/budgets/checks use its base. Other tasks under custom dev data retain the selected profile semantics too, so document sections do not become whole-path overlaps. Unmodified dev rows retain their old shape.
189
190
  - `plan_keys` selects distinct existing plan fields, not new board fields. Task proposals and their schemas use the selection. Accept schemas retain legacy fields for already existing tasks/profile changes.
@@ -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.46.1
21
+ bun add -g github:STAIxBWLB/agent-hub#v0.47.0
22
22
  ahub setup
23
23
  ```
24
24
  <!-- /facts:install-tag -->
@@ -54,6 +54,12 @@ A project whose hub is stopped is upgraded without starting it: `ahub upgrade
54
54
  --all-stopped --to <version>` does that for every stopped project at once
55
55
  (`--dry-run` lists each one first).
56
56
 
57
+ ## Upgrading to 0.47.0
58
+
59
+ The declared agent-mem range rises to `>=0.39.0 <1.0.0`: on first open each populated memory profile builds a v6 derived index, a one-time startup cost plus extra disk; the v5 index stays beside it, so a 0.46.1 hub on agent-mem 0.38.0 can still share the home. No store or sync format floor is raised, and a hub that resolves agent-mem 0.38.0 or older now refuses memory at load. Human CLI views print on the shared Report layout and take `--ascii`, and stderr warnings read `ahub: warning: <what>: <why>`; `--json` output and exit codes are unchanged. A task proposal whose detail exceeds 8000 characters is refused with a pointer to a spec issue. The rest does nothing until you use it: `ahub projects move` re-keys a moved project, `ahub memory review on` schedules a memory review (off by default, both token caps required), `ahub sdlc readback start` asks for a spec read-back in `advise` or `enforce` (once one is stored, recovery refuses 0.46.1 as a target), a `[risk]` table in `sdlc.toml` sets a minimum review per risk tier, the dashboard gains an Overview view (key 9), and `"transport": "print"` in `.agenthub/config.local.json` adds a sandboxed advisory peer.
60
+
61
+ `ahub upgrade` does not update the global CLI or the shared Claude plugin: run `bun add -g @staix/agent-hub@0.47.0` and then `ahub setup` yourself, and `ahub doctor` warns while either is older than a running daemon.
62
+
57
63
  ## Upgrading to 0.46.1
58
64
 
59
65
  Fixes `ahub upgrade`, restart and conductor recovery on an install that resolved agent-mem 0.37.0 or later. Those versions declare `@staix/cli-output`, and 0.46.0 refused them with `memory runtime dependency identity/version mismatch`. On such an install, the 0.46.0 `ahub upgrade` fails on that same error before it plans anything. Install 0.46.1 globally first (`bun add -g @staix/agent-hub@0.46.1`, then `ahub setup`), then run `ahub upgrade` from the new CLI. Nothing else changes, and the declared agent-mem range stays `>=0.33.0 <1.0.0`.
@@ -520,7 +526,7 @@ More: `ahub help`. How it is built and why: [`docs/specs/2026-09-19-agent-hub-de
520
526
 
521
527
  ## Shared memory
522
528
 
523
- The hub accepts the first-party `@staix/agent-mem` <!-- facts:agent-mem-pin -->>=0.33.0 <1.0.0<!-- /facts:agent-mem-pin --> core as a range below the next major: a plain release inside it with a supported host API needs no hub release, and the lockfile resolves one release. That includes deterministic capture; no claude-mem worker is needed. Existing shared-v1 memory remains the default; upgrading does not migrate it. Managed agents use screened `hub_memory_search`, `hub_memory_show` and `hub_memory_graph` tools, or propose a correction with `hub_memory_correct`; only a person accepts candidates through the supported `amem review` path. Since agent-mem 0.7.0, `amem review` also accepts candidates on a selected generation.
529
+ The hub accepts the first-party `@staix/agent-mem` <!-- facts:agent-mem-pin -->>=0.39.0 <1.0.0<!-- /facts:agent-mem-pin --> core as a range below the next major: a plain release inside it with a supported host API needs no hub release, and the lockfile resolves one release. That includes deterministic capture; no claude-mem worker is needed. Existing shared-v1 memory remains the default; upgrading does not migrate it. Managed agents use screened `hub_memory_search`, `hub_memory_show` and `hub_memory_graph` tools, or propose a correction with `hub_memory_correct`; only a person accepts candidates through the supported `amem review` path. Since agent-mem 0.7.0, `amem review` also accepts candidates on a selected generation.
524
530
 
525
531
  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.
526
532
 
package/docs/roles.md CHANGED
@@ -136,3 +136,9 @@ It preserves the 1cbbc57 message text/facts/acceptance instruction without catal
136
136
  or task guidance, using the same routing choice for both implementations.
137
137
  This fixture passes in the actual53/0 integration group. Full final gates and
138
138
  native consumption remain pending.
139
+
140
+ ## Task reasons (#1647)
141
+
142
+ `hub_task_propose` takes an optional `reason`, the one reason a planner split or handed off the work. The set is closed: `explore` (understanding needs more than one batch of lookups), `parallel` (independent units with disjoint `refs.paths`, each taking minutes, not seconds), `context` (the planner's own context is running out), `verify` (the verifier task a high risk tier requires, #1645), `capability` (another peer has the vendor, account, tool or sandbox the work needs) and `person` (the person asked for the split). Omitted stays legal and shows as `unset`. An unknown value is refused with the allowed values.
143
+
144
+ The reason is stored on the task and shown by `hub_task_show`, `hub_task_list` and the board. Size, file count and token budget are never reasons and never gates. Siblings proposed with `parallel` by one planner for the same dependencies and repository must touch disjoint paths (prefix overlap); an overlap is refused before the task exists, naming both tasks and the paths. `ahub sdlc metrics` groups task count, review rounds and tokens by reason, with `unset` as its own group.
package/docs/sdlc.md CHANGED
@@ -158,6 +158,8 @@ Task lifecycle fields store stage, issue/PR identity, observed head, reviewed he
158
158
 
159
159
  A reviewer records the head it actually reviewed. If GitHub no longer reports that head, a stale verdict refuses before effects. Changes requested does not require green CI. Approval requires a current review and all configured required checks successful on that head, except the proven draft macOS deferral described below; neutral/skipped does not substitute unless explicitly allowed by the project's gate contract. For that draft only, missing GitHub approval and outstanding review requests are deferred to merge, because the connector does not review a draft. Unknown review-request evidence, a pending change request, unresolved threads and all other blockers still refuse approval. A local check records an exact SHA and its result; it is a claimed local receipt, labelled separately from externally fetched CI.
160
160
 
161
+ **What the reviewer read (#1646).** The review request carries the hub's brief of the task head: the changed files of that commit against the work it merges into (the remote default branch), the files left out and why, and the rules that apply to each, with the reviewed head and the merge base as full commit ids. The brief is built from Git objects, so the same pair gives the same brief whatever any checkout holds. A reviewer can read any file the brief lists at the reviewed head with `hub_review_file`, which serves the immutable commit rather than a working tree; the path must be one the brief lists, and the hub's material caps bound each answer. A reviewer kind whose tool surface is pinned to the verdict and task reads (the spawned reviewer MCP and the sandboxed Codex reviewer keep exactly two tools) does not have it yet, which is this issue's revisit condition. The verdict then records what the checkout the reviewer read held for those files, as that checkout's head plus the reviewed paths that differ from the reviewed commit or are untracked, and names which checkout it was: the reviewing session's own when the hub knows it, otherwise the project checkout. A known checkout that cannot be read records no evidence rather than a clean one, and in `advise` a difference is recorded and allowed (no refusal is implemented yet).
162
+
161
163
  ## Readbacks and presentation
162
164
 
163
165
  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.
@@ -193,6 +195,20 @@ A person records ids and a claimed local receipt with `ahub sdlc record 12 '{"re
193
195
  - Spec validation itself is read-only. After the existing outer admission succeeds, the host atomically preserves the original person's `acceptedAt` and records a `spec acceptance carried` HUB history entry with the source task and cancellation revision alongside that outer event. A refused plan/stage/completion admission or a failed atomic consent/outer-event transaction retains the original task and history. Only the acceptance identity/edit fields move; the destination keeps its own plan review, artifact/head and lifecycle evidence. A repeated gate does not append another carry entry. Manual acceptance stays person-only and receipts cannot supply consent.
194
196
  - `ahub sdlc status <task>` and `explain` show `spec: {issue, state}` (`missing`, `current`, `changed` or `unknown`) when the lifecycle is enabled and the receipt names an issue. The spec state is not a merge-readiness blocker: its gate is build entry.
195
197
 
198
+ ## Spec read-back (#1658)
199
+
200
+ A read-back is a report for the person, never a gate: it records what a reader without the planner's context takes from the spec issue, so a mismatch surfaces before the build rather than at review. Nothing checks it against the plan or the design, and acceptance proceeds in every state.
201
+
202
+ - The person or the current configured conductor starts one with `ahub sdlc readback start <task> [--json]`. It needs the lifecycle in `advise` or `enforce`, a receipt that names an issue, and a task whose refs resolve to this checkout. `ahub sdlc readback show <task>` prints the request and its report, for the person or the current conductor; the same record is readable through `Tasks` by the task's own holders and by the bound reader, and any other caller is refused.
203
+ - The reader is an attached reviewer-role peer from `.agenthub/config.json` that neither proposed the task nor owns it, and never a review-only instance: its port publishes `hub_review` and `hub_task_show` alone, so it could neither read the spec nor file a report. Reviewer routing judges each candidate, with the proposer in the owner's place for the same-family rule, and the walk is seeded by the task id. With no eligible reader the answer is `unavailable`: the routing reason inside the read-back's own continuation (attach an available reviewer-role peer and retry), the review-only roster named, or the empty roster named, and nothing is written.
204
+ - One read-back exists per task incarnation, issue and body edit time; a repeated start for the same `lastEditedAt` returns the existing one, whether or not it has reported. A body edit makes the next start file a new request, and the previous report stays readable.
205
+ - The request names the task id for `hub_task_spec`, the repository and the issue, and carries no task detail, plan, history or recalled memory. The bound reader gets `hub_task_spec` for that task from the request until it reports, and that read returns exactly the receipt issue the request was filed for. The grant ends with the report, with the lifecycle, with the reader's reviewer role, and with a body that moved since the request (or an edit time that cannot be read), so reading a spec back confers no standing spec authority.
206
+ - The reader reports with `hub_readback_report {task, proposes, existing, cannot_paraphrase, undefined, open_decisions, refs}`: what the issue proposes and how the current system works in its own words, at most 1,024 UTF-8 bytes each; up to 16 `{term, where}` project-specific terms the issue neither defines nor links; up to 16 `{decision, where}` choices the issue leaves to the implementer; and up to 64 repository-relative paths or directories the issue names, a trailing `/` naming the same directory. A reader that cannot write `proposes` sends `cannot_paraphrase` with the section instead. An over-limit field, or a report over its 320 KiB total, is refused with its name and limit and nothing is cut. A report is stored once: an identical replay returns it, changed content after the first write is refused.
207
+ - The hub checks only what it can check itself: each listed path must exist at the default branch head, as a file or as the directory of that name, read through its hardened git with no worktree read and no fetch. Missing paths are stored with the report and shown; a default branch that cannot be resolved leaves the check unknown, which is not "every path present".
208
+ - `ahub sdlc status <task>` and `explain` add `readback: {state, undefined, open_decisions, missing_refs}`. `state` is `none`, `current` (with or without a report yet), `stale` after a body edit, `unavailable` when an issue read the row needed could not be made, or `private` for a task the board holds private. A status list (`ahub sdlc status` with no task id) makes no issue read per row: a row without a request is `none`, and a row with one is compared against the body the person accepted, so it reads `current`/`stale` by that acceptance and `unavailable` only until a body is recorded. `ahub sdlc accept` prints the same one line before it records the acceptance, and proceeds in every state.
209
+ - Read-back text passes the task privacy screen, and a task the board holds as private starts no read-back at all: its spec is task text, so the request and the report stay out of the public surfaces that carry `readback`. A task that turns private after a report shows `private` in `status`/`explain` and `show`, with the report's terms, decisions and refs withheld. With the lifecycle off there is no `readback` field, no new output, not even on `ahub sdlc accept`, and no schema change; the request and report live in `hub.db` beside the survey receipts and are never stored in the task's lifecycle receipt.
210
+ - A stored read-back is recovery state an older daemon cannot parse, so it carries the surveys' floor: `spec_readbacks` is in `DAEMON_FEATURES`, `incompatibleRecoveryTarget` refuses a target without it while `Board.hasSpecReadbacksState()` finds a row, and its counts and digest join `integrity()` and the restart comparison only while rows exist. A row that fails its stored hash refuses recovery as unknown storage rather than proving a clean one; in `ahub sdlc accept` that same defect prints `spec read-back: storage unreadable` and the acceptance is still recorded, because the report never gates it.
211
+
196
212
  # Acceptance-criteria checklist
197
213
 
198
214
  - A task's reviewer or the person records a head-bound `criteria` receipt through `hub_sdlc_record` or `ahub sdlc record` (an off or older daemon's tool schema still offers `phase`). Its ids name the issue's acceptance criteria. The board owns the receipt and its actor/history; no writable STATE/PLAN/HANDOFF file is introduced.
@@ -407,7 +423,7 @@ S9 ceilings: a private build task with an issue reference cannot satisfy enforce
407
423
 
408
424
  # SDLC metrics and control bands (#481 S7)
409
425
 
410
- `ahub sdlc metrics [--since <YYYY-MM-DD|ISO time>]` (the planner tool `hub_sdlc_metrics`; planner or person only, read-only) derives these from board history: time from spec acceptance to plan review, from acceptance to the first verdict and (when a merge time is supplied) to merge; the first-pass approval rate and rework rounds; the first-pass check rate; same-head CI reruns; stale-head re-reviews; and open stalls by kind. Each is a count, mean, median, p90 and max over the tasks that have it. `unknown` is the word and a count (`unknown: N`) for a task that does not have it: a metric the board cannot derive is never zero. A private task is counted as withheld and read for nothing else. The report is a pure function of the board history, so a fixture history gives the same report every time.
426
+ `ahub sdlc metrics [--since <YYYY-MM-DD|ISO time>]` (the planner tool `hub_sdlc_metrics`; planner or person only, read-only) derives these from board history: time from spec acceptance to plan review, from acceptance to the first verdict and (when a merge time is supplied) to merge; the first-pass approval rate and rework rounds; the first-pass check rate; same-head CI reruns; stale-head re-reviews; and open stalls by kind. Each is a count, mean, median, p90 and max over the tasks that have it. `unknown` is the word and a count (`unknown: N`) for a task that does not have it: a metric the board cannot derive is never zero. A private task is counted as withheld and read for nothing else. The report is a pure function of the board history, so a fixture history gives the same report every time. It also groups the counted tasks by the `reason` they were proposed with (#1647; `unset` for none): task count, review rounds (one per `done`) and the hub's own token increments, which read `unknown`, never 0, when no task of the group has a reading.
411
427
 
412
428
  What each metric reads, and what it does not:
413
429
 
@@ -496,6 +512,15 @@ Train history retains at most 256 events. Configuration no-ops retain the revisi
496
512
 
497
513
  Verdict history retains each report and its reviewed head. Within a task, the semantic id remains the finding identity when its pass is reclassified; a disposition for that id settles the same finding across passes. Open Important findings carry forward across heads until a reviewer explicitly sets fixed or false_positive, or the person sets accepted with a rationale. Omitting an id never settles it; nits stay on their original head. Review requests list carried public ids, pass, severity and optional path; private finding details stay withheld. Head selection uses the first valid full SHA from the PR head, reviewed head, local head, then commit metadata; unresolved non-empty reports refuse in enforce. A supplied head must match the resolved task head when one exists, and that resolution is rechecked after asynchronous screening. Status and the merge queue show counts for the current head. In enforce, approval refuses while any Important finding remains open; advise exposes the count without blocking. Existing verdicts without structured findings stay compatible.
498
514
 
515
+ To reopen a finding last marked `false_positive` or person-`accepted`, set
516
+ `reopen_reason` on its new `open` report. The reason is screened and recorded
517
+ with the verdict, with a 512-byte limit. In advise, the verdict is saved and the
518
+ tool result lists any missing reasons under `reopenedWithoutReason`. Enforce
519
+ refuses those reports before saving them. A reasoned reopening after person
520
+ acceptance also notifies the person. Previously fixed findings can reopen
521
+ without a reason. With the lifecycle off, the field is unavailable.
522
+
523
+
499
524
  With the lifecycle on (`advise` or `enforce`; #1403 A1, B4), an item may also carry these fields, and `off` refuses them as unknown fields and advertises none of them:
500
525
 
501
526
  - `state` (`confirmed` or `needs_validation`) and `boundary` (`principal`, `control`, `resource`, `result`: the lower-trust actor, the control that was meant to hold, the resource affected and the result observed, each at most 512 bytes and sanitized like `rationale`). An open `important` finding with `pass: "security"` must carry both, and the refusal names the four boundary fields; nits, other passes and settled findings need neither, and the fields are refused on them.
@@ -576,6 +601,24 @@ companions = ["agents", "local-ipc"]
576
601
  - `advise` records an approval without a pass and adds the requirement to the advice. `enforce` refuses the approval (before any board effect) and blocks the merge queue row and the merge gate, for `required` and for `unknown`. The review request tells the reviewer a pass is required, or that applicability is unknown, and points to the checklist. PII tasks carry no pass.
577
602
  - `ahub sdlc status` and the merge queue show a `security pass` line; the queue shows the strictest state when a PR has several holders.
578
603
 
604
+ ## Minimum review by risk tier (#1645)
605
+
606
+ `.agenthub/sdlc.toml` may name the paths that make a filed change `high`, and the ones that keep it `low`:
607
+
608
+ ```toml
609
+ [risk]
610
+ high = ["src/hub/sdlc-merge.ts", "src/local/**"]
611
+ low = ["docs/**", "*.md"]
612
+ ```
613
+
614
+ - **Derivation.** At `hub_task_done`, from the change's complete file inventory - the one plan conformance and the security pass read, never the worktree. A path no pattern names is `medium`, and a path `[security] paths` matches is always `high`, so a project with a security table never derives `low` from a change its security pass treats as sensitive. The tier is stored as `sdlc.risk = {tier, head, matched}`, recomputed when a task is re-filed, and a tier recorded for another head is never read: an incomplete or unreadable inventory records no tier at all rather than `medium`.
615
+ - **The table.** `low` and `medium` need one reviewer; `high` needs one reviewer plus a verifier card owned by a peer other than the implementer. The one-review floor is never lowered, and a plan's `review` metadata may ask for more than the tier's minimum, never for less.
616
+ - **Verifier card identity.** A verifier is a `test`-class card (the lifecycle table above gives that stage the acting role verifier/reviewer) whose `refs.repo` and `refs.branch` equal the change's and whose `refs.commit` is the filed head, in state `approved`, owned by a peer other than the implementer. No field and no card shape is added for it: the rule is `riskVerifier` in `src/hub/risk-tier.ts`, and the verdict, the review request, the brief, `hub_task_show` and these docs read that one function. A card that verified an older head does not count, so a high change whose branch moved needs a card for the new head. A task filed without `refs.branch` is matched by repository and head instead, so a card can still satisfy it.
617
+ - **Enforce and advise.** An approving verdict on a `high` task with no such card is refused before any board write, and the refusal names its continuation (`hub_task_propose` with class `test`, the same branch or, for a task filed without one, the repository, plus `refs.commit` the filed head). `advise` records the risk line in the verdict's note and allows the approval. A project with no `[risk]` table derives no tier, so its verdicts, plan reviews and merge gates behave exactly as before.
618
+ - **Plan metadata (AC5).** `plan.review` is cost metadata and no tier exists before a filed inventory, so the plan review compares it against the floor: `reviewers: 0` or `scope: none` is reported in `advise` and refused in `enforce`, with the corrected plan review as its continuation. The comparison against a tier's own minimum happens where the tier exists - the review request, the review brief and the merge gate.
619
+ - **Where it shows.** The review request, the review brief, the verdict's note and `hub_task_show` (as `risk`) carry one line, `risk <tier> (<n> paths decided it); minimum <what the tier owes>`, then `; verifier card <id> is approved` when the board holds one or `; no verifier card by another peer is approved at this head` when it does not. The line states what is owed; the command that supplies it belongs to the refusal, which writes its continuation where it is thrown. In `enforce` the merge gate refuses a plan whose own review asked for less than the tier's minimum, naming `hub_plan_review` as the continuation.
620
+ - `ahub init` writes the table commented out in a newly created `sdlc.toml`, so the feature is discoverable without a project being opted in. Tier counts against rework rounds over four weeks of dogfood are the person's own follow-up.
621
+
579
622
  ## Security audit with a coverage ledger (hub task 896, #1403 A4, A5)
580
623
 
581
624
  A recurring, read-only read of the security-sensitive surfaces, on request. It needs the lifecycle on (`advise` or `enforce`) and the `[security]` table above.