@staix/agent-hub 0.36.0 → 0.37.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 (102) hide show
  1. package/CHANGELOG.md +17 -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 +802 -0
  14. package/docs/design/model-routes.md +437 -12
  15. package/docs/dogfood.md +11 -13
  16. package/docs/events.md +20 -1
  17. package/docs/memory.md +3 -3
  18. package/docs/operations.md +112 -148
  19. package/docs/quickstart.md +9 -3
  20. package/docs/research.md +1 -1
  21. package/docs/sdlc.md +5 -3
  22. package/docs/security.md +21 -1
  23. package/docs/specs/2026-09-19-agent-hub-design.md +9 -7
  24. package/docs/specs/2026-10-04-switchyard-source-port-design.md +3 -1
  25. package/docs/verification/2026-11-08-qwen-0269-model-setter-1317.md +25 -11
  26. package/docs/verification/2026-11-09-qwen-0270-model-setter-1317.md +21 -6
  27. package/docs/verification/2026-11-11-0.37.0.md +40 -0
  28. package/docs/verification/2026-11-11-guidance-probe-t2-1226.md +153 -0
  29. package/docs/verification/2026-11-11-qwen-setter-suggestions-off.md +167 -0
  30. package/docs/verified.json +24 -24
  31. package/package.json +3 -4
  32. package/plugins/agent-hub/.claude-plugin/plugin.json +1 -1
  33. package/plugins/agent-hub/kimi-hook.js +2373 -1436
  34. package/plugins/agent-hub/server.js +2445 -1497
  35. package/src/adapters/channel-peer.ts +7 -1
  36. package/src/adapters/compat.ts +1 -1
  37. package/src/adapters/local-probe.ts +174 -0
  38. package/src/adapters/local-worker.ts +232 -21
  39. package/src/cli/console-state.ts +25 -6
  40. package/src/cli/console-versions.ts +99 -0
  41. package/src/cli/console.ts +13 -1
  42. package/src/cli/help.ts +2 -1
  43. package/src/cli/install-paths.ts +7 -2
  44. package/src/cli/main.ts +60 -4
  45. package/src/cli/runtime-version-warning.ts +2 -2
  46. package/src/cli/sdlc-output.ts +9 -5
  47. package/src/hub/config-apply.ts +4 -2
  48. package/src/hub/config-trust.ts +6 -1
  49. package/src/hub/control-client.ts +5 -2
  50. package/src/hub/daemon.ts +169 -9
  51. package/src/hub/events.ts +3 -2
  52. package/src/hub/guidance-probe-store.ts +713 -0
  53. package/src/hub/guidance-probes.ts +358 -0
  54. package/src/hub/inference.ts +18 -5
  55. package/src/hub/operational-authority.ts +13 -1
  56. package/src/hub/peers.ts +5 -0
  57. package/src/hub/ports.ts +1 -1
  58. package/src/hub/progress.ts +23 -16
  59. package/src/hub/report.ts +2 -0
  60. package/src/hub/research.ts +1 -0
  61. package/src/hub/restart.ts +7 -0
  62. package/src/hub/sdlc-release-authorization.ts +139 -17
  63. package/src/hub/sdlc-release-policy.ts +100 -0
  64. package/src/hub/sdlc-release.ts +59 -7
  65. package/src/hub/tasks.ts +317 -6
  66. package/src/local/probe-errors.ts +28 -0
  67. package/src/local/probe-sandbox.ts +224 -0
  68. package/src/local/probe-types.ts +108 -0
  69. package/src/local/probe-workspace.ts +237 -0
  70. package/src/local/sandbox.ts +71 -2
  71. package/src/local/tools.ts +135 -9
  72. package/src/models/route/advisor-trigger.ts +88 -0
  73. package/src/models/route/config.ts +21 -17
  74. package/src/models/route/conversation-view.ts +179 -0
  75. package/src/models/route/decision-evidence.ts +1 -1
  76. package/src/models/route/decision.ts +114 -19
  77. package/src/models/route/escalation-control.ts +30 -0
  78. package/src/models/route/hub-prompts.ts +97 -0
  79. package/src/models/route/judge-choice.ts +155 -0
  80. package/src/models/route/judge-replies.ts +102 -0
  81. package/src/models/route/labels.ts +14 -70
  82. package/src/models/route/observation-signals.ts +250 -0
  83. package/src/models/route/plan-execute-choice.ts +27 -0
  84. package/src/models/route/relay-selector.ts +2 -2
  85. package/src/models/route/runtime.ts +115 -52
  86. package/src/models/route/turn-state.ts +77 -0
  87. package/src/omniroute/client.ts +3 -0
  88. package/src/ui/plugin.ts +70 -20
  89. package/src/version.ts +4 -0
  90. package/templates/adec/README.md +32 -0
  91. package/templates/adec/ahub.plan-execute.json +23 -0
  92. package/templates/adec/ahub.stage.json +23 -0
  93. package/LICENSES/Apache-2.0.txt +0 -204
  94. package/src/models/route/advisor.ts +0 -102
  95. package/src/models/route/escalation.ts +0 -82
  96. package/src/models/route/judge.ts +0 -23
  97. package/src/models/route/normalize.ts +0 -103
  98. package/src/models/route/plan-execute.ts +0 -52
  99. package/src/models/route/prompts.ts +0 -8
  100. package/src/models/route/signals.ts +0 -247
  101. package/src/models/route/state.ts +0 -54
  102. package/src/models/route/text.ts +0 -61
@@ -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.37.0
22
22
  ahub setup
23
23
  ```
24
24
  <!-- /facts:install-tag -->
@@ -48,6 +48,12 @@ 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.37.0
52
+
53
+ 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.
54
+
55
+ `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.
56
+
51
57
  ## Upgrading to 0.36.0
52
58
 
53
59
  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 +220,7 @@ Restart Claude sessions after upgrading: each keeps the plugin server it started
214
220
 
215
221
  `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
222
 
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.
223
+ 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
224
 
219
225
  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
226
 
@@ -421,7 +427,7 @@ More: `ahub help`. How it is built and why: [`docs/specs/2026-09-19-agent-hub-de
421
427
 
422
428
  ## Shared memory
423
429
 
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.
430
+ 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
431
 
426
432
  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
433
 
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,26 @@ 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|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)).
1440
+
1421
1441
  ## Execution lineage (#1220)
1422
1442
 
1423
1443
  `ahub lineage show` and `hub_lineage_show` read a bounded public metadata
@@ -44,7 +44,7 @@ Facts below are tagged **verified** (measured on 2026-09-19 on the owner's Mac)
44
44
  vLLM serves `deepseek-ai/DeepSeek-V4-Flash-0731`; GLM-5.3-Flash and
45
45
  Qwen3.8-27B are planned (internal deployment plan).
46
46
  OpenCode 1.18.31 already has a `dgx-dsv4f` provider for this gateway.
47
- - Routing policy engine: NVIDIA-NeMo/Switchyard v0.2.0 (Apache-2.0). Route types
47
+ - Historical routing policy engine, superseded by [Hub Model Routes](../design/model-routes.md) in #1352: NVIDIA-NeMo/Switchyard v0.2.0 (Apache-2.0). Route types
48
48
  `llm_classifier`, `stage_router`, `escalation_router`; `auto` needs a source build
49
49
  until v0.3.0. Standalone `switchyard-server` proxies `/v1/chat/completions`,
50
50
  `/v1/messages`, `/v1/responses` and forwards to any `base_url` upstream. Stability:
@@ -72,6 +72,8 @@ Facts below are tagged **verified** (measured on 2026-09-19 on the owner's Mac)
72
72
 
73
73
  ## Amendment: retire the Switchyard sidecar (#553, 2026-10-20)
74
74
 
75
+ Historical amendment. #1352 supersedes the source-port and provenance requirements below with the newly authored [Hub Model Routes](../design/model-routes.md). The reserved port offset remains 3 under a neutral name; derived modules, their upstream checker and Apache notice are retired. The unrelated Tabler Icons notice remains.
76
+
75
77
  - All model routing runs in process. Remove `src/switchyard/`, the external binary,
76
78
  generated config, lifecycle, health/status/doctor entries, `AGENTHUB_SWITCHYARD_BIN`
77
79
  and `x-switchyard-session-id`. Port offset `SWITCHYARD = 3` remains reserved and
@@ -370,7 +372,7 @@ pii = "local_only" # hard: on-prem models only
370
372
  budget_paused = "skip_peer"
371
373
  ```
372
374
 
373
- L2 in-process routing (2026-10-04 source port): `[hub_routes."hub/<id>"]` selects
375
+ Historical L2 in-process routing (2026-10-04 source port, superseded by [Hub Model Routes](../design/model-routes.md) in #1352): `[hub_routes."hub/<id>"]` selects
374
376
  stage, plan_execute, advisor or escalation policies inside the hub. The host retains
375
377
  transport, budget admission and complete-turn history ownership; algorithms make decisions
376
378
  from normalized chat input and bounded session state. See
@@ -719,7 +721,7 @@ M6 internal inference, packaging
719
721
  - Room v1 excludes hosted multi-tenant service, multi-owner rooms, forward secrecy, traffic-metadata hiding, approval or permission-request relay, and cross-machine instances. Shared boards, remote roles and remote task ownership remain excluded; memory crosses only through the separate agent-mem git sync. No hub server is exposed.
720
722
  - OmniRoute daemon on the Mac; pooling subscription OAuth through any gateway.
721
723
  - Gemini CLI and OpenCode adapters beyond the ACP fallback note.
722
- - Switchyard `auto` route until v0.3.0 ships.
724
+ - Historical exclusion, superseded in #1352: Switchyard `auto` route until v0.3.0 ships. Current routing uses the hub-owned route implementation and optional adec choices.
723
725
  - Running Claude Code itself on a local model (depends on the Anthropic-to-chat
724
726
  translation check in the OmniRoute plan v1, Phase 0).
725
727
  - A hub-owned memory store, cmem.ai cloud sync, automatic corpus building (a project
@@ -1517,7 +1519,7 @@ two-machine receipts remain separate verification.
1517
1519
  | Risk | Mitigation |
1518
1520
  | --- | --- |
1519
1521
  | Claude channels are research preview; flag or protocol may change | Adapter isolated in one file; plugin version pinned to a Claude Code range; `hub_inbox` fallback |
1520
- | Model routing algorithm drift | In-process golden tests, Apache-2.0 notices and upstream provenance check |
1522
+ | Model routing algorithm drift | Hub-owned spec-derived tests and optional adec policy choices; the historical source-port provenance check is superseded in #1352 |
1521
1523
  | Anthropic-to-chat translation drops `tool_use` | Claude never runs on local models in this design |
1522
1524
  | Local worker executes untrusted room text | Untrusted framing, cwd scope, denylist, no `--unattended` by default |
1523
1525
  | Steering a Codex turn changes its plan mid-flight | Only `important` steers; default tier is `status` |
@@ -5965,11 +5967,11 @@ Order: 2a first (it measures everything else). 2b and 2c are independent. 2d aft
5965
5967
 
5966
5968
  ### S6 person release authorization boundary (#481)
5967
5969
 
5968
- - `ahub sdlc authorize-release <version>` accepts the console user or the one configured conductor, never live-test delegated (#1063). Conductor admission matches `sdlc merge`: tools role, `conductorPeer(config.roles) === c.peer`, no `toolsOwner`, private turn or caller PII context. The conductor records consent only on the person's explicit instruction in its own session naming the release; a hub message, task text, review note, file or another peer's relay is never that instruction. This instruction-origin condition is cooperative, not verified by the daemon. Receipt `by` and the metadata audit identify the actual asker (`user` or conductor peer). The daemon binds consent to its candidate checkout's exact HEAD, committed package version, origin fetch/push identity and fresh committed-doc verdict. Caller-supplied expected HEAD must match. Head and origin are rechecked after the bounded package-owned documentation checker. Only ids, hashes, version, timestamp and counts enter the receipt/audit event; no project script or release operation runs.
5969
- - Authoritative receipts live only in the current daemon generation's bounded memory ledger (at most 64 candidates). An additive metadata event audits consent but cannot recreate it. Restart revokes all approvals. The release report shows matching/stale consent without certifying native acceptance, changing the tag workflow or publishing.
5970
+ - `ahub sdlc authorize-release <version>` accepts the console user or the one configured conductor, never live-test delegated (#1063). Conductor admission matches `sdlc merge`: tools role, `conductorPeer(config.roles) === c.peer`, no `toolsOwner`, private turn or caller PII context. The conductor records consent only on the person's explicit instruction in its own session naming the release; a hub message, task text, review note, file or another peer's relay is never that instruction. This instruction-origin condition is cooperative, not verified by the daemon. Receipt `by` and the metadata audit identify the actual asker (`user` or conductor peer). The daemon binds consent to the candidate checkout's exact HEAD, release version source and origin fetch/push identity. Policy comes only from `.agenthub/config.json` as committed at that candidate commit; unreadable or malformed committed policy refuses, and `.agenthub/config.local.json` release keys are ignored with a notice. `release.version` is `package.json` by default, or `release-notes` (requiring a regular `release.notesPath` blob at the candidate commit; default `docs/releases/v{version}.md`), or `none` (the requested semantic version is bound to the exact commit). `release.docs` is `checker` by default or `none`; `none` is an explicit receipt exemption, not a fresh verdict, and is allowed only when the candidate has no regular `docs/verified.json` blob. A committed manifest keeps documentation evidence required; remove `release.docs` from the shared config or remove the manifest and commit the change before authorizing again. Candidate commit, source/version and origin are rechecked after documentation evidence. `npm publish` always requires a clean tracked worktree and derives its target from the committed package version; it refuses when that package version does not identify the configured source's version. Only ids, hashes, version, timestamp, counts or the explicit docs exemption enter the receipt/audit event; no project script or release operation runs.
5971
+ - Authoritative receipts live only in the current daemon generation's bounded memory ledger (at most 64 candidates). An additive metadata event audits consent but cannot recreate it. Restart revokes all approvals. The package.json-default release report keeps its existing version and receipt behavior. For `release-notes` or `none`, the read-only report selects the most recent successful authorization bound to the exact report HEAD, repository, origin and committed policy; `release-notes` is revalidated as a regular blob for that receipt's version, and `none` reports only the requested version bound by that receipt. If there is no eligible receipt, the report says the version is undetermined, names the configured source and directs the person to `ahub sdlc authorize-release <version>`; it never guesses a version from a notes filename, tag or stale receipt. Failed source revalidation reports stale/unknown consent and `ready` remains false. `docs:none` reports the recorded/configured exemption without attempting documentation evidence or fabricating a verdict. Guard, hook and npm paths never infer their target from the latest receipt. Reports do not certify native acceptance, change the tag workflow or publish.
5970
5972
  - Optional `ahub init --release-guard` installs a managed executable Git pre-push hook plus instructions. A regular existing hook is renamed, preserving its inode/mode, and chained with exact argv/stdin after successful guard readback. Linked/hardlinked hooks, occupied backups and custom hooksPath refuse before project writes. Re-init retains the guard; the wrapper pins Bun/package paths and needs re-init if they move.
5971
5973
  - Actual pushed `v*` refs must have a valid version and captured source-object/commit matching consent. Missing/mismatched commit/version/remote, unreachable daemon, deletion, unknown evidence or restart refuses the version-tag push. Branch-only pushes work offline. `--no-verify` remains the person's explicit bypass and is forbidden to agents; this is cooperative Git enforcement, not a sandbox.
5972
- - Literal CLI preflights support a single named-remote tag refspec, GitHub release creation (existing remote tag readback, or explicit full SHA for a new tag), and current-checkout npm publish. Ambiguous/alternate-repository/bulk/workspace/archive selectors refuse. npm requires a clean tracked worktree and rechecks HEAD and committed documentation; artifact bytes, npm config and lifecycle scripts are outside this receipt. gh/npm instructions and preflight are the S6 boundary; adapter refusal belongs to #312/#313. No release effect is executed and no native/live pass is inferred. AC7 is covered by host-ledger units and actual hook/CLI/daemon fixture tests.
5974
+ - Literal CLI preflights support a single named-remote tag refspec, GitHub release creation (existing remote tag readback, or explicit full SHA for a new tag), and current-checkout npm publish. Ambiguous/alternate-repository/bulk/workspace/archive selectors refuse. npm requires a clean tracked worktree and rechecks HEAD plus configured source and documentation policy; when configured to use an alternate version source, the committed package version must independently identify the same target. Artifact bytes, npm config and lifecycle scripts are outside this receipt. gh/npm instructions and preflight are the S6 boundary; adapter refusal belongs to #312/#313. No release effect is executed and no native/live pass is inferred. AC7 is covered by host-ledger units and actual hook/CLI/daemon fixture tests.
5973
5975
 
5974
5976
  - S6 npm cleanliness uses filter-free cached-index/raw-blob comparison before and after docs readback, never `git status` or content conversions. Unknown modes, gitlinks, transformed bytes, unsafe paths or the 4,096-entry / 4 MiB-file / 32 MiB-total / 250 ms bounds refuse. Untracked artifact content remains outside this consent check.
5975
5977
 
@@ -2,12 +2,14 @@
2
2
  title: Switchyard 라우팅 로직의 소스 수준 도입 계획 - agent-hub TypeScript 이식
3
3
  date: 2026-10-04
4
4
  project: agent-hub
5
- status: approved (implementation requested 2026-10-04)
5
+ status: superseded by docs/design/model-routes.md (#1352)
6
6
  related: 261004-review-agent-hub-switchyard-comparison.md, 261004-plan-agent-hub-research-v2.md
7
7
  ---
8
8
 
9
9
  # Switchyard 라우팅 로직의 소스 수준 도입 계획
10
10
 
11
+ 이 문서는 #1352의 [Hub Model Routes](../design/model-routes.md)로 대체된 역사 기록이다. 현재 구현과 변경 계약은 해당 문서를 따른다. 아래 본문은 당시의 도입 계획으로 보존하며, 현재 구현이나 배포 지시가 아니다.
12
+
11
13
  ## 요약
12
14
 
13
15
  - **방식**: Switchyard 바이너리(sidecar)를 띄우는 대신, 필요한 라우팅 로직을 agent-hub의 TypeScript 소스로 옮겨 hub 프로세스 안에서 실행함.
@@ -1,8 +1,20 @@
1
- # Qwen 0.26.9 ACP model setter, failed clear
1
+ # Qwen Code 0.26.9 ACP model setter, historical A/B/B
2
2
 
3
- Date: 2026-11-08. Task #809, Refs #1317 AC4. **Failed:** the original model was
4
- not restored on the next prompt. Qwen has no production live-setter capability
5
- in this change. General compatibility qualification is separate, in
3
+ **Interpretation correction (2026-11-11, task #861).** The historical A/B/B
4
+ provider-model observation is retained. Its saved counts and response shape do
5
+ not identify the third request's purpose: no latest-USER content, marker or hash
6
+ was retained. That purpose is **unknown**, so the original conclusion below does
7
+ not establish an ordinary clear failure. The [new receipt](2026-11-11-qwen-setter-suggestions-off.md) records
8
+ ordinary A/B/A on both exact versions with follow-up suggestions disabled.
9
+ It does not prove that the historical third request was a suggestion. Production
10
+ live-setter admission remains unavailable pending a separate decision.
11
+
12
+ The original receipt follows as historical interpretation.
13
+
14
+ Date: 2026-11-08. Task #809, Refs #1317 AC4. **Original verdict: failed clear.**
15
+ The saved A/B/B observation does not identify the third request's purpose, so
16
+ ordinary-clear restoration was unverified in that attempt. Qwen has no production
17
+ live-setter capability in this change. General compatibility qualification is separate, in
6
18
  [the 0.26.9 ACP receipt](2026-11-08-qwen-0269-acp.md).
7
19
 
8
20
  ## Exact artifact and isolation
@@ -51,18 +63,20 @@ arbitrary native presets share an endpoint or account.
51
63
  2. The next prompt sends `session/set_config_option`, `configId: model`, value
52
64
  `task809-b(openai)`. Native acknowledgement precedes a request using B.
53
65
  3. Clear removes the desired row. The adapter sends the original baseline
54
- `task809-a(openai)` and receives acknowledgement, but the third ordinary user
55
- prompt still requests B. The required wire sequence A/B/A is **A/B/B**.
66
+ `task809-a(openai)` and receives acknowledgement, then the third provider
67
+ request uses B. Its purpose is unknown. The observed sequence is **A/B/B**;
68
+ it does not establish an ordinary A/B/A verdict.
56
69
  4. The fixture refuses that third unexpected model and reports failure. It does
57
70
  not count the resulting turn as completed or as a passing clear. Two prior
58
71
  delivery ids completed. Owned stop succeeds and private settings remain
59
72
  byte-identical immediately after B and after stop.
60
73
 
61
- All three requests are ordinary prompts: message counts 2, 4 and 6, with user
62
- counts 1, 2 and 3. No response-format/title schema is present. Auto-title is
63
- explicitly disabled before startup. This excludes an extra background title
64
- request as an explanation for this final sequence. The underlying native cause
65
- is not claimed here; the observed ACK is insufficient to certify clear.
74
+ The original ordinary classification used message counts 2, 4 and 6, with user
75
+ counts 1, 2 and 3. No response-format/title schema is present, and auto-title was
76
+ declared disabled before startup. Those facts do not exclude a follow-up
77
+ suggestion request or identify the third request's purpose. The underlying
78
+ native cause is not established; the observed ACK is insufficient to certify
79
+ ordinary clear.
66
80
 
67
81
  ## Earlier setup failures
68
82
 
@@ -1,8 +1,21 @@
1
- # Qwen Code 0.27.0 ACP model setter, failed clear
1
+ # Qwen Code 0.27.0 ACP model setter, historical A/B/B
2
+
3
+ **Interpretation correction (2026-11-11, task #861).** The historical A/B/B
4
+ provider-model observation is retained. Its saved counts and response shape do
5
+ not identify the third request's purpose: no latest-USER content, marker or hash
6
+ was retained. That purpose is **unknown**, so the original conclusion below does
7
+ not establish an ordinary clear failure. The [new receipt](2026-11-11-qwen-setter-suggestions-off.md) records
8
+ ordinary A/B/A on both exact versions with follow-up suggestions disabled.
9
+ It does not prove that the historical third request was a suggestion. Production
10
+ live-setter admission remains unavailable pending a separate decision.
11
+
12
+ The original receipt follows as historical interpretation.
2
13
 
3
14
  Date: 2026-11-09. Task #849, Refs #1317 and #888.
4
15
 
5
- **Failed: baseline clear did not restore the next ordinary request's model.**
16
+ **Original verdict: failed clear.** The saved A/B/B sequence does not identify
17
+ the third request's purpose, so ordinary-clear restoration was unverified in
18
+ that attempt.
6
19
  The [separate ACP receipt](2026-11-09-qwen-0270-acp.md) records passing native
7
20
  ACP/permission/lifecycle legs and the exact artifact, revised protected fence,
8
21
  isolation rulings, controls, source and closed result hashes. This setter uses
@@ -23,15 +36,17 @@ model is contacted. Private trust and auto-title disabling match the previous
23
36
  2. The next boundary sends session/set_config_option, configId model, value
24
37
  task849-b(openai). A native acknowledgement precedes the second request B.
25
38
  3. Clear removes the desired row. The adapter sends baseline task849-a(openai)
26
- and receives acknowledgement, but the third ordinary request still uses B.
27
- Actual wire sequence is **A/B/B**, not the required A/B/A.
39
+ and receives acknowledgement, then the third provider request uses B.
40
+ Its purpose is unknown. Actual wire sequence is **A/B/B**; this does not
41
+ establish an ordinary A/B/A verdict.
28
42
  4. The fixture rejects that third unexpected B. Only the first two delivery ids
29
43
  complete; the final checkpoint is clear-wire-A and the controller exits 1.
30
44
 
31
45
  The three requests have message counts 2/4/6 and user counts 1/2/3. All have no
32
46
  response-format or title schema, and there are exactly three prompt RPCs. This
33
- is a measured clear failure, not an extra background title request or ACK-only
34
- qualification. No underlying native cause is inferred and no retry was run.
47
+ does not distinguish an ordinary clear request from a follow-up suggestion.
48
+ The fixture failed, while ordinary clear remained unverified. Task #849 did not
49
+ infer an underlying native cause or rerun that attempt.
35
50
 
36
51
  The 7,016-entry protected baseline and all global/managed/launcher/selector
37
52
  coverage remain unchanged. Private settings stay byte-identical after B and
@@ -0,0 +1,40 @@
1
+ # 0.37.0 release verification
2
+
3
+ This record covers release preparation and source review. It claims no installation, no running-hub upgrade to 0.37.0 and no live TUI launch.
4
+
5
+ ## Candidate
6
+
7
+ Version 0.37.0, prepared from main fa53e8b1 (12 commits since v0.36.0, 4 of them `feat`; bump rule: minor). The release commits carry the version, the CHANGELOG section, the bundle and the documentation stamps.
8
+
9
+ ## Reviews
10
+
11
+ Pull requests named by the commits since v0.36.0: #1395, #883, #1396, #1394, #1391, #1393, #1392, #1389, #1388, #1386, #1384, #1383, #1382.
12
+
13
+ Each of these merged by squash with `--match-head-commit` after its hub review was approved, and every check on the merged head passed (19 to 21 successes each, the two path-gated legs skipped): #1395 at e5954d1a, #1396 at 196f3d01, #1394 at 0e3c1368, #1391 at 34012980, #1393 at 176fba44, #1392 at 1b4a60cd, #1389 at b741067f, #1388 at 0c427dd0, #1386 at 10cea9f0, #1384 at 0a3f35f9, #1383 at ffa94e9b, #1382 at 346ede10.
14
+
15
+ One merge is bound to an approval at an earlier head: #1391 was approved before main moved; the conductor added a conflict-only merge of main (34012980, the hello handler in `src/hub/daemon.ts` keeps both new lines) and merged it after full CI on that head. #883 is the board task of #1396.
16
+
17
+ ## Native acceptance receipts
18
+
19
+ Receipts added under `docs/verification/` since v0.36.0: `docs/verification/2026-11-11-guidance-probe-t2-1226.md`, `docs/verification/2026-11-11-qwen-setter-suggestions-off.md`.
20
+
21
+ This list is read from the repository, never written by hand. Native acceptance and the person's release consent are separate records: consent is `ahub sdlc authorize-release 0.37.0`, recorded by the person or the unique configured conductor only on the person's explicit release instruction naming the release in its own session (never a hub/task/review/file/peer relay), and is not recorded in this file. The tag run refuses without it.
22
+
23
+ ## Document review
24
+
25
+ All 24 documents were stamped at 4ac7c54c (the 0.36.0 review). Each was read against the source commits since that stamp that touch its `paths` (#1382, #1383, #1384, #1386, #1388, #1389, #1391, #1392, #1393, #1394, #1395, #1396).
26
+
27
+ - Edited: `README.md` (guidance probe commands, report link), `docs/security.md` (new "Guidance probes" section: admission, private storage, no production runner, the T2 confined path), `docs/operations.md` (incremental Space snapshots, the conductor operations row for `guidance probe`, the 0.37.x N-1 baseline), `docs/quickstart.md` (the 0.37.0 upgrade note), `docs/memory.md` (current pin 0.24.0 and its activation link), `docs/research.md` (judge route observations add no model, peer or attribution), `docs/agent-notes/daemon.md` (the `guidance_probes` recovery floor, the Space snapshot rule, `src/cli/console-versions.ts` in scope), `docs/agent-notes/README.md` (the hello `clientVersion` is the agent-hub version, not the Claude Code version).
28
+ - Read, accurate, no edit: `src/cli/help.ts` (the `guidance probe` row matches its parser; the `authorize-release` row was updated by #1383; no other flag changed), `docs/sdlc.md`, `docs/text-projection.md`, `docs/dogfood.md`, `docs/events.md`, `docs/data-policy.md`, `docs/adding-an-ai-tool.md`, `docs/addons/claude-mem.md`, `docs/agent-notes/adapters.md`, `benchmarks.md`, `budget.md`, `bus.md`, `local-worker.md`, `models.md`, `tasks.md`, `tests.md`.
29
+ - Restamped together after the review commit with `bun scripts/release-prepare.ts restamp <document>... --reviewed`.
30
+
31
+ ## Checks
32
+
33
+ - `node scripts/check-docs.mjs --require-fresh` on this branch after the restamp: `docs: OK (0 stale documents)`.
34
+ - Hosted CI run 43000364792 on the release PR head 870bf52d: all 19 checks passed (typecheck, bundle freshness, npm package contents, the full suite on Ubuntu and macOS in four shards each, seeded guards, closing-refs, routing receipt and eval); `prepare-bundle` and `macos-timing` were skipped by their path filters. This report's own commit is documentation only and gets its own exact-head run before the merge.
35
+ - `bun x tsc --noEmit`, `bun scripts/build.mjs --check` and `node scripts/check-package.mjs` ran inside that CI run; the bundle was built with the pinned Bun 1.4.2.
36
+
37
+ ## Known gaps, not blocking
38
+
39
+ - The committed-head `scripts/check.sh` on dgx02 (`remote_dev.py verify` at 870bf52d) was ended by its 2250 s hang-watch bound (exit 143) before `check: OK`, the same bound that ended the gates of #1392, #1396 and #1395. It is not counted; hosted CI is the full gate for this release.
40
+ - No installation, running-hub upgrade or live TUI launch of 0.37.0. The agent-mem 0.24.0 home floor is raised by the person only after every hub sharing the home runs 0.37.0.
@@ -0,0 +1,153 @@
1
+ # Guidance probe T2 qualification
2
+
3
+ Date: 2026-11-11. Refs #1226. This is a human verification record for the
4
+ confined adapter, not the T3 durable producer receipt or a live trial.
5
+
6
+ ## Scope and authorization
7
+
8
+ T2 uses the existing LocalPeer loop on a fresh private peer, with host-only
9
+ lifecycle and purpose, a fixed requested model, role-specific admitted bytes,
10
+ read/write/edit tools and experiment-wide accounting. The factory is not wired
11
+ into the daemon. No real model or existing worker session was launched, and no
12
+ account or production configuration was changed. Live-home/account contents were
13
+ not copied or supplied as probe inputs. The same-PID OS crash report was read
14
+ read-only for the separate diagnosis described below.
15
+
16
+ Constructor-injected fake model/fixture ports are source evidence. They do not
17
+ prove OS confinement, provider behavior, sampling control or model quality.
18
+
19
+ ## Source and fixture checks
20
+
21
+ | Committed head | Check | Observed result |
22
+ | --- | --- | --- |
23
+ | `b403a263204feaf47204ee45561cc4ce4ff3562f` | Remote typecheck and owner-ledger tests | 59 pass, 0 fail, 363 assertions; complete-frame admission, compound rollback, replay and async currentness |
24
+ | `bf2bba1deb7032be889d9a7550cb7c811099a11f` | Initial full-source preflight | Typecheck failed on nullable narrowing and one new async fixture literal; tests not run |
25
+ | `6faf1b0e1ce87a69071122dfd77f799fd607ee93` | Corrected remote typecheck and 13 focused files | 241 pass, 22 macOS skips, 0 fail, 11385 assertions; skipped legs are not native proof |
26
+ | `c14387136f8e51e2af79f199b57ed405fe2d1823` | Async-preparation duplicate fix: typecheck, inventory and 3 focused files | 101 pass, 1 macOS skip, 0 fail, 700 assertions; deterministic barrier verifies no unframed reservation or double launch |
27
+
28
+ The first required changed gate at `e60557cccb2fbd585935f98c5d4bbca4dd51c7b7`
29
+ was deliberately stopped (exit 130) after static review found that a duplicate
30
+ could reserve an unframed slot while the original asynchronous frame was pending.
31
+ The owned container was observed absent after teardown. That run is not a green
32
+ gate. The fix returns current metadata only until the original reservation exists,
33
+ while checking the original actor/session/connection and preserving admitted replay.
34
+
35
+ After this source fix, normal pinned local bundle regeneration was deferred by
36
+ fresh resource admission (exit 75, memory pressure warning), including one
37
+ conductor-requested retry. The build did not start. Generated files were not
38
+ hand-edited and remote build outputs were not copied back. Subsequent
39
+ committed-head freshness verification at
40
+ `60606e56da5570ff2843211e89d8ed6ddb1cde5a` passed with the existing tracked
41
+ assets; build admission deferral alone did not establish stale bundles. The
42
+ required gate continued into the full suite. It then reported two registry-guard
43
+ failures for the kind-specific LocalPeer factory in generic `src/local/` and was
44
+ stopped (exit 130); its owned container was observed absent. The implementation
45
+ moves that factory to `src/adapters/local-probe.ts`, preserving the empty
46
+ registry baseline and every assertion. Final-head validation remains separately
47
+ reported in the PR.
48
+
49
+ The focused set covers T1 lifecycle/recovery/control, complete request parity,
50
+ role input separation, source/tree/binary binding, compound model/file budgets,
51
+ post-approval currentness, observer exclusion and existing LocalPeer/tool/path/
52
+ OmniRoute behavior. The final committed-head changed gate and hosted CI are
53
+ reported separately in the implementation PR; this record does not replace them.
54
+
55
+ ## Local macOS confinement attempt
56
+
57
+ The three focused suites ran under fresh resource admission, pinned Bun 1.4.2
58
+ and an isolated HOME/environment at
59
+ `3752a4013feb9e2bb5e44ea990cf21fd399a20cf`.
60
+
61
+ Observed: **50 pass, 1 skip, 7 fail**. All five role canaries, the default real
62
+ profile plus fake-model integration and the real-proof cleanup case failed the
63
+ first NC positive control. The default integration observed zero fake model
64
+ calls before the refusal. No native confinement or successful model execution
65
+ is established by this attempt.
66
+
67
+ Subsequent bounded private diagnostics at
68
+ `e612679bc1c9d7f0e39e3e2c6c943b86912d5832` identify the owned NC child as
69
+ `SIGABRT`, with quiescent process cleanup. Its same-PID OS crash record places
70
+ failure in dyld `ignition_halt` / `CacheFinder` / `ProcessConfig`, before program
71
+ startup; the reported termination namespace is `0x23`, code `2`. These fields
72
+ identify the observed startup stage, not the denied resource or root cause.
73
+
74
+ A separate isolated host diagnostic, `sandbox-exec` with an allow-default
75
+ profile running only system `true`, exited 0. It is neither the lane profile,
76
+ a negative-boundary test nor a fallback, and grants no probe qualification.
77
+
78
+ No file, Mach, network or system-data permission was added based on the abort.
79
+ No failing native assertion was removed or skipped. The default adapter refuses
80
+ before model handoff when its actual proof is unavailable.
81
+
82
+ A later bounded historical unified-log read used the kernel Sandbox/deny
83
+ predicate around the owned NC lifetime. It returned no matching denial, so the
84
+ resource remains unknown. A requested fresh logger-plus-canary attempt was
85
+ deferred by resource admission (exit 75, memory pressure warning), before the
86
+ logger or canary started. No permission was inferred from that empty read.
87
+
88
+ ## Review corrections
89
+
90
+ Review of `d81db5b7cc7437f60716e00d8d7d318381b74e2d` found three source issues
91
+ that its Linux gate did not establish away: non-canonical temporary-directory
92
+ parents could refuse admitted writes; the frozen token reservation did not
93
+ check each later call's own frame; and private tool errors hid their cause and
94
+ recovery step. The correction keeps ordinary paths unchanged and adds an alias
95
+ write case, a second-call frame-bound case and typed logical refusal cases.
96
+ Results for the corrected head are reported separately in the PR.
97
+
98
+ ## Native confinement root cause (macOS 27.0.1, local)
99
+
100
+ The "exact denied resource is unknown" statements above were written before this
101
+ bisection and stay as the record of that attempt. The cause is now identified,
102
+ by plain `sandbox-exec` runs and by the unchanged canaries; no assertion was
103
+ removed, skipped or loosened.
104
+
105
+ 1. **Root directory node.** `(deny file-read-data ...)` without `(literal "/")`
106
+ in the allowlist aborts every program at dyld startup (`nc`, `sh` and `cat`
107
+ all exit 134). Hosted macOS run 42967909894 shows the same abort. dyld reads
108
+ the root directory node's data at every process start. A `literal` matches that
109
+ one node, not its children.
110
+ 2. **The `/bin/sh` stub.** With (1) fixed, the lane script still fails, now at
111
+ its own `sh -c`: on this macOS `/bin/sh` re-execs `/bin/bash` as its variant
112
+ (`Failed to exec /bin/bash as variant for /bin/sh`) and reads the variant
113
+ selector `/private/var/select/sh`. The lane needed `/bin/bash` on the
114
+ `process-exec` allowlist and the selector as one data and traversal literal.
115
+ Allowing `/bin/bash` alone, or the selector's metadata alone, still fails.
116
+
117
+ With both, the unchanged canaries pass locally: all five role canaries, the
118
+ known-quiescent cleanup case and the default real-confinement plus fake-model
119
+ lifecycle (63 pass, 1 skip, 0 fail across the sandbox, local-worker and
120
+ input-matrix suites).
121
+
122
+ What the change widens, and what it does not. The selector `/private/var/select/sh`
123
+ is now **readable** under the lane profile (that is the grant); it is a system
124
+ symlink to `/bin/bash` and holds no operator data. Its siblings stay denied:
125
+ `developer_dir`, `X11` and the directory itself all refuse a read. An earlier
126
+ draft of this note said the selector's bytes were denied; that was a measurement
127
+ artifact (the read failed on writing to stdout) and is corrected here.
128
+
129
+ The exact generated profile, run through `sandbox-exec` as `/bin/sh`, still denies
130
+ reading a file outside the workspace, `/etc/hosts`, the person's home files and
131
+ `/Users`; denies executing `python3`, `curl` and `env`; denies a loopback
132
+ connection; and denies a write outside the workspace. `/bin/sh` on macOS is the
133
+ bash variant stub, so the `/bin/bash` exec grant lets the lane run nothing `sh`
134
+ could not. Probe tool dispatch refuses `bash` and `git` before any command
135
+ (existing negative test), so no probe tool runs a command at all.
136
+
137
+ ## Remaining evidence
138
+
139
+ - Local real-profile confinement now passes the unchanged canaries after the root-node and `/bin/sh` stub corrections above; that is one macOS 27.0.1 machine, not the
140
+ hosted gate. The earlier "unknown" statements describe the attempt before the bisection.
141
+ - Hosted macOS CI must run the unchanged positive/negative canaries and default
142
+ real-profile/fake-model integration. Linux refusal and fake fixtures cannot
143
+ substitute for that gate. A recurring hosted failure requires investigation.
144
+ - Real provider/model/worker behavior, measured gains and the separately
145
+ authorized live leg remain unrun. T3 receipt collection, reconciliation and
146
+ retained-output cleanup remain separate work.
147
+
148
+ Private evidence is retained at workspace-relative
149
+ `scratchpad/temp/task824/resume-20261111/`: `core-preflight.log`,
150
+ `source-preflight.log`, `source-preflight-typed.log`, `native-source.log`,
151
+ `native-control-owned.log`, `owned-crash.json`, `owned-native-log.txt` and
152
+ `native-runtime-control.json`. Raw profiles, physical workspace/home paths and
153
+ system report identity fields are not copied into this public record.