@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
package/docs/dogfood.md CHANGED
@@ -28,6 +28,7 @@ agent-hub is developed with agent-hub. This page lists every feature, whether it
28
28
  | Room automatic resend and late settlement (#1204 T2) | off here; source and isolated in-process broker coverage after validation; release and person enrollment/exposure required; live two-machine behavior remains unverified | AC2-AC4: receiver offline for 15 minutes then each application admitted once; pre-enqueue refusal retries without uncertainty; ACK deadline resends within the original TTL; signed late receipt settles once; local receipt commit survives restart before broker storage; no person-disposition override or native/task-read evidence |
29
29
  | Room liveness and epoch-change preview (#1204 T3, #736) | source and isolated fixtures, validation pending; rooms remain off here and installed/two-machine behavior is unverified | `rooms-liveness-link-736.test.ts`: signed offline within five seconds, idle crossed-request convergence and no reply loop, synchronous stop fence/FIFO preservation; `rooms-presence-aging-736.test.ts`: three local periods to advisory unknown without changing outbound admissibility, legacy untracked behavior, restart and clock rollback; `rooms-rotation-736.test.ts`: sorted ids-only preview, changed id-set/digest refusal, sealed hold versus Bus-only queue, unchanged person/terminal disposition; `rooms-liveness-status-736.test.ts`: native state preserved, broker upgrade guidance and named epoch-rotated cause; defaults 30 s refresh, 90 s aging, 2 s stop bound; exact-head gate and live proof remain separate |
30
30
  | Room health and codec compatibility (#1204 T4, #737) | source and isolated fixtures; installed rooms remain off here | metadata-only refused counts, outbox depth/ages, closed causes, store-open retry/stop and clock rollback; Bus recovery edge wakes receive-only admission; selective three-member traffic emits no false gap; broker opt-in preserves released-broker ephemeral/liveness and legacy presence; immediate-online and forced-refresh feature sends defer pending observations under the original TTL, known unsupported codecs refuse before wire effects; dgx02 and hosted evidence recorded in the PR, native/account and two-machine receipts remain unverified |
31
+ | Guidance probes (#1226 T1/T2/T3/T4 partial) | off here; production has no runner and refuses before reservation; confined adapter remains host-only and unwired, with no real worker/model trial; T3 adds host-sealed receipts, an outcome denominator and owned-output prune that run only against fakes and fixtures; T4 adds the producer receipt read (`ahub guidance probe receipts`, the Guidance panel) and the fake-provider check gate, active after release and hub upgrade; **AC7's authorized live local-worker trial is not run and stays open** | T1 manifest/CAS/shared-budget/recovery tests plus `test/guidance-probe-local-worker.test.ts`, `test/guidance-probe-input-matrix.test.ts` and `test/guidance-probe-sandbox.test.ts` cover exact request binding, role data, observer exclusion and budget/authority refusals; model-free macOS canary is the confinement gate, Linux proves unavailability only; `test/guidance-probe-receipts.test.ts`, `test/guidance-probe-receipts-store.test.ts` and `test/guidance-probe-cleanup.test.ts` cover sealing with the host's own fingerprints, atomic settle-and-seal, replay stability, crash reconcile at daemon start and recovery release, the unknown-not-failed denominator, stricter-only comparability and identity-checked prune that never touches a receipt; T4: `test/guidance-probe-status.test.ts` (a real fake-provider run exports the sealed receipts and the full denominator, a tampered or moved receipt refuses the whole read, an output name that fails the public-field screen is withheld to its digest, a retained directory shows as a state and never a path), `test/guidance-probe-console.test.ts` (the real generated panel and provider over a scripted control port: one exact id forwarded, a reply for another probe or a late one shows nothing, no action advertised), `test/guidance-probe-cli.test.ts` (the real CLI process: shared text by default, verified JSON with `--json`, an older hub refused before a request) and `test/guidance-probe-gate.test.ts` (register, run, seal and read end to end, a mid-run restart recorded unknown and never relaunched, no source selects the local adapter); the metric that shows it works is the denominator: in any read, `counts` adds up to the declared slots and a slot with no receipt is `unknown`, never absent; real model behavior, real isolation, effective guidance delivery and separately authorized live evidence remain unverified |
31
32
  | Worktree shelf (#1057): `ahub worktrees`, `tidy`, `tidy --confirm <fingerprint>`, the Agents panel section, Park/Pin, the explicit PR refresh and the inbox alert | fixture-only until a person uses it, and only after release and upgrade: this repository keeps every task in `.worktrees/<name>`, so it is the first real use, but nothing here has run `tidy --confirm` yet, and `worktrees.quiet_days` stays 7 until the owner has used it for a week | `ahub worktrees` live and settled counts over a week, and how many settled rows a person then Pins (a Pin means a rule was wrong); `tidy` preview refusals by reason (`task not approved or cancelled`, `unpushed commits`, `branch changed since preview`); after a confirm, `git worktree list` against the preview; test/worktree-shelf.test.ts, test/worktree-tidy.test.ts and test/worktree-panel.test.ts (a PII row stays live and redacted, a branch switch refuses, no GitHub call on a read, the daemon removes nothing) |
32
33
  | Message bus, digests, priorities | on | `ahub report`: messages, digests, overflow, undeliverable; delivery latency from events |
33
34
  | Control-send recipient normalization (#963) | active after release and hub upgrade; this PR does not change the running hub | string recipients reach only the named peer, invalid shapes publish nothing, omitted/empty arrays preserve broadcast; real native recipient behavior remains unverified |
@@ -39,9 +40,10 @@ agent-hub is developed with agent-hub. This page lists every feature, whether it
39
40
  | Headless Claude failure stages (task 551, #845) | source and fake-native fixtures; installed/native/account proof unverified until release and restart | fixed stage and host metadata in failed outcomes/logs; private stub, raw-canary absence, stale/foreign launch and bounded-probe cases in `test/claude-failure-stage-daemon.test.ts` |
40
41
  | Optional model for a headless Claude implementer (#844) | on after the release and once the person sets `model` on `instances.claude-impl` in `config.local.json` (a hub daemon restart applies it); unset it changes nothing | `ahub status` shows `model source` on the instance row; the native argv carries `--model <value>` on every turn and none when unset (test/claude-implementer.test.ts, test/claude-implementer-daemon.test.ts); a tracked-file or non-implementer declaration is refused or ignored with a reason (test/instances.test.ts, test/jcode-instances.test.ts) |
41
42
  | Stage route contract (#1352 R1) | source change active after release and hub upgrade; no running model policy or live model behavior changed by this task | newly authored bounded capture/evidence/fallback/switch tests and 24 synthetic sizing fixtures with public scalar provenance; whole-wire Unicode sizing is intentionally conservative; owned relay/local-worker/decision/progress tests provide model-free integration coverage; live model outcomes and routing gains remain unverified |
43
+ | Optional ADEc phase/judge model choices (#1352 R2) | off here; placeholder policies only, with phase, review/escalation authority and fallback execution retained by the hub; focused fake-service integration passed; manual route receipt/live review remains unrun, with no model-quality, gain or rollout claim | `test/model-route-event-parity.test.ts` compares controlled off/shadow fallback calls and route observations against a numeric-loopback fake service; a person-run model-routing receipt/live leg is still required for real-model behavior or gain claims |
42
44
  | adec decision routes (#554 consumer) | not enabled on this repository; offline fake-service proof only, including the optional `stage` classifier band (#1373) that asks only inside `ambiguous_band`, and the triage evaluation (`scripts/decision-eval.ts`) is person-run and not yet run against a real decider here, so no native decider or gain claim | shadow chosen alias/effort versus actual tier, margin and latency joined to route outcomes; zero off-campus sensitive/observer requests and no raw evidence in events; a decision-eval report's per-column accuracy, coverage and p50/p95 against planner-named classes, with the same-class agreement of both columns |
43
45
  | Person-only live peer model override (#1317 T1) | source and model-free fake checks passed at the [recorded heads](verification/2026-11-08-live-model-override-1317.md); installed-hub rollout and native model changes unverified | next-turn argv/transport model, unchanged active turns and steering, last desired value, clear/persistence/reset, source and pending status, person-only refusals, unsupported no-write/no-restart, and model_change boundary audit |
44
- | Receipt-gated ACP model selection (#1317 T2) | exact headless Kimi 2.5.2 native loopback A/B/clear/A setter passed; installed-hub rollout unrun; Jcode shared-TUI safety unqualified and Qwen clear failed, so both remain unsupported | current owned identity/version and advertisement, held-turn selection, next-turn setter and admission acknowledgement, baseline clear in fixtures, revoked admission and timeout refusal, reviewer isolation unchanged; native receipts separate account/model use |
46
+ | Receipt-gated ACP model selection (#1317 T2) | exact headless Kimi 2.5.2 native loopback A/B/clear/A setter passed; installed-hub rollout unrun; Jcode shared-TUI safety unqualified; Qwen 0.26.9/0.27.0 pass [suggestions-off ordinary A/B/A](verification/2026-11-11-qwen-setter-suggestions-off.md), with separate admission pending, so both remain unsupported | current owned identity/version and advertisement, held-turn selection, next-turn setter and admission acknowledgement, baseline clear in fixtures, revoked admission and timeout refusal, reviewer isolation unchanged; native receipts separate account/model use |
45
47
  | Remote isolated check transport (#793) | off here; fake checks, a bounded local Docker transport receipt and a local run of the lockfile-keyed dependency volume; person opt-in, SSH and the live receipt follow separately | remote tests capability unavailable on failed SSH/Docker/image/transfer probe; one networked install per new lockfile key, none on later runs, the check mounting the volume read-only with no network; exact Git receipt, non-root hardened argv, zero Mac dependency copies and confirmed Docker cleanup before lease release; Darwin tar ignores PATH shims, probe warnings do not pollute JSON, bounded probes do not become unknown task-run orphans |
46
48
  | Task board, routing, roles | on (claude planner, reviewer and implementer; codex, jcode, agy implementers) | board history: lead time from propose to approve, review rounds, escalations; owner new-head re-files and stale-verdict refusals (#1000 fixtures; active after upgrade) |
47
49
  | Readable `sdlc` output by default (#814 T1, #899) | on after the release: `ahub sdlc status\|explain\|queue\|release\|metrics\|costs\|authorize-release\|merge` print tables and labelled fields here; since #899 `ahub sdlc merge` (guarded merge, dry-run included) prints its report for a person by default and the JSON document only with `--json`, and `ahub doctor --orphans --kill` likewise prints the stopped pids by default and the hub's reply only with `--json`; scripts pass `--json` | the person reading `ahub sdlc status`, `sdlc metrics` and a `sdlc merge --dry-run` report without `--json`; `test/sdlc-output.test.ts` holds every `sdlc merge` outcome's readable default with `--json` byte for byte the pre-#899 output and the exit code unchanged; `test/conductor-cli.test.ts` holds the same for `doctor --orphans --kill`; `test/cli-json-guard.test.ts` lists the CLI paths that still print JSON by default (since #899 only the named data formats: its not-yet-converted list is empty) |
@@ -93,6 +95,7 @@ agent-hub is developed with agent-hub. This page lists every feature, whether it
93
95
  | Head-bound task symbol observations (#684 phase 2a) | on after release with optional code facts; observed names only | task/UI receipts and completed-change labels; unknown/filtered evidence keeps ordinary overlap, deleted definitions not covered |
94
96
  | Console changed-symbols block (#684 phase 2b) | on with 2a data; matching, unplanned and untouched against the plan; overlap lines follow in #379; related-note count remains phase 4 | task detail shows the block or `unknown (no code facts)`; no block for a private task |
95
97
  | Console review guidance (#711) | on after release; `r` verdict choice, hints, visible result, agent-shell cause line, notice names the console | a person approving from the console without a failed first try; refusals that named the cause; `ahub review` calls from agent shells that were refused |
98
+ | Console agent-hub versions (#1385) | on after release, display only; source and fixture coverage, no live mixed-version receipt yet | the share of stale-plugin or stale-CLI incidents found from the console's versions line or AHUB column instead of `ahub doctor`, counted by hand from incident notes; `test/hub-versions.test.ts` for hello reporting, invalid values, in-daemon and tools rows and the rendered line |
96
99
  | Console symbol-overlap advice (#684, #379) | on after release; read-only task detail, observed names only | other task IDs/shared paths and screened different-symbol verdict; no pair involving PII, no claim on unknown/incomplete evidence |
97
100
  | Dashboard task sheet Code group (#684 phase 2c) | on after release; read-only, observed names only, none for a private task | task sheet Code group shows the changed symbols or `unknown (no code facts)`; symbol clicks that reach a non-empty graph once phase 3 lands |
98
101
  | Review brief, review findings, Important gate (#481 S3) | advise | Important findings per PR, rounds to approval |
@@ -116,14 +119,11 @@ agent-hub is developed with agent-hub. This page lists every feature, whether it
116
119
  | Bounded visual attachments (#1058) | source/focused guards and isolated acon 0.1.7 rendering passed at the [recorded heads](verification/2026-11-08-hub-visual-1058.md); installed-hub rollout remains unverified; final canonical gate pending | all four payload kinds round-trip, private/over-bound inputs write nothing, peers receive only ids/stubs, changed assets refuse, and stream/task cards use acon's kit or readable standalone fallback; native/render evidence is recorded separately |
117
120
  | macOS shards deferred on stacked PRs (#1307) | on in CI for every PR after merge | macOS job-minutes per day and the longest macOS queue wait (57 runs, about 2,250 job-minutes and waits over an hour on 2026-11-07, before); `check (macos-latest)` deferral failures that were followed by a full macOS run on the same PR after it targeted `main` |
118
121
  | Seed anchor diagnostics (#684) | on in the seeded checker; exact-match failure remains mandatory | missing anchors report the base commit, enclosing symbol and current file/line or explicit unknown; `test/seeded-check.test.ts` |
119
- | Release authorization (#481 S6, #1063, #1120) | fixture coverage; delegated live consent awaits release and project upgrade | `test/sdlc-release-authorization.test.ts` and flow fixtures retain exact candidate/docs/origin/restart bindings and record the actual user/conductor actor; agent-read and floor fixtures refuse other peers, private turns and live-test; `test/runtime-capture-checker.test.ts` proves a real capture carries the documentation checker and that a missing or failing one is refused as its own cause, not as stale documentation; no fixture authorizes a live release |
122
+ | Release authorization (#481 S6, #1063, #1120, #1381) | fixture coverage; delegated live consent awaits release and project upgrade | `test/sdlc-release-authorization.test.ts`, `test/sdlc-release-authorization-flow.test.ts` and `test/runtime-capture-checker.test.ts` retain candidate/docs/origin/restart bindings, actual user/conductor actors and checker capture behavior; `test/sdlc-release-configured-authorization.test.ts`, `test/sdlc-release-configured-policy.test.ts` and `test/sdlc-release-configured-report.test.ts` cover package defaults, release-notes and tag-only/requested-version sources, exact-report bindings, docs:none receipts, malformed or local policy, npm target refusal and unchanged actor/remote checks; no fixture authorizes a live release |
120
123
  | SDLC metrics and control bands (#481 S7) | `ahub sdlc metrics` on; bands off until `[bands]` is set in `.agenthub/sdlc.toml`, and they write cards only in advise or enforce (in off the report still shows tiers). Completion checks are off here, so `first_pass_check` and the PR-based figures read unknown | its own report; breach episodes per week by tier, and band cards the planner accepted rather than dropped |
121
124
  | Fresh headless reviewers (#223, #519) | configured here (`codex-review`); per-tool approval correction and no-verdict diagnostics/re-offer (#783) take effect after release and upgrade | reviews by fresh sessions, findings they add; a per-review start failure names a closed cause class (#722): `ahub status` reviewer line and hub.log `[cause: ...]`, with the share of failures that are `unknown`; stale admission skips and current-policy `no_verdict` reroutes leave the reviewer available (#781); a real `hub_review` verdict per verified backend/version, beyond inventory-only proof; bounded refusal diagnostics, confirmed re-offers without queue holds, and uncertain fallback holds |
122
- | Optional Orca companion (#1198 O0) | off; contract and fake-host/CLI fixtures only, no installed companion or runtime change | versioned capability matrix and three manual baseline procedures; observed UI action counts unknown; O1/O2 must prove actual open, selection, disable and standalone behavior, with remote/Windows/mobile separate; plugin terminal-id to CLI-handle mapping remains unproven |
125
+ | Optional Orca companion (#1198 O0-O4) | moved to [STAIxBWLB/ahub-orca](https://github.com/STAIxBWLB/ahub-orca) (#1387); nothing of it remains in this repository. Still off: not installed here, enabled by nothing, not in the package; fixture checks only, `fixture_only` on macOS and unsupported elsewhere, and the native receipts are **person-run** and **not run** | that repository's `support-matrix.json` and `receipts/`; it reads ahub only through `docs/contracts/companion-cli-v1.json`, which `test/companion-contract.test.ts` holds ahub to |
123
126
  | Kimi periodic review isolation (#1284) | source and isolated fixture coverage; running-hub/native-account behavior is unchanged until release and restart | max-input benchmark records historical inline blocking and worker control-response ordering separately from synchronous authority cost; fake-clock absolute cadence/no-overlap, complete filesystem tamper checks, source and plugin-only workers, and native/worker cleanup retry tests; no new native compatibility or model-quality claim |
124
- | Optional Orca companion chooser and entry points (#1198 O1) | off; the companion exists under `integrations/orca/` but is not installed here, enabled by nothing and not in the package; fake-host and fake-CLI checks pass, **the native open and disable receipt is a person-run leg not yet run** | `integrations/orca/native-receipt.md` filled in by a person in an isolated Orca profile: actions counted after selection for the dashboard, console and family console, the refusal on a changed workspace, and agents, worktrees and terminals unchanged after `orca plugin disable`; until then the action counts are procedure counts and the native result is unknown |
125
- | Optional Orca companion read-only status (#1198 O2) | off; fixture checks only, not installed here; the status view, its distinct states and the stale-binding refusals are tested against fakes and real scripts, **native testing that it reaches the same project is a person-run leg not yet run**; terminal focus is not built (O0: unproven mapping) | `integrations/orca/native-receipt.md` steps 8a to 8c filled in by a person in an isolated Orca profile: the status shown is for the selected project, offline reads as offline and starts nothing, and an old reading is labelled stale without being re-read |
126
- | Optional Orca companion platform support (#1198 O3) | off; no combination is supported: macOS local is fixture-only and remote, Windows, browser or mobile and Linux are unsupported, each with a **person-run** receipt (`integrations/orca/receipts/`) that has not been run; remote and Windows are refused before anything runs | `integrations/orca/support-matrix.json` verdicts; a combination turns `supported` only after a person fills in its receipt (action count, observed result, standalone and disable checks as separate claims) and a reviewed commit changes the matrix, which a test enforces |
127
127
  | Completion checks per class | off: the implementer already runs `scripts/check.sh`; a hub-run copy would double the heavy-slot use | time to verdict when on |
128
128
  | Supervision rules and proposals (#1221 T1, T2) | off here: `supervision.mode` is machine-local and defaults to off, so this project's board is not evaluated; with `shadow` a reading only fills a bounded queue, and with `advisory` a pending proposal appears in the console inbox where an explicit accept runs one existing action | the rule fixtures (19, including the exported snapshot shape, the evaluated coverage and its bound, about 0.2 s on one Mac, Bun 1.4.4) plus the queue and decision fixtures: `bun test test/supervision-rules.test.ts test/supervision-proposals.test.ts test/acon-supervision-inbox-1221.test.ts`, which cover the per-rule triggers and gaps, the zero-effect counts, dedupe by rule/task/revision/trigger, the 100/3/400/50 bounds with the refused total, every decision fence including the action's own authority before and after the facts read, the separate intent and receipt, the unknown outcome reconciled from the board's own record at the intent time and inside the proposal's revision, restart, and the advisory inbox row with its two verbs |
129
129
 
@@ -180,6 +180,7 @@ agent-hub is developed with agent-hub. This page lists every feature, whether it
180
180
  | Paged `hub_task_list` (#1083) | on after release and upgrade, for agents (an agent session's `ahub board` follows the pages); the person's console and `ahub board` from a terminal keep the bare array. Fixture coverage only (`test/task-list-page.test.ts`: a real daemon with 600 seeded tasks; `test/board-agent-paged.test.ts`: the real `ahub board` and `--columns` under an agent identity over a two-page board). A real conductor session reading the live board is not recorded here | the size of a conductor's `hub_task_list` result on the live board (expected: under 64 KB, a `next` cursor while more exist); a page walk that ends with no task repeated; `ahub board` run from an agent shell listing as many tasks as `ahub board` from a terminal; any peer or script that still fails parsing `hub_task_list` as a bare array |
181
181
  | `ahub init` guided prompt (#1065 T2) | on wherever a person runs `ahub init` at a terminal on a new project with no flag and no `--yes`; fixture coverage only (the real CLI under a scripted pty in a temporary HOME: `test/init-prompt.test.ts`). A person answering it on a real new project is not yet recorded and not run here | `ahub init` runs by a person that end with `wrote ...` after the plan, against runs that end `nothing was written` (N, Ctrl-C, Ctrl-D, three bad answers); no `Write this?` line in any log of a peer, live-test or piped run; the settings a person changes from the default, per question |
182
182
  | `ahub init` settings flags (#1065 T1) | on wherever a person runs `ahub init`, new or existing project; fixture coverage only (the real CLI against scratch projects and a scratch hub home). The guided prompt (T2) and the specs rows (T3) are not built, and a person using the flags on a real project is not yet recorded | each `--dry-run --json` `settings` row is a change a person asked for (key, file, old and new value), `ahub init` refusals name the allowed values, and `git diff` of `.agenthub/config.json` after an init with flags shows only the named keys |
183
+ | Runnable person commands and the single-source AGENTS block (#1399) | on after release and upgrade: hold notices, `ahub status` and `ahub queue show` print the full `ahub queue resolve` command; this repository's block is the template. A project initialised earlier keeps its old block until `ahub init` runs there; fixture coverage only, no live relay to a person measured | `test/person-command.test.ts`: the hold notice's command passes the CLI argument rule with id, revision, action and reason; every profile renders every template bullet; a stale block is detected and refreshed with surrounding text kept. `ahub doctor` row `hub instructions` on a real project |
183
184
  | Init research default and completion guidance (#1328 T6) | available at init; live new-project adoption unverified, fake-HOME fixtures only (`test/init-settings.test.ts`, `test/init-prompt.test.ts`, `test/autonomy-defaults.test.ts`, `test/setup-research.test.ts`); no real setup or settings were changed by this task | new-project effective `research.enabled` equals the trusted explicit setup choice unless an init flag overrides it; init preserves the machine defaults bytes; ordinary setup leaves research unchanged; successful-init output names commit/start and advise/enforce person steps, with no next-steps block on a preview or refusal |
184
185
  | Jcode usage and context readings (#801) | source/fixture coverage and one isolated live probe of 0.99.1 against a fake gateway (docs/verification/2026-10-28-jcode-0.99.1-usage.md); a real account and provider remain unverified; no native quota reader (Jcode gives no window length) | `ahub status` and the dashboard show `jcode_usage_update` occupancy, `ahub usage` and `ahub report` rows for source `jcode_acp`, and `ahub budget` still says `no reading` for Jcode |
185
186
 
@@ -235,8 +236,8 @@ agent-hub is developed with agent-hub. This page lists every feature, whether it
235
236
  | Config editing from the console and dashboard (#689) | on after release; `ahub settings edit` and console key `c` run here, the dashboard Structure group needs `ahub ui --settings`; executable keys stay console only | `config_edit` events (edits applied by tier and source), refusals shown with the loader reason, restarts left pending |
236
237
  | Upgrade and recovery | on, per release | upgrade receipts in `docs/verification/` |
237
238
  | Office planning view (#264 phase 5) | source/fixture implementation; available after release when the person selects Flat or Isometric (Off by default); the live two-agent, both-theme AC9 browser look remains unverified | `test/office-model.test.ts` pins Backlog count/order/cap, reserved/pin/waits and release/planner metadata; `test/office-view.test.ts` pins dock and overflow navigation, keyboard access, stable wall-to-To do card nodes, geometry, reduced motion and light/dark token contrast; served-page raw/gzip deltas are measured against the PR merge base |
238
- | acon console plugin (#935) | off here until a person runs `ahub setup` after the release and `acon ui` on this machine; the plugin registers per agenthub home, not per repository | `acon plugins` shows `ahub verified`; the console's agent-hub panel shows this repository's live board, and an approval answered from the console inbox appears in hub.log as `answered option allow_once by dashboard`. Space (#1012): adopted with the plugin, no separate switch; acon's Space view (Flat, Room, 3D) shows this repository's peers as actors (state and marks matching the dashboard's office), the board columns as queue/work/review/done zones with the same counts, and overlap links plus message arcs (broadcasts to every other desk) as links; clicking an actor or card opens this project's agents or board panel |
239
- | Agent CLI version policy and trust (#691) | on after the release: Codex 0.163.0 verified by the [2026-10-22 receipt](verification/2026-10-22-codex-reviewer-isolation.md) and 0.164.0 by the [2026-10-24 receipt](verification/2026-10-24-codex-0164-reviewer-isolation.md); Kimi 2.3.0 and Qwen 0.26.0 verified by the [model-free receipt](verification/2026-10-22-kimi-qwen-compat.md), Kimi 2.3.1 by the [2026-10-25 model-free receipt](verification/2026-10-25-kimi-231-reviewer-compat.md) and 2.3.2 by the [2026-10-26 one](verification/2026-10-26-kimi-232-reviewer-compat.md), with account/provider live legs unverified; Qwen basic ACP 0.27.0 has a [macOS arm64 account-free receipt](verification/2026-11-09-qwen-0270-acp.md), while its separate live-setter clear failed (A/B/B) and remains unavailable; agy exact 1.5.3 has an [account-free receipt](verification/2026-11-08-agy-1.5.3.md); effective after release and upgrade, with the 1.4.x line unchanged | model-free isolation receipts, `ahub agents` verdicts, versions trusted per machine, lead time from an `agent-compat` issue to a receipt |
239
+ | acon console plugin (#935) | off here until a person runs `ahub setup` after the release and `acon ui` on this machine; the plugin registers per agenthub home, not per repository | `acon plugins` shows `ahub verified`; the console's agent-hub panel shows this repository's live board, and an approval answered from the console inbox appears in hub.log as `answered option allow_once by dashboard`. Space (#1012): adopted with the plugin, no separate switch; acon's Space view (Flat, Room, 3D) shows this repository's peers as actors (state and marks matching the dashboard's office), the board columns as queue/work/review/done zones with the same counts, and overlap links plus message arcs (broadcasts to every other desk) as links; clicking an actor or card opens this project's agents or board panel; incremental Space (#1380) keeps a daemon cursor and OfficeScene per project, coalesces concurrent reads and caches the running listing for 10 s, refreshing it in the background on a later poll. A viewer holding the combined cursor receives `changed:false` when the public scene, per-project cursors and membership are unchanged, including wall-clock message-link expiry. `test/acon-space-1380.test.ts` pins unchanged replies, changed-project reads, listing refresh, restart/refusal and privacy; current daemons still return full office bodies even with a cursor, so wire/body savings and the live console warm p95 remain unverified |
240
+ | Agent CLI version policy and trust (#691) | on after the release: Codex 0.163.0 verified by the [2026-10-22 receipt](verification/2026-10-22-codex-reviewer-isolation.md) and 0.164.0 by the [2026-10-24 receipt](verification/2026-10-24-codex-0164-reviewer-isolation.md); Kimi 2.3.0 and Qwen 0.26.0 verified by the [model-free receipt](verification/2026-10-22-kimi-qwen-compat.md), Kimi 2.3.1 by the [2026-10-25 model-free receipt](verification/2026-10-25-kimi-231-reviewer-compat.md) and 2.3.2 by the [2026-10-26 one](verification/2026-10-26-kimi-232-reviewer-compat.md), with account/provider live legs unverified; Qwen basic ACP 0.27.0 has a [macOS arm64 account-free receipt](verification/2026-11-09-qwen-0270-acp.md), while historical setter A/B/B has an unknown third-request purpose; the [suggestions-off repeat](verification/2026-11-11-qwen-setter-suggestions-off.md) passes ordinary A/B/A on 0.26.9/0.27.0, with production setter admission still unavailable; agy exact 1.5.3 has an [account-free receipt](verification/2026-11-08-agy-1.5.3.md); effective after release and upgrade, with the 1.4.x line unchanged | model-free isolation receipts, `ahub agents` verdicts, versions trusted per machine, lead time from an `agent-compat` issue to a receipt |
240
241
  | Peer child environment isolation (#1077) | source and fixture coverage; no native account or Orca session used | daemon peer children, version probes and process-table helpers contain no `ORCA_*`; person-owned native launches keep their fixture pane's `ORCA_*` context while replacing agent identity; explicit Claude/Codex selectors pass through where the adapter inherits them; preload clears ambient selectors without changing fixture home bytes |
241
242
  | Qwen's own TUI over dual output (#286 Part 3) | live dual-output TUI use here is unverified; source/account-free fixtures only. The limits (a hub deny completes its known delivery without an answer but fences later input until a new personal turn or verified generation; a stalled turn is stopped only with Esc in the Qwen terminal) are for the person at that terminal to accept. Verified on Qwen 0.26.1 under an isolated HOME by the [2026-10-25 receipt](verification/2026-10-25-qwen-dual-output-t0.md); the live account leg is the person's. The [2026-11-10 fixture receipt](verification/2026-11-10-qwen-0270-dual-output.md) passes required normal-Bus Q2 and Q3/Q5/Q6/Q7 on matched private 0.26.1/0.27.0 on macOS arm64, qualifying exact dual-output 0.27.0 after release; the [0.27.1 receipt](verification/2026-11-10-qwen-0271-dual-output.md) repeats it on exact 0.27.1 against matched 0.27.0; real-model/Linux/live-here use remain unverified | `test/qwen-dual.test.ts` against a fake dual-output Qwen; fixture Q2 final USER/Stop/ordinary-provider counts 2/2/2, five Q3 cases, Q5/Q6/Q7 and final closure; in real use `ahub status` stalled/detached notices per peer and the `needs_review` count of Qwen deliveries (an Esc or an exited terminal ends a turn that way; a deny completes while its durable input fence remains). Task 859 fake controls measure zero second submits before recovery proof and offline at the 30 s operational deadline; no native deny-completion ACK is qualified |
242
243
  | Benchmarks (#251, #637) | off: `bench.enabled = false`. The task-routing gate (#637 part 1) is on in CI for every PR: `routing-receipt` fails a change to `templates/routing.toml` without a matching receipt; the model-routing gate (#637 part 2) is the second step of the same workflow: `scripts/check-model-routing-receipt.ts` fails a change to the model-routing keys without a matching `-modelrouting-` receipt, and wants a by-hand `--live` half when an alias or judge moves | bench receipts; `docs/verification/*-routing-*.md` and `*-modelrouting-*.md` receipts; a `routing-eval` check run on every PR with `eval_pass_rate=` and `eval_suite=` in its title (name it as `eval_check` to make it the eval gate); `bun scripts/benchmarks/routing-gate.ts` and `model-routing-gate.ts` print the default's numbers (100% on both splits); the live half (served model ids) has not been run against a gateway yet |
@@ -246,11 +247,9 @@ agent-hub is developed with agent-hub. This page lists every feature, whether it
246
247
  | Global CLI and plugin step after `ahub upgrade` (#718, #1179) | on after release: a completed or scheduled upgrade ends with `bun add -g @staix/agent-hub@<version>` and `ahub setup` when the global CLI or the shared Claude plugin is older than the daemon it installed (a handed-over upgrade speaks for the older CLI that started it), and says nothing when both are current or the plugin cannot be read; `release-prepare` writes the same step into every new `Upgrading to <v>` note and `release-tag` refuses a release without it. Unverified: a live handed-over upgrade on the owner's Mac, where the old CLI starts the new coordinator through `bun x` | the upgrade's own output on the owner's Mac after the next release, whether `ahub doctor` still warns afterwards (it should not once the person followed the step), `test/runtime-version-warning.test.ts`, `test/upgrade-interactive.test.ts`, `test/upgrade-cli.test.ts` (a real hub with a fake `claude` and `npm`), `test/release-prepare.test.ts` and `test/release-tag.test.ts` |
247
248
  | Confirmed reattach of orphaned-but-connected Orca terminals in `ahub upgrade` (#1246) | on after release: the interactive plan screen offers `[t]` when the plan verified a pane as orphaned and connected, switches exactly those handles with `orca terminal switch`, polls each for at most 5 s and plans again; the blocker names the peer, project, handle and `[r] refresh`. Unverified: a live Orca restart on the owner's Mac (fixtures use a fake Orca) | count `[t]` uses against hand-typed `orca terminal switch` calls after an Orca restart (the latter should reach zero), and how often a pane is still orphaned at the 5 s bound (raise the bound if it is common); `test/terminal-recovery.test.ts`, `test/upgrade-interactive.test.ts` |
248
249
  | Hard-coded values inventory ratchet (#719, #1180) | on now: `scripts/check.sh` runs `bun scripts/inventory-hardcoded-values.ts --check`, so a new constant must be classified in `scripts/inventory-hardcoded-values.classifications.json` before it merges, and the 1222 keys still unclassified sit in `scripts/inventory-hardcoded-values.baseline.json`, which only shrinks. This does not close #1180: those 1222 are classified later in reviewed batches (`docs/verification/2026-11-05-hardcoded-values-ratchet.md`) | the unknown-key count (the baseline's length) falling to 0 over the follow-up batches and `check: OK` staying green with no key added to the baseline, `test/inventory-hardcoded-values.test.ts` |
249
- | Optional Herdr companion host contract (#1199 H0) | off; contract and fixtures only: no mod is installed or loaded, nothing was written to a Herdr profile, and the three baseline journeys are **person-run** procedure counts that have not been run | `integrations/herdr/host-contract-v1.md` and `test/herdr-companion-contract.test.ts` pin the API surface, root resolution and fixture strictness; a native receipt in H1 to H3 (action count, observed UI, standalone and disable as separate claims) is what turns a journey from `not run` into a measurement |
250
- | Optional Herdr project and machine entry (#1199 H1) | off; a three-file mod folder the person copies in and can delete, `place: none`, opened on purpose; the fake-host tests and `herdr-app check` in a scratch home pass, but the native open and disable receipt (`integrations/herdr/native-receipt.md`) is a **person-run** leg that has **not been run**, and the action counts are procedure counts | native receipt with the action count after selection (target at most 2), the observed result, and standalone and disable recorded as separate claims; remote needs a configured machine (H3) |
251
- | Optional Herdr status card and existing-console focus (#1199 H2) | off; adds Status, Focus console and Peek console to the optional entry mod; fixture tests pass and `herdr-app check` accepts the files in a scratch home, but native focus is a **person-run** leg (`integrations/herdr/native-receipt.md`, Claim 1b) that has **not been run**; recognition rests on one observed foreground shape and a wrapper-started console is not recognized | native receipt: card legibility, whether Focus really moves to the console's pane, the action count, and that a missing console starts nothing; the share of consoles recognized is unknown until it is run |
252
- | Optional Herdr platform support and baseline comparison (#1199 H3) | off; no combination is supported: macOS local is fixture-only and remote, Windows, Linux and browser or mobile are unsupported, each with a **person-run** receipt (`integrations/herdr/receipts/`) that has not been run; no remote machine is configured on the build machine, so the remote workflow was never run | `integrations/herdr/support-matrix.json` verdicts; a combination turns `supported` only after a person fills in its receipt (action count, observed result, standalone and disable as separate claims) and a reviewed commit changes the matrix, which a test enforces; `baseline-comparison.md` stays procedure counts until then |
253
- | Optional Claude Code companion (#1338 C0/C1/C2/C3) | off on this repository; fixture_only status-only pane plus declared positive-attention band and four compact ToolUse views; task/role lists, exact offline-in_progress and registry verification unavailable; manual session-only placement; terminal/desktop fixture_only, full VS Code/mobile attention journey unsupported; four native receipts NOT RUN; minimum version UNKNOWN; C3 guarded static leg UNVERIFIED/validate NOT RUN; 2.1.319 types are provenance only | [host contract](../integrations/claude-code/host-contract-v1.md): seven capability verdicts, complete console procedure 2 actions; fresh known-subset notice 0 or submitted refresh 1, distinct endpoints and no measured UX claim, all observed UI counts NOT RUN; C1 read-set revision 2 source-CLI sample: 1 adapter spawn, 19,030 stdout bytes, 744.856 ms (code head and ceilings in contract), separate from native proof; C2 source metric: actual registered model-result/channel/system chains equal on/off while views/toggles change, with three mutation controls detected; native needs_review raised/cleared, original/verbose row UX, action counts and disable remain person-run NOT RUN; no fixture result is native UX proof |
250
+ | Optional Herdr companion (#1199 H0-H3) | moved to [STAIxBWLB/ahub-herdr](https://github.com/STAIxBWLB/ahub-herdr) (#1387); nothing of it remains in this repository. Still off: a mod folder the person copies in and can delete, not installed here; fixture tests and `herdr-app check` (person-run, not claimed by CI) only, and the native receipts are **person-run** and **not run** | that repository's `support-matrix.json`, `native-receipt.md` and `baseline-comparison.md`; it reads ahub only through `docs/contracts/companion-cli-v1.json`, which `test/companion-contract.test.ts` holds ahub to |
251
+ | Optional Claude Code companion (#1338 C0-C3) | moved to [STAIxBWLB/ahub-claude](https://github.com/STAIxBWLB/ahub-claude) (#1387); nothing of it remains in this repository. Still off: `fixture_only`, manual session-only placement, four native receipts **not run**, minimum version unknown; its marketplace entry there is not a qualified install | that repository's `support-matrix.json` and `receipts/`; it reads ahub only through `docs/contracts/companion-cli-v1.json`, which `test/companion-contract.test.ts` holds ahub to |
252
+ | Companion CLI contract v1 (#1387 T0) | on: `docs/contracts/companion-cli-v1.json` lists what the Orca, Herdr and Claude Code companions may read from `ahub status --json` and `ahub projects --json`, the no-hub exit and the `shellQuote` vectors | `test/companion-contract.test.ts` runs the real commands against a scratch hub and fails when a listed path, type or closed set drifts; its guard fails when ahub's `src/`, `scripts/`, `plugins/` or `package.json` names a companion repository |
254
253
 
255
254
  ## Decisions
256
255
 
package/docs/events.md CHANGED
@@ -19,7 +19,7 @@ marked `private: true`, and PII tasks `pii: true`.
19
19
  | `quiet` | `id`, `from`, `peers`: an agent message held back from these members of a silent turn-free cohort; its other recipients got it (issue #107) |
20
20
  | `fact` | `peer`, `id` (the offer), `files` (files whose diff it carried), `plans`, `unknown` (files whose change it showed with attribution unknown), `named` (files under a named directory it named without a diff, those counted as "N more" or held back by the PII filter included), `bytes` (the injected text), `via` (`hook` for Claude, `steer` for Codex, `done` with an integration request), `ms` (the hub's time to build it), `hookMs` (the hook process's own start-up and connect time), `accepted` (whether app-server took the steer), `unanswered` (app-server did not answer it within 10 s: it may have gone in), `rttMs` (an accepted steer: from sending it to app-server's answer), `probe` (a context check), `coverage` (it named files earlier changes are not covered for): one fact offer (issue #108) |
21
21
  | `fact_ack` | `peer`, `id`, `via` (`hook` and `steer`: a readback found the offer in the native session; `done`: the next `hub_task_done`), `ms` (from the offer): an acknowledged offer, the only thing that moves a peer's view |
22
- | `route` | `peer`, `route`, `tier`, `source` (`override`, `dimensions`, `hold`, `classifier`, `default`; for `hub/auto` also `load`: a busy MLX slot moved it to `dgx/fast` (opt-in, `[pi] efficient_wait_ms`), `cooldown`: a cooling MLX went to its fallback first, and `pin`: an enforced tool loop went to the backend it is pinned to, issue #199), `score`, `ms`. Local decisions also carry `decision`, `turn`, optional numeric `task`, `pii`, and decision-time `severity`, `spinning`, `exploring`, `production`. A `hub/auto` decision for a request without a session key carries `stateless: true` (`ahub report` then counts its sessions as unknown). `hub/auto` and hub stage decisions carry `turnType` (`tool_result`, `user`, `compaction`: what the call answers) and `prefillTokens` (estimated input a backend would prefill; absent on a PII route), and, unless `stay_switch` is `off`, `staySwitch` (`shadow`, `enforce`), `plan` (`stay`, `switch`) and `reason` (`new_pin`, `compaction`, `context_fit`, `same_tier`, `override`, `tool_loop`, `prefill_bound`, `user_turn`): the planner's verdict next to the tier taken (issue #197). Decision routes additionally use source `decision`, `decisionMode`, `chosenAlias`/`chosenEffort` (null when the hub has no validated pick), `margin`, `decisionLatencyMs`, closed `decisionReason`, `fallbackApplied` and the decider provider/model/latency metadata (null when no decider was asked). In shadow, `tier` is still the actual heuristic choice; the proposed pair never replaces it. The decider metadata additionally carries optional `version` when the provider reports a pinned version; absent remains unknown, never inferred from the model id. No prompt/evidence text, tool arguments, credentials or service error prose |
22
+ | `route` | `peer`, `route`, `tier`, `source` (`override`, `dimensions`, `hold`, `classifier`, `default`; for `hub/auto` also `load`: a busy MLX slot moved it to `dgx/fast` (opt-in, `[pi] efficient_wait_ms`), `cooldown`: a cooling MLX went to its fallback first, and `pin`: an enforced tool loop went to the backend it is pinned to, issue #199), `score`, `ms`. Local decisions also carry `decision`, `turn`, optional numeric `task`, `pii`, and decision-time `severity`, `spinning`, `exploring`, `production`. A `hub/auto` decision for a request without a session key carries `stateless: true` (`ahub report` then counts its sessions as unknown). `hub/auto` and hub stage decisions carry `turnType` (`tool_result`, `user`, `compaction`: what the call answers) and `prefillTokens` (estimated input a backend would prefill; absent on a PII route), and, unless `stay_switch` is `off`, `staySwitch` (`shadow`, `enforce`), `plan` (`stay`, `switch`) and `reason` (`new_pin`, `compaction`, `context_fit`, `same_tier`, `override`, `tool_loop`, `prefill_bound`, `user_turn`): the planner's verdict next to the tier taken (issue #197). Decision routes additionally use source `decision`, `decisionMode`, `chosenAlias`/`chosenEffort` (null when the hub has no validated pick), `margin`, `decisionLatencyMs`, closed `decisionReason`, `fallbackApplied` and the decider provider/model/latency metadata (null when no decider was asked). In shadow, `tier` is still the actual heuristic choice; the proposed pair never replaces it. The decider metadata additionally carries optional `version` when the provider reports a pinned version; absent remains unknown, never inferred from the model id. R2 judge-choice observations additionally carry `decisionTarget: "judge"`; `tier` is the requested fallback judge alias, not a served-model identity, and the event has no purpose or phase field or executor label/usage credit. Off mode emits no judge observation. No prompt/evidence text, tool arguments, credentials or service error prose |
23
23
  | `cooldown` | `peer`, `alias`, `event` (`start`, `end`), `failures` (consecutive transport or startup failures), `ms` (on `start`, how long the alias cools down): a relay backend alias after repeated failures (issue #199). An `end` is recorded at an HTTP answer (any status) or when the hub next checks the alias after it expired |
24
24
  | `route_outcome` | `peer`, `decision`, `turnId`, `turn` (`completed` or `failed`), optional `task`, `pii`, `latched`, optional `next` (`severity`, `tests`: `pass`/`fail`/`none`, `repeat`) and `advisor` (`approve`/`redo`/`failed`). Exactly once per local decision at turn settlement, including failure/cancellation |
25
25
  | `advisor` | `peer`, `route`, `trigger`, `verdict` (`approve`, `redo`, `failed`), `discardedChars`: an advisor check result; no transcript or feedback text |
@@ -156,6 +156,25 @@ as raw JSON lines; plain `ahub report` keeps its existing behavior.
156
156
  The file is local and never uploaded. It grows without rotation; delete it to start
157
157
  over (the hub recreates it).
158
158
 
159
+ ## Judge model-choice observations
160
+
161
+ A `route` row may carry exactly `decisionTarget: "judge"` to identify a separate
162
+ model-choice observation for an optional host judge. An absent target retains the
163
+ executor contract. The row's `tier` is the requested fallback judge alias, not a
164
+ served model; `source` is `default`, and any decision fields are the existing
165
+ validated service metadata. It introduces no purpose, phase, served or applied
166
+ field. Off mode emits no such row. It is published through existing `onRoute`
167
+ only after current privacy/observer/turn confirmation, bypassing executor
168
+ `addDecision`, labels, progress, usage and cost credit.
169
+
170
+ Executor reports exclude these rows before timestamp or switch accounting;
171
+ research excludes them before task/cohort/peer accumulation; the owned routing
172
+ corpus excludes them before collecting its last executor observation. They have
173
+ no outcome decision id and are not execution examples. The raw research-quality
174
+ event-type census still counts them as recorded metadata. Raw event export keeps
175
+ the target; the closed operational projection withholds the entire `route` kind
176
+ as before, so this adds no console display feature.
177
+
159
178
  ## Offline route outcome joins
160
179
 
161
180
  For local-worker decisions, join `route_outcome.decision` to `route.decision` (one-to-one).
package/docs/memory.md CHANGED
@@ -209,7 +209,7 @@ Write screening examines both the JSON representation and literal structured key
209
209
 
210
210
  ## Agent-authored records (#1320)
211
211
 
212
- Managed headless Codex, Kimi, Qwen, Jcode, Pi and local turns receive the package-owned Record instruction once per owned turn. Claude sessions keep their own amem hook path; isolated reviewers and person-owned TUI prompts receive no new instruction. The public `recordsEnabled` accessor from exact-pinned amem 0.23.1 applies the effective machine/repository `records: false` setting to instruction, capture and Record preference. An unavailable policy disables this optional path.
212
+ Managed headless Codex, Kimi, Qwen, Jcode, Pi and local turns receive the package-owned Record instruction once per owned turn. Claude sessions keep their own amem hook path; isolated reviewers and person-owned TUI prompts receive no new instruction. The public `recordsEnabled` accessor from exact-pinned amem 0.24.0 applies the effective machine/repository `records: false` setting to instruction, capture and Record preference. An unavailable policy disables this optional path.
213
213
 
214
214
  The hub imports the instruction and parser from agent-mem. Valid final-answer records become `Record` capture rows with project and peer attribution, not curated notes or approved evidence. Complete text and anchors clear current secret, PII, private-path and deny policy before storage. Private, PII, review-scoped, remote, unbound and incomplete turns are excluded. Owner, turn, session, profile and policy must remain current; unsafe steering excludes the rest of that turn. No model or network call is added.
215
215
 
@@ -285,11 +285,11 @@ An unchanged failure emits one safe log line per episode. A complete bounded pol
285
285
 
286
286
  `ahub memory declined [--json]` is a person-only, read-only inspection. It reports physical outbound row IDs and safe policy categories, never title, body, path nodes or literal private patterns. Reads defer promotions and recheck the profile binding. Forgotten originals still matter: `forget` changes materialized visibility but leaves the source row in append-only history. Do not use it as a promise to clear a sync refusal.
287
287
 
288
- The exact-pinned agent-mem 0.23.1 supplies bounded `inspectSyncPolicy` inspection for shared-v1 and generation profiles. A complete result lists the declined IDs and safe rule categories for the inspected physical outbound history, including originals hidden by a later forget. An unavailable, stale or bounded-out inspection remains explicitly incomplete; it never proves that no declined rows exist. The hub uses the public SDK rather than private helpers, snapshots of full history or its own portable log reader.
288
+ The exact-pinned agent-mem 0.24.0 supplies bounded `inspectSyncPolicy` inspection for shared-v1 and generation profiles. A complete result lists the declined IDs and safe rule categories for the inspected physical outbound history, including originals hidden by a later forget. An unavailable, stale or bounded-out inspection remains explicitly incomplete; it never proves that no declined rows exist. The hub uses the public SDK rather than private helpers, snapshots of full history or its own portable log reader.
289
289
 
290
290
  The package also owns per-row local placement. The hub adopts only the projection of a successful trusted SDK placement result: `ok` with its verified withheld/exported counts. Since agent-mem 0.23.0 the daemon passes `placementAttestation` on every `syncMemory` pass, built by the package's own `createPlacementAttestation` for the memory home (`hostPlacementAttestation`, `src/hub/memory-sync-attestation.ts`). A legacy or shared-v1 store ignores it. The hub supplies no writer facts of its own, never fabricates the proof and builds a new one per pass, so no measurement outlives it. A refusal (`PlacementWriterContextError`) is its own closed cause `writer` in status, the dashboard and the log: the category (`running CLI`, `host package`, `setup receipt`, `declared writer`, `active locator`, `home floor`, `writer renewal`, or `unknown` for an unrecognized SDK category), the cause class (`missing`, `changed`, `unavailable`) and the next step (repair the amem install and its host pin, then a person runs `amem migrate --sync-placement --dry-run`). The package's message, paths and versions never enter status or logs. It logs once per episode like every other cause. Count projection does not delete or rewrite notes, change policy or promote a declined row; transport failures remain failures.
291
291
 
292
- Legacy stores without active per-row placement still refuse a sync containing declined rows. The native amem CLI has person-only activation from 0.22.0 ([activation documentation](https://github.com/STAIxBWLB/agent-mem/blob/v0.23.1/README.md#initial-sync-placement-activation)). A person using a CLI upgraded with the hub's pin (0.23.1; a 0.22.1 install sharing the home drops Record entries, see [Agent-authored records](#agent-authored-records-1320)) can preview it with every local writer installation declared, including the CLI and hub library installs:
292
+ Legacy stores without active per-row placement still refuse a sync containing declined rows. The native amem CLI has person-only activation from 0.22.0 ([activation documentation](https://github.com/STAIxBWLB/agent-mem/blob/v0.24.0/README.md#initial-sync-placement-activation)). A person using a CLI upgraded with the hub's pin (0.24.0; a 0.22.1 install sharing the home drops Record entries, see [Agent-authored records](#agent-authored-records-1320)) can preview it with every local writer installation declared, including the CLI and hub library installs:
293
293
 
294
294
  ```sh
295
295
  amem migrate --sync-placement --dry-run --writer-root '<cli-install-root>' --writer-root '<host-amem-install-root>' --json