@junghanacs/entwurf 0.36.0 → 0.36.1

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.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,200 @@ All notable changes to this project will be documented here. Format follows [Kee
4
4
 
5
5
  ## Unreleased
6
6
 
7
+ ## 0.36.1 - 2026-10-14
8
+
9
+ ### ACP
10
+
11
+ - **Claude ACP closure (#128):** adapter `0.85.1` → `0.90.0`, shared direct/child ACP wire SDK
12
+ `1.6.0` → `1.8.0`, Agent SDK `0.3.286` → `0.3.296`; the shared-wire contract is retained and
13
+ Entwurf adds no new policy. Two no-prompt readbacks against the installed 0.90.0 found the
14
+ three curated ids answering exactly as on 0.85.1, so the set-model alias rows are unchanged.
15
+ The first followed only the production launch and overlay seam; the second also built every
16
+ session with the production session meta under the shipped defaults. Neither sent a prompt or
17
+ saw a model-turn update, but they do not prove zero API calls, measure the billing rail or an
18
+ operator's own settings, or certify a 0.90.0 prompt turn. The first run's two operating
19
+ observations, both with the cause unmeasured, are in the ROADMAP ledger.
20
+ - **ACP gates no longer touch the operator's Claude overlay (#128).** Five offline gates that
21
+ drive the compiled turn loop now sandbox HOME, XDG and the pi agent dir before importing the
22
+ backend; a tripwire and a paired mutant hold that.
23
+
24
+ ### Codex
25
+
26
+ - **The Codex fresh-call smoke reads app-server socket ownership from the kernel (#128).** It
27
+ used to accept the named app-server when its argv spelled `--listen` for the default control
28
+ socket. It now takes the physical endpoint the production socket classifier resolves, and
29
+ requires exactly one process in the named PID's own subtree (the named PID, bound to the start
30
+ time read when its identity was checked, or one of its descendants) to hold that socket's
31
+ kernel LISTEN inode, and a bounded second read must agree. Anything else fails closed as
32
+ not-owned or indeterminate. The 0.36.1 LIVE run exercised it once on an owned app-server
33
+ started with the explicit `--listen` wrapper (below); a vendor-managed daemon is still not
34
+ admitted by it.
35
+
36
+ ### pi-durable
37
+
38
+ - **The pi-durable fresh-call smoke waits for its doorbell turn to end.** It took pd's native
39
+ snapshot as soon as Pi's relay reached the fixture, then required the doorbell submission to
40
+ be `done`. A pi-durable input stays `placed` while the run that consumed it is active and turns
41
+ `done` only when that run ends, so a slow final generation read as a failed admission. The
42
+ 0.36.1 LIVE run caught exactly that (submission `placed`, the last generation task still
43
+ `running`, every delivery receipt green). The smoke now waits, with its existing bounded
44
+ `until`, for this message's submission to settle (`done` or `unanswered`) before the snapshot,
45
+ and still requires `done`. Smoke-only; no pi-durable runtime byte changes.
46
+
47
+ ### Release boundary and verification
48
+
49
+ - **Scope.** A core patch over `v0.36.0`: the four #128 checkpoints `fdf8c3d`, `3da44be`,
50
+ `3e4f52f` and `3242922` above, the handoff `b043833`, and the smoke fix `91cc080`. The
51
+ pi-durable runtime, the Herdr manifest (0.36.0), its host pin (Herdr 0.9.4) and the plugin
52
+ implementation are unchanged; the Herdr runtime's acquisition source does change (the carrier
53
+ below). #142 is not in it. Still open in #128 and not claimed here: admission of a
54
+ vendor-managed Codex daemon, the Copilot 1.0.97 cell, agy 1.3.1 (not certified), the OMP
55
+ 18.10.4 doctors, and the remaining native cells.
56
+ - **Local evidence before this preparation is focused, not a whole pass.** Each affected
57
+ qualification wave (PARTIAL) measured its own checkpoint, each with a green control, and none
58
+ is carried to another. The Codex socket-ownership bytes killed 150/150 in the
59
+ `check-mux-fresh-call` group; 825 of the 975 committed claims were not run. The dependency move
60
+ killed 4/4 in `check-dep-versions`; 971 of 975 were not run. The gate isolation killed 45/45 in
61
+ five groups (prompt lifecycle 15, usage accounting 12, stream hooks 10, stop reason 7, session
62
+ reuse 1); 931 of the 976 committed claims were not run. The qualification body has not run on
63
+ any of them.
64
+ - **Unpublished candidate carrier.** As in 0.36.0, `plugins/herdr/runtime-lock.json`
65
+ temporarily names the closed `herdr-checkout` source: an npm-source lock must agree with the
66
+ checkout's core version, and 0.36.1 has no published integrity yet. The Herdr manifest stays
67
+ 0.36.0. Operating effect: a Herdr plugin installed from `--ref main` while this carrier stands
68
+ acquires this cut's checkout runtime, not npm 0.36.0. The `v2026.10.14-herdr.0.36.0` tag and
69
+ the npm 0.36.0 bytes are unchanged, and moving a host between the two sources needs an
70
+ explicit deactivate/activate. Re-pinning the registry bytes is a separate, verified commit
71
+ after the operator publishes core 0.36.1.
72
+ - **The local FULL is RED, and its Herdr cell is CI's.** `pnpm run check:full` ran once on the
73
+ frozen candidate (642 s, exit 1). `check:core` passed, `check:hermetic` passed every step but
74
+ its last, and `check-herdr-sandbox` failed its version boundary: the pin is Herdr 0.9.4 and
75
+ the host binary was 0.9.3. That cell is not to run locally (it reads the operator's own
76
+ panes), and the aggregate reached it unnoticed; before failing it executed the host binary's
77
+ `--version` once and read no pane. `check:package`, which never ran, then passed alone
78
+ (163 s; 601 files in the dry-run pack). By the operator's decision for this cut only, the
79
+ sandbox cell is owed to the prepared SHA's CI, which runs it on the digest-pinned Herdr 0.9.4
80
+ and must pass there; the exception is not inherited by a later cut. Logs: FULL
81
+ `29b08c71e3d3c92fecb936f5611838088d35b8c5566f4dde99e03cc4b76b0078`, package
82
+ `937e69eeb551bcd0aea049550185e1f6d9f24d917f28099f768928554a16ae84`.
83
+ - **LIVE, taken step by step, not as `release-gate --cut`.** The gate's first MUST step re-runs
84
+ `check:full`, so it would have reached the same local Herdr cell. By the operator's decision for
85
+ this cut, the gate's other 23 MUST steps ran in its own order, command, environment and
86
+ working directory (`run.sh` 7027-7127), stopping at the first red, with no static step. The
87
+ first run passed steps 1-22 and failed `smoke-pi-durable-fresh-live` on the race fixed above.
88
+ The fixed smoke then passed alone on the same candidate (36 assertions, 66 s); steps 1-22 are
89
+ reused because the fix is not an input to them. **MUST 23/23 PASS (22 + the fixed step 23),
90
+ SKIP 0**. The advisory BEHAVIOR step was not run. Among them: the 12 ACP smokes ran the first
91
+ prompt turns on the 0.90.0 driver, and `smoke-codex-fresh-live` passed 66 assertions against
92
+ an app-server started for this cut in its own tmux session (pid 2345801, the named PID's child
93
+ 2345861 holding the kernel LISTEN inode) with `gpt-5.6-luna` and `openai-codex/gpt-5.6-luna`.
94
+ The gate session held no ambient identity carrier, and the candidate fingerprint was the same
95
+ before and after each run. Scratch `/tmp/entwurf-release-gate-0.36.1.1aZK83`. This is local
96
+ LIVE evidence, not a release-gate verdict and not the exact CI.
97
+ - **Exact CI owes the whole floor.** The prepared SHA's exact CI (the four required jobs, the
98
+ qualification body, and `check-herdr-sandbox` on pinned Herdr 0.9.4) is the next checkpoint and
99
+ is not presumed PASS.
100
+ - **Publication boundary.** No make artifact, core tag, GitHub Release or npm publication
101
+ is claimed; they wait for the exact CI, the make decision and the operator.
102
+
103
+ ## v2026.10.14-herdr.0.36.0 — Herdr Entwurf plugin 0.36.0
104
+
105
+ A separate Herdr plugin snapshot, not another core release: core package 0.36.0 and
106
+ its `v0.36.0` tag remain unchanged. The operator has published the core to npm.
107
+
108
+ ### Herdr plugin
109
+
110
+ - **Re-pin the published core 0.36.0.** `plugins/herdr/runtime-lock.json` names npm
111
+ `@junghanacs/entwurf@0.36.0` with the registry's measured sha512
112
+ (`sha512-3aPk69RmAF35x…244UwQ==`). The plugin manifest moves 0.35.1 → 0.36.0;
113
+ admission remains Herdr >= 0.9.0 and the one-build/one-pane/Linux shape is unchanged.
114
+ - **The measured Herdr moves to 0.9.4.** `scripts/fixtures/herdr-supply.json` pins
115
+ v0.9.4 (`7e26bad9`), protocol 22, with both Linux asset digests taken from the
116
+ immutable release and named by its attestation. On aarch64 the pin rests on a
117
+ private CLI baseline: version, protocol 22, 18 `integration status` rows unchanged
118
+ from 0.9.3, pi (v9) and claude (v10) integrations seeded by 0.9.3 reading `current`
119
+ and reinstalling byte-identically, and a residue-free `server stop`. The full
120
+ `check-herdr-sandbox` has not run at this pin on either architecture; its first run
121
+ is this snapshot's CI. The x86_64 asset is recorded as not yet executed.
122
+ - **Herdr 0.9.4 changes how plugins are installed.** It builds each install or update
123
+ in a new managed installation directory, keeps the previous one until no server uses
124
+ it, and adds `herdr plugin update`. The plugin README now says so. The Entwurf runtime
125
+ and harness wiring live outside the checkout, so an update should leave an activated
126
+ host working; that is not yet measured.
127
+
128
+ ### Source-specific verification
129
+
130
+ - Registry metadata reports version/latest 0.36.0, repair 0.12.8-repair.1. The downloaded
131
+ tarball is 11121634 bytes, SHA256
132
+ `7478acd01828280ccb989c4eeb230ae5238bddeeb791f6caa209a4fca2e24a0a`, byte-identical to
133
+ the preserved accepted core candidate; independently computed sha512 equals
134
+ `dist.integrity`. A sandboxed `pi install npm:@junghanacs/entwurf@0.36.0` resolved the
135
+ ACP bridge inside the sandbox and listed the curated `entwurf` models.
136
+ - **Focused gates on the branch.** On aarch64, with the digest-checked Herdr 0.9.4 first
137
+ on `PATH`, nine focused gates passed: `check-herdr-supply` (11 assertions),
138
+ `check-herdr-plugin` (49), `check-herdr-plugin-profile` (14), `check-herdr-plugin-build`
139
+ (21), `check-herdr-runtime-bootstrap` (31), `check-herdr-activation` (33),
140
+ `check-herdr-placement` (25), `check-herdr-fresh-call` (45) and `check-gate-manifests`.
141
+ That last one validated 971 committed mutants across 72 lanes and executed none of them.
142
+ The scripts typecheck fence was clean.
143
+ - **Receipt binding tightened, then re-checked.** Review found that the supply gate's
144
+ receipt check accepted a `herdr 0.9.40` receipt for the 0.9.4 pin, because it matched a
145
+ substring. It now requires the receipt to begin with the exact version token. Nine
146
+ in-memory stimuli against the gate's own check then returned the expected verdicts. They
147
+ include that prefix-version counterexample, which is refused, and a synthetic future x86_64
148
+ positive, which is not execution evidence. The supply gate, the fence and
149
+ `check-gate-manifests` were re-run green. The supply group's qualification PARTIAL killed
150
+ 11/11 mutants with a green control. The other 960 committed mutants did not run, so this is
151
+ not qualification of the snapshot.
152
+ - **The npm runtime swap against the real registry.** These cells used the production
153
+ runtime helper against the real registry, in sandboxed user roots.
154
+ - Seeding: the 0.35.1 runtime came from its own committed lock and package metadata.
155
+ - Swap: 0.35.1 → 0.36.0 took one acquisition. The cached 0.36.0 tarball's sha512 equals
156
+ the lock. Its sha256 `7478acd0…` equals the ready journal's observed digest and the
157
+ accepted core candidate.
158
+ - Journals: the `installing` journal carried the 0.35.1 identity as `previousRuntime`;
159
+ the `runtime-ready` journal carries `previousRuntime: null`.
160
+ - Last-good tree: when acquisition began, the 0.35.1 tree was still at the active address.
161
+ That it stays there until the candidate verifies comes from the helper's source order
162
+ (write `installing`, acquire and verify in staging, then swap). The run observed only
163
+ the start of that window.
164
+ - Torn swap: a manually seeded one (the active tree moved to the backup address; not a
165
+ killed process or power loss) was restored before acquisition and reported
166
+ `recovered: torn-swap`.
167
+ - Re-request: an exact re-request acquired nothing and left journal and tree
168
+ byte-identical.
169
+ - Removal: the owned removal reclaimed cache, runtime and journal.
170
+ - Not certified by these cells: Herdr's install/update relocation, harness wiring, the
171
+ installed CLI's deactivate path, a model turn, or recovery from a real kill.
172
+ - Pending, and not claimed here:
173
+ - the pushed SHA's four-job CI, with the full `check-herdr-sandbox` and the qualification
174
+ body (971 mutants);
175
+ - the public-ref install/use/update/deactivate journey on Herdr 0.9.4, including whether
176
+ an activated runtime survives a plugin update.
177
+
178
+ ### Publication checkpoint
179
+
180
+ Recorded after the snapshot, as docs only; no Herdr plugin byte, manifest or pin changes with it.
181
+
182
+ - **Publication checkpoint for `v2026.10.14-herdr.0.36.0`, measured at its commit `9f33dd1`
183
+ before the snapshot was published.** The snapshot's push CI 38479767989 passed all four jobs
184
+ and the official exact-SHA oracle. Its check job verified the pinned x86_64 Herdr 0.9.4 digest
185
+ before execution; `check-herdr-sandbox` passed 12 assertions on private Herdr 0.9.4; the
186
+ qualification body killed 971/971. On Herdr 0.9.4 in a clean aarch64 container, the unchanged
187
+ `smoke-herdr-raw-install-live --ref main` passed at that commit. A driver-level journey then
188
+ went from the public `v2026.10.13-herdr.0.35.1` snapshot on Pi 1.1.0, through a pinned Pi
189
+ upgrade to 1.2.0, to a version-changing cross-ref reinstall of the 0.36.0 plugin (`herdr
190
+ plugin install … --ref main`) under a private Herdr server, and passed 10/10: wiring entries
191
+ unchanged; a session born before the reinstall kept its process, garden id and control socket;
192
+ a session was born after it; `herdr plugin update` at that same ref was only an
193
+ already-up-to-date no-op; and deactivate removed the owned runtime, cache, ledger and wiring
194
+ entries. On a fixed Pi 1.2.0 the 0.35.1 snapshot refuses by its own range: 0.35.1 and 0.36.0
195
+ accept disjoint Pi ranges. Not certified: a session's MCP or model continuity, `pi update
196
+ self`, a host upgrade, a `plugin update` that finds a new commit, a herdr-pane row, an x86_64
197
+ container, the tag as `--ref`, or when Herdr reclaims a retained previous installation. The
198
+ supply manifest's x86_64 `executed: false` remains the preparation-time declaration; flipping
199
+ it is a separate change.
200
+
7
201
  ## 0.36.0 - 2026-10-13
8
202
 
9
203
  ### pi-durable
package/DELIVERY.md CHANGED
@@ -504,6 +504,8 @@ ENTWURF_CODEX_FRESH_PI_MODEL=<pi-model> \
504
504
  ./run.sh smoke-codex-fresh-live
505
505
  ```
506
506
 
507
+ The gate reads that ownership from the kernel, not from argv (#128). It takes the endpoint `checkCodexSocketFile` verified, finds its one LISTEN row in the named process's own socket table, and requires exactly one process in the named PID's own subtree to hold that inode — and still hold it on a bounded second read of that holder's fds, with every walked pid's parent and start time unchanged and the named PID still the process whose uid, argv and environment were checked (`scripts/lib/codex-socket-listener.ts`). A wrapper whose child listens (the pnpm `codex.js` shape measured at the 0.36.0 cut) and a listener started with the vendor-default `--listen unix://` are both read as what they are; a subtree that holds no fd on the inode is not-owned, and zero or several rows, several holders, an unreadable entry, or a pid, parent, fd or row that moved between reads is indeterminate. Either is a FAIL. A positive is only this ownership fact: it does not admit a vendor-managed daemon as an operator shape, and it does not satisfy the separate A ≠ S seat precondition.
508
+
507
509
  This is the intended gate entrypoint, not acceptance by command name. The accepted receipt above
508
510
  has a fixture only collecting evidence: a real visible record-backed Pi opens Codex from outside the
509
511
  home, and the later exact callback and bidirectional delivery receipts close the topology claim.
package/VERIFY.md CHANGED
@@ -106,7 +106,7 @@ that moved out of `scripts/` and into a file beside its subject would otherwise
106
106
 
107
107
  > **The herdr rail is an on-demand axis until it has run.** `smoke-herdr-fresh-call-live` opens a real caller inside a real herdr pane, has it invoke the PUBLIC `entwurf_fresh_call`, and reads the child's nonce callback — the one axis no deterministic gate reaches, since the rail is selected from the caller's own process environment. **The release aggregate does not yet require the herdr rail**: herdr is optional (a cut on a host without it must not block), and first evidence precedes promotion — a rail whose first acceptance run is days old has not earned a place in the gate that blocks every cut. Run it directly with `LIVE=1 ./run.sh smoke-herdr-fresh-call-live` whenever a cut changes herdr rail code, and promote it to a MUST only after the axis has a run history to point at. Without `LIVE=1`, or without herdr/pi/claude on PATH, it reports protocol SKIP — never a pass.
108
108
 
109
- > **The plugin's FIRST USER PATH is its own on-demand axis, and an npm acquisition receipt holds only for the ref it ran on (#118 홉 1).** Every other herdr gate proves the plugin against a source this repository controls: `check-herdr-plugin-build` drives a stub, and `smoke-herdr-plugin-build-live` redirects the product remote to a local bare clone with git `insteadOf` and asserts `identity.kind === "herdr-checkout"`. npm has been the production authority class since `dd84ac0`; the 0.30.0 follow-up re-pinned `@junghanacs/entwurf@0.30.0` with its published sha512 after the candidate windows rode `herdr-checkout` (`8b92e09`), and the 0.30.1 preparation rode that closed verification carrier again without inventing a registry integrity. The plugin snapshot `v2026.10.9-herdr.0.34.0` pinned the published `@junghanacs/entwurf@0.34.0` with its measured sha512 (#132); 0.31–0.33 were never pinned. The 0.34.1 preparation rode the closed `herdr-checkout` verification carrier again without inventing a registry integrity, and the snapshot `v2026.10.9-herdr.0.34.1` re-pins the published `@junghanacs/entwurf@0.34.1` with its measured sha512 (#135). The 0.34.2 preparation rode the same carrier, and the snapshot `v2026.10.11-herdr.0.34.2` re-pins the published `@junghanacs/entwurf@0.34.2` with its measured sha512 (#136). The source re-proof has separate dated npm rows: 2026-09-23 public `main=113ca53`, plugin 0.5.0, runtime 0.25.0 (CHANGELOG 0.25.1), and the 0.30.0 re-pin accepted at public `506c46f` in the [#126 thread](https://github.com/junghan0611/entwurf/issues/126). Neither certifies the 0.34.0 registry acquisition. That pin's real-npm swap / torn-swap recovery was measured locally on 2026-10-09 by driving the registry-shipped `scripts/herdr-runtime.mjs` (byte-equal to this checkout's) with its own npm acquisition: a 0.33.0 → 0.34.0 swap, and the same upgrade torn between its two renames then resumed, where the last-good 0.33.0 tree was restored before 0.34.0 was acquired again. Both ended `runtime-ready` at observed digest `sha256-e9d995ff…`, the accepted 0.34.0 artifact. That local receipt is recorded in the [#132 thread](https://github.com/junghan0611/entwurf/issues/132); it covers runtime recovery, not this smoke's cells. This smoke's public-ref acceptance of the 0.34.0 pin was measured locally at `--ref main`: PASS at resolved `b5d15d8` and again at the docs follow-up `8ed4d1a`, each acquiring `kind=npm @junghanacs/entwurf@0.34.0` — a main-ref receipt, not a tag-ref, native or full-Herdr claim. The 0.34.1 re-pin's npm-source rows — swap / torn-swap recovery, this smoke at a public ref, and the package consumer — are its own, recorded with that pin and never inherited from 0.34.0; checkout candidate evidence does not transfer. `LIVE=1 ./run.sh smoke-herdr-raw-install-live [--ref <REF>]` fills that row in a clean `node:24` container with no socket, config, cache or repo mounted, no `insteadOf`, the public remote spelled as a user would type it, and pi / herdr / Claude Code installed in the IMAGE BUILD as scaffolding (Hard Rule 17 — the product face begins at `herdr integration install pi`). herdr itself comes from `scripts/install-herdr-ci.sh` against `scripts/fixtures/herdr-supply.json`, so no version or digest lives here. `--ref` defaults to `main` rather than a pinned SHA because receipt (a) is defined as what a user gets today; the resolved commit is printed, so the receipt stays exact. It takes a REMOTE REF and not an arbitrary commit — measured on herdr 0.9.1, `--ref <sha>` fails as `couldn't find remote ref`, because the checkout fetches by name — so a candidate is addressed by its branch and pinned by the resolved commit the gate prints. **Its first question is a measurement, not an assumption:** herdr registers a plugin through a running server and falls back to `persist_plugin_offline` only on a connection error (`src/cli/plugin.rs:914-981,1016-1021` @ `c77af189`, 0.9.0 source), and a container has no server. The 2026-09-23 PASS installed with no server on the 0.9.1 binary `113ca53`'s `herdr-supply.json` pins, so that install path worked on 0.9.1 — inferred from the PASS, not a direct observation of the fallback branch; a later "no" on another herdr is #118 investigation output rather than a completion. `--yes` is always passed so a non-interactive exit 2 (`:189`) can never be misread as a missing server. **At a ref whose lock names `herdr-checkout` the acquisition axis reports a NAMED SKIP rather than a red, and the rest of the journey still runs.** That lock is the candidate carrier a cut legitimately sits on — 0.23.0 was tagged that way and `dd84ac0` pinned npm afterwards — so a red there would report a broken install when what is true is that the ref does not lock npm. What is asserted at BOTH lock kinds is that the runtime came from the source the ref locks, and the package name is read from the checkout manifest rather than the lock, because a `herdr-checkout` lock carries no `name` (`herdr-runtime.mjs:317-328`) and joining `undefined` throws instead of failing an assertion. **Cells [6]–[9] carry it past the install into the USE path (#118 H1-4/H1-5).** An install is not a use, so the same container then runs what those bytes became: the compiled bridge entry, the three `REQUIRED_BINS` as executables, and a real `entwurf check-bridge` printing its exact eight-verb set — the installed-runtime row below, measured rather than inferred from the bootstrap's refusal to install without them. Then the pi that this plugin WIRED is started with no `-e` and no `--no-extensions`, because the subject is the wiring and not this checkout: one `get_state` in `--mode rpc` costs zero tokens and needs no provider argument (a bogus `--provider` exits 1 before session_start; omitting the pair lets pi resolve the default the extension itself registers), and while that session is alive the cell reads its V3 record, its gardenId-keyed control socket, and the installed `entwurf peer-facts` reporting it `alive`. The plugin's own status fan is then driven with NEITHER side stubbed, in both states a user can be in: with no herdr server it must name `herdr-agent-list-failed` and go red rather than draw an empty table, and under a headless `herdr server` — scaffolding for that second read only, stopped again before the teardown — it exits 0 and COUNTS the citizen as `unobserved` instead of dropping it. Last, the shipped `entwurf herdr-plugin-deactivate` runs from the installed bin, deletes the runtime it is executing from, and the plugin reinstalls onto the host it fully left — the deactivation row, on the npm source. **What these cells still do not close:** swap / torn-swap recovery on the npm source, the package-consumer proof, and the fan drawing a citizen as a ROW — that needs `placement.kind === "herdr-pane"`, so the pi session must live in a herdr pane a session reference joins, and a headless container has no panes. **This smoke carries no test beside behavior and no mutant**, and that is a property of its class rather than an omission: it is a real-live container journey whose oracle is the container's own end state, so there is no pure seam to assert against and nothing a source mutation could kill deterministically. Like the other two herdr LIVE lanes it is **on-demand and not an aggregate MUST** — herdr is optional, a cut on a host without it must not block, and first evidence precedes promotion. Without `LIVE=1`, or without a usable Docker daemon, it reports a named SKIP; `ENTWURF_REQUIRE_DOCKER=1` turns the Docker absence red. Neither skip is a pass.
109
+ > **The plugin's FIRST USER PATH is its own on-demand axis, and an npm acquisition receipt holds only for the ref it ran on (#118 홉 1).** Every other herdr gate proves the plugin against a source this repository controls: `check-herdr-plugin-build` drives a stub, and `smoke-herdr-plugin-build-live` redirects the product remote to a local bare clone with git `insteadOf` and asserts `identity.kind === "herdr-checkout"`. npm has been the production authority class since `dd84ac0`; the 0.30.0 follow-up re-pinned `@junghanacs/entwurf@0.30.0` with its published sha512 after the candidate windows rode `herdr-checkout` (`8b92e09`), and the 0.30.1 preparation rode that closed verification carrier again without inventing a registry integrity. The plugin snapshot `v2026.10.9-herdr.0.34.0` pinned the published `@junghanacs/entwurf@0.34.0` with its measured sha512 (#132); 0.31–0.33 were never pinned. The 0.34.1 preparation rode the closed `herdr-checkout` verification carrier again without inventing a registry integrity, and the snapshot `v2026.10.9-herdr.0.34.1` re-pins the published `@junghanacs/entwurf@0.34.1` with its measured sha512 (#135). The 0.34.2 preparation rode the same carrier, and the snapshot `v2026.10.11-herdr.0.34.2` re-pins the published `@junghanacs/entwurf@0.34.2` with its measured sha512 (#136). The source re-proof has separate dated npm rows: 2026-09-23 public `main=113ca53`, plugin 0.5.0, runtime 0.25.0 (CHANGELOG 0.25.1), and the 0.30.0 re-pin accepted at public `506c46f` in the [#126 thread](https://github.com/junghan0611/entwurf/issues/126). Neither certifies the 0.34.0 registry acquisition. That pin's real-npm swap / torn-swap recovery was measured locally on 2026-10-09 by driving the registry-shipped `scripts/herdr-runtime.mjs` (byte-equal to this checkout's) with its own npm acquisition: a 0.33.0 → 0.34.0 swap, and the same upgrade torn between its two renames then resumed, where the last-good 0.33.0 tree was restored before 0.34.0 was acquired again. Both ended `runtime-ready` at observed digest `sha256-e9d995ff…`, the accepted 0.34.0 artifact. That local receipt is recorded in the [#132 thread](https://github.com/junghan0611/entwurf/issues/132); it covers runtime recovery, not this smoke's cells. This smoke's public-ref acceptance of the 0.34.0 pin was measured locally at `--ref main`: PASS at resolved `b5d15d8` and again at the docs follow-up `8ed4d1a`, each acquiring `kind=npm @junghanacs/entwurf@0.34.0` — a main-ref receipt, not a tag-ref, native or full-Herdr claim. The 0.34.1 re-pin's npm-source rows — swap / torn-swap recovery, this smoke at a public ref, and the package consumer — are its own, recorded with that pin and never inherited from 0.34.0; checkout candidate evidence does not transfer. The 0.36.0 re-pin's public-ref row was measured on Herdr 0.9.4 at `--ref main`: PASS at resolved `9f33dd1`, acquiring `kind=npm @junghanacs/entwurf@0.36.0` at the accepted digest — a main-ref receipt, not a tag-ref claim. Its version-changing cross-ref reinstall (`herdr plugin install … --ref main` over the `v2026.10.13-herdr.0.35.1` installation) across a pinned Pi upgrade was a driver-level journey recorded in that snapshot's release notes, not a row of this smoke; `herdr plugin update` there was measured only as a same-ref already-up-to-date no-op. `LIVE=1 ./run.sh smoke-herdr-raw-install-live [--ref <REF>]` fills that row in a clean `node:24` container with no socket, config, cache or repo mounted, no `insteadOf`, the public remote spelled as a user would type it, and pi / herdr / Claude Code installed in the IMAGE BUILD as scaffolding (Hard Rule 17 — the product face begins at `herdr integration install pi`). herdr itself comes from `scripts/install-herdr-ci.sh` against `scripts/fixtures/herdr-supply.json`, so no version or digest lives here. `--ref` defaults to `main` rather than a pinned SHA because receipt (a) is defined as what a user gets today; the resolved commit is printed, so the receipt stays exact. It takes a REMOTE REF and not an arbitrary commit — measured on herdr 0.9.1, `--ref <sha>` fails as `couldn't find remote ref`, because the checkout fetches by name — so a candidate is addressed by its branch and pinned by the resolved commit the gate prints. **Its first question is a measurement, not an assumption:** herdr registers a plugin through a running server and falls back to `persist_plugin_offline` only on a connection error (`src/cli/plugin.rs:914-981,1016-1021` @ `c77af189`, 0.9.0 source), and a container has no server. The 2026-09-23 PASS installed with no server on the 0.9.1 binary `113ca53`'s `herdr-supply.json` pins, so that install path worked on 0.9.1 — inferred from the PASS, not a direct observation of the fallback branch; a later "no" on another herdr is #118 investigation output rather than a completion. `--yes` is always passed so a non-interactive exit 2 (`:189`) can never be misread as a missing server. **At a ref whose lock names `herdr-checkout` the acquisition axis reports a NAMED SKIP rather than a red, and the rest of the journey still runs.** That lock is the candidate carrier a cut legitimately sits on — 0.23.0 was tagged that way and `dd84ac0` pinned npm afterwards — so a red there would report a broken install when what is true is that the ref does not lock npm. What is asserted at BOTH lock kinds is that the runtime came from the source the ref locks, and the package name is read from the checkout manifest rather than the lock, because a `herdr-checkout` lock carries no `name` (`herdr-runtime.mjs:317-328`) and joining `undefined` throws instead of failing an assertion. **Cells [6]–[9] carry it past the install into the USE path (#118 H1-4/H1-5).** An install is not a use, so the same container then runs what those bytes became: the compiled bridge entry, the three `REQUIRED_BINS` as executables, and a real `entwurf check-bridge` printing its exact eight-verb set — the installed-runtime row below, measured rather than inferred from the bootstrap's refusal to install without them. Then the pi that this plugin WIRED is started with no `-e` and no `--no-extensions`, because the subject is the wiring and not this checkout: one `get_state` in `--mode rpc` costs zero tokens and needs no provider argument (a bogus `--provider` exits 1 before session_start; omitting the pair lets pi resolve the default the extension itself registers), and while that session is alive the cell reads its V3 record, its gardenId-keyed control socket, and the installed `entwurf peer-facts` reporting it `alive`. The plugin's own status fan is then driven with NEITHER side stubbed, in both states a user can be in: with no herdr server it must name `herdr-agent-list-failed` and go red rather than draw an empty table, and under a headless `herdr server` — scaffolding for that second read only, stopped again before the teardown — it exits 0 and COUNTS the citizen as `unobserved` instead of dropping it. Last, the shipped `entwurf herdr-plugin-deactivate` runs from the installed bin, deletes the runtime it is executing from, and the plugin reinstalls onto the host it fully left — the deactivation row, on the npm source. **What these cells still do not close:** swap / torn-swap recovery on the npm source, the package-consumer proof, and the fan drawing a citizen as a ROW — that needs `placement.kind === "herdr-pane"`, so the pi session must live in a herdr pane a session reference joins, and a headless container has no panes. **This smoke carries no test beside behavior and no mutant**, and that is a property of its class rather than an omission: it is a real-live container journey whose oracle is the container's own end state, so there is no pure seam to assert against and nothing a source mutation could kill deterministically. Like the other two herdr LIVE lanes it is **on-demand and not an aggregate MUST** — herdr is optional, a cut on a host without it must not block, and first evidence precedes promotion. Without `LIVE=1`, or without a usable Docker daemon, it reports a named SKIP; `ENTWURF_REQUIRE_DOCKER=1` turns the Docker absence red. Neither skip is a pass.
110
110
 
111
111
  > **The Herdr plugin's install-time build has two axes, and one of them needs the network (#116 M3-b3).** `check-herdr-plugin-build` is deterministic and rides `check:hermetic`: the listing reaches the runner through its own spawn seam (there is no fake `herdr` binary in this repo), and the one cell that drives the REAL binary reports a named SKIP on a host without it — `ENTWURF_REQUIRE_HERDR=1` makes that absence red. What it cannot have is the real acquisition: `npm pack git+https://github.com/junghan0611/entwurf.git#<full sha>` builds the bridge through `prepare`, which installs devDependencies from the registry. So `LIVE=1 ./run.sh smoke-herdr-plugin-build-live` owns that axis, and its cells are **two kinds of evidence, labelled as such**: three are the real Herdr journey — a real `herdr plugin install` driving the real `[[build]]`, with the UNCHANGED product remote redirected to a local bare clone by git `insteadOf` (the one substitution, which is what makes an unpushed candidate testable) — covering remote-commit available, the `{pi}` → `{pi, claude-code}` reinstall with OpenCode as a zero-write negative control and exactly ONE counted vendor MCP owner entry, and the post-build Herdr-commit gap (where the ledger has already rebound to the gap commit, so the honest assertion is that transition and not unchanged bytes). The fourth cell — remote-commit **unavailable** — calls the shipped runtime leaf directly with the fixed product argv and is therefore **acquisition-leaf evidence, not a journey**; routing it through Herdr would add a second explanation for one red. Its oracle is the honest one too: active runtime, ledger and harness bytes preserved, while the journal is left as the certified `installing` retry authority the transaction deliberately writes before acquiring, and a normal install afterwards is green. Its Claude cell is where the vendor question the deterministic gates refuse to claim gets answered — whether Claude Code accepts an ABSOLUTE executable as an MCP command — and it reports a named skip on a host without `claude`, never a pass. Like the herdr fresh-call rail, this smoke is **on-demand and not an aggregate MUST**. The release aggregate does not require the plugin build smoke: herdr is optional, a cut on a host without it must not block, and first evidence precedes promotion.
112
112
 
@@ -454,14 +454,14 @@ The single-turn / multi-turn / cross-process / persistence-boundary / shutdown i
454
454
 
455
455
  | Invariant | Current gate (pointer) |
456
456
  |---|---|
457
- | Single-turn prompt extraction, SessionStart hook not mistaken for prompt | `smoke-acp-raw-turn-live`, `check-acp-prompt-builder` |
457
+ | Single-turn prompt extraction, SessionStart hook not mistaken for prompt | `smoke-acp-raw-turn-live` (a bare-vendor shape by design: no overlay and no session meta, so it is not the production session shape), `check-acp-prompt-builder` |
458
458
  | Multi-turn continuity + recall (process-scoped reuse) | `smoke-acp-session-reuse-live`, `check-acp-session-reuse` |
459
459
  | Cross-process continuity / cache before-after | `check-acp-session-store` (signature, decideBootstrap, persist/parse) |
460
460
  | Lifecycle policy — turn-scoped is always new; process-scoped may reuse only the live in-memory session; persisted records are not a resume/load path today | `check-acp-session-store`, `check-acp-session-reuse` |
461
461
  | Tool-call / event mapping | `check-acp-event-mapper`, `smoke-acp-provider-live` |
462
462
  | Prompt lifecycle — no wall-clock cutoff on a running turn; abort ends it by ACP `session/cancel` with bounded cleanup; a child death is reported with exit status + stderr on new AND reuse turns; our prompt-phase error text is not classified transient by pi | `check-acp-prompt-lifecycle`, `check-probe-ordering` |
463
463
  | Claude typed `incomplete_tool_call` prompt failure — real pi retry/overflow classifiers reject the fixed verdict, raw evidence stays in existing diagnostics, exactly one seal and drop on new/reuse; other failures retain the legacy stderr path, cancel stays separate. A deterministic receipt does not certify the target vendor runtime. No LIVE gate induces this rejection; the raw-turn and reuse smokes certify only their own rows above. | `check-acp-vendor-rejection` (four mutants) |
464
- | Claude set-model answer read back before the prompt — an exact row, or the one alias row (value and name) measured for the requested id; a missing model option, another row or any other value/name pair refuses with non-transient text. Deterministic only: the measured 0.85.1 answer shapes are fixture literals, not a runtime certificate. | `check-acp-set-model-readback` (two mutants), `check-probe-ordering` |
464
+ | Claude set-model answer read back before the prompt — an exact row, or the one alias row (value and name) measured for the requested id; a missing model option, another row or any other value/name pair refuses with non-transient text. Deterministic only: the answer shapes measured at 0.85.1, and unchanged at 0.90.0 with the production session meta (no prompt), are fixture literals, not a runtime certificate. | `check-acp-set-model-readback` (two mutants), `check-probe-ordering` |
465
465
  | Operator mcpServers / skills reach the live session | `smoke-acp-mcp-live`, `smoke-acp-skill-live`, `check-acp-config` |
466
466
  | Overlay isolation + memory containment | `check-acp-overlay`, `smoke-acp-memory-containment-live`, `check-acp-tool-surface` |
467
467
 
@@ -134,10 +134,10 @@ ledger, 2026-10-03).
134
134
  | Surface | Declaration | Class | What a green actually says |
135
135
  |---|---|---|---|
136
136
  | Entwurf package | `package.json` `version` | checkout declaration, not a release receipt | names the package label these rows sit beside; whether that label shipped, and with which rows, is CHANGELOG's record |
137
- | pi runtime | SDK exact `1.2.0`, host `>=1.2.0 <1.3` | **exact** oracle + **closed range** | the SDK set this checkout builds, gates and (since #130) ships as exact production dependencies; an ordinary Pi host inside the range is accepted, and the ceiling moves only on measurement. Unshipped candidate: #141's 1.2.0 move has its own acceptance still owed. Historical: the published 0.33.0 through 0.35.1 ship SDK exact 1.1.0, 0.32.0 ships SDK exact 1.0.4 with the next-minor ceiling (ROADMAP's 2026-10-07 bump entry), and 0.31.0 declared the earlier peer floor 1.0.2 |
138
- | ACP wire SDK | `@agentclientprotocol/sdk 1.6.0` | **exact** | the shared wire oracle both adapters speak |
139
- | Claude ACP adapter | `@agentclientprotocol/claude-agent-acp 0.85.1` | **exact**, bundled | checkout candidate; resolved before any PATH fallback; declaration is not compatibility evidence |
140
- | Claude Agent SDK | `0.3.286` (transitive) | **exact** oracle | the runtime risk surface behind the adapter |
137
+ | pi runtime | SDK exact `1.2.0`, host `>=1.2.0 <1.3` | **exact** oracle + **closed range** | the SDK set this checkout builds, gates and (since #130) ships as exact production dependencies; an ordinary Pi host inside the range is accepted, and the ceiling moves only on measurement. The published 0.36.0 ships this 1.2.0 set (#141). Historical: the published 0.33.0 through 0.35.1 ship SDK exact 1.1.0, 0.32.0 ships SDK exact 1.0.4 with the next-minor ceiling (ROADMAP's 2026-10-07 bump entry), and 0.31.0 declared the earlier peer floor 1.0.2 |
138
+ | ACP wire SDK | `@agentclientprotocol/sdk 1.8.0` | **exact** | the shared wire oracle both adapters speak |
139
+ | Claude ACP adapter | `@agentclientprotocol/claude-agent-acp 0.90.0` | **exact**, bundled | checkout candidate; resolved before any PATH fallback; declaration is not compatibility evidence |
140
+ | Claude Agent SDK | `0.3.296` (transitive) | **exact** oracle | the runtime risk surface behind the adapter |
141
141
  | Anthropic SDK | `0.100.1` | **exact**, peer-resolution only | satisfies the Agent SDK peer floor (0.93.0+); never an API client here (gate L4) |
142
142
  | Claude Code runtime | `>=2.1.217` (`entwurf.claudeCodeFloor`) | **floor** | below it, hook args are silently dropped; entwurf enforces this itself |
143
143
  | Node | `>=24` (`engines.node`) | **floor** | single axis, derived everywhere else |
@@ -333,6 +333,68 @@ different reasons, and collapsing them would hide a real risk**:
333
333
  `turnQuotaMeta` and `quotaTokenCount` are byte-identical as extracted entry bodies. Turn
334
334
  settlement moved inside the changed `runConsumer`.
335
335
 
336
+ - **0.85.1 → 0.90.0 (#128) is a compatibility bump; Entwurf writes no new contract for it.**
337
+ `[측정 2026-10-14; upstream compare 72 commits / 185 files read through the GitHub API; nothing
338
+ executed but the readback below]`. The closure and evidence classes are in the ROADMAP Dep bump
339
+ entry for 2026-10-14.
340
+ - **Set-model readback re-measured, not inherited.** One no-prompt run against the installed
341
+ 0.90.0 through the production launch and overlay seam. On the wire: `initialize` ×1,
342
+ `session/new` ×4, `session/set_config_option` ×3, no `session/prompt`, and no message,
343
+ thought, tool, plan or usage update. Production `enforceModel` accepted all three curated
344
+ ids with the 0.85.1 answers, so `CLAUDE_SET_MODEL_ALIAS_ROWS` is unchanged. The offered list
345
+ grew from 12 to 13 rows: Fable 5.1 is now offered as the alias `fable` (the set answer still
346
+ names its own `claude-fable-5-1` row), `haiku` is named `Haiku 5.5`, and
347
+ `claude-haiku-4-5-20251001` is new. Offered rows are not Entwurf support: only the three
348
+ curated ids (`model-ids.js`) were set and read back, and no other row is measured or
349
+ admitted. The vendor's auth-status notifications and context probes are not model turns,
350
+ and nothing here proves zero API calls; the billing rail is unmeasured.
351
+ - **Evidence limits, stated before anything builds on this entry.** The readback followed the
352
+ production launch and overlay seam only. Its session meta carried the model alone and
353
+ omitted the production `settingSources: []` (`tool-surface.ts:152`), so it is not a full
354
+ production-shape measurement. The focused green of `check-acp-{stop-reason,usage-accounting,
355
+ prompt-lifecycle,stream-hooks,session-reuse}` at that point proved fake semantics only, not
356
+ Rule 12 isolation: their `ensureOverlay` stub sat on deps, which backend never reads, so the
357
+ real adapter refreshed the operator overlay. The earlier "no gate touches the operator
358
+ overlay" claim is retired.
359
+ - **Both limits repaired afterwards (2026-10-14).** The five gates now sandbox HOME, XDG and the
360
+ pi agent dir before importing the compiled backend, assert that the overlay constant resolves
361
+ inside that sandbox (`scripts/lib/acp-gate-home.ts`, paired mutant
362
+ `ACP-GATE-HOME-SANDBOXED`), and no longer carry the dead stubs. A second single no-prompt run
363
+ then built every session through the production path — `resolveProviderConfig` over explicit
364
+ empty operator input, `loadCarrier`, `buildSessionMeta`, `enrichMcpServersWithEnvelope` — so
365
+ each `session/new` carried `settingSources: []`, the default tools, the inline settings and
366
+ the shipped carrier. On the wire: `initialize` ×1, `session/new` ×3, `session/set_config_option`
367
+ ×3, seven responses, no `session/prompt` and no turn update. The three curated ids answered
368
+ exactly as before. These are the shipped defaults; an operator's own settings were not
369
+ measured.
370
+ - **Two operating observations from that run, both with the cause unmeasured.** The overlay
371
+ `projects/` held 524 entries after `ensureOverlay` and before the spawn, and 469 after the
372
+ child group was reaped; the run itself deletes nothing there and left no entry for its
373
+ scratch cwd. Which process removed the 55 entries, and whether they were transcripts, is not
374
+ measured, and it is not claimed for earlier driver versions. Separately, the inbound wire tap
375
+ saw one stream error event in a phase that was not recorded, while every request was
376
+ answered and no line failed to parse. In the production-meta run the overlay `projects/`
377
+ count stayed 469 → 469, which is consistent with the vendor skipping its retention sweep when
378
+ `settingSources` is empty but does not establish that cause, and the one inbound-tap stream
379
+ error fell in its teardown phase; that does not date the first run's.
380
+ - **Permission options are unchanged.** The nine option builders under `permissions/` are
381
+ byte-identical between the tags. `presentation.ts` adds titles only for v2 clients, and
382
+ `exit-plan.ts` publishes the approved plan only behind the `plan` client capability; we
383
+ advertise neither.
384
+ - **Cancel and turn settlement are fixed upstream and compatible here.** The stop-reason set is
385
+ unchanged; only `cancelled` gains emission sites (5 → 7), across #1228, #1229, #1242 and
386
+ #1243 (0.86) and #1221, #1309, #1313 and #1327 (0.90). The typed `incomplete_tool_call`
387
+ rejection keeps its kind and text. Our abort is still `session/cancel` → grace → teardown;
388
+ the runtime effect of these fixes is UNRUN.
389
+ - **Ambient only:** 0.90 merges model settings as `{...CLAUDE_MODEL_CONFIG, ...provided}`, so
390
+ an ambient `CLAUDE_MODEL_CONFIG` can now shape the model rows. Entwurf neither sets nor
391
+ scrubs it (the spawn env spreads `process.env`), the same posture as
392
+ `CLAUDE_AGENT_ACP_EXPERIMENTAL_V2`.
393
+ - **Behind capabilities we do not advertise:** v2 router fixes, RFD subagents, the AIR session
394
+ index and background terminals. Observation: a prompt that is exactly `/mcp` is answered by
395
+ the agent (#1218); a new session's first prompt carries our augment ahead of the user text,
396
+ a reuse turn does not.
397
+
336
398
  - **The one 0.73.0 → 0.75.1 change that DOES reach us:** context compaction is now surfaced as a
337
399
  synthetic ACP tool lifecycle (0.75.0, #991) — a `tool_call` with `kind: "think"`, title
338
400
  `Compact conversation`, and `_meta.contextCompaction` schema v1 — where it used to arrive as
@@ -405,7 +467,9 @@ typing `pi --model …` keeps the upstream fuzzy behaviour, so use the full 5.5
405
467
  The adapter reads its set-model answer back before the prompt. The driver resolves the
406
468
  requested id onto one of the rows it offers and answers with that row's `value` as the
407
469
  model option's `currentValue` (0.85.1 `dist/acp-agent.js:5459-5499`). Measured on
408
- 2026-10-12 against 0.85.1 with no prompt sent: `claude-fable-5-1` answers its own row,
470
+ 2026-10-12 against 0.85.1, and again unchanged on 2026-10-14 against 0.90.0 (the second
471
+ time also with the production session meta), with no prompt sent: `claude-fable-5-1`
472
+ answers its own row,
409
473
  while `claude-sonnet-5-5` and `claude-opus-5-5` answer the alias rows `sonnet` and
410
474
  `opus`, named `Sonnet 5.5` and `Opus 5.5`. The id an alias row resolves to is not on the
411
475
  ACP wire, so `CLAUDE_SET_MODEL_ALIAS_ROWS` (`backend-adapter.ts`) declares, for each
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@junghanacs/entwurf",
3
- "version": "0.36.0",
3
+ "version": "0.36.1",
4
4
  "description": "Visible sibling sessions across independent agent harnesses: launch in Herdr or tmux, reopen pi in tmux, and deliver messages by garden id; native bridges and Claude/Cortex ACP adapters.",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -96,8 +96,8 @@
96
96
  "claudeCodeFloor": ">=2.1.217"
97
97
  },
98
98
  "dependencies": {
99
- "@agentclientprotocol/claude-agent-acp": "0.85.1",
100
- "@agentclientprotocol/sdk": "1.6.0",
99
+ "@agentclientprotocol/claude-agent-acp": "0.90.0",
100
+ "@agentclientprotocol/sdk": "1.8.0",
101
101
  "@anthropic-ai/sdk": "0.100.1",
102
102
  "@earendil-works/chord": "1.2.0",
103
103
  "@earendil-works/pi-agent-core": "1.2.0",
package/run.sh CHANGED
@@ -1596,7 +1596,10 @@ check_mux_fresh_call() {
1596
1596
  # pi-durable-fresh-live-receipts rides here for tmux-coordinate-row's reason: it is the
1597
1597
  # deterministic half of a LIVE sibling (smoke-pi-durable-fresh-live, #129) — the oracles that judge
1598
1598
  # that gate's receipts, proven on inline rows, so no model turn and no durable host is needed.
1599
- run_vitest test/mux-fresh-call.test.ts test/fresh-call-composition.contract.test.ts test/copilot-fresh-preflight.test.ts test/codex-fresh-preflight.test.ts test/fresh-call-surfaces.contract.test.ts test/fresh-call-provider.contract.test.ts test/omp-fresh-bootstrap.contract.test.ts test/tmux-coordinate-row.test.ts test/codex-fresh-live-protocol.test.ts test/codex-caller-seat.test.ts test/pi-durable-fresh-live-receipts.test.ts
1599
+ # codex-socket-listener rides here for the same reason (#128): it is the ownership precondition
1600
+ # of smoke-codex-fresh-live, judged on synthetic wrapper/self shapes and observed on a throwaway
1601
+ # wrapper → listener pair of its own, so no Codex, no app-server and no model turn is needed.
1602
+ run_vitest test/mux-fresh-call.test.ts test/fresh-call-composition.contract.test.ts test/copilot-fresh-preflight.test.ts test/codex-fresh-preflight.test.ts test/fresh-call-surfaces.contract.test.ts test/fresh-call-provider.contract.test.ts test/omp-fresh-bootstrap.contract.test.ts test/tmux-coordinate-row.test.ts test/codex-fresh-live-protocol.test.ts test/codex-caller-seat.test.ts test/pi-durable-fresh-live-receipts.test.ts test/codex-socket-listener.test.ts
1600
1603
  }
1601
1604
 
1602
1605
  check_pi_durable_beside() {
@@ -39,6 +39,7 @@ import { pathToFileURL } from "node:url";
39
39
  import type { Api, AssistantMessageEvent, Message, Model, TranscriptContext } from "@earendil-works/pi-ai";
40
40
  import { normalizeContext } from "@earendil-works/pi-ai";
41
41
  import { isRetryableAssistantError } from "@earendil-works/pi-ai/compat";
42
+ import { assertOverlayInSandbox, sandboxAcpGateHome } from "./lib/acp-gate-home.ts";
42
43
 
43
44
  const sonnet = { id: "claude-sonnet-5-5" } as unknown as Model<Api>;
44
45
 
@@ -196,8 +197,6 @@ function makeHarness(recordDir: string) {
196
197
  await notifier?.({ sessionUpdate: "agent_message_chunk", content: { type: "text", text } });
197
198
  },
198
199
  deps: {
199
- resolveLaunch: () => ({ command: "node", args: ["fake"] }),
200
- ensureOverlay: () => {},
201
200
  spawnChild: () => {
202
201
  const c = makeFakeChild();
203
202
  children.push(c);
@@ -279,6 +278,7 @@ function reuseCtx(prior: string, latest: string): TranscriptContext {
279
278
  const TMP_EMIT = ".tmp-verify/acp-prompt-lifecycle";
280
279
  rmSync(TMP_EMIT, { recursive: true, force: true });
281
280
  const recordDir = mkdtempSync(resolve(tmpdir(), "acp-prompt-life-"));
281
+ const gateHome = sandboxAcpGateHome("acp-prompt-lifecycle-home-");
282
282
 
283
283
  try {
284
284
  execFileSync("node_modules/.bin/tsc", ["--outDir", TMP_EMIT, "--rootDir", ".", "--noEmit", "false"], {
@@ -288,6 +288,7 @@ try {
288
288
  mkdirSync(promptsOut, { recursive: true });
289
289
  copyFileSync("pi-extensions/lib/acp/prompts/engraving.md", resolve(promptsOut, "engraving.md"));
290
290
  const backend = (await import(pathToFileURL(resolve(TMP_EMIT, "pi-extensions/lib/acp/backend.js")).href)) as any;
291
+ await assertOverlayInSandbox(TMP_EMIT, gateHome);
291
292
 
292
293
  // ----------------------------------------------------------------------
293
294
  // CELL 1 — a long / quiet turn is NOT killed.
@@ -918,6 +919,7 @@ try {
918
919
  // non-empty or already gone — fine either way
919
920
  }
920
921
  rmSync(recordDir, { recursive: true, force: true });
922
+ gateHome.restore();
921
923
  }
922
924
 
923
925
  console.log(
@@ -32,6 +32,7 @@ import { resolve } from "node:path";
32
32
  import { pathToFileURL } from "node:url";
33
33
  import type { Api, AssistantMessageEvent, Context, Message, Model, TranscriptContext } from "@earendil-works/pi-ai";
34
34
  import { normalizeContext } from "@earendil-works/pi-ai";
35
+ import { assertOverlayInSandbox, sandboxAcpGateHome } from "./lib/acp-gate-home.ts";
35
36
 
36
37
  // The pi built-ins the Claude child also exposes natively. pi declares its tool
37
38
  // surface on every turn; since 0.86 that declaration reaches a provider as the
@@ -175,8 +176,6 @@ function makeHarness(recordDir: string, config: any = DEFAULT_RESOLVED_CONFIG, e
175
176
  });
176
177
 
177
178
  const deps = {
178
- resolveLaunch: () => ({ command: "node", args: ["fake"] }),
179
- ensureOverlay: () => {},
180
179
  spawnChild: () => {
181
180
  const c = makeFakeChild();
182
181
  children.push(c);
@@ -268,6 +267,7 @@ function reuseCtx(prior: string, latest: string): TranscriptContext {
268
267
  const TMP_EMIT = ".tmp-verify/acp-session-reuse";
269
268
  rmSync(TMP_EMIT, { recursive: true, force: true });
270
269
  const recordDir = mkdtempSync(resolve(tmpdir(), "acp-reuse-rec-"));
270
+ const gateHome = sandboxAcpGateHome("acp-session-reuse-home-");
271
271
 
272
272
  try {
273
273
  execFileSync("node_modules/.bin/tsc", ["--outDir", TMP_EMIT, "--rootDir", ".", "--noEmit", "false"], {
@@ -283,6 +283,7 @@ try {
283
283
  const backendUrl = pathToFileURL(resolve(TMP_EMIT, "pi-extensions/lib/acp/backend.js")).href;
284
284
  const storeUrl = pathToFileURL(resolve(TMP_EMIT, "pi-extensions/lib/acp/session-store.js")).href;
285
285
  const backend = (await import(backendUrl)) as any;
286
+ await assertOverlayInSandbox(TMP_EMIT, gateHome);
286
287
  const store = (await import(storeUrl)) as any;
287
288
  const configUrl = pathToFileURL(resolve(TMP_EMIT, "pi-extensions/lib/acp/config.js")).href;
288
289
  const configMod = (await import(configUrl)) as any;
@@ -814,6 +815,7 @@ try {
814
815
  // non-empty or already gone — fine either way
815
816
  }
816
817
  rmSync(recordDir, { recursive: true, force: true });
818
+ gateHome.restore();
817
819
  }
818
820
 
819
821
  console.log(
@@ -54,6 +54,7 @@ import { resolve } from "node:path";
54
54
  import { pathToFileURL } from "node:url";
55
55
  import type { Api, AssistantMessageEvent, Model } from "@earendil-works/pi-ai";
56
56
  import { normalizeContext } from "@earendil-works/pi-ai";
57
+ import { assertOverlayInSandbox, sandboxAcpGateHome } from "./lib/acp-gate-home.ts";
57
58
 
58
59
  const sonnet = { id: "claude-sonnet-5-5" } as unknown as Model<Api>;
59
60
 
@@ -118,8 +119,6 @@ const DEFAULT_RESOLVED_CONFIG: any = {
118
119
  */
119
120
  function makeHarness(recordDir: string, wireReason: string | null) {
120
121
  return {
121
- resolveLaunch: () => ({ command: "node", args: ["fake"] }),
122
- ensureOverlay: () => {},
123
122
  spawnChild: () => makeFakeChild(),
124
123
  createConnection: (_child: any, handlers: any) => ({
125
124
  initialize: async () => ({ agentCapabilities: {} }),
@@ -143,6 +142,7 @@ function makeHarness(recordDir: string, wireReason: string | null) {
143
142
  const TMP_EMIT = ".tmp-verify/acp-stop-reason";
144
143
  rmSync(TMP_EMIT, { recursive: true, force: true });
145
144
  const recordDir = mkdtempSync(resolve(tmpdir(), "acp-stop-rec-"));
145
+ const gateHome = sandboxAcpGateHome("acp-stop-reason-home-");
146
146
 
147
147
  /**
148
148
  * One driven turn, described by everything an operator could observe.
@@ -250,6 +250,7 @@ try {
250
250
  const backendUrl = pathToFileURL(resolve(TMP_EMIT, "pi-extensions/lib/acp/backend.js")).href;
251
251
  const eventUrl = pathToFileURL(resolve(TMP_EMIT, "pi-extensions/lib/acp/event-mapper.js")).href;
252
252
  const backend = (await import(backendUrl)) as any;
253
+ await assertOverlayInSandbox(TMP_EMIT, gateHome);
253
254
  const eventMod = (await import(eventUrl)) as any;
254
255
 
255
256
  // ----------------------------------------------------------------------
@@ -354,6 +355,7 @@ try {
354
355
  // non-empty or already gone — fine either way
355
356
  }
356
357
  rmSync(recordDir, { recursive: true, force: true });
358
+ gateHome.restore();
357
359
  }
358
360
 
359
361
  console.log(
@@ -34,6 +34,7 @@ import { resolve } from "node:path";
34
34
  import { pathToFileURL } from "node:url";
35
35
  import type { Api, AssistantMessageEvent, Message, Model, TranscriptContext } from "@earendil-works/pi-ai";
36
36
  import { normalizeContext } from "@earendil-works/pi-ai";
37
+ import { assertOverlayInSandbox, sandboxAcpGateHome } from "./lib/acp-gate-home.ts";
37
38
 
38
39
  const sonnet = { id: "claude-sonnet-5-5" } as unknown as Model<Api>;
39
40
 
@@ -108,8 +109,6 @@ function makeHarness(recordDir: string) {
108
109
  children,
109
110
  promptCalls,
110
111
  deps: {
111
- resolveLaunch: () => ({ command: "node", args: ["fake"] }),
112
- ensureOverlay: () => {},
113
112
  spawnChild: () => {
114
113
  const c = makeFakeChild();
115
114
  children.push(c);
@@ -187,6 +186,7 @@ const onResponse = () => {
187
186
  const TMP_EMIT = ".tmp-verify/acp-stream-hooks";
188
187
  rmSync(TMP_EMIT, { recursive: true, force: true });
189
188
  const recordDir = mkdtempSync(resolve(tmpdir(), "acp-stream-hooks-"));
189
+ const gateHome = sandboxAcpGateHome("acp-stream-hooks-home-");
190
190
 
191
191
  try {
192
192
  execFileSync("node_modules/.bin/tsc", ["--outDir", TMP_EMIT, "--rootDir", ".", "--noEmit", "false"], {
@@ -196,6 +196,7 @@ try {
196
196
  mkdirSync(promptsOut, { recursive: true });
197
197
  copyFileSync("pi-extensions/lib/acp/prompts/engraving.md", resolve(promptsOut, "engraving.md"));
198
198
  const backend = (await import(pathToFileURL(resolve(TMP_EMIT, "pi-extensions/lib/acp/backend.js")).href)) as any;
199
+ await assertOverlayInSandbox(TMP_EMIT, gateHome);
199
200
 
200
201
  // ----------------------------------------------------------------------
201
202
  // CELL 1 — NEW turn: the hook sees the EXACT wire params; undefined keeps them.
@@ -510,6 +511,7 @@ try {
510
511
  // non-empty or already gone — fine either way
511
512
  }
512
513
  rmSync(recordDir, { recursive: true, force: true });
514
+ gateHome.restore();
513
515
  }
514
516
 
515
517
  console.log(
@@ -60,6 +60,7 @@ import type {
60
60
  } from "@earendil-works/pi-ai";
61
61
  import { isContextOverflow, normalizeContext } from "@earendil-works/pi-ai";
62
62
  import { calculateContextTokens } from "@earendil-works/pi-coding-agent";
63
+ import { assertOverlayInSandbox, sandboxAcpGateHome } from "./lib/acp-gate-home.ts";
63
64
 
64
65
  const claude = { id: "claude-sonnet-5-5" } as unknown as Model<Api>;
65
66
  const cortex = { id: "cortex-auto" } as unknown as Model<Api>;
@@ -193,8 +194,6 @@ function makeHarness(recordDir: string, scripts: TurnScript[]) {
193
194
  return newSessionCalls;
194
195
  },
195
196
  deps: {
196
- resolveLaunch: () => ({ command: "node", args: ["fake"] }),
197
- ensureOverlay: () => {},
198
197
  spawnChild: () => {
199
198
  const c = makeFakeChild();
200
199
  children.push(c);
@@ -297,6 +296,7 @@ function reuseCtx3(a: string, b: string, c: string): TranscriptContext {
297
296
  const TMP_EMIT = ".tmp-verify/acp-usage-accounting";
298
297
  rmSync(TMP_EMIT, { recursive: true, force: true });
299
298
  const recordDir = mkdtempSync(resolve(tmpdir(), "acp-usage-acct-"));
299
+ const gateHome = sandboxAcpGateHome("acp-usage-accounting-home-");
300
300
 
301
301
  try {
302
302
  execFileSync("node_modules/.bin/tsc", ["--outDir", TMP_EMIT, "--rootDir", ".", "--noEmit", "false"], {
@@ -306,6 +306,7 @@ try {
306
306
  mkdirSync(promptsOut, { recursive: true });
307
307
  copyFileSync("pi-extensions/lib/acp/prompts/engraving.md", resolve(promptsOut, "engraving.md"));
308
308
  const backend = (await import(pathToFileURL(resolve(TMP_EMIT, "pi-extensions/lib/acp/backend.js")).href)) as any;
309
+ await assertOverlayInSandbox(TMP_EMIT, gateHome);
309
310
 
310
311
  // ----------------------------------------------------------------------
311
312
  // CELL 1 — the turn aggregate never reaches pi's per-request fields.
@@ -1062,6 +1063,7 @@ try {
1062
1063
  // non-empty or already gone — fine either way
1063
1064
  }
1064
1065
  rmSync(recordDir, { recursive: true, force: true });
1066
+ gateHome.restore();
1065
1067
  }
1066
1068
 
1067
1069
  /** Distinct-but-uninteresting token partition for the cost-focused cells. */