@staix/agent-hub 0.36.0 → 0.38.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 (121) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +6 -2
  3. package/THIRD_PARTY_NOTICES.md +0 -18
  4. package/docs/agent-notes/README.md +13 -3
  5. package/docs/agent-notes/daemon.md +4 -4
  6. package/docs/agent-notes/local-worker.md +1 -0
  7. package/docs/agent-notes/models.md +2 -1
  8. package/docs/agent-notes/tasks.md +1 -1
  9. package/docs/agent-notes/tests.md +1 -2
  10. package/docs/contracts/companion-cli-v1.json +70 -0
  11. package/docs/design/adapters.md +43 -2
  12. package/docs/design/agent-hub-architecture.md +9 -1
  13. package/docs/design/guidance-probes.md +1167 -0
  14. package/docs/design/model-routes.md +437 -12
  15. package/docs/dogfood.md +12 -13
  16. package/docs/events.md +20 -1
  17. package/docs/memory.md +3 -3
  18. package/docs/operations.md +123 -151
  19. package/docs/profiles.md +1 -1
  20. package/docs/quickstart.md +15 -3
  21. package/docs/research.md +1 -1
  22. package/docs/sdlc.md +5 -3
  23. package/docs/security.md +25 -1
  24. package/docs/specs/2026-09-19-agent-hub-design.md +9 -7
  25. package/docs/specs/2026-10-04-switchyard-source-port-design.md +3 -1
  26. package/docs/verification/2026-11-08-qwen-0269-model-setter-1317.md +25 -11
  27. package/docs/verification/2026-11-09-qwen-0270-model-setter-1317.md +21 -6
  28. package/docs/verification/2026-11-11-0.37.0.md +40 -0
  29. package/docs/verification/2026-11-11-0.38.0.md +41 -0
  30. package/docs/verification/2026-11-11-guidance-probe-t2-1226.md +153 -0
  31. package/docs/verification/2026-11-11-guidance-probe-t3-1226.md +85 -0
  32. package/docs/verification/2026-11-11-guidance-probe-t4-1226.md +65 -0
  33. package/docs/verification/2026-11-11-qwen-setter-suggestions-off.md +167 -0
  34. package/docs/verified.json +25 -25
  35. package/package.json +3 -4
  36. package/plugins/agent-hub/.claude-plugin/plugin.json +1 -1
  37. package/plugins/agent-hub/kimi-hook.js +2403 -1444
  38. package/plugins/agent-hub/server.js +2480 -1509
  39. package/src/adapters/channel-peer.ts +7 -1
  40. package/src/adapters/claude-channel.ts +2 -1
  41. package/src/adapters/compat.ts +1 -1
  42. package/src/adapters/local-probe.ts +233 -0
  43. package/src/adapters/local-worker.ts +232 -21
  44. package/src/cli/console-state.ts +25 -6
  45. package/src/cli/console-versions.ts +99 -0
  46. package/src/cli/console.ts +13 -1
  47. package/src/cli/help.ts +2 -1
  48. package/src/cli/init.ts +3 -1
  49. package/src/cli/install-paths.ts +7 -2
  50. package/src/cli/main.ts +78 -7
  51. package/src/cli/output.ts +8 -4
  52. package/src/cli/runtime-version-warning.ts +2 -2
  53. package/src/cli/sdlc-output.ts +9 -5
  54. package/src/cli/upgrade-runtime.ts +1 -1
  55. package/src/hub/bus.ts +2 -2
  56. package/src/hub/config-apply.ts +4 -2
  57. package/src/hub/config-trust.ts +6 -1
  58. package/src/hub/control-client.ts +5 -2
  59. package/src/hub/daemon.ts +195 -13
  60. package/src/hub/envelope.ts +6 -1
  61. package/src/hub/events.ts +3 -2
  62. package/src/hub/guidance-probe-store.ts +1044 -0
  63. package/src/hub/guidance-probes.ts +692 -0
  64. package/src/hub/inference.ts +18 -5
  65. package/src/hub/manager.ts +24 -1
  66. package/src/hub/operational-authority.ts +14 -1
  67. package/src/hub/peers.ts +5 -0
  68. package/src/hub/person-command.ts +25 -0
  69. package/src/hub/ports.ts +1 -1
  70. package/src/hub/progress.ts +23 -16
  71. package/src/hub/report.ts +2 -0
  72. package/src/hub/research.ts +1 -0
  73. package/src/hub/restart.ts +7 -0
  74. package/src/hub/sdlc-release-authorization.ts +139 -17
  75. package/src/hub/sdlc-release-policy.ts +100 -0
  76. package/src/hub/sdlc-release.ts +59 -7
  77. package/src/hub/supervision.ts +3 -2
  78. package/src/hub/tasks.ts +363 -7
  79. package/src/local/probe-errors.ts +28 -0
  80. package/src/local/probe-sandbox.ts +224 -0
  81. package/src/local/probe-types.ts +110 -0
  82. package/src/local/probe-workspace.ts +426 -0
  83. package/src/local/sandbox.ts +71 -2
  84. package/src/local/tools.ts +135 -9
  85. package/src/models/route/advisor-trigger.ts +88 -0
  86. package/src/models/route/config.ts +21 -17
  87. package/src/models/route/conversation-view.ts +179 -0
  88. package/src/models/route/decision-evidence.ts +1 -1
  89. package/src/models/route/decision.ts +114 -19
  90. package/src/models/route/escalation-control.ts +30 -0
  91. package/src/models/route/hub-prompts.ts +97 -0
  92. package/src/models/route/judge-choice.ts +155 -0
  93. package/src/models/route/judge-replies.ts +102 -0
  94. package/src/models/route/labels.ts +14 -70
  95. package/src/models/route/observation-signals.ts +250 -0
  96. package/src/models/route/plan-execute-choice.ts +27 -0
  97. package/src/models/route/relay-selector.ts +2 -2
  98. package/src/models/route/runtime.ts +115 -52
  99. package/src/models/route/turn-state.ts +77 -0
  100. package/src/omniroute/client.ts +3 -0
  101. package/src/ui/guidance-panel.ts +34 -2
  102. package/src/ui/guidance-view.ts +33 -0
  103. package/src/ui/plugin.ts +80 -23
  104. package/src/version.ts +4 -0
  105. package/templates/AGENTS.block.md +14 -14
  106. package/templates/adec/README.md +32 -0
  107. package/templates/adec/ahub.plan-execute.json +23 -0
  108. package/templates/adec/ahub.stage.json +23 -0
  109. package/templates/profiles/general.json +1 -1
  110. package/templates/profiles/research.json +1 -1
  111. package/templates/profiles/writing.json +1 -1
  112. package/LICENSES/Apache-2.0.txt +0 -204
  113. package/src/models/route/advisor.ts +0 -102
  114. package/src/models/route/escalation.ts +0 -82
  115. package/src/models/route/judge.ts +0 -23
  116. package/src/models/route/normalize.ts +0 -103
  117. package/src/models/route/plan-execute.ts +0 -52
  118. package/src/models/route/prompts.ts +0 -8
  119. package/src/models/route/signals.ts +0 -247
  120. package/src/models/route/state.ts +0 -54
  121. package/src/models/route/text.ts +0 -61
@@ -225,7 +225,7 @@ meter keeps a fixed column at the right edge. In Usage, LAST RESET is the column
225
225
 
226
226
  | Panel | Columns |
227
227
  |---|---|
228
- | Peers | PEER STATE MODE LINK Q ! WIP REVIEW PAUSE QUOTA MODEL DOING |
228
+ | Peers | PEER STATE MODE LINK AHUB Q ! WIP REVIEW PAUSE QUOTA MODEL DOING |
229
229
  | Approvals | ID PEER LEFT TITLE |
230
230
  | Tasks | ID STATE OWNER REVIEWER CLASS AGE TITLE STAGE |
231
231
  | Tasks, backlog view (`b`) | ID PRI RESERVED DEPS CLASS AGE TITLE |
@@ -263,6 +263,24 @@ including `0/2`; a peer without an entry reads `-`. At or above the limit, the
263
263
  cell uses the attention tone. At narrow widths WIP gives way before PEER, STATE
264
264
  and QUOTA, whether or not MODE is present.
265
265
 
266
+ Agent-hub versions (#1385). A line above the Peers table names the running
267
+ daemon's version, this console's, the global `ahub` on PATH (read from its
268
+ `package.json`, never run) and the installed Claude plugin (one bounded
269
+ `claude plugin list --json` read when the console starts). One older than the
270
+ daemon reads `(older)` in the attention tone, by the comparison `ahub doctor`
271
+ prints; a value that cannot be read is `unknown` and is never flagged. AHUB is
272
+ the agent-hub code each peer has loaded: `daemon` for an adapter that runs
273
+ inside the daemon, the version a client's hello reported (the Claude plugin's
274
+ MCP server), and `tools x` for the versions its open tools connections reported
275
+ (the hub tools Codex, Kimi, agy or Jcode run). A client that reports none reads
276
+ `unreported`, muted: an unknown version is never counted as a difference. A cell with any version other than the daemon's uses the attention
277
+ tone, the versions line counts those peers, and the peer's detail (Enter) says
278
+ to update the global CLI and run `ahub setup`, then restart that agent's session.
279
+ The column appears only when some peer reports a version, so an older hub shows
280
+ none; it gives way before LINK on a narrow terminal. The detail also shows
281
+ `agent CLI` for a native CLI version the hub has not verified (the same
282
+ `agentDrift` row `ahub status` prints). All of it is display only.
283
+
266
284
  DOING (#878) is what a peer is working on, from signals the hub already receives:
267
285
  a Claude session's title (its transcript's latest `ai-title` row) and the
268
286
  in-progress item of its `TodoWrite` list or the task `TaskUpdate` put in
@@ -443,8 +461,9 @@ the time); `dispatching` and `accepted` deliveries stay refused, and `retry` kee
443
461
  generic sentence (#713). A failed row that a resolution already settled (for
444
462
  example the parent of a retry, whose redelivery is a separate row) is refused as
445
463
  `already resolved`, never `stale revision`. `ahub queue show` on a failed row says
446
- that nothing is left to do, or, if the row is unsettled, prints the `ahub queue
447
- resolve <id> --action discard|completed` command (#1098).
464
+ that nothing is left to do, or, if the row is unsettled, prints the full `ahub queue
465
+ resolve` command with the project directory, revision, `--action discard` and a
466
+ prefilled reason, and names `completed` as the other choice (#1098, #1399).
448
467
 
449
468
  `ahub queue discard --peer <id> --reason <text> [--state queued|needs_review|failed] [--yes] [--json]` clears one peer's backlog and is for the person or the configured conductor (any other agent identity is
450
469
  refused, and a remote `peer@label` queue is the person's only). Without `--yes` it only says how many deliveries it would discard; with `--yes` it discards each delivery of that peer through the
@@ -1035,9 +1054,20 @@ plugin stale when the module changed after setup, so run `ahub setup` again afte
1035
1054
  tasks are cards, and overlap, conflict and cohort links and recent message arcs are links. Ids
1036
1055
  are project-prefixed, every running project's scene is merged within acon's caps (32 actors, 200
1037
1056
  cards, 64 links, newest links kept), and a project that has not answered within about 3 s is left
1038
- out of that poll. Only labels and states reach the scene, never message bodies, task details,
1057
+ out of that poll (its last scene is kept as the baseline for its next answer). The running-project
1058
+ listing is reused for 10 s and then refreshed in the background, concurrent reads share one
1059
+ computation, and a viewer that passes back the combined cursor gets `changed: false` while the
1060
+ scene, the per-project cursors and the project set are unchanged (#1380). Only labels and states
1061
+ reach the scene, never message bodies, task details,
1039
1062
  approval titles or reasons; a PII task's card shows the `[pii]` stub.
1040
1063
 
1064
+ The companions read ahub only through the companion CLI contract,
1065
+ `docs/contracts/companion-cli-v1.json` (#1387): the commands, the `status` and `projects` paths with
1066
+ their types and presence rules, the no-hub exit and the `shellQuote` vectors. Adding a field changes
1067
+ nothing. Removing or renaming a listed path, changing a closed set, an argv form, the exit code or
1068
+ the stderr prefix needs `companion-cli-v2.json` beside v1 and a `hub_task_handoff` to each companion
1069
+ repository. `test/companion-contract.test.ts` holds ahub to the file.
1070
+
1041
1071
  ## Install and start
1042
1072
 
1043
1073
  Use Bun <!-- facts:bun-floor -->1.4.2<!-- /facts:bun-floor --> or newer. Source checks and CI use the version pinned in
@@ -1053,7 +1083,11 @@ ahub up
1053
1083
  ```
1054
1084
 
1055
1085
  `ahub init` writes the project configuration and managed instruction blocks.
1056
- Run it after an upgrade when those blocks need refreshing. For a new repository
1086
+ Run it after an upgrade when those blocks need refreshing: `ahub doctor` has a
1087
+ `hub instructions` row that warns when the block in `AGENTS.md` differs from the
1088
+ one this version writes, and prints the preview (`ahub init --dry-run`) and
1089
+ apply (`ahub init --yes`) commands with the project path. Init replaces only the
1090
+ text between the markers; commit `AGENTS.md` afterwards (#1399). For a new repository
1057
1091
  using advise or enforce, follow the [SDLC quickstart sequence](quickstart.md#a-new-project-with-sdlc-advise-or-enforce).
1058
1092
 
1059
1093
  After a successful init, the short next-steps block says to review and commit
@@ -2577,7 +2611,10 @@ Jcode, Qwen, other Kimi versions and native TUI forms remain `unsupported live`.
2577
2611
  The [Jcode headless fixture](verification/2026-11-08-jcode-0991-model-setter-1317.md)
2578
2612
  passes, but does not fence a shared TUI turn across native failover. The
2579
2613
  [Qwen 0.26.9 setter fixture](verification/2026-11-08-qwen-0269-model-setter-1317.md)
2580
- fails restoration of the original model. Neither enables a production setter.
2614
+ retains historical A/B/B with an unknown third-request purpose. The
2615
+ [suggestions-off repeat](verification/2026-11-11-qwen-setter-suggestions-off.md)
2616
+ records ordinary A/B/A on exact 0.26.9 and 0.27.0; separate production setter
2617
+ admission is still required. Neither fixture enables a production setter.
2581
2618
  A refused set writes no new override and never restarts a process. Follow the
2582
2619
  reported cause and `ahub restart <peer>` guidance for unsupported forms.
2583
2620
 
@@ -3698,7 +3735,7 @@ Agent CLIs update themselves often, and a hub release cannot follow every one. O
3698
3735
  The [0.27.0 ACP receipt](verification/2026-11-09-qwen-0270-acp.md) records passing account-free
3699
3736
  ACP/permission/lifecycle checks after explicit runtime-state fence rulings, separately preserving earlier
3700
3737
  controller preflight failures. Its [model-setter check](verification/2026-11-09-qwen-0270-model-setter-1317.md)
3701
- observed A/B/B after acknowledged B/A setters, so baseline clear failed. Basic ACP 0.27.0 is exact-receipt admitted independently of that failed optional live-setter contract.
3738
+ observed A/B/B after acknowledged B/A setters, but retained no latest-USER binding for the third request, whose purpose remains unknown. The [suggestions-off repeat](verification/2026-11-11-qwen-setter-suggestions-off.md) records ordinary A/B/A on both 0.26.9 and 0.27.0. Basic ACP 0.27.0 remains independently admitted; this setter evidence proposes a separate admission and enables nothing.
3702
3739
  The production Qwen setter remains unavailable; `qwen-dual` is verified separately (0.26.1, 0.27.0 and 0.27.1).
3703
3740
 
3704
3741
  ### Receipt automation audit (#1248 T0)
@@ -3914,7 +3951,13 @@ capabilities still require their own labels. A disjoint window refuses with 4426
3914
3951
  The compatibility-floor `protocol` field remains readable by old clients.
3915
3952
 
3916
3953
  Release N-1 is counted in minor versions, separately from this protocol window
3917
- (#1164, family contract entelecheia/ai-workspace#70). For 0.36.x, N-1 is 0.35.0,
3954
+ (#1164, family contract entelecheia/ai-workspace#70). For 0.38.x, N-1 is 0.37.0,
3955
+ the latest published patch of 0.37.x (exact `@staix/agent-mem` 0.24.0, control
3956
+ protocol 17 with descriptor floor 16). Every patch on 0.38.x keeps that release
3957
+ baseline. For 0.37.x, N-1 is 0.36.0,
3958
+ the latest published patch of 0.36.x (exact `@staix/agent-mem` 0.23.1, control
3959
+ protocol 17 with descriptor floor 16). Every patch on 0.37.x keeps that release
3960
+ baseline. For 0.36.x, N-1 is 0.35.0,
3918
3961
  the latest published patch of 0.35.x (exact `@staix/agent-mem` 0.23.1, control
3919
3962
  protocol 17 with descriptor floor 16). Every patch on 0.36.x keeps that release
3920
3963
  baseline. For 0.35.x, N-1 is 0.34.1,
@@ -4675,8 +4718,9 @@ A new `routing.toml` from `ahub init` sets `[local]` and `implement` to `hub/sta
4675
4718
  `--model` pins the worker and bypasses route selection. A class with `fixed_model`
4676
4719
  and no `route` also calls that alias directly, even when `[local]` names a route.
4677
4720
 
4678
- The Switchyard sidecar is retired (#553). No binary or generated model-router
4679
- config is used, and its reserved port offset remains unused. Existing `[targets]`
4721
+ The hub owns its in-process fallback and escalation/advisor decisions, with
4722
+ optional adec model/effort choices (#1352). No separate routing binary or generated
4723
+ model-router config is used; reserved port offset 3 remains unused. Existing `[targets]`
4680
4724
  and `[routes]` tables are ignored and listed as retired settings in startup logs
4681
4725
  and doctor. Every route without the `hub/` prefix, including named legacy routes
4682
4726
  and `sy/` selections, uses the fixed alias with one warning. Loading or reloading
@@ -4829,6 +4873,61 @@ it refuses the stale turn, exactly as a decision route does, and the heuristic i
4829
4873
  not executed around that refusal. The PII
4830
4874
  screen, `assign()` and the escalation and advisor triggers never use this path.
4831
4875
 
4876
+ #### Optional phase and judge model/effort choices (#1352)
4877
+
4878
+ The same separately operated ADEc service can suggest a model/effort pair for
4879
+ an existing `plan_execute` phase or an existing `advisor`/`escalation` judge
4880
+ call. Add the ordinary service binding to that route and keep
4881
+ `decision_mode = "shadow"`; omitted mode remains `off`, and `enforce` is refused
4882
+ at configuration load. No new `judge_choice` table or other routing key is
4883
+ introduced.
4884
+
4885
+ For a phase route, `policy_id = "ahub.plan-execute"` refers to
4886
+ [`templates/adec/ahub.plan-execute.json`](../templates/adec/ahub.plan-execute.json).
4887
+ The policy's candidates, the route's allowed `candidates`, and the route's
4888
+ `efficient`/`capable` fallback aliases must be reviewed together. The route's
4889
+ `candidates` allowlist must match the policy options; the host fallback aliases
4890
+ remain independent and are what the executor still receives in shadow. For
4891
+ example, the syntactically valid placeholders in that template map to a route
4892
+ like:
4893
+
4894
+ ```toml
4895
+ [hub_routes."hub/plan-execute"]
4896
+ type = "plan_execute"
4897
+ decision_backend = "adec"
4898
+ decision_mode = "shadow"
4899
+ policy_id = "ahub.plan-execute"
4900
+ adec_endpoint = "http://127.0.0.1:8740/v1/route"
4901
+ efficient = "replace-me-efficient"
4902
+ capable = "replace-me-capable"
4903
+ candidates = [
4904
+ { alias = "replace-me-efficient", efforts = ["edit-effort"] },
4905
+ { alias = "replace-me-capable", efforts = ["edit-effort"] },
4906
+ ]
4907
+ ```
4908
+
4909
+ Replace every placeholder with a provider and alias/effort pair from the
4910
+ person's own ADEc configuration before using the example. `ahub.stage` is the
4911
+ separate R1 ambiguity-band classifier policy; its template is
4912
+ [`templates/adec/ahub.stage.json`](../templates/adec/ahub.stage.json) and its
4913
+ stage candidates use effort `none`. These templates are pinned to the public
4914
+ agent-decide policy schema at commit `008548c5`; their provider, aliases, effort
4915
+ and on-prem status are examples only. Each sample candidate sets `onPrem` to
4916
+ `false`. A person must verify the model's actual serving location before
4917
+ changing that value; loopback service placement alone does not establish it.
4918
+
4919
+ Advisor and escalation judge routes may use the same binding shape with a
4920
+ person-authored policy for the judge model/effort options. ADEc suggests only a
4921
+ pair. The hub still owns whether to review or escalate, the judge prompt and
4922
+ reply parsing, escalation confirmation, privacy and campus admission, and the
4923
+ existing fallback execution. In shadow the suggested pair is metadata only;
4924
+ it does not replace the model/effort actually sent to the executor. Judge
4925
+ observations use the `decisionTarget = "judge"` route-event marker and do not
4926
+ add a phase or purpose field. The route keeps the existing main model and host
4927
+ semantics. No live model-quality, routing-gain or production claim follows from
4928
+ the policy files or model-free proof; the manual model-routing receipt/live
4929
+ benchmark remains unrun.
4930
+
4832
4931
  Migrate the retired settings as follows:
4833
4932
 
4834
4933
  | Retired setting or route | In-process replacement |
@@ -6248,7 +6347,7 @@ blocks that undo until the identity and workspace can be reviewed.
6248
6347
 
6249
6348
  ## Release approval and optional tag guard
6250
6349
 
6251
- Run `ahub sdlc authorize-release <version>` from the running daemon's release-candidate checkout after committed documentation is fresh. The person may run it directly; the unique configured conductor may run it only on the person's explicit instruction in its own session naming the release. A hub message, task text, review note, file or peer relay never qualifies. Other peers, child `toolsOwner` sessions, private or PII turns, and delegated `--live-test` calls cannot authorize. The receipt binds commit, package version, remote identity and the docs verdict; its `by` and the audit name the actual asker. The daemon keeps approval only in memory; restart requires a new approval. The read-only `ahub sdlc release <owner/repo>` report shows its receipt, retaining native-verification blockers.
6350
+ Run `ahub sdlc authorize-release <version>` from the running daemon's release-candidate checkout after checking the committed release policy. The person may run it directly; the unique configured conductor may run it only on the person's explicit instruction in its own session naming the release. A hub message, task text, review note, file or peer relay never qualifies. Other peers, child `toolsOwner` sessions, private or PII turns, and delegated `--live-test` calls cannot authorize. The receipt binds the exact commit, version source, remote identity and documentation verdict or explicit `docs:none` exemption; its `by` and the audit name the actual asker. The daemon keeps approval only in memory; restart requires a new approval. The read-only `ahub sdlc release <owner/repo>` report shows its receipt, retaining native-verification blockers.
6252
6351
 
6253
6352
  `ahub init --release-guard` installs a managed Git pre-push guard and release instructions (`--dry-run --json` previews them). It preserves an existing default hook as `pre-push.agent-hub-original` and passes original argv/stdin to it only after approval matches. Unknown or mismatched `v*` tag pushes fail closed, including when the daemon is down. Non-version branch pushes remain independent of the daemon. Custom `core.hooksPath` and linked/hardlinked hook files require manual integration. Re-run init after changing the Bun/package location. The person's `git push --no-verify` remains an explicit bypass; agents are instructed never to use it.
6254
6353
 
@@ -6303,7 +6402,7 @@ Native launcher connections retry transport timeouts/unclean closes with bounded
6303
6402
 
6304
6403
  ## amem runtime (agent-mem#13 P4)
6305
6404
 
6306
- The hub exact-pins @staix/agent-mem <!-- facts:agent-mem-pin -->0.23.1<!-- /facts:agent-mem-pin --> for recall, curated evidence and local deterministic capture. No runtime call reaches a claude-mem worker; `memory.worker_url` is ignored. The person's `ahub memory import claude-mem` remains explicit and off by default. Existing profile, alias, PII and private-turn fences still apply. `ask --remember` and context checkpoints propose machine-local candidates, never automatic curated evidence. See [memory integration](memory.md#in-process-recall-and-capture-agent-mem13-p4) for changed behavior and bounded-view ceilings.
6405
+ The hub exact-pins @staix/agent-mem <!-- facts:agent-mem-pin -->0.24.0<!-- /facts:agent-mem-pin --> for recall, curated evidence and local deterministic capture. No runtime call reaches a claude-mem worker; `memory.worker_url` is ignored. The person's `ahub memory import claude-mem` remains explicit and off by default. Existing profile, alias, PII and private-turn fences still apply. `ask --remember` and context checkpoints propose machine-local candidates, never automatic curated evidence. See [memory integration](memory.md#in-process-recall-and-capture-agent-mem13-p4) for changed behavior and bounded-view ceilings.
6307
6406
 
6308
6407
  ## Person-run backlog legs (#1176)
6309
6408
 
@@ -6364,6 +6463,7 @@ The selected project's configured conductor may run the commands below through i
6364
6463
  | research backfill / bench run / source add / goal link | Existing bounded CLI or daemon paths, with fixed audit labels |
6365
6464
  | start Jcode | Launcher-only peer the conductor is configured to start |
6366
6465
  | task unassign <id> [--role owner\|reviewer] [--revision N] | The actual conductor is recorded; no replacement is routed and no native work is stopped |
6466
+ | guidance probe register/start/show/receipts/cancel | Bounded private probe declaration, fake-only lifecycle and the read-only sealed-receipt export through Tasks (#1226); `--live-test` is refused and production has no probe runner |
6367
6467
  | restart --yes | Only with a source-issued continuation proof for this project's own operation |
6368
6468
  | upgrade --yes --to <exact-version> | Only with proof for this project's supported exact-version upgrade; newer coordinator handoff is person-only |
6369
6469
  | recovery resume\|abort [<op-id>] | Only the initiating conductor's own restart/authorized-upgrade operation; the person keeps the normal recovery path |
@@ -6978,125 +7078,17 @@ Upgrade the broker, then every room member to a codec-capable release, then reco
6978
7078
  connection; direct `ahub room status` failures expose only closed cause/action
6979
7079
  metadata. A healthy online link needs no broker repair advice.
6980
7080
 
6981
- ## Optional Orca companion contract (#1198 O0)
6982
-
6983
- The [versioned O0 contract](../integrations/orca/host-contract-v1.md) and its
6984
- [capability matrix](../integrations/orca/host-contract-v1.json) describe the
6985
- installed Orca 1.4.252 declarations, pinned primary references and reusable
6986
- fake-host/CLI fixtures. O0 installs no plugin and changes no ahub runtime.
6987
- Worker and frame APIs differ: workspace inventory/navigation are worker-only;
6988
- focused context lacks the exact workspace id, execution host and real root
6989
- needed to select a project. Names and branches are never selection authority.
6990
-
6991
- Terminal focus remains unsupported until a plugin terminal id can be bound to a
6992
- current same-host CLI handle. Workspace navigation and manual `ahub console` /
6993
- `ahub ui` commands remain available independently of a companion. No remote
6994
- loopback URL is opened locally. Native local, remote, Windows and mobile results
6995
- are recorded separately; declarations and fake results do not qualify them.
6996
- The three baseline journeys count procedure actions only, with observed native
6997
- counts still unknown. O1 must record actual open/disable/standalone UI proof.
6998
-
6999
- ### Optional Orca companion: chooser and entry points (#1198 O1)
7000
-
7001
- [`integrations/orca/`](../integrations/orca/README.md) holds the optional companion: a manifest, a
7002
- trusted worker and a sidebar panel. It is not in the npm package, no ahub source refers to it, and ahub and
7003
- Orca keep all their own functionality without it. It lists Orca's workspaces, you select one by its exact
7004
- id (a name or branch never selects), and it opens an existing screen: `ahub ui` run as a short-lived child
7005
- with the folder as its working directory only, or a terminal created in the workspace running `ahub console`
7006
- or `acon ui`. A selection binds the id, host id, kind and the folder's real path on this Mac and is
7007
- re-checked against a complete inventory before every effect; a duplicate, missing, truncated or changed
7008
- identity, or a host not declared to be this Mac, refuses visibly and runs nothing. It never passes `--json`
7009
- to `ahub ui`, never approves, assigns, completes, retries, stops or upgrades anything, and keeps no CLI
7010
- output, one-time link or task text in plugin state or logs.
7011
-
7012
- Install is explicit and in an isolated Orca profile first (`orca plugin validate`, `orca plugin dev load`
7013
- with the fingerprint Orca prints); remove it with `orca plugin disable` and `orca plugin dev unload`. The
7014
- fake-host checks are `test/orca-companion-entry.test.ts` and `test/orca-companion-independence.test.ts`.
7015
- A **Show status** button (O2) reads the selected project's public status on a click only: version, tasks by
7016
- state, and peer state with queue length, copied from `ahub status --json` through a closed allowlist so no
7017
- free-text field (task title, a peer's current line, a notice, a path) is read. Offline, unavailable version,
7018
- partial, stale and unknown stay distinct states; there is no poller, no transcript read and no terminal read.
7019
- There is **no terminal focus**: O0 found no proof that a plugin terminal id names an `orca terminal switch`
7020
- handle, so the companion never calls it and never replaces a terminal.
7021
-
7022
- **Platforms (O3).** [`support-matrix.json`](../integrations/orca/support-matrix.json) records one verdict per
7023
- combination and a test enforces that `supported` needs a receipt that no longer says NOT RUN. Today none is
7024
- supported: macOS local is fixture-only, and remote, Windows, browser or mobile and Linux are unsupported, each
7025
- with a person-run receipt template under `integrations/orca/receipts/`. A remote workspace is refused before
7026
- anything runs and shows the existing remote console command to run on that host; a remote loopback link is never
7027
- opened locally. On Windows every workspace is refused (`unsupported_platform`). Where a client has no external
7028
- navigation no link is held. Mobile availability is not inferred from SSH reachability or from Orca's mobile
7029
- pairing option.
7030
-
7031
- **The native open and disable receipt is a person-run leg that has not been run**
7032
- ([`native-receipt.md`](../integrations/orca/native-receipt.md)): the action counts in the companion's README
7033
- are procedure counts, remote, Windows and mobile stay unqualified (O3), and there is no focus-existing-console
7034
- action.
7035
-
7036
- ### Orca terminal focus evidence recheck (#1198 O4)
7037
-
7038
- The [O4 host-contract evidence](../integrations/orca/host-contract-v1.md#terminal-focus-recheck-o4-2026-11-09)
7039
- records installed Orca 1.4.254. Generated plugin types match the O0 hashes; neither those types nor the
7040
- shipped host declarations expose terminal focus or equate plugin terminalId with a CLI handle. The
7041
- read-only CLI inventory was complete for its local host scope and carried runtime, incarnation and
7042
- workspace identity fields, but no plugin-id mapping. Those freshness fields alone do not prove a binding.
7043
-
7044
- Focus remains unsupported and runtime code is unchanged. Use the existing `ahub console` / `acon ui`
7045
- command or select the terminal manually. No plugin was loaded into the everyday profile and no live
7046
- terminal was switched, driven or replaced. The separate [O4 native receipt rows](../integrations/orca/native-receipt.md#terminal-focus-recheck-o4-person-run-leg)
7047
- remain person-run **NOT RUN**; source checks, hosted CI and native acceptance are separate evidence.
7048
-
7049
- ## Herdr companion host contract (#1199 H0)
7050
-
7051
- [`integrations/herdr/host-contract-v1.md`](../integrations/herdr/host-contract-v1.md) freezes what an optional Herdr mod may
7052
- rely on, taken from the installed app's own declarations (Herdr 0.1.13, herdr-core 0.1.18, hashes recorded), and records
7053
- what was not observed. It changes no ahub runtime and installs nothing. `exec` is bounded (30 s, 8 MiB) and used for
7054
- reads only. The pane's machine and cwd are a navigation hint: the project root comes from `ahub projects --json` read on
7055
- that same machine, and a remote cwd is never resolved on this Mac. Herdr has no install or disable command, so a mod is
7056
- a folder the person adds and removes, and what removal does to a shown copy is for the H1 native receipt. Existing
7057
- terminal focus is unbuilt until a Herdr terminal can be mapped to an ahub console. The three baseline journeys are
7058
- procedure counts that have not been run in a native window.
7059
-
7060
- ### Who owns a pull-only peer (#1310)
7081
+ ## Optional Orca companion (moved, #1198)
7061
7082
 
7062
- `ahub status` (and `--json`) names the current owner of an attached channel peer, beside its standby rows: `<peer> owner: pid <n>; attached <age>; native session <id>`. The pid is what the owner's plugin reported at hello (`pid unknown` when it reported none or an unusable one). `attached` is when the attach finished, not when the hello arrived. The native session reads `unverified` until the hub has verified one through the native-facts path (today agy), and an id that is not a short plain token is never shown. The owner line is absent while a newer session is still arriving, while the peer is offline, and after a detach, so a claimant is never shown as attached, and a takeover replaces the whole line at once. Use it to see who holds a queued peer before running `ahub peer takeover`. It is display only: it never decides delivery, takeover or permission, and `status.json` on disk does not carry it.
7083
+ The optional Orca companion moved to [STAIxBWLB/ahub-orca](https://github.com/STAIxBWLB/ahub-orca) (#1387). Its code, tests and receipts live there; nothing of it remains in this repository. (The two Orca CLI verification records under `docs/verification/` stay here: they are ahub's own terminal-recovery evidence, cited by `src/cli/terminal-recovery.ts`.) It is an Orca plugin (`orca-plugin.json` at that repository's root, tagged `vX.Y.Z`), not an ahub dependency. It stays off here, and its native receipts are person-run and not run.
7063
7084
 
7064
- ### Herdr project and machine entry (#1199 H1)
7065
-
7066
- [`integrations/herdr/`](../integrations/herdr/README.md) is an optional mod: three files the person copies to
7067
- `mods/ahub` in the Herdr app home, which Herdr reads live and which declares `place: none`, so no layout changes.
7068
- It lists the focused space's machine and folder and that machine's registered projects, and opens nothing until a
7069
- row is selected. Open console starts one new tab in the selected space running `ahub --project <id> console`, with the project root
7070
- as the tab's folder. Before every effect it re-reads the space, the machine and the registrations and runs
7071
- `ahub status --json` from the project folder, and refuses a changed, duplicate, offline or unready target. The local
7072
- dashboard runs the existing `ahub ui` and keeps no link or ticket. A remote space gets the console tab or a copyable
7073
- command, never a dashboard link. Remove it by deleting the folder. It starts, stops and upgrades nothing and is not an
7074
- ahub dependency. `herdr-app check` accepts it in a scratch home; the native open and disable receipt is a person-run
7075
- leg that has not been run.
7076
-
7077
- ### Herdr status card and existing-console focus (#1199 H2)
7078
-
7079
- The Herdr entry also offers three read-only actions. **Status** reads `ahub --project <id> status --json` from the project folder on the
7080
- selected machine, on a click only, and shows task counts, peer states and queue lengths and the hub version from a closed
7081
- allowlist, so no task or note text reaches it. Missing CLI, timeout, an exit error, no hub running, oversized or
7082
- unrecognized output, an old hub, a partial reading and a stale one are distinct states. **Focus console** and **Peek
7083
- console** (this computer only) accept a terminal only after `hc get` shows it live and running `ahub console` for the
7084
- selected project, exactly one match, rechecked right before a single `pane.focus` or `terminal.peek`, and a focus is
7085
- believed only after Herdr's `focused()` shows it. They never start, replace, type into or close a terminal, and
7086
- Herdr's own working, blocked, done and idle words are shown, never sent to ahub. A console started through a wrapper is
7087
- not recognized and the person uses Open console. The native focus receipt is a person-run leg that has not been run.
7088
-
7089
- ### Herdr platform support matrix (#1199 H3)
7090
-
7091
- [`integrations/herdr/support-matrix.json`](../integrations/herdr/support-matrix.json) records one verdict per combination and a
7092
- test enforces that `supported` needs a receipt that no longer says NOT RUN. Today none is supported: macOS local is
7093
- fixture-only, and remote, Windows, Linux and browser or mobile are unsupported, each with a person-run receipt template under
7094
- `integrations/herdr/receipts/`. The remote console workflow is designed (read on that machine, new tab in that machine's space,
7095
- no dashboard link, no remote focus) and exercised against the fixture only, because no remote machine is configured on the
7096
- machine it was built on. On Windows every action refuses. Mobile is not inferred from SSH reachability or a machine being ready.
7097
- [`baseline-comparison.md`](../integrations/herdr/baseline-comparison.md) lays the entry's journeys beside the H0 baseline as
7098
- procedure counts: the entry costs one more action than the baseline when the pane is already in the right project, and its value
7099
- is the verified machine and root, not a shorter path.
7085
+ ## Herdr companion (moved, #1199)
7086
+
7087
+ The Herdr companion moved to [STAIxBWLB/ahub-herdr](https://github.com/STAIxBWLB/ahub-herdr) (#1387). Its code, tests and receipts live there; nothing of it remains in this repository. It is a mod folder the person copies into Herdr, not an ahub dependency. It stays off here, and its native receipts are person-run and not run.
7088
+
7089
+ ## Who owns a pull-only peer (#1310)
7090
+
7091
+ `ahub status` (and `--json`) names the current owner of an attached channel peer, beside its standby rows: `<peer> owner: pid <n>; attached <age>; native session <id>`. The pid is what the owner's plugin reported at hello (`pid unknown` when it reported none or an unusable one). `attached` is when the attach finished, not when the hello arrived. The native session reads `unverified` until the hub has verified one through the native-facts path (today agy), and an id that is not a short plain token is never shown. The owner line is absent while a newer session is still arriving, while the peer is offline, and after a detach, so a claimant is never shown as attached, and a takeover replaces the whole line at once. Use it to see who holds a queued peer before running `ahub peer takeover`. It is display only: it never decides delivery, takeover or permission, and `status.json` on disk does not carry it.
7100
7092
 
7101
7093
  ## Bounded visual attachments (#1058)
7102
7094
 
@@ -7205,26 +7197,6 @@ Upgrade every amem consumer sharing a memory home together, including native CLI
7205
7197
 
7206
7198
  Count-only `records capture`, `records forwarded`, `records brief` and `records recall` diagnostics report accepted/dropped rows or before/after UTF-8 bytes. Record text, anchors, native session IDs and credentials are absent from these diagnostics. An absent registry proof or an unavailable Record source preserves old note content; a privacy or policy change during a read withholds the stale block.
7207
7199
 
7208
- ## Claude Code companion contract (#1338 C0)
7209
-
7210
- The [versioned host contract](../integrations/claude-code/host-contract-v1.md) freezes the seven C0 questions and two counted baseline procedures. Claude Code 2.1.319 and a scratch agent-hub 0.35.0 were probed with isolated HOME and CLAUDE_CONFIG_DIR, outside Git, with no Claude credentials copied or model turns. The final probes used an explicit noncredential environment allowlist after the initial inherited environment was corrected (receipt records the distinction). Real settings.json hashes matched at the isolated native-probe boundary only. A later read-only pre-push audit differed (confirmed 2026-11-09T08:12:37Z, cause UNKNOWN); the contract and receipt retain both observations without attributing the change.
7211
-
7212
- Agent-marked direct CLI status, board and project reads succeeded; calling them from a live mod's `$.process` remains unproven. Channel delivery origins, gesture origins, panes/bands, statusLine coexistence and minimum mod version remain unproven. The status-line and channel-delivery surfaces are dropped pending proof; `ahub tail` is excluded (person-only refusal and free text). No surface is supported by C0, and every native surface receipt remains NOT RUN. No native UX improvement is claimed by passing fixture tests.
7213
-
7214
- C1 now provides a separate [fixture-only read-only mod](../integrations/claude-code/README.md) against declared 2.1.319 types: pane, `/hub`, `/hub refresh` and `/hub console` (prints only). Native installation and the terminal receipt remain person-run NOT RUN; no supported/minimum host version is claimed. The C0 capability verdicts remain unchanged. C1 read-set revision 2 uses one project-scoped `status --json` process for version, peers and task-state counts; it never requests board or global project JSON. Task/role lists are unavailable. Binding checks canonical root and pinned daemon projectId; registry existence/uniqueness remains unverified, as stated in the amended AC1 and host contract. Reviewer-measured old board/project payload sizes and the separate source-CLI refresh measurement are recorded there, without raw packets or native UI claims. The existing separate-terminal fallback is `ahub --project <quoted root> console` for attention, or `ahub --project <quoted root> status` for peer liveness. Both baseline procedures count two actions from a focused Claude session (open terminal, submit command), with selection or consent counted separately. Install/remove, a one-action attention journey, disable independence and on/off model-input equality require later native receipts. No channel plugin, runtime, real statusLine or statusline-tee was changed.
7215
-
7216
- ### Claude Code companion C2 declared views (#1338)
7217
-
7218
- The optional [companion](../integrations/claude-code/README.md) adds a declared AbovePrompt attention band for fresh positive held-count, budget-record and first-active-permission facts, plus compact ToolUse views for four hub tools with the unchanged original behind a bounded session toggle. Missing fields are gaps in the pane, never waiting lines. Exact offline-owned-in_progress work cannot be inferred from current status WIP or offline-summary fields. The same single status read and canonical-root/pinned-projectId ceiling apply; no status line, channel row or additional CLI read is added.
7219
-
7220
- Actual registered fake-host chains compare model results, queued channel text and composed system sections with the mod on/off, while render/toggle views change; counterfactual mutations prove the comparator can detect all three kinds of drift. This is source evidence. The native needs_review band raised/cleared, row UX, action counts and disable proof remain person-run NOT RUN; support remains fixture_only.
7221
-
7222
- ### Claude Code companion C3 manual qualification (#1338)
7223
-
7224
- The [manual-only placement procedure](../integrations/claude-code/README.md#manual-session-only-placement) uses a scratch folder and person-run session `--plugin-dir` opt-in in isolated HOME/config with a scratch hub. Copying files is not a registered CLI installation. Exit and restart without the flag to disable; discard only the owned scratch copy to remove. No persistent installation identifiers or second marketplace entry are qualified. The separate channel entry stays unchanged.
7225
-
7226
- The [matrix](../integrations/claude-code/support-matrix.json) keeps terminal/desktop fixture_only and VS Code/mobile unsupported for the full AbovePrompt journey, without claiming their pane/tool rows proven or impossible. Each surface has its own native receipt, all NOT RUN; no native supported version or minimum is claimed. The support test rejects missing, placeholder, version/head-mismatched or incomplete receipts. Source declarations, fake-host equality and isolated static validation are separate from native painting, disable independence and version-boundary evidence.
7227
-
7228
- For "what needs me?", the complete separate-console baseline is 2 procedure actions (open terminal, submit command). A fresh known-subset band can be noticed with 0 further actions or requested by 1 submitted refresh; complete console follow-up is still 2. Target selection/consent is additional. No observed action count or UX reduction is claimed until the person records it in the matching surface receipt.
7200
+ ## Claude Code companion (moved, #1338)
7229
7201
 
7230
- C3's guarded static CLI leg is UNVERIFIED/person-run: version-only diagnostic child exit -6 / signal 6, zero stdout/stderr bytes, with unchanged file fences and no owned group remaining. Cause is UNKNOWN; `plugin validate` was NOT RUN and probing stopped without relaxing isolation. The path label 2.1.321 is metadata only, separate from the immutable 2.1.319 declarations and historical validation. No native support or minimum follows.
7202
+ The Claude Code companion moved to [STAIxBWLB/ahub-claude](https://github.com/STAIxBWLB/ahub-claude) (#1387). Its code, tests and receipts live there; nothing of it remains in this repository. It is separate from the channel plugin `plugins/agent-hub` that ahub ships. It stays `fixture_only` with manual session-only placement, and its native receipts are person-run and not run.
package/docs/profiles.md CHANGED
@@ -95,7 +95,7 @@ nor an evidence relation creates a person verdict or proves entailment.
95
95
  - 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.
96
96
  - `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.
97
97
  - `role_text` is bounded guidance for existing flow roles (2000 characters each); it grants no authority. `catalog_roles` supplies bounded compatible guidance ids; the existing explicit catalog selections take precedence. Actual flow maps remain in `roles` and retain their existing validation.
98
- - `agents` replaces only the managed AGENTS block (16000 characters maximum); surrounding instructions remain. Init previews contain paths/actions only. `example_checks` is at most 16 display strings of 2000 characters, shown as advisory examples by init and never selected as executable checks. `review_checklist` is at most 16 non-empty strings of 500 characters, customizing the checklist items in review requests with `{target}` and `{check}` interpolations. Existing `checks` trust remains authoritative.
98
+ - A shipped profile's `agents` is its own paragraph, appended to the shared `templates/AGENTS.block.md` inside the managed block (#1399). A project's `profile_overrides.agents` still replaces the whole managed block (16000 characters maximum); surrounding instructions remain either way. Init previews contain paths/actions only. `example_checks` is at most 16 display strings of 2000 characters, shown as advisory examples by init and never selected as executable checks. `review_checklist` is at most 16 non-empty strings of 500 characters, customizing the checklist items in review requests with `{target}` and `{check}` interpolations. Existing `checks` trust remains authoritative.
99
99
  - No override mutates shipped profile data or another project. Unknown fields, base remapping and invalid/oversized data are refused. Headers are quoted. Daemon/MCP restart is required for config changes; no native model consumption or research measurement is claimed.
100
100
 
101
101
  # Domain packs (#513a)
@@ -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.36.0
21
+ bun add -g github:STAIxBWLB/agent-hub#v0.38.0
22
22
  ahub setup
23
23
  ```
24
24
  <!-- /facts:install-tag -->
@@ -48,6 +48,18 @@ terminal in that project: it reviews the plan with you, applies it and follows
48
48
  it; other projects keep their version. It then names the `bun add -g` and
49
49
  `ahub setup` step when your global CLI or plugin is older than the new daemon.
50
50
 
51
+ ## Upgrading to 0.38.0
52
+
53
+ After the upgrade, a command the hub prints for you (a held delivery in `ahub status`, `ahub queue show`, the hold notice) runs as printed, with the project directory, revision, action and reason filled in. `ahub doctor` shows a `hub instructions` warning when the project's AGENTS.md block is older than this release: run `ahub init --dry-run` to preview and `ahub init --yes` to refresh it, then commit AGENTS.md. Guidance probe receipts (`ahub guidance probe receipts`) change nothing until you use them.
54
+
55
+ `ahub upgrade` does not update the global CLI or the shared Claude plugin: run `bun add -g @staix/agent-hub@0.38.0` and then `ahub setup` yourself, and `ahub doctor` warns while either is older than a running daemon.
56
+
57
+ ## Upgrading to 0.37.0
58
+
59
+ The `@staix/agent-mem` pin moves to 0.24.0, whose storage formats equal 0.23.1's (#1396). Raise a shared home's curated format floor to 0.24.0 only after every hub sharing that home runs 0.37.0. The Orca, Herdr and Claude Code companions are no longer in this package: install them from STAIxBWLB/ahub-orca, STAIxBWLB/ahub-herdr and STAIxBWLB/ahub-claude, which read ahub only through the companion CLI contract v1 (#1387, #1392). The replaced routing modules and their Apache notice are gone; routes, `stage` compatibility and route events behave as before (#1393). `ahub console` now shows the daemon, console, global CLI and Claude plugin versions, and an AHUB column per peer (#1386). Nothing else changes until you use it: `ahub sdlc authorize-release` can read a committed version source for a project without `package.json` (#1383), and `ahub guidance probe register|start|show|cancel` records a private probe declaration whose lifecycle runs only with test fixtures; production has no probe runner (#1391, #1395). N-1 is published 0.36.0 and control remains 16 through 17.
60
+
61
+ `ahub upgrade` does not update the global CLI or the shared Claude plugin: run `bun add -g @staix/agent-hub@0.37.0` and then `ahub setup` yourself, and `ahub doctor` warns while either is older than a running daemon.
62
+
51
63
  ## Upgrading to 0.36.0
52
64
 
53
65
  The `@staix/agent-mem` pin stays at 0.23.1. In SDLC `advise` or `enforce`, a repository other than `STAIxBWLB/agent-hub` with no configured required checks now reports `required checks unknown` for review readiness and CI watches instead of assuming the native `seeded guards` floor (#1344): set `required_checks` in `.agenthub/sdlc.toml` (`ahub settings edit sdlc.toml`) and restart the hub ([required checks](sdlc.md#required-checks-at-initialization)). After a hub deny, Qwen's dual-output TUI keeps later input fenced until a new personal turn completes in the Qwen terminal or a verified fresh generation starts, and reports offline after 30 s ([Qwen TUI](operations.md#qwens-own-tui-driven-through-dual-output-286-part-3), #1371). `hub_inbox` can also show an agent its own held messages as a read-only view that settles nothing (#1359). Newly verified agent versions: Claude Code 2.1.322 as the headless implementer (#1377), the Qwen dual-output TUI on 0.27.0 and 0.27.1 (#1364, #1378) and Qwen basic ACP on 0.27.0 (#1355); the headless `qwen` ACP entry still refuses 0.27.1. Before saving a machine research default with `ahub setup --research` or `--no-research` (#1347), upgrade every hub and CLI on the machine: a version before 0.36 treats the whole `~/.agenthub/defaults.json` as untrusted, so its machine autonomy preset falls back to off ([research records](operations.md#research-records)). Nothing else changes until you use it: `supervision.mode` (machine-local, off by default) stores bounded supervision proposals in `shadow` and also shows them in the console inbox in `advisory`, where only an explicit accept or dismiss acts ([supervision proposals](operations.md#supervision-proposals), #1362, #1368); `ahub guidance create|list|show|withdraw` records advisory role variants on a task (#1363, #1367, #1376); `ahub lineage show|link` reads bounded execution lineage and admits declared references ([execution lineage](operations.md#execution-lineage-1220-t2), #1341, #1358); a `stage` route with `classifier = "decision"` asks adec only inside its ambiguity band, off or shadow only (#1370, #1373); `ahub sdlc adopt-merge <task> --pr <n>` settles a task whose PR was merged outside the hub (#1348); `ahub init` in `advise` or `enforce` proposes the repository's required checks (#1344) and takes `--research`/`--no-research` (#1347); an explicitly superseding task can carry unchanged spec consent (#1361); and the optional Claude Code companion stays fixture-only with manual session-only placement (#1349, #1365, #1369). N-1 is published 0.35.0 and control remains 16 through 17.
@@ -214,7 +226,7 @@ Restart Claude sessions after upgrading: each keeps the plugin server it started
214
226
 
215
227
  `ahub jcode` opens its TUI again; on 0.12.39 it stopped after the first hub turn (#564). A busy Jcode now takes an `important` message into its running turn (#572), and `ahub doctor` lists the extra MCP servers the hub-owned Jcode loads from its config files. See [Jcode operations](operations.md#optional-jcode-peer).
216
228
 
217
- The Switchyard sidecar is retired (#553). An existing `routing.toml` keeps working: its `[targets]` and `[routes]` tables are ignored and reported as retired settings, and a route without the `hub/` prefix (such as `sy/coding`) uses the fixed model with one warning. Migrate with the table in [in-process model routes](operations.md#in-process-model-routes); the hub never rewrites the file.
229
+ Model routing runs in process through the hub-owned route implementation, with optional adec model/effort choices. An existing `routing.toml` keeps working: its `[targets]` and `[routes]` tables are ignored and reported as retired settings, and a route without the `hub/` prefix (such as `sy/coding`) uses the fixed model with one warning. Migrate with the table in [in-process model routes](operations.md#in-process-model-routes); the hub never rewrites the file.
218
230
 
219
231
  Run `ahub init` once per project to refresh the hub block in `AGENTS.md`: it adds the line that tells agents to report a pushed PR with `hub_task_done` and end the turn instead of waiting for CI (#572). Finishing a task now also says when the project root checkout is on a branch other than its default.
220
232
 
@@ -421,7 +433,7 @@ More: `ahub help`. How it is built and why: [`docs/specs/2026-09-19-agent-hub-de
421
433
 
422
434
  ## Shared memory
423
435
 
424
- The hub exact-pins the first-party `@staix/agent-mem` <!-- facts:agent-mem-pin -->0.23.1<!-- /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.
436
+ The hub exact-pins the first-party `@staix/agent-mem` <!-- facts:agent-mem-pin -->0.24.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.
425
437
 
426
438
  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.
427
439
 
package/docs/research.md CHANGED
@@ -68,7 +68,7 @@ Schema v2 is additive: a v1 file still loads (a v1 row reads as `outcome: "appro
68
68
  | `tokens` | attributed tokens: `total`, `byPeer`, and `byAttribution` (`delivery`, `single_open`, the #200 rules); unattributed tokens are in no record |
69
69
  | `usage` | provider usage per peer: `input`, `output`, `cacheRead`, `total` (null when never reported) |
70
70
  | `usageByModel` | provider-reported total tokens per served (else requested) model |
71
- | `models` | model routes and served models of the attributed requests |
71
+ | `models` | model routes and served models of the attributed requests; a judge model-choice observation (a `route` event with `decisionTarget: "judge"`, #1389) is skipped before any accumulation, so it adds no route, peer or attribution |
72
72
  | `writer` | the release and `live` or `backfill` |
73
73
  | `tooling` | #248: for each peer that worked on the task (owner, reviewer, a peer with attributed turns or tokens), the add-ons from the `tooling` event of the attachment it last worked in (an attachment runs from a `state` event that brings the peer online to the next `offline`; detection may settle after the work started): `{ name, version }` from the closed list `claude-mem`, `ponytail`, `ripwire`, `open-code-review`, `codex-plugin`, `dot-admit`; version null when unknown. A peer missing here is unknown; records built from events written before #248 have no field |
74
74
  | `briefs` | #258: task briefs handed over for the task (`delivered`) and how many carried a hub-memory fail note (`withFail`), from `memory_brief` events; absent when none was recorded |
package/docs/sdlc.md CHANGED
@@ -470,15 +470,17 @@ A private (PII) task reads no eval metadata and records none.
470
470
 
471
471
  ## Person release authorization (#481 S6)
472
472
 
473
- From the running daemon's candidate checkout, the person or the one configured conductor runs `ahub sdlc authorize-release <version>` (#1063). The conductor acts only on the person's explicit instruction in its own session naming that release. A hub message, task text, review note, file or another peer's relay is never that instruction; the daemon cannot verify this cooperative rule. A conductor request uses the tools role and refuses a child `toolsOwner`, private turn or PII context, exactly like `sdlc merge`. Other peers and `--live-test` refuse. Consent binds the exact current commit, its committed package version, origin fetch/push identity and fresh committed documentation evidence, all reread after the docs check. Receipt `by` and the append-only metadata audit identify the actual asker alongside the approval id, commit, version and docs digest/count. The authoritative ledger is daemon-owned memory: restart revokes every approval; audit history cannot restore one.
473
+ From the running daemon's candidate checkout, the person or the one configured conductor runs `ahub sdlc authorize-release <version>` (#1063). The conductor acts only on the person's explicit instruction in its own session naming that release. A hub message, task text, review note, file or another peer's relay is never that instruction; the daemon cannot verify this cooperative rule. A conductor request uses the tools role and refuses a child `toolsOwner`, private turn or PII context, exactly like `sdlc merge`. Other peers and `--live-test` refuse. By default, consent binds the exact current commit, committed package version, origin fetch/push identity and fresh committed documentation evidence, all reread after the docs check. Receipt `by` and the append-only metadata audit identify the actual asker alongside the approval id, commit, version and, when checked, the docs digest/count. The authoritative ledger is daemon-owned memory: restart revokes every approval; audit history cannot restore one.
474
474
 
475
- `ahub sdlc release <owner/repo>` shows a matching or stale authorization receipt. Authorization removes only the person-decision blocker. Native acceptance remains unverified and `ready` remains false until separately supported. No tag, workflow or publication is changed by authorization or readback.
475
+ Release source policy is read only from `.agenthub/config.json` as committed at the candidate commit. A missing shared config keeps the existing defaults; unreadable or malformed committed policy refuses authorization. Release keys in `.agenthub/config.local.json` are ignored with a notice, and neither local config nor runtime settings can override the committed contract. `release.version` defaults to `package.json`; `release-notes` checks a regular committed notes blob at `release.notesPath` (default `docs/releases/v{version}.md`), and `none` binds the requested semantic version to the exact commit. `release.docs` defaults to `checker`; `none` is allowed only when the candidate has no regular `docs/verified.json` blob. A committed manifest keeps the documentation-evidence step required; remove `release.docs` from `.agenthub/config.json` or remove the manifest, commit the change and authorize again. For a project without that manifest, `none` skips only documentation evidence and is recorded as an explicit exemption with no freshness digest or document count. All source modes retain the person/conductor boundary, exact commit and origin binding. `npm publish` requires a clean tracked worktree and derives its target from committed `package.json`; with an alternate version source, that package version must identify the same configured target.
476
+
477
+ `ahub sdlc release <owner/repo>` keeps the existing package.json-default version and receipt output. For `release-notes` or `none`, it selects the latest successful receipt only when its commit, repository, origin and committed policy match this report; it rechecks the notes blob for the receipt version, or reports the `none` version bound by that receipt. Without an eligible receipt it prints `version undetermined`, names the configured source and points to `ahub sdlc authorize-release <version>`. It never guesses from a tag, notes filename or stale receipt. A source revalidation failure is stale/unknown consent and `ready` remains false. `docs:none` is shown as an explicit exemption and performs no documentation read. Authorization removes only the person-decision blocker. Native acceptance remains unverified and `ready` remains false until separately supported. No tag, workflow or publication is changed by authorization or readback.
476
478
 
477
479
  The optional `ahub init --release-guard` writes instructions and an executable default Git `pre-push` hook. Preview with `--dry-run --json`. An existing regular hook is renamed to `pre-push.agent-hub-original`, preserving its inode and mode, and chained with the exact original arguments and stdin only after successful preflight. Ordinary later `init` calls retain the guard. Linked/hardlinked hooks, occupied backups and custom `core.hooksPath` are refused before project writes; integrate custom hook runners manually instead. The wrapper pins the current Bun and package entry paths; run init again after moving or replacing that installation.
478
480
 
479
481
  For every actual pushed `v*` destination, the hook requires an exact semantic version and a matching receipt for the captured source object peeled to its commit. Missing consent, another commit/version/remote, daemon downtime or a reset ledger refuses the push. Version-tag deletion is refused. Branch-only pushes do not need a daemon and still reach the user's hook. The person can bypass with Git `--no-verify`; agents must never bypass it. This is a cooperative Git guard, not an OS capability boundary.
480
482
 
481
- Before other release commands, agents run `ahub sdlc release-guard -- <literal argv...>`. Supported forms are one named-remote tag push, `gh release create v<version>` (an existing GitHub tag is read back; a new one requires `--target <full-sha>`), and `npm publish` from the approved checkout. Ambiguous selectors, alternate repositories, bulk pushes, workspaces and archive publishes refuse. The npm preflight refuses tracked worktree changes before and after rechecking the committed-doc verdict and HEAD, but does not attest the eventual tarball, npm configuration or lifecycle scripts. The command performs no release operation and its answer is not an execution grant. GitHub/npm enforcement remains instruction-based until adapter integration (#312/#313); rerun preflight after changing any target or candidate. Native install, live release and migration evidence remain separate obligations.
483
+ Before other release commands, agents run `ahub sdlc release-guard -- <literal argv...>`. Supported forms are one named-remote tag push, `gh release create v<version>` (an existing GitHub tag is read back; a new one requires `--target <full-sha>`), and `npm publish` from the approved checkout. Ambiguous selectors, alternate repositories, bulk pushes, workspaces and archive publishes refuse. The npm preflight refuses tracked worktree changes before and after rechecking the committed release policy, the configured documentation verdict when enabled, and HEAD, but does not attest the eventual tarball, npm configuration or lifecycle scripts. Guard and hook operations require an explicit target and never infer one from a prior receipt. The command performs no release operation and its answer is not an execution grant. GitHub/npm enforcement remains instruction-based until adapter integration (#312/#313); rerun preflight after changing any target or candidate. Native install, live release and migration evidence remain separate obligations.
482
484
 
483
485
  Tracked npm cleanliness compares the cached index to HEAD and raw tracked blob bytes without `git status`, clean/process filters or text converters. It refuses unknown evidence, gitlinks, transformed files and inventories above 4,096 entries, 4 MiB per file, 32 MiB total or 250 ms; untracked files remain outside this check and the eventual tarball is not attested.
484
486
 
package/docs/security.md CHANGED
@@ -908,7 +908,7 @@ The review brief (#520) withholds private changes whole (both sides of a move) a
908
908
 
909
909
  Deliverable records (#509a). `hub_task_done` and `hub_sdlc_record` name files as `{path, format, version?}`; the hub hashes them itself and refuses a claimed `sha256`, `hash` or `bytes` and any field it does not own. Paths resolve under the owner's execution root with `realPath` and `guardPath` in read mode: outside the project, the secrets denylist, the hub's own state (`.git`, `.agenthub`), a dangling link, a non-regular file and more than 256 MiB each or 512 MiB together are refused, with the path as given and never a resolved one. The file is opened without following a final link and its device, inode, size and time are compared with what was checked, before and after the read, so a swapped or changing file is refused rather than recorded half-read; a bad call writes nothing. A declared worktree instance whose root is not proven refuses, and a later read of it reports `unknown`. No hash of hub state is ever taken, and a file the hub cannot read or vouch for is `unknown`, never `unchanged`. A reviewer's approval re-hashes the files and is refused when one changed, went missing or is unknown; only the person may approve the current bytes, which are then measured and bound. For a PII task, a file under `pii.paths` or a path matching a PII pattern, `publicDeliverables` is the one projection every peer view, review request, status and log uses: id, hash and size only. The board keeps the path, as it keeps a PII task's text. `ahub deliverables` (#509b) from an agent shell lists only the tasks `hub_task_show` would show that agent (#933), and `--live-test` cannot delegate it. It lists the board's records through `publicDeliverables` and opens a file only with `--check`, through the same reader and limits. The dashboard's Deliverables chip and task group use the same projection of the same records and never read a file on the poll; a `changed` mark there is only as fresh as the last live read in this daemon.
910
910
 
911
- Person-directed release authorization (#481 S6, #1063). `ahub sdlc authorize-release <version>` accepts the console user or the one configured conductor under the same admission as `sdlc merge`: tools role, matching configured conductor, no child `toolsOwner`, private turn or PII context. It remains refused under `--live-test`. The conductor may record consent only on the person's explicit instruction in its own session naming the release; a hub message, task text, review note, file or peer relay is never that instruction. The daemon cannot verify that cooperative prerequisite. Receipt `by` and the audit identify the actual asker. It binds the daemon checkout's commit, package version, push remote identity and a fresh-docs verdict, lives only in daemon memory (a restart revokes it) and is logged with its commit, version and docs digest. `ahub sdlc release-guard -- <argv>` is a read-only preflight that agents may run, except during a private or PII turn; it never executes the command and refuses ambient target selectors (`GIT_DIR`, `GH_REPO`, npm prefix and registry settings and the like). The pre-push hook that `ahub init --release-guard` installs refuses an unauthorized or unknown `v*` tag push, also with the daemon down, and passes other pushes through. It and the release block in `AGENTS.md` are a cooperative guard, not an operating-system boundary: `git push --no-verify`, a custom `core.hooksPath` or another Git invocation bypasses the hook, and `gh release create` and `npm publish` are checked only when the preflight is run (tasks 312 and 313).
911
+ Person-directed release authorization (#481 S6, #1063, #1381). `ahub sdlc authorize-release <version>` accepts the console user or the one configured conductor under the same admission as `sdlc merge`: tools role, matching configured conductor, no child `toolsOwner`, private turn or PII context. It remains refused under `--live-test`. The conductor may record consent only on the person's explicit instruction in its own session naming the release; a hub message, task text, review note, file or peer relay is never that instruction. The daemon cannot verify that cooperative prerequisite. Receipt `by` and the audit identify the actual asker. Release policy comes only from `.agenthub/config.json` committed at the candidate commit; local policy is ignored. Version source defaults to committed `package.json` and may use a committed release-notes blob or the requested version bound to the candidate commit. Documentation evidence defaults to the committed-document checker; `release.docs: none` is refused when the candidate commits a regular `docs/verified.json` blob, keeping documentation evidence required for that project. Remove `release.docs` from the shared config or remove the manifest, commit the change and authorize again. Only a project without that manifest may record the explicit exemption, with no fabricated freshness digest. The receipt binds the candidate commit, configured version source, docs policy and push remote identity, lives only in daemon memory (a restart revokes it) and is logged without document content. npm publish still needs a clean tracked worktree and a committed package version that identifies the configured target. `ahub sdlc release-guard -- <argv>` is a read-only preflight that agents may run, except during a private or PII turn; it never executes the command and refuses ambient target selectors (`GIT_DIR`, `GH_REPO`, npm prefix and registry settings and the like). The pre-push hook that `ahub init --release-guard` installs refuses an unauthorized or unknown `v*` tag push, also with the daemon down, and passes other pushes through. It and the release block in `AGENTS.md` are a cooperative guard, not an operating-system boundary: `git push --no-verify`, a custom `core.hooksPath` or another Git invocation bypasses the hook, and `gh release create` and `npm publish` are checked only when the preflight is run (tasks 312 and 313).
912
912
 
913
913
  Merge adoption and carried spec consent (#1348, #1361). `ahub sdlc adopt-merge <task> --pr <n>` is the person's or the current configured conductor's; another caller is refused, `--live-test` cannot delegate it as the person, and a private task or private turn refuses for every actor before any GitHub read. It reads one bounded GraphQL snapshot and requires the PR merged at the task's last recorded full head with every configured required check green there, no unresolved or unknown review thread, no pending or unknown review request, no change request and no open Important finding. It records `merged outside the hub` under the actual actor and moves the task to `approved`, without inventing a reviewer verdict or reviewed head, running `gh pr merge` or removing a branch or worktree. A superseding task may carry an older cancelled task's person spec consent only for the same canonical repository and issue, named by a whole local `supersededBy` reference, when a fresh host GitHub read proves the same issue `lastEditedAt`; no issue body is read, caller timestamps cannot grant it, unknown or truncated metadata leaves consent absent, and manual acceptance stays person-only.
914
914
 
@@ -1418,6 +1418,30 @@ when they do not clear. Bounds are 8192 bytes per role file and 32768 bytes per
1418
1418
  record. The tools' arguments and results never reach observer capture, and a
1419
1419
  variant grants no activation, permission, role or probe.
1420
1420
 
1421
+ ## Guidance probes (#1226)
1422
+
1423
+ `ahub guidance probe register|start|show|receipts|cancel` is the person's or the one
1424
+ configured conductor's, through the existing operational-authority admission; an
1425
+ ordinary peer, a console delegation and a `--live-test` run are refused. Every
1426
+ write goes through Tasks, which rechecks actor, session, task epoch and flow,
1427
+ the selected variant's applicability and privacy across every await: a private
1428
+ turn or a private or PII task refuses. Registration is an inert private
1429
+ declaration in additive `hub.db` tables (`guidance_probe_*`), never on the task,
1430
+ its history or a public view, and no actor, session or authority can be named in
1431
+ it. Production has no probe runner: start refuses before reserving a lane, and
1432
+ fixture runners are injected only by test constructors, never by wire data, CLI,
1433
+ config or a model id. The T2 confined path (a private `LocalPeer` with no bus,
1434
+ memory capture, observer or ordinary history) offers only `read`, `write` and
1435
+ `edit` under a logical `/workspace`, writes only under declared `scratch/` and
1436
+ `output/` paths, refuses non-regular and hardlinked targets and files over
1437
+ 1 MiB, and runs any proof command under a narrowed seatbelt profile with network
1438
+ denied (the model-free proof's own control listener aside). It is fixture-proven
1439
+ only and grants no real model or worker run ([design](design/guidance-probes.md)). `receipts`
1440
+ is read-only under the same fences: it returns the host-sealed receipts, each
1441
+ re-verified against its own digest (a tampered row refuses the whole read), the
1442
+ outcome denominator and each slot's retention state, never a path; a
1443
+ model-written output name that fails the public screen is replaced by its digest.
1444
+
1421
1445
  ## Execution lineage (#1220)
1422
1446
 
1423
1447
  `ahub lineage show` and `hub_lineage_show` read a bounded public metadata