session-peer 0.3.6 → 0.5.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 (52) hide show
  1. package/CONTRIBUTING.md +6 -4
  2. package/PARITY.md +431 -6
  3. package/README.ja.md +14 -8
  4. package/README.ko.md +14 -8
  5. package/README.md +14 -8
  6. package/README.zh-CN.md +14 -8
  7. package/RELEASING.md +109 -0
  8. package/VALIDATION.md +806 -1
  9. package/dist/app-server.d.ts +207 -0
  10. package/dist/app-server.js +1044 -0
  11. package/dist/cli.js +229 -39
  12. package/dist/handoff-ledger.d.ts +103 -0
  13. package/dist/handoff-ledger.js +791 -0
  14. package/dist/handoff-observer-probe.d.ts +1 -0
  15. package/dist/handoff-observer-probe.js +170 -0
  16. package/dist/handoff-operations.d.ts +29 -0
  17. package/dist/handoff-operations.js +496 -0
  18. package/dist/handoff-writer-probe.d.ts +1 -0
  19. package/dist/handoff-writer-probe.js +146 -0
  20. package/dist/handoff.d.ts +112 -0
  21. package/dist/handoff.js +261 -0
  22. package/dist/help.js +18 -0
  23. package/dist/linux-native-probe.d.ts +1 -0
  24. package/dist/linux-native-probe.js +51 -0
  25. package/dist/linux-proc.d.ts +55 -0
  26. package/dist/linux-proc.js +150 -0
  27. package/dist/metadata-observation.d.ts +49 -0
  28. package/dist/metadata-observation.js +250 -0
  29. package/dist/native-profiles.d.ts +25 -0
  30. package/dist/native-profiles.js +62 -0
  31. package/dist/output.js +7 -1
  32. package/dist/process.d.ts +28 -0
  33. package/dist/process.js +284 -2
  34. package/dist/protocol.d.ts +2 -2
  35. package/dist/protocol.js +1 -1
  36. package/dist/send.d.ts +18 -1
  37. package/dist/send.js +91 -6
  38. package/dist/skill-metadata.js +7 -4
  39. package/dist/ssh-response.d.ts +11 -0
  40. package/dist/ssh-response.js +78 -2
  41. package/dist/ssh.d.ts +2 -1
  42. package/dist/ssh.js +37 -2
  43. package/dist/windows.d.ts +28 -0
  44. package/dist/windows.js +149 -1
  45. package/docs/api.md +255 -4
  46. package/docs/design/typescript-skill-compatibility.md +55 -2
  47. package/docs/guide.ja.md +36 -16
  48. package/docs/guide.ko.md +39 -19
  49. package/docs/guide.md +46 -20
  50. package/docs/guide.zh-CN.md +36 -16
  51. package/docs/shorthand.md +1 -1
  52. package/package.json +2 -2
package/VALIDATION.md CHANGED
@@ -1,4 +1,462 @@
1
- # Validation record — updated 2026-10-14 KST
1
+ # Validation record — updated 2026-10-20 KST
2
+
3
+ ## 0.5.0 preparation scope — 2026-10-20 KST
4
+
5
+ This release preparation includes the merged platform groundwork from #153,
6
+ #156 and #154, package/banner/current examples for 0.5.0, one finite doctor
7
+ row preserving the four existing profiles, and the public 0.4.0 release
8
+ baseline. It does not activate the Linux candidate, Windows tree cleanup,
9
+ Windows handoff storage/native observation or Windows-client jump.
10
+
11
+ The proposed #155 deployment harness and its new qualification claims are
12
+ excluded. Its implementation and review evidence remain in that Draft PR
13
+ for minimum-contract redesign under #23; they are not release evidence.
14
+ The existing remote-deployment ADR stays at the main-branch version.
15
+
16
+ Independent test-only fixes to persisted queue/initialize readiness and
17
+ warm WAL fixture lifetime are retained. They change neither runtime guards
18
+ nor observation deadlines or assertions; the original CI timeout causes
19
+ remain unproven. Historical platform and mutation runs below keep their
20
+ recorded source checkpoints and do not qualify new 0.5.0 support cells.
21
+
22
+ Final source, current-head CI and rebuilt artifact results belong to the
23
+ release-preparation PR. Preparation performs no staging, publication,
24
+ new native/model/ACK experiment or global installation.
25
+
26
+
27
+ ## Windows client jump ProxyCommand probe — #20, 2026-10-20 KST
28
+
29
+ Unreleased branch source (`windowsProxyCommand`, CLI gate unchanged) on a
30
+ Windows x64 test host: Windows 10 x64 (10.0.19045), PowerShell 5.1, Node
31
+ 24.16.0, inbox-path Win32-OpenSSH `OpenSSH_for_Windows_9.5p1, LibreSSL 3.8.2`
32
+ (file version 9.5.4.1), administrator account, dedicated temporary prefix.
33
+ No network destination: the generated `ProxyCommand` program was a compiled
34
+ argv-dump `ssh.exe` that recorded `GetCommandLineW`, the real UCRT argv
35
+ (`ucrtbase` `_configure_wide_argv`) and its parent process, then exited, so
36
+ the real `ssh.exe` failed with 255 before any key exchange. `-F none` and
37
+ prefix-only known-hosts files were used.
38
+
39
+ - 27 of 27 cells matched the source-derived model: 3 dump paths (plain; a
40
+ directory with spaces, `'`, `100%`, `(x) ^&!;,=#$`, `%PATH% %h %p %%`;
41
+ Unicode/emoji with `#`) × 3 hops (`hop@jump`, `h_o.p-1@jump.example:2200`,
42
+ `hop@[2001:db8::2]:22`) × 3 targets (`dummyhost`, IPv6 `2001:db8::1` with
43
+ `-p 2222`, and a quoted `HostName` containing a space and `-oProxyCommand=x`).
44
+ The raw command line equalled the percent-expanded value exactly; the UCRT
45
+ argv equalled the intended hop argv (all hardening options, `-W [host]:port`
46
+ as one argument, `-- <hop>`); the parent was the System32 `ssh.exe` itself,
47
+ so no `cmd.exe` ran and `%PATH%`, `^&` stayed literal. OpenSSH lowercased
48
+ the configured `HostName` before `%h` expansion.
49
+ - `ssh.cmd` and UNC paths were refused with `ssh_jump_unsupported_ssh_path`.
50
+ - On the same host, `test/ssh-jump-windows.test.ts`: 4/4 pass; `npm run
51
+ test:windows`: 317 tests, 179 pass, 0 fail, 138 POSIX-only skips, including
52
+ the native `ssh_jump_unsupported_platform` refusal test.
53
+ `fs-ext-extra-prebuilt` loaded after `npm ci --ignore-scripts`.
54
+ - Observation, not yet analysed: in this non-interactive SSH session the real
55
+ `ssh.exe` (even `ssh -G`) did not exit within 15 s when its stdin was a
56
+ Node pipe or file, and exited promptly with stdin ignored (`NUL`). The probe
57
+ therefore used ignored stdin. Windows-client SSH with pipe stdin is not
58
+ covered by this record; enabling needs that analysis first.
59
+ - Cleanup: the prefix was removed and no process with the prefix in its path or
60
+ command line remained.
61
+
62
+ The probe ran at branch revision `9d54fa3dfbb0c50a1f9624461a43a3f02824706b`
63
+ (the `windowsProxyCommand` code is unchanged by later comment and documentation
64
+ commits). The probe driver, the argv-dump source and host-identifier-free
65
+ results are kept out of the repository as review material, identified by
66
+ SHA-256 in the change description. A later correction makes the driver's exit
67
+ status depend on every cell, including refusal cells; it was not re-run, and
68
+ the recorded cells were all individually successful.
69
+
70
+ This is evidence for quoting only. Windows `--ssh-jump` stays refused: no hop
71
+ or destination connection, version other than 9.5p1, non-administrator
72
+ account, or #131 owned-process-tree cleanup (timeout, overflow, interrupt) was
73
+ exercised. Production Windows `run()` kills only the direct child; #131
74
+ leaves tree cleanup as an unselected preparation backend, so cleanup of a
75
+ `ProxyCommand` descendant is not guaranteed and blocks enabling. A stop
76
+ there remains an unknown effect with no resend.
77
+
78
+
79
+ ## #131 Windows tree-cleanup backend and storage guard (preparation, not selected) — source, 2026-10-20 KST
80
+
81
+ This is a source change on top of main `98074a0fb8c4aa6dbab32203fee79ac8244faf0b`,
82
+ not a release. Production behaviour is unchanged on every platform. On Windows,
83
+ `run()` still terminates only the direct child; descendants may linger, the
84
+ child keeps its full timeout, and no new result field or signal handling was
85
+ added.
86
+
87
+ Review established a design limit for owning a process tree on Windows 10
88
+ without native code:
89
+ - Descendant ownership cannot be proven. GetProcessTimes creation/exit values
90
+ are UTC wall-clock instants, not monotonic generations, and Win32_Process
91
+ ParentProcessId may refer to a reused PID.
92
+ - After a clock rollback, a child of an earlier holder of a parent's PID can
93
+ satisfy any creation-time ordering. Handle-holding fixes only the current
94
+ identity.
95
+ - A sound boundary needs the child created inside a Job object (suspended,
96
+ assigned, resumed), which Node's spawn cannot do.
97
+
98
+ The candidate backend `reapWindowsTree` is therefore kept unselected. It uses
99
+ held handles only, holds the visible tree before any kill, and classifies from
100
+ the post-hold snapshot only, by UTC creation-time ordering. That classifier is
101
+ provisional, not an ownership proof, and is known to be unsound under a clock
102
+ rollback. Confirmation requires a post-kill snapshot. Any observed PID swap, or
103
+ any vanished, denied or unlisted candidate, makes the result unconfirmed. Only
104
+ classifier-accepted candidates are killed. Its tests cover the algorithm and
105
+ record the rollback limit as a todo named as an unresolved design limit
106
+ (never counted as a pass or skip).
107
+
108
+ The storage guard is a read-only owner-SID/protected-DACL/reparse inspection
109
+ plus a protected private-leaf creator. It is not connected to the handoff
110
+ ledger, which still refuses Windows with `handoff_storage_unsupported`.
111
+ Accepting the token's default owner (an elevated administrator's
112
+ Administrators) is a weaker, group-wide boundary. Creator precheck, creation
113
+ and postcheck are not atomic. Null-DACL, parent-ACL and creator-race handling
114
+ remain unqualified while it is unconnected. Like the existing inspection code,
115
+ it resolves `powershell.exe` through PATH rather than a SystemRoot-pinned path.
116
+
117
+ Checkpoints. Each result belongs to the commit it was run on:
118
+ - Full local suite, macOS arm64 / Node 24.16.0, at `3dc405d`:
119
+ - build, test types, `npm run test:package`, repository checks and
120
+ `git diff --check` passed;
121
+ - `npm test`, with the pinned Python 1.1.0 reference
122
+ `8ca77cf31254c8287a2593fe484bb30a7dba2727`, passed with zero failures.
123
+ - Mutation checks, on the `f06041d` tree. Each guard was removed in turn, and
124
+ every removal made its regression test fail. The eight guards are:
125
+ - confirm only after a post-kill snapshot;
126
+ - doubt on an observed PID swap;
127
+ - no earlier-row inheritance for unlisted candidates;
128
+ - doubt on gone or denied candidates;
129
+ - doubt on unlisted candidates;
130
+ - reject a root after an observed exit;
131
+ - the creation-time check;
132
+ - hold the visible tree before any kill.
133
+ - Comment, wording and test-name changes only, at `534d3fb`: light checks.
134
+ - At the final head, the native process-tree fixture was redesigned. Light
135
+ checks, the focused local files and a Windows rerun of the two new test files
136
+ cover it (below).
137
+
138
+ Separately authorized isolated runs used a Windows x64 test host: Windows 10
139
+ 19045, PowerShell 5.1, Node 24.16.0 x64. The account was an administrator,
140
+ elevated over SSH. Each run used a dedicated temporary prefix and the host lock.
141
+
142
+ Runs on earlier heads, with the backend selected or exercised natively, found
143
+ and fixed:
144
+ - a detached helper exited at once;
145
+ - PowerShell 5.1 wrapped the JSON path array;
146
+ - an elevated administrator's files are owned by Administrators;
147
+ - a Node child's job ends its descendants.
148
+
149
+ Those earlier native backend runs let the classifier terminate processes it
150
+ accepted on the test host. The final head no longer runs the backend natively:
151
+ its kills cannot be bounded to fixture identities, and isolated-host approval
152
+ does not authorize terminating foreign processes.
153
+
154
+ At `f06041d`, `npm run test:windows` and `npm run test:package` passed on that
155
+ host.
156
+
157
+ Earlier fixture heads, through `534d3fb`, started a `PING.EXE` with a 600 s
158
+ lifetime and cleaned it up by PID. A grandchild could therefore have outlived a
159
+ run. Afterwards, cleanup was checked only through process command lines
160
+ containing the prefix (and later a read-only `PING.EXE` listing). Those checks
161
+ showed nothing, but no actual leak was observed or ruled out beyond them.
162
+
163
+ From the final fixture onward:
164
+ - The child and grandchild have explicit lifetimes: about 25 s for the child
165
+ (`run()` ends it earlier through its own handle) and about 11 s for PING.
166
+ - They are never killed by PID; the test only observes PID presence until
167
+ both are absent, then removes its directory last.
168
+ - Unreadable PIDs, or a PID still present or unknown, keep the evidence and
169
+ fail the cleanup.
170
+ - Presence is not identity: a reused PID can look present, and an error other
171
+ than ESRCH is reported as unknown.
172
+ - The mocked helper-transport test is skipped on win32, so a mock that misses
173
+ can never open its fake PIDs there.
174
+
175
+ The native tests on Windows are the production baseline and the storage cases;
176
+ the reruns of the two new files are in the PR.
177
+
178
+ ACLs of existing paths were not changed; the tests set a protected DACL only on
179
+ new leaves inside the prefix. The interrupt behaviour of production `run()` on
180
+ Windows is unchanged and untested here. The following remain unrun: the Windows
181
+ CI job (where the native tests are registered), non-admin and non-elevated
182
+ cells, arm64 and cold-boot helper latency. No live agent session or message,
183
+ policy, service or account change was made.
184
+
185
+
186
+ ## Unreleased Linux arm64 observation candidate — #130, 2026-10-20 KST
187
+
188
+ Source-only follow-up on the published 0.4.0 runtime; no version change.
189
+ Native selection is one exact `(process.platform-process.arch, native version,
190
+ source commit, platformOs, storage binding, owner inspection, artifact)` table
191
+ with no version range, libc/arch fallback or cross-platform inheritance.
192
+ Selectable rows are the two historical darwin-arm64 rows. A **linux-arm64 /
193
+ Codex 0.162.1 / `092d3acd…`** candidate pinned to the upstream
194
+ `aarch64-unknown-linux-musl` executable is recorded but **not activated**
195
+ (see "Activation decision" below); every Linux tuple is unsupported.
196
+
197
+ Head history: the live injection below ran with the candidate temporarily
198
+ selectable (local build of the later `b804115` tree); `b804115` and
199
+ `2f3b35d` committed it as a selectable row. Review round 2 found two
200
+ identity gaps, and the final head moves it to a non-selectable candidate.
201
+
202
+ Linux mechanics: owned app-server storage binding reads only that child's
203
+ `/proc/<pid>` (direct child, own group, all UIDs, exe inode, stable start time,
204
+ exact canonical paths, deleted descriptors refused); writer owner evidence
205
+ also requires `/proc/locks` to name the lsof owner as the sole exclusive
206
+ `flock` holder (Codex `File::try_lock`) without changing the generation; the
207
+ executable digest is checked within the original deadline.
208
+
209
+ Evidence on a Linux arm64 test host (kernel 7.0 aarch64, Node 24.18.0, ext4),
210
+ recorded in `test/fixtures/linux-observation-native-evidence.json`:
211
+
212
+ - Artifact: the user-owned standalone binary's SHA-256 `071cbe8d…cabe5` equals
213
+ the executable extracted from upstream `rust-v0.162.1`
214
+ `codex-aarch64-unknown-linux-musl.tar.gz` (`bf3ca271…`) and `.zst`.
215
+ - Schema: `codex app-server generate-json-schema --experimental` with empty
216
+ isolated HOME/CODEX_HOME produced queue/add params/response, item/started
217
+ and turn/completed hashes and an 84-method notification set identical to
218
+ the darwin 0.162.1 evidence.
219
+ - Live injection, separately user-approved, in one new dedicated TUI thread
220
+ started by absolute path with `--sandbox read-only --ask-for-approval never`
221
+ (trust via a `-c` override; `config.toml` unchanged). No other Codex writer
222
+ was live. The TUI showed an "Update available" menu with "Update now"
223
+ preselected; it was dismissed with Esc and nothing was updated.
224
+ - A new thread is not saved (no `threads` row or history projection) until its
225
+ first turn; a dry-run first refused `thread_not_yet_persisted`. One synthetic
226
+ bootstrap prompt was therefore typed (turn 1). Whether the earlier Darwin
227
+ dedicated threads had such a prior turn is **not recorded** in their evidence.
228
+ - The first send was refused **before effect** (`evidence_unsupported`,
229
+ `submitted=false`): the structural capability check used a version-only
230
+ lookup that became ambiguous once 0.162.1 had two platform rows. It was fixed
231
+ (regression test failed on the pre-fix code and passed after; it now uses a
232
+ hermetic two-platform table) and exactly one approved resend
233
+ of the same synthetic probe followed.
234
+ - That send exited 0 with `status=queued`, `submitted=true`,
235
+ `consumptionConfirmed=false`, state `delivered`, wait satisfied: one
236
+ matching client-ID row (native item ID different), linked turn, writer
237
+ generation unchanged and kernel flock holder equal to the lsof owner.
238
+ `handoff status` and an independent `handoff wait` exited 0. ACK remained
239
+ `not_requested`; the model's reply was not answered or treated as ACK.
240
+ Two model turns ran in total.
241
+ - Cleanup: only the owned tmux session was killed; the codex PID and its
242
+ `/proc/locks` entries were gone, and the private prefix and ledger were
243
+ removed. The native thread record and Codex's own empty lock files remain;
244
+ Codex removed one earlier stale empty lock file itself at startup.
245
+
246
+ Review follow-ups (same date):
247
+
248
+ - SSH destination requests cannot select a Linux row (`sshDestination: false`);
249
+ a qualified linux-arm64 destination refuses required delivery before effect
250
+ with zero queue calls and keeps the best-effort ordinary send. Darwin keeps
251
+ its 0.4.0 destination behaviour. At `2f3b35d` (row selectable) a Linux-host
252
+ regression showed the old code entering the row path over SSH and the fixed
253
+ code refusing; at the final head no Linux row is selectable and the policy
254
+ is covered by hermetic synthetic-table tests.
255
+ - Executable digest and procfs binding now run in an owned worker: at the
256
+ original remaining budget the supervisor requests termination of the
257
+ worker's group and the caller refuses; actual reaping of a worker blocked in
258
+ uninterruptible kernel I/O may occur later, when the kernel returns. This is
259
+ a refusal-at-deadline guarantee, not a bound on how long a blocked kernel
260
+ call takes. The `--procfs-owner` reads run inside the already
261
+ deadline-bounded writer-probe process. Canonical-path `lstat` checks remain
262
+ in the caller, as on Darwin.
263
+ - Retained identity: the generation still binds the lock fingerprint, lsof
264
+ pid/uid/command and `ps lstart` (1-second resolution). The kernel tick start
265
+ time and flock holder are checked within each probe invocation, not against
266
+ the original send, and the TUI writer's executable bytes are not pinned
267
+ (only the owned queue child's artifact is). PID reuse within the same second
268
+ by another `codex` that re-acquires the unchanged lock inode would not be
269
+ detected. A retained Linux kernel identity needs a ledger-schema field and
270
+ is a follow-up; generation compatibility was kept.
271
+ - External review inputs received summaries of the native send/status/wait
272
+ JSON and generation values, not the raw records; the root review audited the
273
+ raw private records separately.
274
+
275
+ Activation decision (review round 2): the row is not activated because (1)
276
+ only the owned queue child's executable is digest-pinned, while the original
277
+ TUI writer is checked by lsof command/pid/uid and `ps lstart`, so a
278
+ different-version or gnu writer holding the lock beside a pinned musl queue
279
+ binary is not distinguished; and (2) the writer's kernel start time is not
280
+ retained across send and independent wait. Safely closing (2) needs an
281
+ optional private ledger field owned by the ledger, so both are frozen as the
282
+ follow-up design in PARITY.md rather than pushed as an unreviewed schema
283
+ change. Recorded artifact/schema/injection evidence and the procfs machinery
284
+ remain; SSH destination requests can never select a Linux row. The worker
285
+ comment now limits its hard bound to the worker's supervisor refusal;
286
+ caller-side `realpath`/`stat`/`lstat` stay synchronous with deadline checks
287
+ only.
288
+
289
+ Full suites at the `dd21302` source checkpoint (candidate not activated): on
290
+ Darwin 27.0 arm64 / Node 24.16 the full `npm test` (with the pinned Python
291
+ reference) passed 400, failed 0, skipped 8 (5 Windows-only, 3 Linux-only). On
292
+ the Linux arm64 test host it passed 376, failed 0, skipped 28
293
+ (Darwin-qualified and Windows-only), with every Linux-only native case
294
+ passing; that run used only fixtures in a private prefix, with no
295
+ credentials, model turn or install change. The raw Linux log has no HEAD
296
+ marker; it is tied to the checkpoint by the executor's run record. Earlier
297
+ checkpoints' counts (`b804115`, `2f3b35d`) are superseded.
298
+
299
+ Later documentation/comment/evidence-description commits (`ffe8afc` and the
300
+ following one) changed no runtime statement. At those heads only light gates
301
+ ran: `npm run build`, `npm run test:types`, the related linux-observation,
302
+ app-server and metadata-observation tests (80 pass, 0 fail, 3 skipped),
303
+ `node scripts/check-repository.mjs` and `git diff --check`. No new full-suite,
304
+ Linux-host or live-model run was performed at those heads.
305
+ Queued/delivered remain distinct from receipt ACK or work completion.
306
+
307
+ ## Public 0.4.0 — 2026-10-18 KST
308
+
309
+ `session-peer@0.4.0` is public. Registry checks confirmed `latest=0.4.0` and
310
+ unchanged `preview=0.1.0-preview.1`. The publication source is
311
+ `dde3923efe116f87f38b1639b29b889d2b832e44`, merged from
312
+ [PR #151](https://github.com/abruption/session-peer-ts/pull/151). Its complete tree
313
+ matched reviewed head `bfbadfa42513791899fc8d2b5441238bbe5b2c4e`.
314
+ Exact-main [CLI run 39076708873](https://github.com/abruption/session-peer-ts/actions/runs/39076708873)
315
+ and [CodeQL run 39076708830](https://github.com/abruption/session-peer-ts/actions/runs/39076708830)
316
+ passed.
317
+
318
+ [Publication workflow 39077096491](https://github.com/abruption/session-peer-ts/actions/runs/39077096491)
319
+ completed successfully on attempt 1 for that exact source. Its Ubuntu preparation
320
+ job passed **383 total / 355 passed / 0 failed / 28 skipped**; these are the
321
+ actual platform-scoped counts, not the macOS preparation counts below. Build,
322
+ types, repository checks, reproducible package smoke, isolated installation and
323
+ removal, and npm audit passed. The uploaded artifact ID was `12117507059`, with
324
+ ZIP SHA-256 `b4eb62a6c68be0319d5d7013f11d11e9b438866f3a63359cc1808c91cbe61494`.
325
+ The ZIP digest identifies the artifact container, not the package tarball.
326
+
327
+ The reviewed, local, Actions, staged and public `session-peer-0.4.0.tgz` bytes
328
+ matched. The public tarball is 321,256 bytes and contains the exact 71-file
329
+ allowlist. All 18 packaged Markdown documents matched the publication source.
330
+ The release helper validated the exact downloaded artifact rather than a later
331
+ rebuild. Package hashes are:
332
+
333
+ - SHA-256: `84adc8b50ef8f03a2c2170e3c36a97b573f28a6bcbeb7dbc965e16c3b37a57c9`.
334
+ - npm integrity: `sha512-mMNJ118atoflhpFTkf2+DtO7MRf7FQnPK3lKWbq/vd8Xvb5DsjUtAgydIBOcd3Xj9BCYGqM50aFhzUr4dDGHSw==`.
335
+
336
+ Registry signature audit passed. Public attestation subjects matched the exact
337
+ tarball SHA-512, and the SLSA payload bound the repository, `refs/heads/main`,
338
+ `.github/workflows/publish.yml`, source `dde3923efe116f87f38b1639b29b889d2b832e44`,
339
+ `workflow_dispatch`, and run `39077096491/attempts/1`. This was also verified
340
+ cryptographically with npm 11.15.0's bundled Sigstore verifier, including the
341
+ certificate/transparency material and the exact workflow identity
342
+ `https://github.com/abruption/session-peer-ts/.github/workflows/publish.yml@refs/heads/main`
343
+ with issuer `https://token.actions.githubusercontent.com`. These cryptographic
344
+ checks are distinct from merely decoding and comparing the payload. A separate
345
+ fresh isolated package installation, CLI/list check and removal passed; no user
346
+ installation was replaced.
347
+
348
+ Fresh authenticated checks confirmed no conflicting pending stage and the
349
+ Trusted Publisher's stage-only permission. The user explicitly waived this
350
+ release's separate web **publish 2FA policy inspection**; that policy was not
351
+ freshly audited. The protected GitHub `npm` environment required reviewer
352
+ `abruption`, disallowed administrator bypass, and allowed only `main`; environment
353
+ and repository Actions secret counts were both zero. The environment approval
354
+ and final npm 2FA approval were completed by the user. The approved stage was
355
+ `414547b1-1b55-45dc-a0a4-9ca40407beec`. OIDC staging used no token fallback or
356
+ protection bypass. Staging success was not treated as publication before registry
357
+ verification.
358
+
359
+ The annotated `v0.4.0` tag object is
360
+ `7aad7bc6400499fbc1c323bd62f2210b3507fc9a`, peeled to the exact publication source
361
+ `dde3923efe116f87f38b1639b29b889d2b832e44`.
362
+ [GitHub release v0.4.0](https://github.com/abruption/session-peer-ts/releases/tag/v0.4.0)
363
+ was published as the latest release. No replacement source was assigned to the
364
+ published package or tag.
365
+
366
+ Publication added no new native/model, remote-host delivery or ACK qualification.
367
+ Native observation retains the previously recorded exact Codex 0.160.1/0.162.1
368
+ and macOS arm64 scope; explicit `operator_confirmed` receipts on supported POSIX
369
+ ledgers remain separate from automatic ACK collection. Linux observation,
370
+ Windows observation/private storage, and authenticated automatic receipt
371
+ producer/collector bootstrap remain follow-ups #130, #131 and #132. Queue
372
+ acceptance, injection, turn completion and plain replies do not automatically
373
+ establish receipt ACK; unknown outcomes never authorize a resend.
374
+
375
+ The published TS skill remains 0.2.1 at immutable source
376
+ `0f494cabd05901c03161dc91792dcf89f8e96631`, with SKILL SHA-256
377
+ `8c3520f95e0d6807303be96bfa06df69887ddaf76be05f1905505d0a956820c3`.
378
+ The separate skill 0.3.0 candidate and finite runtime/profile review do not
379
+ publish, install or adopt a new skill pin. Skill finalization and publication
380
+ require their separate approval and exact artifact checks.
381
+
382
+ ## 0.4.0 preparation checks — 2026-10-18 KST
383
+
384
+ Preparation source checkpoint `2fc936fa1557fd59ce561446d5239c7030df3d56`
385
+ uses locally integrated dependency tree `d83635d6ed1c668fc33e42754f652c123350ddad`
386
+ and the 0.4.0 version/baseline/finite skill row. These are local preparation
387
+ checkpoints, not publication or a claim that the projected dependency commit is
388
+ merged. The release PR records final merged dependency/source SHAs and its own
389
+ current-head CI/reviews. Later rebases must preserve the verified runtime/test
390
+ tree or rerun affected checks.
391
+
392
+ The dependencies were subsequently merged in authorized order with exact-head
393
+ squash binding and no protection bypass: #106 `81d1aece70b414b6aef00641076bd2716f630f6e`,
394
+ #107 `1e788be6b02c414b3c7de5bbad37afc7e293c2ff`,
395
+ #108 `d645a692f8e402dd224691410fa89be502e45383`,
396
+ #109 `be6adb26f844e7158362a8fcd6d379fbe8d46864`. Each merged tree matched its
397
+ reviewed head. Release preparation was rebased onto that final main; its tree
398
+ was unchanged before this documentation addition.
399
+
400
+ #109 CI39045571298 first failed one macOS Node22 SSH fixture with a pre-queue
401
+ `app_server_owner_changed`; other matrix jobs passed. Local Node24 focused and
402
+ parallel diagnostics passed, followed by official Node22.23.3 arm64 focused/full
403
+ 387/382/0/5 passing checks. The local Node22 path contains spaces, so a private
404
+ test-only POSIX/JS shebang adapter preserved exact binary/filename/arguments;
405
+ this was not an unmodified CI-environment reproduction or a runtime guard change.
406
+ The initial unadapted local run failed because of those invalid fixture
407
+ shebangs and is excluded from product diagnosis. The original CI cause remains
408
+ unconfirmed. Only failed macOS22/release-gate jobs were rerun once on the same
409
+ source; attempt2 passed. Both current-head automatic reviews completed without
410
+ findings. The initial failure is not reclassified as an all-green first run.
411
+ Final main and preparation-head CI/review results are recorded in the release PR.
412
+
413
+ On macOS arm64 / Node 24.16.0, `npm test` (including build and type checking)
414
+ passed **389 total / 384 passed / 0 failed / 5 Windows-only skipped**. The oracle
415
+ is the hash-checked isolated published Python 1.1.0 source
416
+ `8ca77cf31254c8287a2593fe484bb30a7dba2727`; ordinary conformance and pure validator
417
+ comparisons do not establish end-to-end runtime parity. Initial preparation
418
+ exposed two stale update-notice regex expectations, corrected before the final
419
+ passing run. `npm run test:package` passed reproducible archive checks, isolated
420
+ install/removal, and bash/zsh shorthand contract/lifecycle checks. Repository
421
+ structure, links/anchors and diff checks passed; npm audit reported zero
422
+ vulnerabilities. The CLI reports `session-peer 0.4.0 (typescript)`.
423
+
424
+ The finite 0.4.0 metadata row retains the three published profiles and the exact
425
+ proposed skill 0.3.0/min0.1.0/full0.4.0/probe-help tuple. Complete Draft37 fixture
426
+ `b8ff909ffc5fe1e5b22c66a5c302be8332a76038` is 20,162 raw UTF-8 bytes, SHA-256
427
+ `1ae3690cb5d03777bf448cf06496fed27e4a9329deb03741d6d956a3b13c5ed4`.
428
+ Default/undefined/explicit/outer-inspection and historical/future/malformed
429
+ fixtures pass. This is candidate-specific metadata/content review, not a
430
+ published skill, content authentication, execution, final whole-byte freeze or
431
+ installation-pin adoption. Public skill 0.2.1 source/hash remain unchanged.
432
+
433
+ Fresh regression evidence covers prepared recipient continuity, encrypted
434
+ journal/key failures, overlapping wait operations, actual queue-process build
435
+ mismatch, executable replacement, expired probes and SQLite replacement across
436
+ the durable guard/final owner check. These use synthetic private homes, owned
437
+ Node children, scripted/native-shaped protocol peers and actual Darwin lsof
438
+ against those owned fixture descriptors. No new actual Codex/model/user-session
439
+ input, remote-host delivery, automatic receipt or ACK qualification was performed.
440
+ Native observation remains limited to the earlier recorded exact macOS profiles;
441
+ Linux/Windows observation and automated receipt bootstrap remain #130–#132.
442
+
443
+ Read-only registry checks on this preparation date found latest=0.3.6,
444
+ preview=0.1.0-preview.1, 0.4.0 absent, and previous stable integrity matching the
445
+ new release baseline. No authenticated pending-stage/publisher/MFA audit,
446
+ publication dispatch, environment approval, final npm approval, tag, release or
447
+ fleet/global installation was performed. Historical exceptions do not carry
448
+ forward. Local packaging hashes before this record/final source are not the
449
+ final release artifact; the PR records exact committed-source artifact checks.
450
+
451
+ ## Public 0.3.6 — 2026-10-14 KST
452
+
453
+ `session-peer@0.3.6` is public; verified `latest=0.3.6` with unchanged `preview=0.1.0-preview.1`. Publication source is `27fc741f7dabf075e3d6f19f48f3e71d7bdc27a6`, merged from [PR #148](https://github.com/abruption/session-peer-ts/pull/148). The prepared source tree matched reviewed head `526fc9aaa53e674a9bc6882a6dd207c67c402904`; exact-main CLI run 38495616148 and CodeQL run 38495616311 passed. [Stage-only run 38496584629](https://github.com/abruption/session-peer-ts/actions/runs/38496584629) completed with protected GitHub npm environment and final user npm approval. Stage ID was `c6b468f1-6ac2-4301-80c6-03f16cb36038`.
454
+
455
+ Reviewed local, retained Actions, staged and public tarballs are byte-identical. SHA-256: `510e06ea1e118ceadb4096ec2fe9e564b2832e133aa0a21614d8b12db1764181`; registry integrity: `sha512-8uR9/x9q2AWp/zfJox0CMgm919M7kxpAjR2vGd/ntuS2AAwQh4ohbDmAtyxLyLoEE8IPsZVEbPKHCChvIJBuoQ==`. Every packaged Markdown document (18) matched the reviewed source. Registry signatures and publish/provenance attestations share the archive's exact SHA-512 subject. SLSA provenance binds repository `abruption/session-peer-ts`, `refs/heads/main`, `.github/workflows/publish.yml`, source `27fc741f…` and run 38496584629 / attempt 1. `npm audit signatures` and isolated version-specific install/list/uninstall passed on macOS arm64/Node 24.16.0 / npm 11.15.0. These packaging checks do not qualify new native delivery or ACK behavior.
456
+
457
+ The annotated `v0.3.6` tag object is `0b51f02e7fd19c132a550bcfac4ae795f914f0dd`; its peeled source is the publication commit above. [GitHub release v0.3.6](https://github.com/abruption/session-peer-ts/releases/tag/v0.3.6) is published as Latest. This verification record is a later documentation update; the immutable npm artifact/tag continue to point to the original publication source.
458
+
459
+ The user explicitly skipped fresh Trusted Publisher mapping and web publish-MFA policy reads for this 0.3.6 publication. Neither setting is claimed as freshly audited. Ownership/pending stages, GitHub environment reviewer/main-only/no-admin-bypass/zero-secret gates were checked; protected environment and final npm approval were completed. No token fallback, settings change or protection bypass was introduced. Runtime and published skill 0.2.1 remain separately managed; Python 1.0.2 reference and preview are unchanged. SSH still requires identical TS versions on both ends. No fleet/global installation, actual native/model send/consumption/ACK test or unshipped 0.4 feature was added.
2
460
 
3
461
  ## 0.3.6 preparation checks — 2026-10-14 KST
4
462
 
@@ -132,6 +590,353 @@ request-count assertions are preserved. This was test isolation, not a runtime
132
590
  failure or a CI rerun treated as an unchanged-head success. Final PR-head CI
133
591
  results are recorded in the PR after the correction.
134
592
 
593
+ ## 0.4.0 scoped acceptance follow-up — 2026-10-11 KST
594
+
595
+ The user approved qualified macOS arm64 Codex observation and explicit operator
596
+ confirmation as the limited 0.4.0 scope. #69/#70/#71/#72 remain together. Linux
597
+ client-ID observation #130, Windows observation/private handoff storage #131
598
+ and voluntary receipt producer/authenticated collector bootstrap #132 are
599
+ Future extensions, not mandatory platforms/collectors for this release. Required
600
+ unsupported goals still refuse before effect; ordinary queues/manual receipts
601
+ do not qualify native observation or automated receipt authentication.
602
+
603
+ The source follow-up updates four-language README/guide scope, API and PARITY
604
+ without changing runtime or the frozen contract/pin bytes. Dated 0.3.3 preparation
605
+ evidence is retained; installation examples and explicitly unreleased handoff
606
+ sections are distinguished. SQLite may evaluate body-bearing cells internally;
607
+ body/error values are not returned to JavaScript or ordinary output.
608
+
609
+ Pure-validator cross-runtime checks invoke exact published Python 1.1.0
610
+ `8ca77cf31254c8287a2593fe484bb30a7dba2727` standalone and canonical handoff
611
+ module hashes, never its main/ledger/native CLI/collector. Five tests/45 data
612
+ cases passed: 19 accepted examples spanning all seven states, 12 schema/privacy/
613
+ ACK/retry negatives, four Python unsupported-observation state projections,
614
+ four Claude optional-absence/native-profile cases and six Codex native-profile
615
+ cases. Python UUID reason names remain distinct from TS. The first launch lacked
616
+ the reference environment (ENOENT), and the next run exposed an incorrect
617
+ expected Python UUID reason; both were corrected before the final pass. This is
618
+ actual pure-function comparison, not native delivery/receipt/runtime parity.
619
+
620
+ Focused ACK core/CLI checks passed 55/55 after adding wrong correlation/epoch/
621
+ generation and malformed/private-input negatives, byte-identical ledger
622
+ preservation and positive/duplicate operator confirmation with no native queue.
623
+ The companion guidance candidate is tracked in session-peer-skill #31. Its named
624
+ session was inactive at dry-run, so no message was queued and no wake/resume was
625
+ used. Existing skill metadata/immutable pin are not upgraded by this work.
626
+
627
+ The SSH handoff suite passed 14/14 on macOS arm64. Three destination-side Codex
628
+ fixtures cover exact-ID injection, no injection before deadline and queue-response
629
+ loss, with original preparation binding and at most one queue RPC. These use fake
630
+ SSH and a scripted native peer, not a new remote/native qualification. The request
631
+ budget is 15 seconds; the harness has a separate 20-second cleanup limit.
632
+
633
+ Integrated `npm test` (including build and type checks) passed 347 tests:
634
+ 342 pass, zero fail, five Windows-only skips on macOS arm64 / Node 24.16.0.
635
+ Packaging and exact-head CI are recorded in PR #109. Tests are separate from the
636
+ earlier KR/US real ordinary queues and local native qualification. Issue checklists
637
+ and publication approval are separate gates; no merge/release/tag operation is
638
+ included here.
639
+
640
+ ## 0.4.0 owner-probe fixture follow-up — 2026-10-11 KST
641
+
642
+ CI run `38110140277` at test/docs checkpoint
643
+ `60895b46d8758c7427b90bc154414bd4d01487e7` failed the macOS Node 22
644
+ positive-acceptance/ledger-failure regression: it returned
645
+ `app_server_owner_changed` before the intended persistence failure.
646
+ The other platform jobs passed; the release gate failed, so this run is not
647
+ all green. CodeQL run `38110137845` passed with no open branch alerts.
648
+ The holder remains alive until test cleanup; no holder expiry was found.
649
+ The bounded owner probe had four extra Node starts for its fake lsof/ps tools,
650
+ in addition to the production 250ms sample interval. This is a fixture startup
651
+ burden consistent with the failure, not proof of its precise timing cause.
652
+
653
+ The fixture now uses static POSIX scripts for lsof/ps and keeps owner evidence
654
+ as separate raw NUL-delimited data. PID, UID, start identity, changed-owner
655
+ checks, real lock holder and cleanup are preserved. Production 800ms probe
656
+ budget, 250ms recheck, refusal behavior and regression assertions are unchanged.
657
+ No runtime, native qualification or platform-support change is part of this fix.
658
+ The focused macOS arm64 / Node 24.16.0 delivery suite passed 16/16, including
659
+ the intended persistence failure and changed-owner refusal. Follow-up full
660
+ validation and exact-head CI are recorded in PR #109.
661
+
662
+ ## 0.4.0 real Linux SSH submission checks — 2026-10-11 KST
663
+
664
+ The unpublished development checkpoint `e83fcffa2dbee33de0694e30b6420d83a128fc5e`
665
+ was copied explicitly to fresh, private marked test prefixes on two Linux
666
+ arm64 hosts. Both ends used that candidate, rather than the public npm package
667
+ whose version label is also 0.3.3. Candidate/dependency archive SHA-256 was
668
+ `aadfd3630b67d905a8f474e305f972c7bf670a99365c62dd53fa83d1e04764da`;
669
+ each destination verified the hash before extraction. No global installation,
670
+ profile, service, SSH trust, native configuration or authentication change was
671
+ made. SSH used strict host-key checking, batch authentication and no control
672
+ socket. Each private destination ledger was explicitly initialized.
673
+
674
+ On the first host, Node 24.16.0 / native Codex 0.162.1, the user-authorized
675
+ existing session passed saved-thread and unique stable live-writer dry-run
676
+ checks. One best-effort correlated send exited 0 with `queued`,
677
+ `submitted=true`, an optional native `queueId` and handoff `submitted`.
678
+ Observation and automatic ACK remained `unsupported`; a later status query
679
+ preserved those facts. A requested voluntary reply was not yet received at
680
+ this checkpoint; no transcript or queue polling was used to infer receipt.
681
+
682
+ On the second host, Node 24.18.0 / native Codex 0.159.2, the existing saved
683
+ session was inactive and dry-run correctly refused with `inactive_writer`.
684
+ It was neither resumed nor queued through inactive opt-in. A separately owned
685
+ read-only test TUI in an already trusted working directory produced READY,
686
+ passed unique live-writer dry-run, and received exactly one candidate SSH
687
+ submission. The original terminal displayed its requested identification
688
+ response. An explicit operator confirmation bound to the original correlation,
689
+ ledger epoch and generation was recorded before any separate wait: confirmation
690
+ and status exited 0 with `acknowledged`, `assurance=operator_confirmed`,
691
+ `late=false`; a subsequent acknowledged wait exited 0 with `satisfied` and
692
+ performed no submission. This is operator attestation, not automated receipt
693
+ authentication or native client-ID observation. The test TUI closed and
694
+ `inspectWriter` then reported inactive/absent. Its native test record remains;
695
+ no existing native record was deleted.
696
+
697
+ On both hosts, required `--wait-for delivered` refused before effect with
698
+ `evidence_unsupported`, `submitted=false` and retry disallowed. Best-effort
699
+ results retained `consumptionConfirmed=false`; neither queue receipt nor
700
+ terminal response changed that field. These are real SSH/native ordinary-queue
701
+ checks, not Linux observation qualification: Linux native app-server/client-ID
702
+ projection and automatic original-sender SSH ACK bootstrap remain unsupported.
703
+ Both marked remote prefixes and their test ledgers were removed with ownership
704
+ checks, and their absence was verified. Local evidence retains only the test
705
+ results; public descriptions omit host/account paths and session identifiers.
706
+
707
+ ## 0.4.0 integrated SSH review checkpoint — 2026-10-11 KST
708
+
709
+ Independent read-only review used Claude Code 2.1.296 with tools disabled and
710
+ no session persistence. The first 163,540-byte input timed out after 240 seconds
711
+ (exit 143, no response), so it supplied no review evidence. One narrower
712
+ 104,671-byte retry completed in 268.508 seconds with exit 0, `is_error=false`
713
+ and actual model `claude-opus-5-5` (first-party). Its input SHA-256 was
714
+ `69169aacf2c7f02d6606aebbdb23961e2694a0845e86875f2848469ea97a1718`,
715
+ unchanged before/after the call. Neither call edited files or ran tests.
716
+
717
+ The review identified two required corrections: a complete successful
718
+ preparation followed by SSH failure must refuse the actual send, and a
719
+ post-submission persistence failure must preserve a verified pending wait
720
+ instead of losing its identifiers or inventing a terminal record. A stopped
721
+ wait with the wrong process exit is also discarded without discarding separate
722
+ native acceptance facts. These fixes and the earlier partial/no-EOF input
723
+ deadline correction have focused regression tests; subsequent integrated
724
+ test results are recorded separately. The review input predates those final
725
+ corrections and is not a whole-final-commit external verification.
726
+
727
+ A subsequent internal source audit found that failed-wait normalization could
728
+ discard the original malformed/missing `error` before envelope validation. The
729
+ regression now rejects that handoff while retaining independently valid native
730
+ acceptance facts. The first integrated full run recorded 337 total / 331 pass /
731
+ 1 failure / 5 skips: a sub-millisecond early probe cutoff attempted to commit a
732
+ timeout before its exact monotonic deadline and therefore retained pending
733
+ state. The fix waits out only that fractional tail within the existing budget;
734
+ it neither extends the deadline nor invents a persisted terminal result. The
735
+ corrected run is recorded below.
736
+
737
+ The corrected integrated macOS arm64 / Node 24.16.0 run used the exact published
738
+ Python 1.1.0 export as `SESSION_PEER_PYTHON_ROOT` and
739
+ `PYTHONDONTWRITEBYTECODE=1`: `npm test` (build, test:types and all test files)
740
+ passed **337 total / 332 passed / zero failed / five Windows-only skipped**.
741
+ The preceding focused SSH/delivery run passed 27/27. Repository/link/anchor and
742
+ diff checks passed; `npm audit` reported zero vulnerabilities. These fixture
743
+ results do not widen the native/platform or actual Windows evidence above.
744
+
745
+ The first packaging invocation failed its reproducibility check because this
746
+ validation document was edited between its two packs. That invocation is not a
747
+ successful package check. Source/document edits were then stopped before the
748
+ repeat packaging check; its result and the exact-commit artifact are reported
749
+ in the PR checkpoint separately.
750
+
751
+ The apparent fanout deadline extension follows the frozen **per-destination**
752
+ budget, rather than one aggregate invocation deadline. Each destination keeps
753
+ one setup/preparation/effect/observation budget with its cleanup reserve;
754
+ sequential fanout can take their sum. Independent clocks cannot measure SSH
755
+ transit delay, and an unknown source result may precede a delayed destination
756
+ effect. No retry is authorized. A rejected dry-run timeout example lacked the
757
+ required prepared correlation and already fails option validation; it did not
758
+ require a runtime change.
759
+
760
+ ## 0.4.0 additional native verification — 2026-10-11 KST
761
+
762
+ These are unpublished development checks on isolated, newly created test
763
+ sessions. They do not establish final whole-commit/full-suite CI or authorize
764
+ publication. Existing working sessions received no test message. Evidence is
765
+ bounded to the tested compiled components; later integrated checks are separate.
766
+
767
+ ### Codex: exact metadata observation and manual confirmation
768
+
769
+ On macOS arm64 / Node 24.16.0, native Codex **0.162.1**, upstream source
770
+ `092d3acd6bec3e3a14bdc7e7a2810ab628ab759d`, was checked against the
771
+ version/platform/source and live evidence in
772
+ [`metadata-observation-native-evidence.json`](test/fixtures/metadata-observation-native-evidence.json).
773
+ The production reader matched the original exact client message ID, original
774
+ thread and generation before/after observation, and a positively linked
775
+ completed turn. Native item ID differed from client ID; neither that turn
776
+ completion nor the queue receipt was treated as ACK. The probe returned
777
+ bounded IDs/status only, with no body or history API output. SQLite internally
778
+ projects metadata from a body-bearing cell; this is not a promise that SQLite
779
+ never accesses body bytes.
780
+
781
+ Actual CLI checks used two additional fresh test threads, **one native queue
782
+ attempt per thread**, with no fallback or resubmission. Both observe-send
783
+ commands exited 0 with `status=queued`, `submitted=true`,
784
+ `consumptionConfirmed=false` and retry disallowed. A separate delivered wait
785
+ on the first thread was satisfied with exact injection evidence; status query
786
+ exited 0. Starting that wait before manual confirmation lost provable ordering:
787
+ confirmation correctly exited 1 with `receipt_order_unprovable`, retaining
788
+ original delivery facts and performing no requeue.
789
+
790
+ On the second thread, the operator verified the test-only voluntary response
791
+ against the original correlation, then confirmed **before starting another
792
+ wait**. Confirmation and status exited 0 with `state=acknowledged`,
793
+ `assurance=operator_confirmed`, `late=false`; a subsequent acknowledged wait
794
+ was satisfied and exited 0. This is an explicit operator attestation, not an
795
+ automated receipt collector or model identity proof. Automated receipt
796
+ capability remains unsupported. All owned test terminals were closed. Native
797
+ home test records were retained; no existing native record was deleted.
798
+
799
+ The fixture records exact compiled component hashes, including
800
+ `dist/metadata-observation.js` SHA-256
801
+ `4d01dae9a90f4cda3c7b45bf0c126067bff403f345d0d23bc593cc57363e0f83`
802
+ and `dist/handoff-ledger.js`
803
+ `efb46bcd1892ba9eb843a4ae603987f15ce535d942938dfe2c0e98a1343edcb9`.
804
+ These identify the tested components, not a final integrated commit.
805
+
806
+ ### Claude: correlated submission and unsupported required ACK
807
+
808
+ A separate test-only Claude Code **2.1.296 / Opus 5.5** session on macOS
809
+ arm64 / Node 24.16.0 produced a READY response. Its launch identity, PID and
810
+ fresh private working directory were checked before each submission. Native
811
+ Claude assigned a non-null name; nullable names remain synthetic fixture
812
+ coverage. No tools, commands, file tasks or external messages were requested.
813
+
814
+ A prepared-ID correlated send and a separate best-effort `--request-ack`
815
+ send each submitted exactly once and exited 0 with `status=posted`,
816
+ `submitted=true`, `consumptionConfirmed=false`, handoff state `submitted`
817
+ and retry disallowed. Each produced its own identification-marker response
818
+ in the owned terminal. Subsequent status queries retained state `submitted`,
819
+ `injectionObserved=false` and ACK `not_requested`/`unsupported`: a plain
820
+ assistant response was not promoted to machine ACK or native observation.
821
+ Required `--wait-for acknowledged` instead exited 1 before effect with
822
+ `evidence_unsupported`, `status=refused`, `submitted=false` and unsupported
823
+ ACK/wait. Its marker never appeared in the owned terminal. Zero effect is
824
+ supported by the pre-effect code/result contract and terminal check, not socket
825
+ instrumentation. The terminal closed; its PID and native registry record were
826
+ absent. Private workspace, message files and sender ledger were removed.
827
+
828
+ The tested Claude compiled `dist/cli.js` SHA-256 was
829
+ `7195f5bd049bdba7ffbffd1d69473d9b90f9a42646851697e1df149054dc5d1f`;
830
+ `dist/handoff-operations.js` was
831
+ `99e15fbd8ad04e5f28490512b61bf0296b21d96ee787d63d1b8293e905f8665e`.
832
+ This earlier build differs from the subsequent Codex build; these results
833
+ must not be presented as a single final whole-commit run. Default native CLI
834
+ authentication was used without reading, copying or recording credentials.
835
+
836
+ ### Windows: separate failed real-host fixture gate
837
+
838
+ The actual Windows 10 x64 / Node 24.16.0 suite recorded **266 total,
839
+ 155 passed, 2 failed, 109 skipped**. The child failure and enclosing failure
840
+ refer to one underlying fake-SSH path, not two independent runtime defects.
841
+ The unsupported native-platform qualification guard selection separately
842
+ passed 3/3; it does not qualify observation on Windows.
843
+
844
+ Additional strict/batch SSH diagnostics compiled the repository C# fixture.
845
+ Twelve minimal Node/PowerShell child-launch controls passed across standard
846
+ stream redirection and window settings; encoded PowerShell `exit 0` also
847
+ passed. The owned test `.cmd --version` command instead reproduced
848
+ `Win32Exception: Access is denied` in `Process.StartWithCreateProcess`, with
849
+ both ordinary and isolated HOME/USERPROFILE, including a failure followed by
850
+ a successful `exit 0` control in the same executable. General process creation
851
+ worked; the exact host cause remains unverified. A recent Defender event query
852
+ with no matches neither identifies nor excludes a security product/policy.
853
+ The **real-host SSH fixture gate remains unpassed**; fixture CI is distinct
854
+ and cannot erase this result. No policy, permission, service, guard or execution
855
+ bypass was applied. No real agent/native queue was invoked by these Windows
856
+ fixtures. The marked remote diagnostic directory was deleted and its absence
857
+ confirmed. No private hostnames, account paths or session identifiers are
858
+ included here. Windows native observation, SSH handoff, automated ACK,
859
+ restart/crash continuity and other native versions/platforms remain outside
860
+ these successful macOS checks.
861
+
862
+ ### Windows follow-up: alternate test launcher
863
+
864
+ Further controls on the same Windows 10 x64 / Node 24.16.0 host separated
865
+ launcher behavior without changing policies, permissions, services or production
866
+ guards. C#/.NET Framework launching PowerShell 5.1 `-EncodedCommand` reproduced
867
+ AccessDenied for both the owned `.cmd` wrapper and a direct Node version command.
868
+ The same PowerShell 5.1 encoded command launched by Node succeeded, as did
869
+ PowerShell 5.1 `-File`, direct `cmd.exe /d /s /c`, and the already installed
870
+ PowerShell 7 alternatives. This identifies a tested launcher-dependent difference;
871
+ it does not establish which security product or host setting caused the failure.
872
+
873
+ The test-only C# fake SSH now delegates to a fixed Node helper, preserving
874
+ PowerShell 5.1, `-NoProfile -NonInteractive -EncodedCommand`, the encoded request,
875
+ stdin, stdout/stderr and exit behavior. No execution-policy option or production
876
+ fallback was added. The helper's 55-second child limit remains inside the fake
877
+ SSH parent's 60-second limit; harness timeout returns 254, not native success.
878
+
879
+ An isolated copy of checkpoint `e83fcffa2dbee33de0694e30b6420d83a128fc5e`
880
+ with only those three test-file changes passed build/types, the Windows native
881
+ contract **9/9**, and `npm run test:windows`: **295 total / 165 passed / zero
882
+ failed / 130 skipped**. Unsupported native-platform guards separately passed
883
+ 3/3. This replaces the failed fixture execution path with a validated alternate
884
+ test launcher; the original failure record above remains historical evidence.
885
+ It neither qualifies Windows native observation/ACK nor proves a real remote
886
+ agent send. The final C# fixture additionally requires the exact production
887
+ PowerShell prefix and one base64 token. Three real-host controls passed: exact
888
+ version command exits 0, a changed option is refused with exit 2, and trailing
889
+ whitespace is refused with exit 2. The C# file SHA-256 was
890
+ `b7845190939d4d915c56d1d072f23f5eeac3447a9994791d0b06ea2f0f147c38`.
891
+ The final guarded contract repeat and ownership-checked cleanup are reported
892
+ in the PR checkpoint. The integrated macOS arm64 / Node 24.16.0 run after these
893
+ test-file changes passed build/types and all tests: **337 total / 332 passed /
894
+ zero failed / five Windows-only skipped**, using the same exact Python 1.1.0
895
+ reference export. Repository/diff checks passed and audit reported zero
896
+ vulnerabilities. No runtime source or package metadata changed in this follow-up.
897
+
898
+ ## Python 1.1.0 ordinary comparison — 2026-10-11 KST
899
+
900
+ Unpublished 0.4.0 development checkpoint: an isolated `git archive` export of
901
+ published Python 1.1.0 commit `8ca77cf31254c8287a2593fe484bb30a7dba2727`
902
+ was compared with the #69 worktree at `d62e813c8146e9832659654a850734fc986fd3d7`.
903
+ Only the subsequent published-design identity correction was pending; it did
904
+ not change the selected list/discovery source. No user's Python checkout,
905
+ agent home or saved thread was used. Archive SHA-256:
906
+ `7243c124398ec3b4cf4541881788dac955247d50949339e5f9f659bbb0d15ff9`.
907
+
908
+ macOS arm64 / Node 24.16.0 / Python 3.15.0 command:
909
+
910
+ ```sh
911
+ SESSION_PEER_PYTHON_ROOT=<exact-reference-export> TASK_TEMP=<private-fixtures> PYTHONDONTWRITEBYTECODE=1 node --import ./test/fixtures/isolate-env.mjs --experimental-strip-types --test test/conformance.test.ts test/discovery.test.ts
912
+ ```
913
+
914
+ Result: **21 tests, 21 passed, zero failed/cancelled/skipped**, exit 0 and empty
915
+ stderr. The private fixture directory was empty after test cleanup. These
916
+ existing tests compare ordinary listing/discovery projections and exercise
917
+ synthetic refusal paths; they do not establish full send/handoff/SSH
918
+ interoperability, native model delivery or ACK. No real native queue, message,
919
+ receipt, installation, policy or operation change occurred.
920
+
921
+ The subsequent candidate ordinary reference pin uses this exact release;
922
+ `test/fixtures/python-reference.pin.json` records its scope and selected source
923
+ hashes. `compatibility-v1.json` SHA-256 remains
924
+ `afd5a0b37562bb6a81afa9c20628bfae0cfe4d1caf9e88db402005fc42aabcd7`,
925
+ byte-identical to the historical 1.0.2 fixture. Frozen handoff design bytes and
926
+ the historical design baseline are unchanged. The earlier 0.3.x validation
927
+ records below retain their actual 1.0.2 oracle; the public npm 0.3.3 artifact
928
+ is not rewritten. Current integrated CI on the new pin is a separate gate.
929
+
930
+ After applying the candidate reference-pin changes on the #69 worktree based
931
+ on `f99417b`, `npm run build` and `npm run test:types` passed. The same isolated
932
+ reference export was used for the conformance/discovery/updates/handoff-contract
933
+ selection: **44 tests passed, zero failed/cancelled/skipped**, exit 0. The new
934
+ source-hash pin checks executed. Update tests use fixture registries and private
935
+ caches, not the public registry or an actual installation update. The repository
936
+ metadata/link/anchor checker and `git diff --check` passed. These are candidate
937
+ checks before root integration/current-head CI, not a public release or broader
938
+ native/ACK validation.
939
+
135
940
  ## 0.3.3 candidate preparation — 2026-10-09 KST
136
941
 
137
942
  Preparation [#128](https://github.com/abruption/session-peer-ts/issues/128)