session-peer 0.4.0 → 0.5.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/PARITY.md +115 -6
- package/README.ja.md +9 -10
- package/README.ko.md +9 -10
- package/README.md +9 -10
- package/README.zh-CN.md +9 -10
- package/RELEASING.md +115 -0
- package/VALIDATION.md +407 -1
- package/dist/app-server.d.ts +19 -2
- package/dist/app-server.js +159 -24
- package/dist/cli.js +12 -2
- package/dist/handoff-ledger.js +5 -1
- package/dist/handoff-operations.d.ts +4 -0
- package/dist/handoff-operations.js +29 -4
- package/dist/handoff-writer-probe.js +29 -6
- package/dist/linux-native-probe.d.ts +1 -0
- package/dist/linux-native-probe.js +51 -0
- package/dist/linux-proc.d.ts +55 -0
- package/dist/linux-proc.js +150 -0
- package/dist/metadata-observation.d.ts +3 -2
- package/dist/metadata-observation.js +25 -14
- package/dist/native-profiles.d.ts +25 -0
- package/dist/native-profiles.js +62 -0
- package/dist/process.d.ts +28 -0
- package/dist/process.js +284 -2
- package/dist/protocol.d.ts +2 -2
- package/dist/protocol.js +1 -1
- package/dist/skill-metadata.js +5 -3
- package/dist/ssh.d.ts +2 -1
- package/dist/ssh.js +37 -2
- package/dist/windows.d.ts +28 -0
- package/dist/windows.js +149 -1
- package/docs/api.md +16 -6
- package/docs/design/typescript-skill-compatibility.md +60 -0
- package/docs/guide.ja.md +15 -15
- package/docs/guide.ko.md +17 -17
- package/docs/guide.md +16 -16
- package/docs/guide.zh-CN.md +15 -15
- package/docs/shorthand.md +1 -1
- package/package.json +3 -3
package/VALIDATION.md
CHANGED
|
@@ -1,4 +1,410 @@
|
|
|
1
|
-
# Validation record — updated 2026-10-
|
|
1
|
+
# Validation record — updated 2026-10-20 KST
|
|
2
|
+
|
|
3
|
+
## 0.5.1 dependency patch preparation — 2026-10-27 KST
|
|
4
|
+
|
|
5
|
+
Baseline source: main `028780338310c9cfe469e1e1587857f730e99a1a`.
|
|
6
|
+
The only intervening change from public 0.5.0 is README download-badge wording.
|
|
7
|
+
Fresh npm advisory bulk checks across current main and the four open PR locks
|
|
8
|
+
reported no advisory; open Dependabot and CodeQL alerts were empty. The scheduled
|
|
9
|
+
[audit run](https://github.com/abruption/session-peer-ts/actions/runs/40295976850)
|
|
10
|
+
on that exact main passed npm audit and signature/provenance checks on 2026-10-26.
|
|
11
|
+
These facts do not prove the absence of every vulnerability.
|
|
12
|
+
|
|
13
|
+
The actionable dependency defect is official smol-toml 1.9.1's
|
|
14
|
+
[repeated-exponent-sign fix](https://github.com/squirrelchat/smol-toml/releases/tag/v1.9.1).
|
|
15
|
+
With installed 1.9.0, `foo=3e++20` and `foo=3e--20` both produced `{foo:3}`.
|
|
16
|
+
Two new doctor/transport regressions failed before the update: doctor reported
|
|
17
|
+
`available` instead of `unknown`, and send/dry-run did not report
|
|
18
|
+
`codex_config_unreadable`. With pinned 1.9.1 both regressions pass, including
|
|
19
|
+
root/nested invalid numbers, valid single-sign controls and no fixture queue call
|
|
20
|
+
on refusal. This establishes incorrect malformed-config handling, not an actual
|
|
21
|
+
relocated-storage bypass, credential exposure or live-agent exploit.
|
|
22
|
+
|
|
23
|
+
The tests use isolated fixture homes/queues. No existing user session, remote
|
|
24
|
+
host, global installation or native/model/ACK experiment is used. Full package,
|
|
25
|
+
profile/release and current-head CI results belong to the patch PR and its exact
|
|
26
|
+
source. This dated preparation record does not claim publication or fresh npm
|
|
27
|
+
publisher/MFA settings approval.
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## 0.5.0 preparation scope — 2026-10-20 KST
|
|
31
|
+
|
|
32
|
+
This release preparation includes the merged platform groundwork from #153,
|
|
33
|
+
#156 and #154, package/banner/current examples for 0.5.0, one finite doctor
|
|
34
|
+
row preserving the four existing profiles, and the public 0.4.0 release
|
|
35
|
+
baseline. It does not activate the Linux candidate, Windows tree cleanup,
|
|
36
|
+
Windows handoff storage/native observation or Windows-client jump.
|
|
37
|
+
|
|
38
|
+
The proposed #155 deployment harness and its new qualification claims are
|
|
39
|
+
excluded. Its implementation and review evidence remain in that Draft PR
|
|
40
|
+
for minimum-contract redesign under #23; they are not release evidence.
|
|
41
|
+
The existing remote-deployment ADR stays at the main-branch version.
|
|
42
|
+
|
|
43
|
+
Independent test-only fixes to persisted queue/initialize readiness and
|
|
44
|
+
warm WAL fixture lifetime are retained. They change neither runtime guards
|
|
45
|
+
nor observation deadlines or assertions; the original CI timeout causes
|
|
46
|
+
remain unproven. Historical platform and mutation runs below keep their
|
|
47
|
+
recorded source checkpoints and do not qualify new 0.5.0 support cells.
|
|
48
|
+
|
|
49
|
+
Final source, current-head CI and rebuilt artifact results belong to the
|
|
50
|
+
release-preparation PR. Preparation performs no staging, publication,
|
|
51
|
+
new native/model/ACK experiment or global installation.
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
## Windows client jump ProxyCommand probe — #20, 2026-10-20 KST
|
|
55
|
+
|
|
56
|
+
Unreleased branch source (`windowsProxyCommand`, CLI gate unchanged) on a
|
|
57
|
+
Windows x64 test host: Windows 10 x64 (10.0.19045), PowerShell 5.1, Node
|
|
58
|
+
24.16.0, inbox-path Win32-OpenSSH `OpenSSH_for_Windows_9.5p1, LibreSSL 3.8.2`
|
|
59
|
+
(file version 9.5.4.1), administrator account, dedicated temporary prefix.
|
|
60
|
+
No network destination: the generated `ProxyCommand` program was a compiled
|
|
61
|
+
argv-dump `ssh.exe` that recorded `GetCommandLineW`, the real UCRT argv
|
|
62
|
+
(`ucrtbase` `_configure_wide_argv`) and its parent process, then exited, so
|
|
63
|
+
the real `ssh.exe` failed with 255 before any key exchange. `-F none` and
|
|
64
|
+
prefix-only known-hosts files were used.
|
|
65
|
+
|
|
66
|
+
- 27 of 27 cells matched the source-derived model: 3 dump paths (plain; a
|
|
67
|
+
directory with spaces, `'`, `100%`, `(x) ^&!;,=#$`, `%PATH% %h %p %%`;
|
|
68
|
+
Unicode/emoji with `#`) × 3 hops (`hop@jump`, `h_o.p-1@jump.example:2200`,
|
|
69
|
+
`hop@[2001:db8::2]:22`) × 3 targets (`dummyhost`, IPv6 `2001:db8::1` with
|
|
70
|
+
`-p 2222`, and a quoted `HostName` containing a space and `-oProxyCommand=x`).
|
|
71
|
+
The raw command line equalled the percent-expanded value exactly; the UCRT
|
|
72
|
+
argv equalled the intended hop argv (all hardening options, `-W [host]:port`
|
|
73
|
+
as one argument, `-- <hop>`); the parent was the System32 `ssh.exe` itself,
|
|
74
|
+
so no `cmd.exe` ran and `%PATH%`, `^&` stayed literal. OpenSSH lowercased
|
|
75
|
+
the configured `HostName` before `%h` expansion.
|
|
76
|
+
- `ssh.cmd` and UNC paths were refused with `ssh_jump_unsupported_ssh_path`.
|
|
77
|
+
- On the same host, `test/ssh-jump-windows.test.ts`: 4/4 pass; `npm run
|
|
78
|
+
test:windows`: 317 tests, 179 pass, 0 fail, 138 POSIX-only skips, including
|
|
79
|
+
the native `ssh_jump_unsupported_platform` refusal test.
|
|
80
|
+
`fs-ext-extra-prebuilt` loaded after `npm ci --ignore-scripts`.
|
|
81
|
+
- Observation, not yet analysed: in this non-interactive SSH session the real
|
|
82
|
+
`ssh.exe` (even `ssh -G`) did not exit within 15 s when its stdin was a
|
|
83
|
+
Node pipe or file, and exited promptly with stdin ignored (`NUL`). The probe
|
|
84
|
+
therefore used ignored stdin. Windows-client SSH with pipe stdin is not
|
|
85
|
+
covered by this record; enabling needs that analysis first.
|
|
86
|
+
- Cleanup: the prefix was removed and no process with the prefix in its path or
|
|
87
|
+
command line remained.
|
|
88
|
+
|
|
89
|
+
The probe ran at branch revision `9d54fa3dfbb0c50a1f9624461a43a3f02824706b`
|
|
90
|
+
(the `windowsProxyCommand` code is unchanged by later comment and documentation
|
|
91
|
+
commits). The probe driver, the argv-dump source and host-identifier-free
|
|
92
|
+
results are kept out of the repository as review material, identified by
|
|
93
|
+
SHA-256 in the change description. A later correction makes the driver's exit
|
|
94
|
+
status depend on every cell, including refusal cells; it was not re-run, and
|
|
95
|
+
the recorded cells were all individually successful.
|
|
96
|
+
|
|
97
|
+
This is evidence for quoting only. Windows `--ssh-jump` stays refused: no hop
|
|
98
|
+
or destination connection, version other than 9.5p1, non-administrator
|
|
99
|
+
account, or #131 owned-process-tree cleanup (timeout, overflow, interrupt) was
|
|
100
|
+
exercised. Production Windows `run()` kills only the direct child; #131
|
|
101
|
+
leaves tree cleanup as an unselected preparation backend, so cleanup of a
|
|
102
|
+
`ProxyCommand` descendant is not guaranteed and blocks enabling. A stop
|
|
103
|
+
there remains an unknown effect with no resend.
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
## #131 Windows tree-cleanup backend and storage guard (preparation, not selected) — source, 2026-10-20 KST
|
|
107
|
+
|
|
108
|
+
This is a source change on top of main `98074a0fb8c4aa6dbab32203fee79ac8244faf0b`,
|
|
109
|
+
not a release. Production behaviour is unchanged on every platform. On Windows,
|
|
110
|
+
`run()` still terminates only the direct child; descendants may linger, the
|
|
111
|
+
child keeps its full timeout, and no new result field or signal handling was
|
|
112
|
+
added.
|
|
113
|
+
|
|
114
|
+
Review established a design limit for owning a process tree on Windows 10
|
|
115
|
+
without native code:
|
|
116
|
+
- Descendant ownership cannot be proven. GetProcessTimes creation/exit values
|
|
117
|
+
are UTC wall-clock instants, not monotonic generations, and Win32_Process
|
|
118
|
+
ParentProcessId may refer to a reused PID.
|
|
119
|
+
- After a clock rollback, a child of an earlier holder of a parent's PID can
|
|
120
|
+
satisfy any creation-time ordering. Handle-holding fixes only the current
|
|
121
|
+
identity.
|
|
122
|
+
- A sound boundary needs the child created inside a Job object (suspended,
|
|
123
|
+
assigned, resumed), which Node's spawn cannot do.
|
|
124
|
+
|
|
125
|
+
The candidate backend `reapWindowsTree` is therefore kept unselected. It uses
|
|
126
|
+
held handles only, holds the visible tree before any kill, and classifies from
|
|
127
|
+
the post-hold snapshot only, by UTC creation-time ordering. That classifier is
|
|
128
|
+
provisional, not an ownership proof, and is known to be unsound under a clock
|
|
129
|
+
rollback. Confirmation requires a post-kill snapshot. Any observed PID swap, or
|
|
130
|
+
any vanished, denied or unlisted candidate, makes the result unconfirmed. Only
|
|
131
|
+
classifier-accepted candidates are killed. Its tests cover the algorithm and
|
|
132
|
+
record the rollback limit as a todo named as an unresolved design limit
|
|
133
|
+
(never counted as a pass or skip).
|
|
134
|
+
|
|
135
|
+
The storage guard is a read-only owner-SID/protected-DACL/reparse inspection
|
|
136
|
+
plus a protected private-leaf creator. It is not connected to the handoff
|
|
137
|
+
ledger, which still refuses Windows with `handoff_storage_unsupported`.
|
|
138
|
+
Accepting the token's default owner (an elevated administrator's
|
|
139
|
+
Administrators) is a weaker, group-wide boundary. Creator precheck, creation
|
|
140
|
+
and postcheck are not atomic. Null-DACL, parent-ACL and creator-race handling
|
|
141
|
+
remain unqualified while it is unconnected. Like the existing inspection code,
|
|
142
|
+
it resolves `powershell.exe` through PATH rather than a SystemRoot-pinned path.
|
|
143
|
+
|
|
144
|
+
Checkpoints. Each result belongs to the commit it was run on:
|
|
145
|
+
- Full local suite, macOS arm64 / Node 24.16.0, at `3dc405d`:
|
|
146
|
+
- build, test types, `npm run test:package`, repository checks and
|
|
147
|
+
`git diff --check` passed;
|
|
148
|
+
- `npm test`, with the pinned Python 1.1.0 reference
|
|
149
|
+
`8ca77cf31254c8287a2593fe484bb30a7dba2727`, passed with zero failures.
|
|
150
|
+
- Mutation checks, on the `f06041d` tree. Each guard was removed in turn, and
|
|
151
|
+
every removal made its regression test fail. The eight guards are:
|
|
152
|
+
- confirm only after a post-kill snapshot;
|
|
153
|
+
- doubt on an observed PID swap;
|
|
154
|
+
- no earlier-row inheritance for unlisted candidates;
|
|
155
|
+
- doubt on gone or denied candidates;
|
|
156
|
+
- doubt on unlisted candidates;
|
|
157
|
+
- reject a root after an observed exit;
|
|
158
|
+
- the creation-time check;
|
|
159
|
+
- hold the visible tree before any kill.
|
|
160
|
+
- Comment, wording and test-name changes only, at `534d3fb`: light checks.
|
|
161
|
+
- At the final head, the native process-tree fixture was redesigned. Light
|
|
162
|
+
checks, the focused local files and a Windows rerun of the two new test files
|
|
163
|
+
cover it (below).
|
|
164
|
+
|
|
165
|
+
Separately authorized isolated runs used a Windows x64 test host: Windows 10
|
|
166
|
+
19045, PowerShell 5.1, Node 24.16.0 x64. The account was an administrator,
|
|
167
|
+
elevated over SSH. Each run used a dedicated temporary prefix and the host lock.
|
|
168
|
+
|
|
169
|
+
Runs on earlier heads, with the backend selected or exercised natively, found
|
|
170
|
+
and fixed:
|
|
171
|
+
- a detached helper exited at once;
|
|
172
|
+
- PowerShell 5.1 wrapped the JSON path array;
|
|
173
|
+
- an elevated administrator's files are owned by Administrators;
|
|
174
|
+
- a Node child's job ends its descendants.
|
|
175
|
+
|
|
176
|
+
Those earlier native backend runs let the classifier terminate processes it
|
|
177
|
+
accepted on the test host. The final head no longer runs the backend natively:
|
|
178
|
+
its kills cannot be bounded to fixture identities, and isolated-host approval
|
|
179
|
+
does not authorize terminating foreign processes.
|
|
180
|
+
|
|
181
|
+
At `f06041d`, `npm run test:windows` and `npm run test:package` passed on that
|
|
182
|
+
host.
|
|
183
|
+
|
|
184
|
+
Earlier fixture heads, through `534d3fb`, started a `PING.EXE` with a 600 s
|
|
185
|
+
lifetime and cleaned it up by PID. A grandchild could therefore have outlived a
|
|
186
|
+
run. Afterwards, cleanup was checked only through process command lines
|
|
187
|
+
containing the prefix (and later a read-only `PING.EXE` listing). Those checks
|
|
188
|
+
showed nothing, but no actual leak was observed or ruled out beyond them.
|
|
189
|
+
|
|
190
|
+
From the final fixture onward:
|
|
191
|
+
- The child and grandchild have explicit lifetimes: about 25 s for the child
|
|
192
|
+
(`run()` ends it earlier through its own handle) and about 11 s for PING.
|
|
193
|
+
- They are never killed by PID; the test only observes PID presence until
|
|
194
|
+
both are absent, then removes its directory last.
|
|
195
|
+
- Unreadable PIDs, or a PID still present or unknown, keep the evidence and
|
|
196
|
+
fail the cleanup.
|
|
197
|
+
- Presence is not identity: a reused PID can look present, and an error other
|
|
198
|
+
than ESRCH is reported as unknown.
|
|
199
|
+
- The mocked helper-transport test is skipped on win32, so a mock that misses
|
|
200
|
+
can never open its fake PIDs there.
|
|
201
|
+
|
|
202
|
+
The native tests on Windows are the production baseline and the storage cases;
|
|
203
|
+
the reruns of the two new files are in the PR.
|
|
204
|
+
|
|
205
|
+
ACLs of existing paths were not changed; the tests set a protected DACL only on
|
|
206
|
+
new leaves inside the prefix. The interrupt behaviour of production `run()` on
|
|
207
|
+
Windows is unchanged and untested here. The following remain unrun: the Windows
|
|
208
|
+
CI job (where the native tests are registered), non-admin and non-elevated
|
|
209
|
+
cells, arm64 and cold-boot helper latency. No live agent session or message,
|
|
210
|
+
policy, service or account change was made.
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
## Unreleased Linux arm64 observation candidate — #130, 2026-10-20 KST
|
|
214
|
+
|
|
215
|
+
Source-only follow-up on the published 0.4.0 runtime; no version change.
|
|
216
|
+
Native selection is one exact `(process.platform-process.arch, native version,
|
|
217
|
+
source commit, platformOs, storage binding, owner inspection, artifact)` table
|
|
218
|
+
with no version range, libc/arch fallback or cross-platform inheritance.
|
|
219
|
+
Selectable rows are the two historical darwin-arm64 rows. A **linux-arm64 /
|
|
220
|
+
Codex 0.162.1 / `092d3acd…`** candidate pinned to the upstream
|
|
221
|
+
`aarch64-unknown-linux-musl` executable is recorded but **not activated**
|
|
222
|
+
(see "Activation decision" below); every Linux tuple is unsupported.
|
|
223
|
+
|
|
224
|
+
Head history: the live injection below ran with the candidate temporarily
|
|
225
|
+
selectable (local build of the later `b804115` tree); `b804115` and
|
|
226
|
+
`2f3b35d` committed it as a selectable row. Review round 2 found two
|
|
227
|
+
identity gaps, and the final head moves it to a non-selectable candidate.
|
|
228
|
+
|
|
229
|
+
Linux mechanics: owned app-server storage binding reads only that child's
|
|
230
|
+
`/proc/<pid>` (direct child, own group, all UIDs, exe inode, stable start time,
|
|
231
|
+
exact canonical paths, deleted descriptors refused); writer owner evidence
|
|
232
|
+
also requires `/proc/locks` to name the lsof owner as the sole exclusive
|
|
233
|
+
`flock` holder (Codex `File::try_lock`) without changing the generation; the
|
|
234
|
+
executable digest is checked within the original deadline.
|
|
235
|
+
|
|
236
|
+
Evidence on a Linux arm64 test host (kernel 7.0 aarch64, Node 24.18.0, ext4),
|
|
237
|
+
recorded in `test/fixtures/linux-observation-native-evidence.json`:
|
|
238
|
+
|
|
239
|
+
- Artifact: the user-owned standalone binary's SHA-256 `071cbe8d…cabe5` equals
|
|
240
|
+
the executable extracted from upstream `rust-v0.162.1`
|
|
241
|
+
`codex-aarch64-unknown-linux-musl.tar.gz` (`bf3ca271…`) and `.zst`.
|
|
242
|
+
- Schema: `codex app-server generate-json-schema --experimental` with empty
|
|
243
|
+
isolated HOME/CODEX_HOME produced queue/add params/response, item/started
|
|
244
|
+
and turn/completed hashes and an 84-method notification set identical to
|
|
245
|
+
the darwin 0.162.1 evidence.
|
|
246
|
+
- Live injection, separately user-approved, in one new dedicated TUI thread
|
|
247
|
+
started by absolute path with `--sandbox read-only --ask-for-approval never`
|
|
248
|
+
(trust via a `-c` override; `config.toml` unchanged). No other Codex writer
|
|
249
|
+
was live. The TUI showed an "Update available" menu with "Update now"
|
|
250
|
+
preselected; it was dismissed with Esc and nothing was updated.
|
|
251
|
+
- A new thread is not saved (no `threads` row or history projection) until its
|
|
252
|
+
first turn; a dry-run first refused `thread_not_yet_persisted`. One synthetic
|
|
253
|
+
bootstrap prompt was therefore typed (turn 1). Whether the earlier Darwin
|
|
254
|
+
dedicated threads had such a prior turn is **not recorded** in their evidence.
|
|
255
|
+
- The first send was refused **before effect** (`evidence_unsupported`,
|
|
256
|
+
`submitted=false`): the structural capability check used a version-only
|
|
257
|
+
lookup that became ambiguous once 0.162.1 had two platform rows. It was fixed
|
|
258
|
+
(regression test failed on the pre-fix code and passed after; it now uses a
|
|
259
|
+
hermetic two-platform table) and exactly one approved resend
|
|
260
|
+
of the same synthetic probe followed.
|
|
261
|
+
- That send exited 0 with `status=queued`, `submitted=true`,
|
|
262
|
+
`consumptionConfirmed=false`, state `delivered`, wait satisfied: one
|
|
263
|
+
matching client-ID row (native item ID different), linked turn, writer
|
|
264
|
+
generation unchanged and kernel flock holder equal to the lsof owner.
|
|
265
|
+
`handoff status` and an independent `handoff wait` exited 0. ACK remained
|
|
266
|
+
`not_requested`; the model's reply was not answered or treated as ACK.
|
|
267
|
+
Two model turns ran in total.
|
|
268
|
+
- Cleanup: only the owned tmux session was killed; the codex PID and its
|
|
269
|
+
`/proc/locks` entries were gone, and the private prefix and ledger were
|
|
270
|
+
removed. The native thread record and Codex's own empty lock files remain;
|
|
271
|
+
Codex removed one earlier stale empty lock file itself at startup.
|
|
272
|
+
|
|
273
|
+
Review follow-ups (same date):
|
|
274
|
+
|
|
275
|
+
- SSH destination requests cannot select a Linux row (`sshDestination: false`);
|
|
276
|
+
a qualified linux-arm64 destination refuses required delivery before effect
|
|
277
|
+
with zero queue calls and keeps the best-effort ordinary send. Darwin keeps
|
|
278
|
+
its 0.4.0 destination behaviour. At `2f3b35d` (row selectable) a Linux-host
|
|
279
|
+
regression showed the old code entering the row path over SSH and the fixed
|
|
280
|
+
code refusing; at the final head no Linux row is selectable and the policy
|
|
281
|
+
is covered by hermetic synthetic-table tests.
|
|
282
|
+
- Executable digest and procfs binding now run in an owned worker: at the
|
|
283
|
+
original remaining budget the supervisor requests termination of the
|
|
284
|
+
worker's group and the caller refuses; actual reaping of a worker blocked in
|
|
285
|
+
uninterruptible kernel I/O may occur later, when the kernel returns. This is
|
|
286
|
+
a refusal-at-deadline guarantee, not a bound on how long a blocked kernel
|
|
287
|
+
call takes. The `--procfs-owner` reads run inside the already
|
|
288
|
+
deadline-bounded writer-probe process. Canonical-path `lstat` checks remain
|
|
289
|
+
in the caller, as on Darwin.
|
|
290
|
+
- Retained identity: the generation still binds the lock fingerprint, lsof
|
|
291
|
+
pid/uid/command and `ps lstart` (1-second resolution). The kernel tick start
|
|
292
|
+
time and flock holder are checked within each probe invocation, not against
|
|
293
|
+
the original send, and the TUI writer's executable bytes are not pinned
|
|
294
|
+
(only the owned queue child's artifact is). PID reuse within the same second
|
|
295
|
+
by another `codex` that re-acquires the unchanged lock inode would not be
|
|
296
|
+
detected. A retained Linux kernel identity needs a ledger-schema field and
|
|
297
|
+
is a follow-up; generation compatibility was kept.
|
|
298
|
+
- External review inputs received summaries of the native send/status/wait
|
|
299
|
+
JSON and generation values, not the raw records; the root review audited the
|
|
300
|
+
raw private records separately.
|
|
301
|
+
|
|
302
|
+
Activation decision (review round 2): the row is not activated because (1)
|
|
303
|
+
only the owned queue child's executable is digest-pinned, while the original
|
|
304
|
+
TUI writer is checked by lsof command/pid/uid and `ps lstart`, so a
|
|
305
|
+
different-version or gnu writer holding the lock beside a pinned musl queue
|
|
306
|
+
binary is not distinguished; and (2) the writer's kernel start time is not
|
|
307
|
+
retained across send and independent wait. Safely closing (2) needs an
|
|
308
|
+
optional private ledger field owned by the ledger, so both are frozen as the
|
|
309
|
+
follow-up design in PARITY.md rather than pushed as an unreviewed schema
|
|
310
|
+
change. Recorded artifact/schema/injection evidence and the procfs machinery
|
|
311
|
+
remain; SSH destination requests can never select a Linux row. The worker
|
|
312
|
+
comment now limits its hard bound to the worker's supervisor refusal;
|
|
313
|
+
caller-side `realpath`/`stat`/`lstat` stay synchronous with deadline checks
|
|
314
|
+
only.
|
|
315
|
+
|
|
316
|
+
Full suites at the `dd21302` source checkpoint (candidate not activated): on
|
|
317
|
+
Darwin 27.0 arm64 / Node 24.16 the full `npm test` (with the pinned Python
|
|
318
|
+
reference) passed 400, failed 0, skipped 8 (5 Windows-only, 3 Linux-only). On
|
|
319
|
+
the Linux arm64 test host it passed 376, failed 0, skipped 28
|
|
320
|
+
(Darwin-qualified and Windows-only), with every Linux-only native case
|
|
321
|
+
passing; that run used only fixtures in a private prefix, with no
|
|
322
|
+
credentials, model turn or install change. The raw Linux log has no HEAD
|
|
323
|
+
marker; it is tied to the checkpoint by the executor's run record. Earlier
|
|
324
|
+
checkpoints' counts (`b804115`, `2f3b35d`) are superseded.
|
|
325
|
+
|
|
326
|
+
Later documentation/comment/evidence-description commits (`ffe8afc` and the
|
|
327
|
+
following one) changed no runtime statement. At those heads only light gates
|
|
328
|
+
ran: `npm run build`, `npm run test:types`, the related linux-observation,
|
|
329
|
+
app-server and metadata-observation tests (80 pass, 0 fail, 3 skipped),
|
|
330
|
+
`node scripts/check-repository.mjs` and `git diff --check`. No new full-suite,
|
|
331
|
+
Linux-host or live-model run was performed at those heads.
|
|
332
|
+
Queued/delivered remain distinct from receipt ACK or work completion.
|
|
333
|
+
|
|
334
|
+
## Public 0.4.0 — 2026-10-18 KST
|
|
335
|
+
|
|
336
|
+
`session-peer@0.4.0` is public. Registry checks confirmed `latest=0.4.0` and
|
|
337
|
+
unchanged `preview=0.1.0-preview.1`. The publication source is
|
|
338
|
+
`dde3923efe116f87f38b1639b29b889d2b832e44`, merged from
|
|
339
|
+
[PR #151](https://github.com/abruption/session-peer-ts/pull/151). Its complete tree
|
|
340
|
+
matched reviewed head `bfbadfa42513791899fc8d2b5441238bbe5b2c4e`.
|
|
341
|
+
Exact-main [CLI run 39076708873](https://github.com/abruption/session-peer-ts/actions/runs/39076708873)
|
|
342
|
+
and [CodeQL run 39076708830](https://github.com/abruption/session-peer-ts/actions/runs/39076708830)
|
|
343
|
+
passed.
|
|
344
|
+
|
|
345
|
+
[Publication workflow 39077096491](https://github.com/abruption/session-peer-ts/actions/runs/39077096491)
|
|
346
|
+
completed successfully on attempt 1 for that exact source. Its Ubuntu preparation
|
|
347
|
+
job passed **383 total / 355 passed / 0 failed / 28 skipped**; these are the
|
|
348
|
+
actual platform-scoped counts, not the macOS preparation counts below. Build,
|
|
349
|
+
types, repository checks, reproducible package smoke, isolated installation and
|
|
350
|
+
removal, and npm audit passed. The uploaded artifact ID was `12117507059`, with
|
|
351
|
+
ZIP SHA-256 `b4eb62a6c68be0319d5d7013f11d11e9b438866f3a63359cc1808c91cbe61494`.
|
|
352
|
+
The ZIP digest identifies the artifact container, not the package tarball.
|
|
353
|
+
|
|
354
|
+
The reviewed, local, Actions, staged and public `session-peer-0.4.0.tgz` bytes
|
|
355
|
+
matched. The public tarball is 321,256 bytes and contains the exact 71-file
|
|
356
|
+
allowlist. All 18 packaged Markdown documents matched the publication source.
|
|
357
|
+
The release helper validated the exact downloaded artifact rather than a later
|
|
358
|
+
rebuild. Package hashes are:
|
|
359
|
+
|
|
360
|
+
- SHA-256: `84adc8b50ef8f03a2c2170e3c36a97b573f28a6bcbeb7dbc965e16c3b37a57c9`.
|
|
361
|
+
- npm integrity: `sha512-mMNJ118atoflhpFTkf2+DtO7MRf7FQnPK3lKWbq/vd8Xvb5DsjUtAgydIBOcd3Xj9BCYGqM50aFhzUr4dDGHSw==`.
|
|
362
|
+
|
|
363
|
+
Registry signature audit passed. Public attestation subjects matched the exact
|
|
364
|
+
tarball SHA-512, and the SLSA payload bound the repository, `refs/heads/main`,
|
|
365
|
+
`.github/workflows/publish.yml`, source `dde3923efe116f87f38b1639b29b889d2b832e44`,
|
|
366
|
+
`workflow_dispatch`, and run `39077096491/attempts/1`. This was also verified
|
|
367
|
+
cryptographically with npm 11.15.0's bundled Sigstore verifier, including the
|
|
368
|
+
certificate/transparency material and the exact workflow identity
|
|
369
|
+
`https://github.com/abruption/session-peer-ts/.github/workflows/publish.yml@refs/heads/main`
|
|
370
|
+
with issuer `https://token.actions.githubusercontent.com`. These cryptographic
|
|
371
|
+
checks are distinct from merely decoding and comparing the payload. A separate
|
|
372
|
+
fresh isolated package installation, CLI/list check and removal passed; no user
|
|
373
|
+
installation was replaced.
|
|
374
|
+
|
|
375
|
+
Fresh authenticated checks confirmed no conflicting pending stage and the
|
|
376
|
+
Trusted Publisher's stage-only permission. The user explicitly waived this
|
|
377
|
+
release's separate web **publish 2FA policy inspection**; that policy was not
|
|
378
|
+
freshly audited. The protected GitHub `npm` environment required reviewer
|
|
379
|
+
`abruption`, disallowed administrator bypass, and allowed only `main`; environment
|
|
380
|
+
and repository Actions secret counts were both zero. The environment approval
|
|
381
|
+
and final npm 2FA approval were completed by the user. The approved stage was
|
|
382
|
+
`414547b1-1b55-45dc-a0a4-9ca40407beec`. OIDC staging used no token fallback or
|
|
383
|
+
protection bypass. Staging success was not treated as publication before registry
|
|
384
|
+
verification.
|
|
385
|
+
|
|
386
|
+
The annotated `v0.4.0` tag object is
|
|
387
|
+
`7aad7bc6400499fbc1c323bd62f2210b3507fc9a`, peeled to the exact publication source
|
|
388
|
+
`dde3923efe116f87f38b1639b29b889d2b832e44`.
|
|
389
|
+
[GitHub release v0.4.0](https://github.com/abruption/session-peer-ts/releases/tag/v0.4.0)
|
|
390
|
+
was published as the latest release. No replacement source was assigned to the
|
|
391
|
+
published package or tag.
|
|
392
|
+
|
|
393
|
+
Publication added no new native/model, remote-host delivery or ACK qualification.
|
|
394
|
+
Native observation retains the previously recorded exact Codex 0.160.1/0.162.1
|
|
395
|
+
and macOS arm64 scope; explicit `operator_confirmed` receipts on supported POSIX
|
|
396
|
+
ledgers remain separate from automatic ACK collection. Linux observation,
|
|
397
|
+
Windows observation/private storage, and authenticated automatic receipt
|
|
398
|
+
producer/collector bootstrap remain follow-ups #130, #131 and #132. Queue
|
|
399
|
+
acceptance, injection, turn completion and plain replies do not automatically
|
|
400
|
+
establish receipt ACK; unknown outcomes never authorize a resend.
|
|
401
|
+
|
|
402
|
+
The published TS skill remains 0.2.1 at immutable source
|
|
403
|
+
`0f494cabd05901c03161dc91792dcf89f8e96631`, with SKILL SHA-256
|
|
404
|
+
`8c3520f95e0d6807303be96bfa06df69887ddaf76be05f1905505d0a956820c3`.
|
|
405
|
+
The separate skill 0.3.0 candidate and finite runtime/profile review do not
|
|
406
|
+
publish, install or adopt a new skill pin. Skill finalization and publication
|
|
407
|
+
require their separate approval and exact artifact checks.
|
|
2
408
|
|
|
3
409
|
## 0.4.0 preparation checks — 2026-10-18 KST
|
|
4
410
|
|
package/dist/app-server.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { Readable, Writable } from 'node:stream';
|
|
2
|
+
import { type NativeProfile } from './native-profiles.js';
|
|
3
|
+
import { type ProcReader } from './linux-proc.js';
|
|
2
4
|
export declare const APP_SERVER_EVIDENCE: Readonly<{
|
|
3
5
|
version: "0.160.1";
|
|
4
6
|
inspectedPlatform: "darwin-arm64";
|
|
@@ -27,6 +29,15 @@ export declare const APP_SERVER_QUEUE_EVIDENCE: readonly (Readonly<{
|
|
|
27
29
|
queueAddResponseSha256: "c11b9772788427b19c9f9decf0765e2b41cbdead1aa9c3d39f42fdd70b339314";
|
|
28
30
|
itemStartedSha256: "692c5876f44a4c12a9b9211912860ceddb65d34497ab4fe9aa46cbebe1a63166";
|
|
29
31
|
turnCompletedSha256: "69413578ec3ecd02691424bdeb9d640c7244b4ca4c5c3ef26f69a2efe7c37db8";
|
|
32
|
+
}> | Readonly<{
|
|
33
|
+
version: "0.162.1";
|
|
34
|
+
inspectedPlatform: "linux-arm64";
|
|
35
|
+
officialSourceCommit: "092d3acd6bec3e3a14bdc7e7a2810ab628ab759d";
|
|
36
|
+
scope: "generated_schema_only";
|
|
37
|
+
queueAddParamsSha256: "60f25b7d3e3357c215bef9d2fe7047200f545e030dca9e00527ac0620cd0c88f";
|
|
38
|
+
queueAddResponseSha256: "c11b9772788427b19c9f9decf0765e2b41cbdead1aa9c3d39f42fdd70b339314";
|
|
39
|
+
itemStartedSha256: "692c5876f44a4c12a9b9211912860ceddb65d34497ab4fe9aa46cbebe1a63166";
|
|
40
|
+
turnCompletedSha256: "69413578ec3ecd02691424bdeb9d640c7244b4ca4c5c3ef26f69a2efe7c37db8";
|
|
30
41
|
}>)[];
|
|
31
42
|
export declare const APP_SERVER_LIMITS: Readonly<{
|
|
32
43
|
frameBytes: 65536;
|
|
@@ -157,8 +168,8 @@ export declare class BoundedAppServerClient implements AppServerPort {
|
|
|
157
168
|
private readonly timer;
|
|
158
169
|
private constructor();
|
|
159
170
|
static connectMetadataFixture(scope: AppServerScope, transport: MetadataOnlyTransport, deadlineMs: number, verifyOwner: (scope: AppServerScope) => Promise<boolean>): Promise<BoundedAppServerClient>;
|
|
160
|
-
static connectNativeQueueFixture(scope: AppServerScope, transport: MetadataOnlyTransport, deadlineMs: number, verifyOwner: (scope: AppServerScope) => Promise<boolean>, beforeEffect: () => Promise<void>, nativeVersion?: string): Promise<NativeQueuePort>;
|
|
161
|
-
static connectNativeQueueWire(scope: AppServerScope, transport: NativeQueueTransport, deadlineMs: number, verifyOwner: (scope: AppServerScope) => Promise<boolean>, beforeEffect: () => Promise<void>,
|
|
171
|
+
static connectNativeQueueFixture(scope: AppServerScope, transport: MetadataOnlyTransport, deadlineMs: number, verifyOwner: (scope: AppServerScope) => Promise<boolean>, beforeEffect: () => Promise<void>, nativeVersion?: string, platform?: string, profiles?: readonly NativeProfile[]): Promise<NativeQueuePort>;
|
|
172
|
+
static connectNativeQueueWire(scope: AppServerScope, transport: NativeQueueTransport, deadlineMs: number, verifyOwner: (scope: AppServerScope) => Promise<boolean>, beforeEffect: () => Promise<void>, profile: NativeProfile): Promise<NativeQueuePort>;
|
|
162
173
|
private static connectWire;
|
|
163
174
|
private check;
|
|
164
175
|
private owner;
|
|
@@ -182,9 +193,15 @@ export declare class BoundedAppServerClient implements AppServerPort {
|
|
|
182
193
|
private fail;
|
|
183
194
|
close(): Promise<void>;
|
|
184
195
|
}
|
|
196
|
+
export declare function artifactDigest(path: string, deadlineMs: number, maxBytes?: number): Promise<string>;
|
|
197
|
+
export declare function verifyProcfsSqliteBinding(pid: number | undefined, home: string, deadlineMs: number, binary: string, reader?: ProcReader): Promise<void>;
|
|
185
198
|
export declare function nativeQueueOnce(options: NativeQueueOptions): Promise<{
|
|
186
199
|
queueId: string;
|
|
187
200
|
clientUserMessageId: string;
|
|
188
201
|
}>;
|
|
202
|
+
export declare function nativeQueueOnceWithProfiles(options: NativeQueueOptions, table: readonly NativeProfile[]): Promise<{
|
|
203
|
+
queueId: string;
|
|
204
|
+
clientUserMessageId: string;
|
|
205
|
+
}>;
|
|
189
206
|
export declare function spawnOwnedMetadataFixture(binary: string, args: string[], env: NodeJS.ProcessEnv): MetadataOnlyTransport;
|
|
190
207
|
export {};
|