@staix/agent-hub 0.39.0 → 0.40.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/README.md +12 -6
  3. package/docs/adding-an-ai-tool.md +1 -1
  4. package/docs/agent-notes/README.md +7 -0
  5. package/docs/agent-notes/adapters.md +5 -3
  6. package/docs/agent-notes/benchmarks.md +2 -0
  7. package/docs/agent-notes/budget.md +1 -0
  8. package/docs/agent-notes/bus.md +1 -0
  9. package/docs/agent-notes/daemon.md +8 -3
  10. package/docs/agent-notes/local-worker.md +3 -1
  11. package/docs/agent-notes/security-review.md +1 -0
  12. package/docs/agent-notes/tasks.md +7 -2
  13. package/docs/agent-notes/tests.md +7 -7
  14. package/docs/contracts/companion-cli-v1.json +4 -0
  15. package/docs/design/adapters.md +91 -0
  16. package/docs/design/agent-hub-architecture.md +17 -0
  17. package/docs/design/agent-hub.md +10 -0
  18. package/docs/design/bus.md +7 -0
  19. package/docs/design/cli-output.md +183 -0
  20. package/docs/design/execution-reference.md +6 -1
  21. package/docs/design/roadmap.md +191 -0
  22. package/docs/design/task-board.md +34 -0
  23. package/docs/dogfood.md +11 -4
  24. package/docs/events.md +4 -4
  25. package/docs/memory.md +3 -3
  26. package/docs/operations.md +153 -41
  27. package/docs/profiles.md +1 -0
  28. package/docs/quickstart.md +17 -4
  29. package/docs/sdlc.md +3 -1
  30. package/docs/security.md +40 -4
  31. package/docs/verification/2026-11-14-codex-0169-reviewer-isolation.md +70 -0
  32. package/docs/verification/2026-11-14-codex-0169-reviewer-tool-call.md +48 -0
  33. package/docs/verification/2026-11-14-pi-152-compat.md +45 -0
  34. package/docs/verification/2026-11-15-0.40.0.md +39 -0
  35. package/docs/verification/2026-11-16-pi-loopback-1447.md +39 -0
  36. package/docs/verification/pi-152-model-free.ts +57 -0
  37. package/docs/verification/pi-152-native.mjs +21 -0
  38. package/docs/verified.json +22 -22
  39. package/package.json +3 -3
  40. package/plugins/agent-hub/.claude-plugin/plugin.json +1 -1
  41. package/plugins/agent-hub/kimi-hook.js +332 -89
  42. package/plugins/agent-hub/kimi-review-policy-worker.js +16 -11
  43. package/plugins/agent-hub/server.js +417 -160
  44. package/src/adapters/agy/definition.ts +1 -1
  45. package/src/adapters/claude-channel.ts +1 -1
  46. package/src/adapters/codex-review-isolation.ts +61 -17
  47. package/src/adapters/compat.ts +7 -7
  48. package/src/adapters/definitions/builtin-metadata.ts +6 -6
  49. package/src/adapters/definitions/native-config-defaults.ts +1 -1
  50. package/src/adapters/definitions/native-config-policy.ts +1 -1
  51. package/src/adapters/definitions/qwen.ts +1 -1
  52. package/src/adapters/local-worker.ts +5 -3
  53. package/src/adapters/pi.ts +54 -11
  54. package/src/adapters/registry-types.ts +2 -1
  55. package/src/adapters/reviewer-print.ts +2 -1
  56. package/src/cli/answer-args.ts +11 -3
  57. package/src/cli/console-question.ts +1 -1
  58. package/src/cli/console-state.ts +95 -10
  59. package/src/cli/console.ts +6 -2
  60. package/src/cli/error-format.ts +19 -0
  61. package/src/cli/help.ts +290 -25
  62. package/src/cli/identity-audit.ts +8 -7
  63. package/src/cli/identity.ts +17 -0
  64. package/src/cli/init.ts +102 -9
  65. package/src/cli/main.js +2 -2
  66. package/src/cli/main.ts +57 -21
  67. package/src/cli/output-standard.ts +56 -0
  68. package/src/cli/output.ts +143 -8
  69. package/src/cli/roadmap.ts +215 -0
  70. package/src/cli/smoke-pty-bridge.ts +7 -24
  71. package/src/cli/task-output.ts +3 -1
  72. package/src/cli/upgrade-presentation-flags.ts +2 -2
  73. package/src/hub/board.ts +200 -3
  74. package/src/hub/bus.ts +9 -0
  75. package/src/hub/check-runner.ts +3 -4
  76. package/src/hub/ci-watch.ts +19 -4
  77. package/src/hub/control-client.ts +1 -1
  78. package/src/hub/daemon.ts +245 -43
  79. package/src/hub/events.ts +2 -2
  80. package/src/hub/execution-reference.ts +1 -1
  81. package/src/hub/github-import.ts +81 -0
  82. package/src/hub/hub-tools.ts +34 -9
  83. package/src/hub/install-policy.ts +23 -0
  84. package/src/hub/lifecycle-schema.ts +2 -2
  85. package/src/hub/no-writes.ts +3 -0
  86. package/src/hub/operational-authority.ts +3 -1
  87. package/src/hub/operational-view.ts +1 -1
  88. package/src/hub/pi-failure.ts +7 -0
  89. package/src/hub/question-desk.ts +26 -7
  90. package/src/hub/questions.ts +33 -5
  91. package/src/hub/restart.ts +7 -0
  92. package/src/hub/roadmap-triage.ts +86 -0
  93. package/src/hub/roadmap-unplaced.ts +169 -0
  94. package/src/hub/roadmap-view.ts +83 -0
  95. package/src/hub/roadmap.ts +127 -0
  96. package/src/hub/sdlc-merge.ts +5 -4
  97. package/src/hub/sdlc-queue.ts +3 -3
  98. package/src/hub/sdlc.ts +37 -2
  99. package/src/hub/specs-task.ts +7 -0
  100. package/src/hub/task-sweep.ts +29 -2
  101. package/src/hub/task-worktree.ts +37 -0
  102. package/src/hub/tasks.ts +381 -7
  103. package/src/pi/dependency-publish.ts +50 -0
  104. package/src/pi/extension.ts +1 -1
  105. package/src/pi/launch.ts +1 -1
  106. package/src/pi/task-dependencies.ts +249 -0
  107. package/src/ui/index.html +53 -13
  108. package/src/ui/plugin-questions.ts +5 -0
  109. package/src/ui/plugin.ts +6 -1
  110. package/templates/config.json +1 -1
package/docs/security.md CHANGED
@@ -24,9 +24,44 @@ agent-hub connects agents that can each run commands. This page says what the hu
24
24
  - **Secrets stay where they are read.** The gateway key and Cloudflare Access values are read inside the gateway client and go only into request headers: never into logs, errors, envelopes, tool output, memory. Subscription logins of Claude, Codex and Kimi are never proxied or pooled.
25
25
  - **The hub's own model calls are fenced.** Digest condensation, task triage and the PII screen read agent-written text as data; their output is capped text framed as untrusted, or a value checked against a closed list. It is never used as a route, a peer id, a tool call or an instruction. The hub model's intake split (#511) is JSON that must pass the same parts schema a planner's `hub_backlog_split` takes and may name only the request's own sources; it only writes draft backlog cards that wait for a person's or the conductor's `intake approve`, and a PII request goes only to a model reached on campus, else stays unsplit.
26
26
 
27
+ ## Pi prepared dependencies (#1447 T5)
28
+
29
+ The localhost listener grant is a no-go for the tested Seatbelt rules: the
30
+ native proof did not establish both a working listener and denial of non-loopback
31
+ peers. Pi's network profile and proxy environment remain unchanged. The opt-in
32
+ isolated check runner provides separate Linux test evidence, not a Pi sandbox
33
+ listener grant. See `docs/verification/2026-11-16-pi-loopback-1447.md`.
34
+
35
+ Preparation is a host operation after guarded acceptance and before the tool
36
+ reply. Its immutable input snapshot comes from the recorded task-worktree base
37
+ commit through hardened Git object reads. A changed task input is not installed.
38
+ Manifest lifecycle hooks, explicit trusted dependencies, runtime Bun preload,
39
+ installer script settings, paths escaping the snapshot and unsupported layouts
40
+ refuse preparation. Trusted dependency code is limited to the lockfile and install
41
+ inputs recorded by the task worktree's base commit, with the same repository-code
42
+ trust as installing that checked-out base on the person's behalf.
43
+
44
+ The fixed installer runs in private host-protected state with an isolated HOME,
45
+ explicit shared Bun cache and a deadline. No ambient tokens or installer output
46
+ reach peer text. Publication is a same-device rename to an absent target through
47
+ a trusted helper that verifies its kernel CWD against the held worktree inode;
48
+ project preload and dotenv are disabled for that helper. Existing directories,
49
+ files, symlinks, changed roots and cross-device publication refuse. No dependency
50
+ tree is copied. Temporary-state cleanup is attempted on every outcome; cleanup
51
+ failures do not change task acceptance. Failures keep the task accepted and give
52
+ fixed not-prepared guidance; changed ownership, session
53
+ or privacy after the await cannot return a stale successful acceptance. Full
54
+ verification remains with CI and the remote runner.
55
+
56
+ A bounded `lstat` walk never follows dependency symlinks and rejects every
57
+ regular file with multiple hardlinks before publication. This prevents project
58
+ writes from reaching a shared cache inode. Hardlink-producing backends, including
59
+ Linux's default when cache and installation share a filesystem, remain unprepared
60
+ instead of changing the backend or copying dependency files.
61
+
27
62
  ## Native memory authority and profile selection
28
63
 
29
- The portable core is the exact-pinned first-party `@staix/agent-mem` 0.23.1 package; it does not replace the hub's caller identity, PII policy or task-write authority. Deny, hardened git, real paths and process identity are single-sourced in its Node-safe platform entry. Current project privacy is applied by the hub before promotion and again before model-facing reads. Standalone person reads are unscreened, and the standalone `--policy-free` acknowledgement grants no hub or peer authority.
64
+ The portable core is the exact-pinned first-party `@staix/agent-mem` 0.26.3 package; it does not replace the hub's caller identity, PII policy or task-write authority. Deny, hardened git, real paths and process identity are single-sourced in its Node-safe platform entry. Current project privacy is applied by the hub before promotion and again before model-facing reads. Standalone person reads are unscreened, and the standalone `--policy-free` acknowledgement grants no hub or peer authority.
30
65
 
31
66
  `hub_memory_search`, `hub_memory_show` and `hub_memory_graph` take the project from the daemon, require `memory_read`, refuse private turns and validate UTF-8 input before logs or storage work. Complete records and graph metadata are screened before counts and truncation. Search is at most 20 lines/4 KiB (default 8); show accepts at most 8 ids and returns at most 8 KiB; graph is at most 120 nodes/240 edges/6 KiB (default 60 nodes), with no edge lacking an endpoint. Unknown, ambiguous and withheld ids share one neutral refusal. Arguments and results are excluded from hub-managed capture; this does not govern a vendor's independent transcript or memory hooks.
32
67
 
@@ -910,7 +945,7 @@ A grant uses a random, expiring single-use nonce and an in-memory record bound t
910
945
 
911
946
  Task branch authority uses recorded `refs.branch`, otherwise a host-observed non-default attached branch on the first eligible task-command request, excluding `main`, `master`, unknown/detached HEAD and another open task's branch. The binding is a normal `Tasks` write with history and an opaque canonical-root hash; a changed branch or worktree asks and never rebinds. Push grants accept only `git push origin <bound>` or `git push -u origin <bound>`; force, refspec, deletion and other remotes ask. Every origin push URL is checked against the captured project repository and PR argv pins that repository. Execution uses an explicit same-branch refspec; configured remote.origin.push/mirror refuses. Project/worktree PATH directories and aliases are removed, and gh child Git inherits core SAFE_CONFIG through fixed environment configuration. PR body-file content is bounded, screened and snapshotted into executed --body bytes. See [the design contract](specs/2026-09-19-agent-hub-design.md#headless-implementer-host-shell-execution-845) for the exact closed forms and [the native receipt](verification/2026-10-26-headless-claude-shell-context.md) for verification limits.
912
947
 
913
- The fresh Codex reviewer (#519) needs `review_mode: "fresh"` and a compat-admitted Codex (receipt-verified 0.146.0, 0.163.0, 0.164.0 and 0.166.0; `ahub agents` shows the current policy); an unverified/untrusted version is unavailable. Before each review it requires a model-free isolation receipt: binary and config unchanged, only the two hub tools in the configured MCP inventory (each approved by its own name, never by a server-wide default, #783), plugins, hooks and Apps disabled (Apps by a separate feature readback), and a named filesystem profile whose fixtures prove public reads, private-path denial (exact, glob and symlink), standard host credential denial and write denial. Credential and tool-home roots are denied even with an empty `local.deny`; that list does not cover every personal file. A dangling or unreadable credential root refuses the reviewer, and the reason names only its path class (`~/.docker`, `$DOCKER_CONFIG`), never the path or its contents. A failed per-review start names one class from a closed list (`version`, `binary`, `mcp_inventory`, `plugins_hooks_apps`, `sandbox_proof`, `credential_root`, `timeout`, `unknown`) with a fixed sentence in the unavailable reason, `hub.log` and the `reviewer` line of `ahub status`; it never carries a path, native CLI text or a token (#722). Its shell is sandboxed read-only, not Claude's Read/Grep/Glob whitelist. Network and web search are configured disabled but not observed: managed requirements can still select cached web search, and no run has shown the review selecting the profile through `default_permissions`. A failed receipt or start never falls back to a continuing native session, and a child that ends without a saved verdict is never approval. The agy reviewer slot is an unavailable placeholder and never runs; it binds nothing, so agy's own `hub_task_show` reads are not fenced as a review (#792).
948
+ The fresh Codex reviewer (#519) needs `review_mode: "fresh"` and a compat-admitted Codex (receipt-verified 0.146.0, 0.163.0, 0.164.0, 0.166.0 and 0.169.0; `ahub agents` shows the current policy); an unverified/untrusted version is unavailable. Before each review it requires a model-free isolation receipt: binary and config unchanged, only the two hub tools in the configured MCP inventory (each approved by its own name, never by a server-wide default, #783), plugins, hooks and Apps disabled (Apps by a separate feature readback), and a named filesystem profile whose fixtures prove public reads, private-path denial (exact, glob and symlink), standard host credential denial and write denial. The fixture root is made in the system temp directory, or in the hub's own `reviewer-proof` directory when a deny entry covers the temp directory (#1493); when both are covered the proof refuses as `fixture_root_denied`, which names no entry. Credential and tool-home roots are denied even with an empty `local.deny`; that list does not cover every personal file. A dangling or unreadable credential root refuses the reviewer, and the reason names only its path class (`~/.docker`, `$DOCKER_CONFIG`), never the path or its contents. A failed per-review start names one class from a closed list (`version`, `binary`, `mcp_inventory`, `plugins_hooks_apps`, `sandbox_proof`, `credential_root`, `fixture_root_denied`, `timeout`, `unknown`) with a fixed sentence in the unavailable reason, `hub.log` and the `reviewer` line of `ahub status`; it never carries a path, native CLI text or a token (#722). Its shell is sandboxed read-only, not Claude's Read/Grep/Glob whitelist. Network and web search are configured disabled but not observed: managed requirements can still select cached web search, and no run has shown the review selecting the profile through `default_permissions`. A failed receipt or start never falls back to a continuing native session, and a child that ends without a saved verdict is never approval. The agy reviewer slot is an unavailable placeholder and never runs; it binds nothing, so agy's own `hub_task_show` reads are not fenced as a review (#792).
914
949
 
915
950
  The fresh Kimi reviewer (#533) needs `review_mode: "fresh"` and a compat-admitted Kimi Code (receipt-verified 2.2.0, 2.3.0, 2.3.1, 2.3.2, 2.4.1 and 2.5.1; `ahub agents` shows the current policy) with its native OAuth login; an unverified/untrusted version, or a failed preparation, is unavailable. The [2.3.0](verification/2026-10-22-kimi-qwen-compat.md), [2.3.1](verification/2026-10-25-kimi-231-reviewer-compat.md) and [2.5.1](verification/2026-11-06-kimi-251-reviewer-compat.md) receipts are model-free and do not prove real login or a model review. It is a native tool-authority boundary, not a sandbox: no Seatbelt wraps it, and same-user native code is not isolated from the filesystem or network. Each review starts a new child in a private `KIMI_CODE_HOME` with managed-provider-only config, a clean temporary working directory and an empty skills directory. Its agent may use only `hub_review` and `hub_task_show`, served by a loopback MCP session bound to the task, head and review revision that never carries the hub's control token; it has no native read, file or shell tool and sees only the screened review brief and host facts. Its `credentials/` and `oauth/` directories and `device_id` link to the person's native ones, so refresh keeps Kimi's own lock and atomic rename; no token is copied and `KIMI_DISABLE_OAUTH_LOCK` is never set. A stop revokes its verdict authority before termination; killing it mid-refresh may require a native re-login. Private tasks are never given to it, and a child that ends without a saved verdict is never approval.
916
951
 
@@ -1498,10 +1533,11 @@ same page through a provider port with no new action.
1498
1533
 
1499
1534
  `hub_ask` lets any peer put a structured question (one to four questions, two to eight options each) to the person. A question is not a permission: it is its own record in `hub.db` (`questions`), has its own control messages, and never expires as a denial.
1500
1535
 
1501
- - **Who answers.** Only the console role. The control message `answer { questionSet, answers, surface? }` is refused, with a reply and no change to the row, for every `tools` or `peer` connection, the asking peer's own included. Nothing a peer writes counts as an answer: a `hub_send` body, a tool result, a file or an envelope that quotes one (the exact JSON `hub_ask` returns included) is text, and `test/questions-daemon.test.ts` pins that none of them changes a row. The answer envelope the peer receives is built by the hub (`kind: "answer"`, `from: "user"`), so its header cannot be forged: every body goes through `sanitize()`, and `kind`, never the sender, is what code keys on.
1536
+ - **Who answers.** The person's console and terminal answer paths remain unchanged. The narrow instructed-conductor exception ([#1473](https://github.com/STAIxBWLB/agent-hub/issues/1473)) lets only the unique configured conductor record the person's explicit decision in that conductor's own session, following the [release-consent precedent (#1328)](https://github.com/STAIxBWLB/agent-hub/issues/1328). The conductor supplies a non-empty short quote for one open set through `hub_ask_answer {set, answers, instruction}` or `ahub answer <set> ... --instructed "<quote>"`. This is a cooperative instruction claim: the daemon checks actor/session/context and validates answers; it does not independently prove who authored the quote. A hub, task, review, file or peer relay never qualifies. A non-conductor, the asking peer itself (even when conductor), private caller or private question, live-test/delegated run, owned tools child and closed set are refused without changing the row, with the person's `ahub console` next step. There is no blanket delegation or cross-project answering. Other tools/peer answers remain refused. A `hub_send` body, tool result, file or envelope quoting an answer remains text and never substitutes for these guarded paths. The answer envelope the peer receives is built by the hub (`kind: "answer"`, `from: "user"`), so its header cannot be forged: every body goes through `sanitize()`, and `kind`, never the sender, is what code keys on.
1537
+ - **Instructed provenance.** The stored row uses surface `conductor`, the conductor peer as actor and `instructed: true`. The console/dashboard and the asking peer's waiting result or late-answer envelope show "answered by <conductor> on the person's instruction". `agent_cli` marks the run instructed. Within hub-owned paths, the instruction quote is DB-only: no read view, tool response, envelope, event, log, Capture or progress observer contains it. The CLI `--instructed` form puts the quote on a shell command line that native hooks outside the hub may record; the conductor should prefer `hub_ask_answer`. Those external hooks are outside this repository's capture guarantee. Provenance never includes the quote or treats it as release consent.
1502
1538
  - **One terminal transition.** `open` becomes `answered`, `superseded`, `cancelled` or `expired` by one compare-and-set (`UPDATE ... WHERE state = 'open'`). Of any number of concurrent answers, stops and expiries exactly one wins, and every other caller is told the row's real state. A second answer is refused and publishes nothing.
1503
1539
  - **Validation.** An answer is checked against the stored row before anything is written: every question answered once, only offered option ids, one option unless `multi`, free text only where `allowOther` and at most 500 characters. The refusal names the question by position and never echoes the offered or submitted text. Input is closed and bounded the same way (`parseAsk`).
1504
- - **Answering from acon (#1053 T5).** The plugin accepts an `answer` action only when the console advertises `action.meta` and passes its own `meta` (`via: "console"`, a verified `identity` and `node`), which the page cannot set. Without it, or with page-supplied `identity`, `surface`, `questionSet`, `projectId` or `instanceId` fields, the action is refused before any request reaches the hub (`test/questions-plugin.test.ts`). The project and set come from the inbox item id the plugin built, never from the page. The plugin reaches the hub through a dedicated manager port (`projectConsole(...).answer`), not through the dashboard action whitelist, so the dashboard page of `ahub ui --all` and the manager's `ui_action` whitelist have no `answer` action, and a page can never answer for the person. The hub re-validates every answer against the stored row. The verified `identity` the plugin read from the console's own `meta` rides with the answer (`answer { ..., surface: "acon", person }`); the hub records it, one bounded line, on the answered row and on the `question` event, and reads `person` only for the `acon` surface, so a terminal or console answer cannot claim another person. It is never question or answer text. The acon types of the form and of the submitted answer (`ActionMeta`, `InboxVerb`, `VerbForm`, `InboxAnswers`) are type-only imports from the exact-pinned `@staix/agent-console/contract` entry, never hand-copied. `ahub answer` with any operand is refused in `liveTestRefusal` (a delegated `--live-test` run is promoted to console identity, so without it an agent shell could answer its own `hub_ask` as the person); only the bare listing is allowed there.
1540
+ - **Answering from acon (#1053 T5).** The plugin accepts an `answer` action only when the console advertises `action.meta` and passes its own `meta` (`via: "console"`, a verified `identity` and `node`), which the page cannot set. Without it, or with page-supplied `identity`, `surface`, `questionSet`, `projectId` or `instanceId` fields, the action is refused before any request reaches the hub (`test/questions-plugin.test.ts`). The project and set come from the inbox item id the plugin built, never from the page. The plugin reaches the hub through a dedicated manager port (`projectConsole(...).answer`), not through the dashboard action whitelist, so the dashboard page of `ahub ui --all` and the manager's `ui_action` whitelist have no `answer` action, and a page can never answer for the person. The hub re-validates every answer against the stored row. The verified `identity` the plugin read from the console's own `meta` rides with the answer (`answer { ..., surface: "acon", person }`); the hub records it, one bounded line, on the answered row and on the `question` event, and reads `person` only for the `acon` surface, so a terminal or console answer cannot claim another person. It is never question or answer text. The acon types of the form and of the submitted answer (`ActionMeta`, `InboxVerb`, `VerbForm`, `InboxAnswers`) are type-only imports from the exact-pinned `@staix/agent-console/contract` entry, never hand-copied. `ahub answer` with any answering operand, including `--instructed`, is refused in `liveTestRefusal` (a delegated `--live-test` run is promoted to console identity, so without it an agent shell could answer its own `hub_ask` as the person); only the bare listing is allowed there.
1505
1541
  - **Residual.** The same as `permit`: a vendor agent that can read the control token can act as the console (see "What is not defended"). This feature does not narrow that and does not widen it.
1506
1542
  - **Privacy.** Question and answer text live in `hub.db` and in the envelope addressed to the asking peer, nowhere else: never `hub.log` (an `answer` or question-notice envelope logs a fixed stub), never `events.jsonl` (the `question` event carries the set id, peer, event name, counts, latency, surface and a closed reason), never the console tail or the dashboard feed (`redactBusEvent` stubs the body), never memory capture (`QUESTION_TOOLS`) or the progress observer. A question asked in a PII turn, or about a PII task, is stored `private` and its late envelope is private too. The inbox title of a private question is a stub (`<peer> asks a question`); its text is only in the answer form, the person's own answer surface, and the status attention model, the stream line and the CLI audit carry ids only. `test/questions-console-daemon.test.ts` pins these with a PII task, the status reply, the dashboard snapshot, `hub.log`, `events.jsonl` and memory capture.
1507
1543
  - **Not defended.** A peer that is cancelled, superseded or restarted loses a pending question's wait, never its row, until the person or `questions.ttl_s` settles it. An answer a person gives is shown to the asking peer in full; do not ask the person for a secret.
@@ -0,0 +1,70 @@
1
+ # Codex 0.169.0 fresh-reviewer isolation receipt
2
+
3
+ Date: 2026-11-14. Platform: macOS arm64, Bun 1.4.4. Scope: issue #888, hub task 931. This repeats the [0.167.2 model-free procedure](2026-11-13-codex-01672-reviewer-isolation.md) for 0.169.0, with 0.166.0 (verified) and 0.167.2 as controls. The separately authorized [single model-backed review](2026-11-14-codex-0169-reviewer-tool-call.md) is recorded beside it.
4
+
5
+ Result: every model-free leg returned the expected outcome. 0.169.0 passed the committed reviewer proofs, the source and tag legs, and the app-server schema comparison. The global `codex` binary was not touched: all three versions were installed with `npm install --prefix` into private prefixes.
6
+
7
+ ## Source identity and re-read regions
8
+
9
+ `git ls-remote https://github.com/openai/codex.git` returned, for 0.169.0 (`rust-v0.169.0`), annotated tag object `a41fe5b443652cbdbee57717fbb9fd78d8d8b32a` and peeled commit `d32063f96c2dff1dc96af839b3952abb6acfeda4`. The same readback returned the 0.167.2 tag object `08a3b12b3298577534a28b62ed976acf8de66eda` (peeled `ce21072c90d32c40af7a55b60b2fb35c84a43a6a`) and the 0.166.0 tag object `593389380740f7b4762771573c447ccfdc59742f` (peeled `6ff1e1ca3b30fc8b914720681fcf5fe62e95f856`), matching their receipts.
10
+
11
+ The seven files read for 0.167.2 were fetched at both peeled commits and compared by SHA-256. One is byte-identical and six changed, so each changed one was diffed and its re-read region reviewed:
12
+
13
+ | File (under `codex-rs/`) | 0.167.2 SHA-256 | 0.169.0 SHA-256 |
14
+ | --- | --- | --- |
15
+ | `hooks/src/registry.rs` | `06e349e62e53eee6c3a7418667868d57119cbf52be99271137b7f8c14dea4d85` | same |
16
+ | `exec/src/cli.rs` | `66643e8b3d5964b70cb8f231fb309312376272fb3ea87bcb6849f44cf112f8f6` | `7fbc3d9d481513488dcceea2a6c8fdcd045a2b2de6aaa1d30379354cd66b04d6` |
17
+ | `config/src/mcp_types.rs` | `af5fb824c092cd74e3a42297979a4d250c332008f5409e14890253728747e71a` | `3bc2f134d6b9992022f38727d21ce7aeb9bc157788b2d1d1912f88c7d65afe0d` |
18
+ | `core/src/mcp.rs` | `2ae5ed00a6e26a46f62be65136047850aaa11a8e2ff849d7323eeea5bbc0f4c9` | `55640da23629bc9684386e7f76d4365a7dec7dc499c0582e4db1ae4f24956d2f` |
19
+ | `sandboxing/src/seatbelt.rs` | `ebd230e96ce456d95466406137995dc055cc8116ec32879b3ff4e8ddff5c65a3` | `9482cfbb53d624f1421b6e05b231ee567b18ed0973c0547b54196dac351ffcf4` |
20
+ | `core/src/session/mod.rs` | `c04716274b5ecfc91730908bf25159bc6498a368d10352a0fc311aae7182df62` | `6eecc35de03cb80b3ceb1b5e0e43ff0f8e926d75376bec00219fcb967be1afc8` |
21
+ | `core-plugins/src/manager.rs` | `9719bccd786891686ff2c6e2194aff4c6adc0065e75c41509ec4fe4dc1430ab9` | `a7c95dbdbda54e8d3d195be4f5d77cef71619c268cb3b974d9cec40f1e9814b9` |
22
+
23
+ - Exec switches: `--ephemeral`, `--ignore-user-config` and `--ignore-rules` are unchanged. A new global `--trust` switch saves project trust and persists even with `--ephemeral`, and does not override an explicitly untrusted project. The hub never passes `--trust` and pins the project `untrusted`, and the production proof reads `project-untrusted` back.
24
+ - MCP schema: a disabled server is still not initialized. The new `can_defer_stdio_startup` serves the `mcp_lazy_stdio_startup` feature, which is under development and default off.
25
+ - Apps and MCP registration (`core/src/mcp.rs`): plugin-manager and runtime-auth plumbing only. In the session, the Apps server is added as a required MCP server only when `turn_context.apps_enabled()` holds, and the hub disables Apps, which the `features list` readback proves.
26
+ - Registry: identical, so a non-empty legacy notify argv still becomes an after-agent hook independently of the hooks flag. `legacy_notify_argv: config.notify.clone()` is unchanged in the session and only moved (line 5822 to 6167), so the explicit `-c notify=[]` is still required and still passed.
27
+ - Plugin manager: every `plugins_enabled` early return that produced the default load outcome is still present (lines 894, 918, 1105, 1745, 1773 and 2057 in 0.169.0).
28
+ - Seatbelt: the compiler now resolves the policy once (`resolve_for_enforcement`) instead of calling the policy getters one by one, and removed dead legacy helpers. It adds a `ProcessWithInheritedTerminal` profile that denies `TIOCSTI`. The anchored read/write denies, static-prefix variants, ancestor unlink denies and the unreadable-glob compiler read the same inputs. The native sandbox canaries below are the behavioral check.
29
+ - Web search: the session now resolves a model search binding. Hosted search is gated by the `hosted_search_policy` feature (under development, default off) and by `apps_enabled()`. The hub still requests web search disabled. Its effective turn mode is not read back, as for earlier versions.
30
+
31
+ Outside those seven files the compare lists 471 commits, and a blobless clone of both tags lists 2570 changed paths (the GitHub compare API caps at 300 files). Of those, 52 `core`, 27 `exec-server`, 22 `core-plugins`, 14 `rmcp-client`, 14 `login`, 13 `network-proxy`, 12 `state`, 12 `config`, 8 `linux-sandbox`, 8 `cli`, 7 `sandboxing`, 7 `exec`, 4 `app-server` and 3 `features` non-test files sit under isolation-relevant crates. I read the whole `features`, `exec`, `cli/mcp_cmd` and seven-file diffs listed above and did not read the rest line by line. The `features` diff adds under-development flags (`hosted_search_policy`, `agent_message_board_mcp`, `mcp_lazy_stdio_startup`, `command_sessions_world_state`) and moves several to stable and default on (`untrusted_as_tool_output`, `code_mode_host_grpc`, `code_mode_host_output_truncation`, `unified_image_budget`, `retain_client_tool_outputs`, `guardian_include_additional_context`); none gates MCP registration, Apps, plugins, hooks, legacy notify, ephemeral sessions, project trust or Seatbelt. This is scoped source evidence for the two peeled commits, not a claim about the unread files.
32
+
33
+ ## Native production preparation
34
+
35
+ A throwaway producer outside the source checkout, in a private scratch directory, called the committed `runReviewerProofs` (`scripts/compat-receipts/proofs/reviewers.ts`), which runs the actual `codexReviewerBackend.prepare`. Each leg used its own fresh root holding project, HOME, CODEX_HOME and TMPDIR. The child ran with a clean environment: only PATH (a private directory holding `node` and `bun` links, then `/usr/bin:/bin`), LANG, LC_ALL, TZ, TERM and the private homes. The committed worker's own environment allowlist and bounded runner were used.
36
+
37
+ Three Codex versions were installed with `npm install --prefix` into separate private prefixes, with scratch cache and empty user and global npm configs. Each lockfile's integrity for `@openai/codex` equals the registry's exact-version `dist.integrity`: 0.169.0 `sha512-KhzYlkKPxoNssR8CEm45IjqnFWn7UtlF4CiD3tOJPea51xBs7MaHy0UQG9GSbCqk6Lrjn5QdJDV0QD1/FgWlGw==`, 0.167.2 `sha512-6OFkr2ndzTdFb32OEiUlM9BgpeY8+wnMe8vRhuvt+22TnxVR39KnJ22Ghay98IY9OmEltoNgFN4GALUkxFQCOw==` and 0.166.0 `sha512-2Szlp1l1cz5TX1ccpX4Zok3DZrot9xeZe0km+6/1v8JmqxADwyJxKBJah4dBymkwtS25j/u6dipJusTOI97Z8Q==`.
38
+
39
+ | Leg | Outcome | Elapsed |
40
+ | --- | --- | --- |
41
+ | Committed tree, 0.169.0 | Refused at version admission before trust (`version-negative` pass), then 17 of 17 runnable legs pass, including empty-home and ambient prepares and all 14 attested markers | 675 ms |
42
+ | Control 0.167.2 | 17 of 17 runnable legs pass | 669 ms |
43
+ | Control 0.166.0 (verified) | 16 of 16 runnable legs pass; `version-negative` is not applicable | 560 ms |
44
+
45
+ In all three runs the four manifest legs that no model-free producer can prove stayed not-run: `model-backed-hub-call` (`model-required`), `control` (not a per-version leg), `source-impact` (`source-review-required`, answered by the section above) and `tag-binding` (answered by the tag objects above).
46
+
47
+ | Version | Native binary SHA-256 | Production binary identity |
48
+ | --- | --- | --- |
49
+ | 0.169.0 | `739cda86e15d30a6e2b40cf8dcbbfb988aaf48b305b27065573bb8e9fd41d002` | `sha256:5cb2fa931709a799a155da3685c5dcd5be751a26dffdf6d947f4b9d4c5e9d88d` |
50
+ | 0.167.2 (control) | `97bc82fd46f117cf10efb95e6ff0c81dc4784f5797bcdc2cb75093ba09e4def0` | `sha256:28596b8867646e50ef492bc036a751fd63113c8d4360803f435fec69d2fbdbc2` |
51
+ | 0.166.0 (control) | `39acf979729dd290f9a24ee38b2914e036c91b65952872e28ae2a6b88a7db7c1` | `sha256:77c2eae1013cec5acaa8a2d980bb760a7ca7657ebb9cb3033550cad787ab2fdd` |
52
+
53
+ Both controls' native digests and production identities equal the values in their receipts, so the procedure reproduces. A returned launch means production's own native canaries ran and passed: public read, denied exact private read, denied nested private glob and symlink alias, denied portable-core `.env` and `.agenthub/state`, denied synthetic gh, kube and docker credential roots and alias, and denied creation of a new file.
54
+
55
+ ## App-server schema comparison
56
+
57
+ `codex app-server generate-json-schema --out <dir>` (and `--experimental`) ran with the native binaries under a clean environment, for 0.169.0 and 0.167.2:
58
+
59
+ | Bundle | Files | Client request methods | Server requests, notifications | Removed types, removed properties, newly required fields, removed enum values |
60
+ | --- | --- | --- | --- | --- |
61
+ | Stable | 322 to 329 | 106 to 109 (adds `account/securitySetup/read`, `modelProvider/config/write`, `modelProvider/list`) | 10 and 86, unchanged | none (678 to 700 definitions) |
62
+ | Experimental | 470 to 479 | 180 to 184 (adds the three above and `thread/prepareApprovedPlan`) | 11 and 86, unchanged | none (840 to 864 definitions) |
63
+
64
+ Thirty-nine stable and fifty-four experimental files differ in content. The comparison found no removed type, no removed property, no newly required field and no removed enum value in any shared definition; it did not classify other edits (descriptions, new optional fields, widened enums). The methods the hub's `codex-appserver.ts` uses (`thread/start`, `thread/resume`, `thread/revert`, `turn/start`, `turn/steer`, `turn/interrupt`, `skills/list`, `account/rateLimits/read` and the notifications it handles) are all still present. This is a schema comparison, not a run of the attached app-server adapter against 0.169.0: attached Codex compatibility is a different COMPAT entry and is not changed here.
65
+
66
+ ## Compatibility and evidence boundaries
67
+
68
+ The verified reviewer versions become 0.146.0, 0.163.0, 0.164.0, 0.166.0 and 0.169.0 only together with the [model-backed receipt](2026-11-14-codex-0169-reviewer-tool-call.md). 0.167.0 and 0.167.2 stay unverified: their model-backed runs were not performed or did not complete.
69
+
70
+ Source claims apply to the two peeled commits only. Each upgrade repeats the procedure; the throwaway producer is not a supported command, and its raw records carry temporary paths, so they stay outside git. Exact-head hosted CI is separate evidence recorded on the PR.
@@ -0,0 +1,48 @@
1
+ # Codex 0.169.0 reviewer tool-call receipt
2
+
3
+ Result: passed. One authorized native review persisted one approved verdict that carried the required private synthetic marker, with the stored head matching the fixture head. Date: 2026-11-14, macOS arm64, Bun 1.4.4. Scope: issue #888, hub task 931. This supplements the [model-free isolation receipt](2026-11-14-codex-0169-reviewer-isolation.md). No native model retry was made.
4
+
5
+ ## Fixture and model-free proof
6
+
7
+ The fixture follows the [corrected 0.166.0 procedure](2026-11-02-codex-0166-reviewer-tool-call.md): the instruction and the marker sit in one accepted `plan.risks` item, because the production review request omits task detail when an accepted plan exists, and a review-only reviewer receives a withheld done summary. A throwaway harness outside git (private scratch directory, not a supported command) started the production `startDaemon` with `ReviewerPrintPeer`, `codexReviewerBackend`, the stdio plugin and `Tasks`. A temporary builder proposed and accepted a synthetic arithmetic task (`score.ts` returning `a + b`), a temporary inspector was attached, and the builder's completion triggered the native review. The harness neither called `hub_review` on the model's behalf nor substituted a verdict.
8
+
9
+ Before the native run, the same harness ran twice (before and after the root move described below) against the committed `test/fakes/fake-codex-reviewer.ts` (no account, no model) and each time returned one approved verdict, one attempt, the marker and head present in the review envelope and the done summary withheld. The harness wrapped the original `ReviewerPrintPeer.review`: immediately before entering it, it asserted that the review envelope carried the marker and the exact fixture head and withheld the done summary, and only then created its persistent exclusive one-attempt fence (`O_EXCL`). The envelope and the marker value were not retained in the repository.
10
+
11
+ ## Four refused starts, before any model request
12
+
13
+ The native harness was started four times before the run below. Each stopped at `start` with `reviewer isolation unavailable [cause: sandbox_proof]`, before a task existed, so before the fence was created and before any model request. The fence file for the native run did not exist until the fifth start. The cause was the fixture, not 0.169.0:
14
+
15
+ - The fixture's `local.deny` list named `~/.jcode` among the standard credential and tool-home roots. Bisecting model-free with the committed `prepare`, denying that one path alone fails the sandbox proof for the verified 0.166.0 control and for 0.167.2 as well as 0.169.0, and every other path in the list passes (`.codex`, `.ssh`, `.aws`, `.config`, `.gnupg`, `.claude`, `.kimi`, `.kimi-code`, `.agenthub`, `.kube`, `.docker`, `.netrc`, `.git-credentials`, `Library/Keychains`, `.gemini`, `.qwen`). I did not diagnose why that denial fails the canary and I did not change product code. The fixture list is the harness's choice, not the project's `local.deny` default.
16
+ - Two guesses did not help and are recorded so the sequence is complete: moving the per-run root from the scratch directory to the system temp directory (third refusal onward), and running the 0.169.0 prefix from a copy outside `~/.jcode` (fourth refusal; the copy's production binary identity, read model-free, equals the original prefix's).
17
+ - The fifth start dropped `~/.jcode` from the fixture's deny list. It passed and ran the review below, with the root in the system temp directory and the prefix copy.
18
+
19
+ ## One production review
20
+
21
+ | Evidence | Observed |
22
+ | --- | --- |
23
+ | Tested source head | `dcff79a1e26a4f900d845e55d3ab6693d6ea0d4b`; the branch was later rebased on main, which changed only `quietSyncError` in `src/hub/daemon.ts`, so `src/adapters/` and `plugins/agent-hub/server.js` are byte-identical to the tested tree |
24
+ | Native version / binary identity | 0.169.0 / `sha256:5cb2fa931709a799a155da3685c5dcd5be751a26dffdf6d947f4b9d4c5e9d88d` |
25
+ | Isolation at start | `readOnly`, `strictMcp` and `ephemeral` true, 14 model-free evidence markers (read model-free from the same binary; the actual review profile hash was not captured) |
26
+ | Fixture task / reviewer | 1 / `codex-review` |
27
+ | Review envelope before the native call | marker and exact head present, done summary withheld |
28
+ | Persisted state / verdict count | `approved` / 1 |
29
+ | Stored refs commit equals the fixture head | true |
30
+ | Required marker present in the persisted history | true |
31
+ | Marker SHA-256 | `d7260ff3c4a66feaa053c9a115d8bb0ce0ba3182e54aa06d3db894cf878eb10c` |
32
+ | History SHA-256 | `f085f466c7a62f4c823cf540c42461c00c97c28824068f2c9c4df8e1e18be6c7` |
33
+ | Review attempts / final peer state | 1 / idle |
34
+ | Fixture start / verdict readback, UTC | 2026-11-14 01:28:34.062 / 01:28:55.510 |
35
+
36
+ Read-only SQLite readback found exactly one persisted reviewer verdict for the task. The tool trace was not separately recorded for this run, so the receipt rests on the persisted verdict, its marker and its bound head: a verdict stored through `hub_review` bound to the exact head and the marker means the model called `hub_review` with both, which it could only learn from the accepted plan.
37
+
38
+ ## Isolation and cleanup
39
+
40
+ The fixture used exact-version admission only in its fresh temporary hub home and changed no real machine trust record. The child ran with a clean environment and fresh HOME, CODEX_HOME and TMPDIR. One `auth.json` symlink referenced the configured account; no credential value or personal configuration was read or copied. The run was admitted by `dot admit`.
41
+
42
+ Before and after the run the account's auth metadata fingerprint (filesystem metadata, no contents) was unchanged: SHA-256 `3f2633eabf64c4e9451ac2a370de140eedb2d555ed577b7e3b5518d380eb7e6f`. The auth symlink was removed, `score.ts` still held its synthetic source, the daemon stopped, and a process-table scan for the fixture roots and the 0.169.0 prefix found zero remaining processes. The per-run roots and the prefix copy were removed. Account paths, token values, the marker value and model prose remain outside the repository.
43
+
44
+ ## Admission and limits
45
+
46
+ This receipt and the [model-free receipt](2026-11-14-codex-0169-reviewer-isolation.md) together qualify 0.169.0 for `COMPAT["codex-review"].verified` alongside 0.146.0, 0.163.0, 0.164.0 and 0.166.0. It changes neither attached-Codex compatibility nor the exact-version trust path, runtime proofs or isolation boundaries; every launch still runs each proof.
47
+
48
+ This is one synthetic production-boundary receipt on macOS. It does not establish deployment, native Linux behavior, every review workflow, universal orphan detection, or the effective network and web-search mode in a model turn, neither of which was separately measured. 0.167.0 and 0.167.2 remain unverified.
@@ -0,0 +1,45 @@
1
+ # Pi 1.5.2 model-free compatibility receipt
2
+
3
+ Date: 2026-11-14. Hub task 961 (re-file of hub task 950), Refs #888 and #1447 T6. This repeats the [Pi 1.5.0 receipt](2026-11-03-pi-150-compat.md) for the published `@earendil-works/pi-coding-agent@1.5.2`. Same legs, model-free, no account. The person had already trusted 1.5.2 locally (`ahub status` showed "pi 1.5.2 trusted"); this receipt is what lets the verified set carry it.
4
+
5
+ **Decision: add `1.5.2` to Pi `verified`.** Every leg passed. No range is inferred: the Pi entry still has no `line`, so `1.5.1` and any other version need the person's `ahub agents trust pi <version>`. Version `1.5.1` was not tested and stays refused.
6
+
7
+ ## Identity and isolation
8
+
9
+ - Package: `@earendil-works/pi-coding-agent` 1.5.2, installed from the registry into a private npm prefix with a scratch HOME, cache and temporary directory and empty npm user and global config files, with `--ignore-scripts`. The person's `~/.pi` was not touched by the install.
10
+ - npm integrity: `sha512-mUWI04rqF1Vd/m1q+Ps1XeWsTXEVvRUnsmRa83I3Dzua0Tx5bYS93imeqtIfrXf7PkkaR6ERz+AuQhIJlom5yA==`, read from the installed lockfile and equal to the registry's `dist.integrity`. The package carries no `gitHead`.
11
+ - Native `dist/cli.js` SHA-256: `8189b66abc4f9f431dbb70941dcba690d76d040de1fbfff212886be35a53639d`. This is the same value the 1.4.0 and 1.5.0 receipts record, so the launcher entry file did not change across 1.4.0, 1.5.0 and 1.5.2. The changes are in other files of the package and are exercised by the legs below.
12
+ - Host: macOS arm64, Bun 1.4.4, Node 24.18.1, repository at `ef96fa494689770a594bffdf7d3fd110c633c636`.
13
+ - The producer ran with `env -i` and only `HOME` and `TMPDIR` in a scratch directory plus a `PATH` to the Node and Bun binaries. Each native leg used an empty temporary HOME and `PI_CODING_AGENT_DIR`, a temporary cwd and session directory and invented loopback bridge settings (token `fixture`). No account, token, prompt or inference.
14
+ - Real configuration: SHA-256 of every file under the person's `~/.pi/agent` (excluding sessions, logs, caches, installs and `bin`), the `pi` launcher binaries and the listing of installed Pi releases was taken immediately before and after a second producer run: 20 entries, identical. This bracket covers the Pi side only.
15
+
16
+ ### What the whole-home comparison did and did not show
17
+
18
+ A first, wider comparison (23,622 files, the Pi side plus everything under `~/.qwen`) took about four minutes either side of a producer run and was **not** identical: three files under `~/.qwen` differed (a chat transcript, the month's token-usage file and one file-history entry), with modification times 07:51:37 (the chat transcript and the usage file) and 07:40:02 (the file-history entry) on the host's clock. The producer started at 07:50:40, so the 07:40:02 entry was created during the first scan itself, before the producer ran, and the scan listed it only the second time. Two Qwen ACP servers were running on the host (one for 17 hours). The producer never starts or reads Qwen, sets `HOME` to a scratch directory, and the `~/.pi` entries inside that same comparison were identical, so I attribute the three differences to the running Qwen sessions. I cannot prove that from the comparison alone: the scan was not atomic and the producer was not the only thing running. The tight Pi-only bracket above is the evidence this receipt rests on for `~/.pi`. The 1.5.0 receipt's "9551 entries, identical" claim for both directories was not reproduced here for `~/.qwen`.
19
+
20
+ ## Results
21
+
22
+ | Leg | Result | Evidence |
23
+ | --- | --- | --- |
24
+ | Native identity | pass | `--version` returned exactly `1.5.2`, exit 0, empty stderr; package name and version checked independently. |
25
+ | Real CLI extension load and RPC session identity | pass | `--mode rpc` with the hub extension: `get_state` succeeded with a session id and file, `messageCount` 0; the extension emitted `session_start` and `session_shutdown`. |
26
+ | Installed SDK extension registration | pass | The 1.5.2 `DefaultResourceLoader` and `createAgentSession` loaded this checkout's extension and registered exactly `compat_probe` as the active tool, with no builtin tools. |
27
+ | Managed tool callback and receipt replay | pass | The registered callback was invoked without a prompt and posted to the isolated bridge through the real `PiToolReceipts`; two identical calls returned identical success with one effect. |
28
+ | Failed tool result | pass | The bridge fixture denial returned `failed: true` and the extension returned `isError: true`. |
29
+ | Host permission modes | pass (host fixtures) | `test/permission-modes.test.ts` "Pi mode grants edits once, keeps shell on the console, and ask restores the console path": 1 pass, 12 assertions. |
30
+ | Version admission | pass (host fixtures) | `test/pi-compat.test.ts` and `test/compat.test.ts`: 52 pass, 0 fail, 427 assertions. |
31
+ | Provider requests | pass | Zero requests reached the loopback provider; no prompt was submitted. Native and SDK stderr were empty. |
32
+
33
+ Producer result: `pi 1.5.2 model-free receipt: PASS`, on two runs. The producer is the 1.5.0 one with the version constants and driver file name changed (`pi-152-model-free.ts`, `pi-152-native.mjs`, scratch HOME prefix `ahub-961-`); no assertion was relaxed, and `pi-152-native.mjs` is byte-identical to `pi-150-native.mjs`.
34
+
35
+ ```sh
36
+ bun docs/verification/pi-152-model-free.ts <prefix>/node_modules/.bin/pi <prefix>/node_modules/@earendil-works/pi-coding-agent
37
+ env -u AGENTHUB_HOME -u AGENTHUB_PROJECT_DIR -u AGENTHUB_STATE_DIR bun test test/pi-compat.test.ts test/compat.test.ts
38
+ env -u AGENTHUB_HOME -u AGENTHUB_PROJECT_DIR -u AGENTHUB_STATE_DIR bun test test/permission-modes.test.ts --test-name-pattern 'Pi mode grants'
39
+ ```
40
+
41
+ ## Not verified
42
+
43
+ - Account-backed inference, a model-generated tool request, a real provider's quota behavior and interactive TUI coexistence. The SDK callback leg does not claim model-generated tool dispatch.
44
+ - Linux and Intel macOS. No other Pi release is inferred, including 1.5.1.
45
+ - #1447's live-leg acceptance is not recorded here, so #1447 stays open. #1248's producer gaps stay in #1248.
@@ -0,0 +1,39 @@
1
+ # 0.40.0 release verification
2
+
3
+ This record covers release preparation and source review. It claims no installation, no running-hub upgrade to 0.40.0 and no live TUI launch.
4
+
5
+ ## Candidate
6
+
7
+ Version 0.40.0, prepared from main cdbf10b67 (28 commits since v0.39.0, 14 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.39.0: #1526, #1525, #1524, #1521, #1508, #1520, #1509, #1518, #1519, #1507, #1492, #1505, #1506, #1499, #1503, #1502, #1501, #1500, #1498, #1497, #1491, #1494, #1487, #1489, #1485, #1476, #1474. The release-prepare generator also matched #1473 in a commit subject; it is the issue for PR #1485, not a pull request. The generator was not changed in this release.
12
+
13
+ GitHub reported completed successful checks for the final PR heads of all 27 PRs listed above; skipped optional jobs are not treated as successful full-gate evidence. The public board snapshot reports current approvals matching those heads for #1526, #1525, #1524, #1521, #1508, #1520, #1509, #1518, #1519, #1507, #1492, #1505, #1506, #1503, #1502, #1501, #1500, #1498, #1497, #1491, #1494, #1487, #1489, #1485 and #1474. Detailed hub history was readable for ten of those tasks; the remaining approvals are board-snapshot evidence, not a separately inspected history. The other two PRs have the distinct provenance below.
14
+
15
+ PR #1476 (hub task 933) was approved at `633f73a5f5e7fd552b47d145f8b0bcd348f4a399`, then rebased to merged PR head `26452584fe0dc357609bca84fa2bcaf7edf948d6`. The conductor verified on 2026-11-16 that the history contains no second approval. Both one-commit changes touch the same five files and have identical added and removed lines; their full patch bytes and stable patch ids differ with the rebase context. The rebased head was not re-reviewed. PR #1499 is a Dependabot update with no linked hub task. GitHub review submissions and hub verdicts are separate evidence.
16
+
17
+ PR #1527 was merged after the original candidate was prepared. The board reports approval at its final head `231692f446345003e5078b5bb20a44fb32e9be37`, and GitHub reports successful Ubuntu, macOS and seeded-guard aggregates at that head. One watcher finding remains open and is tracked separately as hub task 981: the draft-deferred macOS aggregate can temporarily be reported failed after a PR becomes ready, before its new aggregate appears. It does not change the merge gate.
18
+
19
+ ## Native acceptance receipts
20
+
21
+ Receipts added under `docs/verification/` since v0.39.0: `docs/verification/2026-11-14-codex-0169-reviewer-isolation.md`, `docs/verification/2026-11-14-codex-0169-reviewer-tool-call.md`, `docs/verification/2026-11-14-pi-152-compat.md`, `docs/verification/2026-11-16-pi-loopback-1447.md`, `docs/verification/pi-152-model-free.ts`, `docs/verification/pi-152-native.mjs`.
22
+
23
+ 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.40.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.
24
+
25
+ ## Document review
26
+
27
+ The stale-document review covered README, security, operations, quickstart, dogfood, SDLC, events, memory, profiles, adding-an-ai-tool, the claude-mem add-on and the adapters, benchmarks, budget, bus, daemon, local-worker, security-review, tasks and tests agent notes. Source changes were compared with each document's declared paths. Corrections cover the 0.40 release facts, CLI output and roadmap R3, Pi dependency preparation, checkpoint fencing, question-answer provenance, event fields and CI run selection. After rebase the reviews were reconciled with #1527 and restamped at `1485f322ca22fc2700110d71d7109992a3c276df`. The CLI help audit compared dispatch, subcommands and flags to the CLI and native entries; it found and corrected omitted ASCII, roster-list and retired pet-window forms. The fresh-docs check is rerun on the final candidate.
28
+
29
+ ## Checks
30
+
31
+ On macOS with Bun 1.4.4, `bun test test/published-protocol-compat.test.ts --timeout 20000` passed 5 tests and 55 assertions after installing both exact-locked published fixtures. The first attempt passed the 0.39.0 N-1 cases but failed the two protocol-floor cases because the 0.25.0 fixture had not yet been installed. This is isolated fixture evidence, not live upgrade or shared-home evidence.
32
+
33
+ Before rebase, with the same help corrections, `bun test test/help.test.ts` passed 31 tests and 21499 assertions. It checks command coverage, existing help forms and flags, per-flag descriptions and examples; it is not a native-account run.
34
+
35
+ The full release check and the release PR's exact-head CI remain separate gates; their results belong to the PR evidence at the candidate head.
36
+
37
+ ## Known gaps, not blocking
38
+
39
+ The published-package fixtures establish the named wire cases, not a live upgrade, shared-home file compatibility or native acceptance. This preparation did not install or run 0.40.0 in the person's environment. Publication, registry readback and the GitHub Release body remain pending the release gates and the person's release consent.
@@ -0,0 +1,39 @@
1
+ # Pi localhost listener decision
2
+
3
+ Hub task 967, Refs #1447 T5b. Decision: no listener grant is shipped on the
4
+ evidence available. Pi's existing Seatbelt profile and external egress policy
5
+ remain unchanged. This is a decision about the tested mechanisms, not a claim
6
+ that every possible mechanism is impossible.
7
+
8
+ ## Evidence
9
+
10
+ The native macOS arm64 experiments from hub task 949 used Bun 1.4.2 and no live
11
+ Pi session, model or account. Their source is preserved at commit
12
+ `ad4ae27118a05bdc6283ba8f6bdd621c2848dee2`; the observations are recorded in
13
+ the T5b issue comment on #1447.
14
+
15
+ - Local `localhost` matchers for bind and inbound allowed a wildcard bind. The
16
+ experiment did not prove that a non-loopback peer could not reach it.
17
+ - Local `localhost` bind with remote `localhost` inbound and outbound refused
18
+ the localhost listener positives. The unrestricted control reached the
19
+ fixture-owned non-loopback interface, but the restricted listener did not
20
+ start. This is not evidence of a safe usable listener.
21
+ - The raw socket egress checks reported kernel refusal for non-loopback egress
22
+ under both the existing and experimental profiles. They do not establish
23
+ inbound isolation.
24
+
25
+ No new native run was made for this decision. In particular, the required
26
+ negative connection from a non-loopback interface to a working restricted
27
+ listener remains unproven. The failed second combination is not retried without
28
+ new evidence.
29
+
30
+ ## Available separate check path
31
+
32
+ For an eligible, non-private accepted task, `hub_check_start` can run permitted
33
+ tests on an exact Git ref in the opt-in isolated container runner. Its receipt
34
+ names the platform and outcome; it is Linux evidence, not proof that a listener
35
+ works or is isolated in Pi's macOS sandbox. Availability depends on configured
36
+ runner admission, and no live Pi receipt is claimed here. See `docs/operations.md`
37
+ for the runner's bounds. Listener-dependent tests remain outside Pi-local
38
+ focused checks until a distinct mechanism supplies the native positive and
39
+ non-loopback denial proof required by T5b.
@@ -0,0 +1,57 @@
1
+ import {mkdtempSync, mkdirSync, readFileSync} from 'node:fs';
2
+ import {join, resolve} from 'node:path';
3
+ import {homedir} from 'node:os';
4
+ import {fileURLToPath} from 'node:url';
5
+ import assert from 'node:assert/strict';
6
+ const launcher=resolve(process.argv[2] ?? join(homedir(),'.pi/agent/bin/pi'));
7
+ const packageRoot=resolve(process.argv[3] ?? join(homedir(),'.pi/agent/install/releases/1.5.2/node_modules/@earendil-works/pi-coding-agent'));
8
+ const extension=fileURLToPath(new URL('../../src/pi/extension.ts',import.meta.url));
9
+ const driver=fileURLToPath(new URL('./pi-152-native.mjs',import.meta.url));
10
+ import {PiToolReceipts} from '../../src/pi/tool-receipts.ts';
11
+ const home=mkdtempSync('/tmp/ahub-961-pi-native-home.'); mkdirSync(join(home,'agent'));
12
+ const pkg=JSON.parse(readFileSync(join(packageRoot,'package.json'),'utf8'));
13
+ assert.equal(pkg.name,'@earendil-works/pi-coding-agent');assert.equal(pkg.version,'1.5.2');
14
+ const version=Bun.spawn([launcher,'--version'],{cwd:home,env:{HOME:home,PATH:process.env.PATH!,PI_CODING_AGENT_DIR:join(home,'agent')},stdin:'ignore',stdout:'pipe',stderr:'pipe'});
15
+ const versionTimer=setTimeout(()=>version.kill(),10000);
16
+ const [versionCode,versionOut,versionErr]=await Promise.all([version.exited,new Response(version.stdout).text(),new Response(version.stderr).text()]);clearTimeout(versionTimer);
17
+ assert.equal(versionCode,0);assert.equal(versionOut.trim(),'1.5.2');assert.equal(versionErr,'');
18
+ const ledger=new PiToolReceipts(join(home,'hub.db'));
19
+ let effects=0, providers=0; const events:any[]=[];
20
+ const bridge=Bun.serve({hostname:'127.0.0.1',port:0,async fetch(req){
21
+ const url=new URL(req.url); if(req.headers.get('authorization')!=='Bearer fixture')return new Response('forbidden',{status:403});
22
+ if(url.pathname==='/commands') {await Bun.sleep(25);return Response.json({command:null});}
23
+ const body=await req.json() as any;
24
+ if(url.pathname==='/event'){events.push(body.type);return Response.json({ok:true});}
25
+ if(url.pathname==='/budget')return Response.json({decisions:[]});
26
+ if(url.pathname==='/tool') {
27
+ const text=await ledger.execute(body.sessionId,body.toolCallId,body.name,body.args,async()=>{
28
+ if(body.args.value==='deny')return 'error: fixture permission denied';
29
+ effects++;return 'fixture success';
30
+ });
31
+ return Response.json({text,failed:text.startsWith('error:')});
32
+ }
33
+ providers++;return new Response('provider forbidden',{status:500});
34
+ }});
35
+ const env={HOME:home,PATH:process.env.PATH!,PI_CODING_AGENT_DIR:join(home,'agent'),HUB_EXTENSION:extension,PI_COMPAT_PACKAGE:packageRoot,
36
+ AGENTHUB_PI_BRIDGE_URL:`http://127.0.0.1:${bridge.port}`,AGENTHUB_PI_BRIDGE_TOKEN:'fixture',AGENTHUB_PI_OWNER_TOKEN:'fixture',
37
+ AGENTHUB_PI_TOOLS:JSON.stringify([{name:'compat_probe',description:'model-free fixture',parameters:{type:'object',properties:{value:{type:'string'}},required:['value']}}])};
38
+ const child=Bun.spawn(['node',driver],{cwd:home,env,stdin:'ignore',stdout:'pipe',stderr:'pipe'});
39
+ const timer=setTimeout(()=>child.kill(),10000);
40
+ const [code,stdout,stderr]=await Promise.all([child.exited,new Response(child.stdout).text(),new Response(child.stderr).text()]);clearTimeout(timer);
41
+ console.log(JSON.stringify({code,stdout,stderr,effects,providers,events,isolatedHome:home}));
42
+ const native=Bun.spawn([launcher,'--mode','rpc','--provider','agent-hub-local','--model','fixture','--no-builtin-tools','--no-skills','--no-prompt-templates','--no-extensions','--extension',env.HUB_EXTENSION,'--session-dir',join(home,'native-sessions')],{
43
+ cwd:home,env:{...env,AGENTHUB_PI_RELAY_URL:`http://127.0.0.1:${bridge.port}/v1`,AGENTHUB_PI_RELAY_TOKEN:'fixture',AGENTHUB_PI_MODELS:JSON.stringify([{id:'fixture',name:'fixture'}])},stdin:'pipe',stdout:'pipe',stderr:'pipe'});
44
+ native.stdin.write(JSON.stringify({id:'probe',type:'get_state'})+'\n');
45
+ const nativeTimer=setTimeout(()=>native.kill(),10000);
46
+ let wire='';for await(const chunk of native.stdout){wire+=new TextDecoder().decode(chunk);if(wire.includes('"command":"get_state"')){native.kill();break;}}
47
+ await native.exited;clearTimeout(nativeTimer);const nativeErr=await new Response(native.stderr).text();
48
+ console.log(JSON.stringify({nativeRpc:wire,nativeStderr:nativeErr,providers,events}));
49
+ bridge.stop(true);await ledger.close();
50
+ assert.equal(code,0);assert.equal(stderr,'');
51
+ const result=JSON.parse(stdout);
52
+ assert.equal(result.extension,'loaded');assert.equal(result.first.isError,false);assert.deepEqual(result.first,result.replay);assert.equal(result.denied.isError,true);
53
+ assert.equal(effects,1);assert.equal(providers,0);assert.equal(nativeErr,'');
54
+ const state=wire.trim().split('\n').map(line=>JSON.parse(line)).find(item=>item.command==='get_state');
55
+ assert.equal(state?.success,true);assert.equal(state.data.messageCount,0);assert.ok(state.data.sessionId);assert.ok(state.data.sessionFile);
56
+ assert.ok(events.includes('session_start'));assert.ok(events.includes('session_shutdown'));
57
+ console.log('pi 1.5.2 model-free receipt: PASS');
@@ -0,0 +1,21 @@
1
+ import { pathToFileURL } from 'node:url';
2
+ const { createAgentSession, DefaultResourceLoader, SessionManager, SettingsManager } = await import(pathToFileURL(`${process.env.PI_COMPAT_PACKAGE}/dist/index.js`).href);
3
+ const cwd = process.env.HOME;
4
+ const settingsManager = SettingsManager.create(cwd, process.env.PI_CODING_AGENT_DIR);
5
+ const loader = new DefaultResourceLoader({cwd, agentDir:process.env.PI_CODING_AGENT_DIR, settingsManager,
6
+ noExtensions:true, additionalExtensionPaths:[process.env.HUB_EXTENSION], noSkills:true, noPromptTemplates:true, noThemes:true});
7
+ await loader.reload();
8
+ const {session, extensionsResult} = await createAgentSession({cwd, agentDir:process.env.PI_CODING_AGENT_DIR,
9
+ resourceLoader:loader, settingsManager, sessionManager:SessionManager.create(cwd, `${cwd}/sessions`), noTools:'builtin'});
10
+ if (extensionsResult.errors.length) throw new Error(JSON.stringify(extensionsResult.errors));
11
+ await session.bindExtensions({mode:'rpc'});
12
+ const tool = session.extensionRunner.getAllRegisteredTools().find(t=>t.definition.name==='compat_probe');
13
+ if (!tool) throw new Error('hub extension tool not registered');
14
+ const invoke = async (id, args) => tool.definition.execute(id, args, new AbortController().signal);
15
+ const first = await invoke('same-call', {value:'fixture'});
16
+ const replay = await invoke('same-call', {value:'fixture'});
17
+ const denied = await invoke('denied-call', {value:'deny'});
18
+ console.log(JSON.stringify({extension:'loaded',first,replay,denied,tools:session.getActiveToolNames()}));
19
+ await session.extensionRunner.emit({type:'session_shutdown'});
20
+ session.dispose();
21
+ process.exit(0);