session-peer 0.3.0 → 0.3.2

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 CHANGED
@@ -1,8 +1,8 @@
1
1
  # Python compatibility and npm migration
2
2
 
3
- Updated 2026-10-03 KST. Python reference: **1.0.2**,
3
+ Updated 2026-10-07 KST. Python reference: **1.0.2**,
4
4
  [`47c2371`](https://github.com/abruption/session-peer/tree/47c23713d0a2a3c11ebde6186afd8c43489b8b65/session_peer_core).
5
- This matrix describes **TS 0.3.0**: the 0.2.0 unified listing, safe home selection,
5
+ This matrix describes the **TS 0.3.2 source**: the 0.2.0 unified listing, safe home selection,
6
6
  read-only doctor, text/help/positional input, Unicode 14.0.0 name matching and
7
7
  separately managed TS skill guidance (#16/#17/#18/#19/#25), the
8
8
  [0.2.1 reliability and hardening](#021-reliability-and-hardening) changes, and the
@@ -116,6 +116,15 @@ are in [windows-contract.test.ts](https://github.com/abruption/session-peer-ts/b
116
116
  The Python oracle runs in POSIX CI; deterministic fixtures and injected filesystem
117
117
  failures run on Windows too. Error injection is not a real Windows ACL test.
118
118
 
119
+ ### Bounded Claude registry reads — source patch #99
120
+
121
+ 0.3.1 patch for #99: Claude list/send/sender discovery skips
122
+ non-regular, symlinked or larger-than-1-MiB registry records while retaining
123
+ healthy records. Descriptor checks, POSIX nonblocking open and bounded reads
124
+ cover FIFO replacement races. This is not a deadline for network-filesystem
125
+ I/O; doctor retains its separately bounded metadata contract. The patch is not
126
+ in the immutable npm 0.3.0 archive.
127
+
119
128
  ## JSON result compatibility
120
129
 
121
130
  Do not parse human messages or assume an optional key exists. Python's
@@ -200,7 +209,9 @@ Windows support, WSL/POSIX SSH and TS native Windows SSH are separate paths.
200
209
  `--remote-bin` where PATH is ambiguous; for Windows add
201
210
  `--remote-platform win32` and the `.cmd` path. Retain existing SSH host trust
202
211
  and authentication; a control socket is not new authorization. Account for
203
- the size limits above and lack of multi-host aggregation.
212
+ the size limits above. In TS 0.3.0, repeat `--host` for ordered per-host
213
+ results; the single-host result stays flat. TS 0.2.1 and earlier lacked
214
+ multi-host aggregation.
204
215
  6. **Keep unsupported workflows on an explicit Python path.** Remote updates,
205
216
  MCP, wake, Antigravity and paired devices need their existing implementation
206
217
  until their issues are delivered. Doctor is available in 0.2.0; 0.1.0 lacked this command. Updating npm does not update Python, skills,
@@ -237,6 +248,7 @@ a release commitment. Recheck the exact packaged copy during release review.
237
248
 
238
249
  ## Source Codex home selection — #17 / 0.2.0
239
250
 
251
+
240
252
  This is 0.2.0 behavior; it does not change the immutable npm 0.1.0 archive. `send --to codex:UUID` selects only a unique stable live writer across
241
253
  bounded known homes. `--codex-home` pins the destination but still inventories
242
254
  competitors. A unique live writer without a saved row yields
@@ -287,6 +299,13 @@ changing successful queue status. Failed native processes never expose an ID.
287
299
  Contracts: `test/codex-homes.test.ts`, `test/transport.test.ts` and
288
300
  `test/windows-contract.test.ts`. These are fixtures, not real recipient ACKs.
289
301
 
302
+ ### UID-zero writer identity — source patch #100
303
+
304
+ 0.3.1 patch for #100: numeric UID 0 is a valid caller identity
305
+ for writer verification. Unknown or mismatched owners still refuse, and all
306
+ lock stability/start-time checks and Windows SID validation are retained.
307
+ This patch is not in the immutable npm 0.3.0 archive.
308
+
290
309
  ## Source read-only doctor — #18 / 0.2.0
291
310
 
292
311
  Evidence date: 2026-09-28. `doctor --json [--agent claude|codex]` supports local
@@ -422,6 +441,26 @@ command, transport or JSON field. Callers may notice the stricter refusals below
422
441
  | Envelope trimming (#59, #64) | Leading/trailing `\n` is trimmed by index scanning instead of `/^\n+\|\n+$/`, which was quadratic on long interior newline runs (CodeQL `js/polynomial-redos`). Trimming semantics are unchanged. |
423
442
  | Windows owner inspection (#65) | The compiling `Add-Type` owner inspection waits up to 20000 ms; the compile-free creation-time probe keeps 8000 ms. Timeouts still refuse. |
424
443
 
444
+ ## 0.3.1 reliability fixes
445
+
446
+ 0.3.1 source includes the following patch updates; publication is a separate
447
+ approved release operation. The dated public 0.3.0 evidence remains historical.
448
+
449
+ | Area | Patch contract |
450
+ |---|---|
451
+ | SSH results (#93, #97) | Malformed successful send responses affect only that host; other outcomes are preserved. Unnamed Claude PID targets accept `name:null`. Unknown outcomes are never retried automatically. |
452
+ | Codex storage (#94) | Parse TOML root keys, including escaped keys, with TOML semantics. Nested `sqlite_home` is not a root override; malformed configuration is refused. An inactive opt-in does not bypass the root storage guard. |
453
+ | Reply-To (#98) | Reject decoded Claude session values with reserved `codex:` or `session-peer:` prefixes; wire receivers reject unresolved nested URI transports before SSH or queue execution. |
454
+ | Claude discovery (#99) | Read bounded regular registry files, skip unsafe/oversized entries and preserve healthy sessions. POSIX FIFO/nonblocking and descriptor race tests are platform-specific evidence. |
455
+ | Writer identity (#100) | UID 0 is a valid verified identity; missing or malformed identity information remains refused. |
456
+ | Documentation (#90) | Includes the migration wording correction absent from the immutable public 0.3.0 archive. |
457
+
458
+ SSH still requires identical TS versions on both ends: 0.3.0 and 0.3.1 refuse
459
+ each other at preflight. Coordinate endpoint upgrades. The 0.3.0 known
460
+ limitations below remain: Windows-client jump routing, the Windows deployment
461
+ cell and newer receipt/recovery rules, and update notice validation gaps are
462
+ not resolved by this patch.
463
+
425
464
  ## 0.3.0 remote usability and maintenance
426
465
 
427
466
  0.3.0 (#20, #21, #22, #74, #78/#79, #87; design #23) adds remote and
@@ -459,6 +498,13 @@ endpoints refuse each other at preflight; upgrade them together.
459
498
 
460
499
  ## Sender context and return routes — #21 / 0.3.0
461
500
 
501
+ 0.3.1 patch for #98: a Claude Reply-To URI whose decoded
502
+ `session` starts with reserved lowercase `codex:` or `session-peer:` is `invalid_reply_uri` before
503
+ local selection or SSH dispatch. Ordinary Claude names and Codex UUID routes
504
+ keep their existing contract; this patch is not in the immutable npm 0.3.0 archive.
505
+ Wire receivers require an already resolved target; an unresolved Reply-To URI
506
+ in `--stdio-request` is `nested_transport_forbidden` before queue or SSH calls.
507
+
462
508
  [#21](https://github.com/abruption/session-peer-ts/issues/21) behavior added in
463
509
  0.3.0; 0.2.1 and earlier do not have it. Compared with Python
464
510
  1.0.2 `replies.py`/`diagnostics.py`:
@@ -494,6 +540,7 @@ or agent session was used.
494
540
  | Area | Python 1.0.2 | TS source |
495
541
  | --- | --- | --- |
496
542
  | Repeated `--host` | Ordered per-host loop; one host stays flat, several return a JSON array; any failure exits 1 | Same shape and order for `list`, `send` and `doctor`. Every element keeps `schemaVersion`, `ok`, `host` (as requested) and `command`. Any failed host makes the overall exit 1; a single host keeps its own 0/1/2 exit code |
543
+ | Malformed successful send response | No delivery may be inferred from an invalid response | A spawned send response with a missing or command-invalid target is `unknown` for that host (`submitted:null`, no retry); other host results remain intact. Target validation follows the requested agent and accepts the Python Claude shape without `target.agent`. Text output falls back to JSON for values that cannot be string-coerced, so formatting cannot turn an accepted send into a false command-wide refusal |
497
544
  | Validation before dispatch | Host/option checks run inside the loop, so an earlier host may already be contacted. argparse syntax errors print usage to stderr (exit 2) without JSON; other pre-dispatch errors are attributed to each `--host` | Every host, `--ssh-opt`, message and remote option is validated before any `ssh` process starts (including `ssh -G`). TS always answers in JSON. Every `--host VALUE`/`--host=VALUE` before `--` is collected before any other check, so with two or more of them every pre-dispatch refusal, including syntax errors such as an unknown option or a missing value, is an array with one `submitted:false` element per host; with fewer it is one flat object |
498
545
  | Duplicate destinations | Not checked | `duplicate_ssh_host` for a repeated destination string (user, case-insensitive host name, canonical IPv6). Syntactic only: aliases or addresses of the same physical host are not detected |
499
546
  | Attempts | One attempt per host | One preflight and at most one request per destination. Refused/unknown hosts are reported in place; later hosts still get their single attempt. No failover, resend or retry after `unknown` |
@@ -678,3 +725,7 @@ Python/TS co-installation is excluded; replacing an implementation respects its
678
725
  original manager. This TS change does not implement additional Python features.
679
726
  Package fixtures cover name equivalence, collisions, an in-place version update
680
727
  and removal on every supported shell. They do not establish live delivery or ACK.
728
+
729
+ ## 0.3.2 release scope
730
+
731
+ The 0.3.2 source is prepared from the main line containing the published 0.3.1 fixes. Runtime behavior is unchanged apart from the version banner and exact-version SSH gate. Release tooling now pins public 0.3.1 and the existing preview integrity as the baseline for a separate 0.3.2 approval. Deployment and Windows qualification evidence is recorded in [VALIDATION.md](VALIDATION.md); this preparation does not claim that pending qualification gates passed. No 0.4 handoff/app-server/observation runtime is included.
package/README.ja.md CHANGED
@@ -13,6 +13,8 @@
13
13
 
14
14
  <!-- docs-contract: stable-release-source; package=session-peer; bin=session-peer; node=22.13+/24; python-reference=1.0.2 -->
15
15
 
16
+ **文書・ソースのバージョン: 0.3.2。** 以下のバージョン指定 npm コマンドを使う前に、npm レジストリまたはバージョンバッジで 0.3.2 が公開されているか確認してください。公開前はレビュー済みのソースチェックアウトまたはローカルビルド成果物を使います。ビルドと SSH の両端には同じレビュー済みバージョンが必要です。
17
+
16
18
  **実行中の Claude Code・Codex セッションを見つけ、ローカルまたは SSH でメッセージを送信します。**
17
19
  Python 不要の Node.js クライアントです。パッケージ名とコマンド名は `session-peer` です。
18
20
 
@@ -51,11 +53,12 @@ SSH は既存の鍵・ホスト信頼設定と両端の**同じバージョン
51
53
  別の管理ツールのファイルを `--force` で上書きしないでください。
52
54
 
53
55
  ```sh
54
- npm install --global --ignore-scripts session-peer@0.3.0
56
+ npm view session-peer@0.3.2 version dist.integrity
57
+ npm install --global --ignore-scripts session-peer@0.3.2
55
58
  session-peer --version
56
59
  ```
57
60
 
58
- 期待する出力: `session-peer 0.3.0 (typescript)`。分離インストール・ソースビルド・
61
+ 期待する出力: `session-peer 0.3.2 (typescript)`。分離インストール・ソースビルド・
59
62
  Windows・削除の手順は以下の詳細ガイドを参照してください。
60
63
 
61
64
  任意の `sp` 短縮名は 0.3.0 以降に含まれ(0.2.1 以前にはありません)、自動では有効になりません。
@@ -64,12 +67,12 @@ Windows・削除の手順は以下の詳細ガイドを参照してください
64
67
  ### Update
65
68
 
66
69
  npm で導入したクライアントは npm で更新します。タグと対象バージョンを確認してから
67
- 正確なバージョンを指定してください。以下は古い npm 版を 0.3.0 に更新する例です。
70
+ 正確なバージョンを指定してください。以下は古い npm 版を 0.3.2 に更新する例です。
68
71
  CLI は更新をインストールせず、`session-peer update --check` は確認のみ行います。
69
72
 
70
73
  ```sh
71
74
  npm view session-peer dist-tags
72
- npm install --global --ignore-scripts session-peer@0.3.0
75
+ npm install --global --ignore-scripts session-peer@0.3.2
73
76
  session-peer --version
74
77
  ```
75
78
 
package/README.ko.md CHANGED
@@ -13,6 +13,8 @@
13
13
 
14
14
  <!-- docs-contract: stable-release-source; package=session-peer; bin=session-peer; node=22.13+/24; python-reference=1.0.2 -->
15
15
 
16
+ **문서·소스 버전: 0.3.2.** 아래 버전 지정 npm 명령을 사용하기 전에 npm 레지스트리 또는 버전 배지에서 0.3.2의 발행 여부를 확인하세요. 발행 전에는 검토된 소스 체크아웃이나 로컬 빌드 산출물을 사용합니다. 빌드와 SSH 양쪽에는 같은 검토된 버전이 필요합니다.
17
+
16
18
  **실행 중인 Claude Code·Codex 세션을 찾고 로컬 또는 SSH로 메시지를 전달합니다.**
17
19
  Python 없이 Node.js로 실행하는 클라이언트입니다. 패키지와 명령 이름은 `session-peer`입니다.
18
20
 
@@ -51,11 +53,12 @@ SSH에는 기존 키·호스트 신뢰 설정과 양쪽의 **동일 버전 TypeS
51
53
  다른 설치 관리자의 파일을 `--force`로 덮어쓰지 마세요.
52
54
 
53
55
  ```sh
54
- npm install --global --ignore-scripts session-peer@0.3.0
56
+ npm view session-peer@0.3.2 version dist.integrity
57
+ npm install --global --ignore-scripts session-peer@0.3.2
55
58
  session-peer --version
56
59
  ```
57
60
 
58
- 예상 출력: `session-peer 0.3.0 (typescript)`. 격리 설치·소스 빌드·Windows·제거
61
+ 예상 출력: `session-peer 0.3.2 (typescript)`. 격리 설치·소스 빌드·Windows·제거
59
62
  방법은 아래 상세 가이드에서 확인할 수 있습니다.
60
63
 
61
64
  선택적 `sp` 단축 이름은 0.3.0 이상에 포함되며(0.2.1 이하에는 없음) 자동으로 켜지지 않습니다.
@@ -64,12 +67,12 @@ session-peer --version
64
67
  ### Update
65
68
 
66
69
  npm으로 설치한 클라이언트는 npm으로 갱신합니다. 태그와 대상 버전을 검토한 뒤
67
- 정확한 버전을 설치하세요. 아래 예시는 이전 npm 설치본을 0.3.0으로 갱신합니다.
70
+ 정확한 버전을 설치하세요. 아래 예시는 이전 npm 설치본을 0.3.2로 갱신합니다.
68
71
  CLI는 업데이트를 설치하지 않으며 `session-peer update --check`는 확인만 합니다.
69
72
 
70
73
  ```sh
71
74
  npm view session-peer dist-tags
72
- npm install --global --ignore-scripts session-peer@0.3.0
75
+ npm install --global --ignore-scripts session-peer@0.3.2
73
76
  session-peer --version
74
77
  ```
75
78
 
package/README.md CHANGED
@@ -13,6 +13,8 @@
13
13
 
14
14
  <!-- docs-contract: stable-release-source; package=session-peer; bin=session-peer; node=22.13+/24; python-reference=1.0.2 -->
15
15
 
16
+ **Documentation and source version: 0.3.2.** Before using the version-pinned npm commands below, confirm that 0.3.2 is available in the npm registry or version badge. Before publication, use a reviewed source checkout or its locally built artifact. Builds and SSH endpoints must use the same reviewed version.
17
+
16
18
  **Find and message running Claude Code and Codex sessions, locally or over SSH.**
17
19
  A Node.js client that runs without Python. Package and command: `session-peer`.
18
20
 
@@ -51,11 +53,12 @@ in PowerShell before installing. Choose the intended PATH entry; do not use
51
53
  `--force` to overwrite another manager’s files.
52
54
 
53
55
  ```sh
54
- npm install --global --ignore-scripts session-peer@0.3.0
56
+ npm view session-peer@0.3.2 version dist.integrity
57
+ npm install --global --ignore-scripts session-peer@0.3.2
55
58
  session-peer --version
56
59
  ```
57
60
 
58
- Expected: `session-peer 0.3.0 (typescript)`. For isolated installation, source
61
+ Expected: `session-peer 0.3.2 (typescript)`. For isolated installation, source
59
62
  builds, Windows and removal, see the detailed guide below.
60
63
 
61
64
  Optional `sp` shorthand ships with 0.3.0 and later (not 0.2.1 or earlier) and is
@@ -65,12 +68,12 @@ never enabled automatically. See [explicit activation and collisions](docs/short
65
68
 
66
69
  Use npm for an npm-managed installation. Check the available tags and review
67
70
  the target version, then install that exact version; this example updates an
68
- older npm installation to 0.3.0. The CLI does not install updates;
71
+ older npm installation to 0.3.2. The CLI does not install updates;
69
72
  `session-peer update --check` only reports them.
70
73
 
71
74
  ```sh
72
75
  npm view session-peer dist-tags
73
- npm install --global --ignore-scripts session-peer@0.3.0
76
+ npm install --global --ignore-scripts session-peer@0.3.2
74
77
  session-peer --version
75
78
  ```
76
79
 
package/README.zh-CN.md CHANGED
@@ -13,6 +13,8 @@
13
13
 
14
14
  <!-- docs-contract: stable-release-source; package=session-peer; bin=session-peer; node=22.13+/24; python-reference=1.0.2 -->
15
15
 
16
+ **文档和源码版本:0.3.2。** 使用以下固定版本 npm 命令前,请通过 npm 注册表或版本徽章确认 0.3.2 是否已发布。发布前,请使用已审核的源码检出版本或本地构建产物。构建和 SSH 两端需要相同的已审核版本。
17
+
16
18
  **发现正在运行的 Claude Code 和 Codex 会话,并在本机或通过 SSH 发送消息。**
17
19
  这是不需要 Python 的 Node.js 客户端。包名与命令名均为 `session-peer`。
18
20
 
@@ -49,11 +51,12 @@ session-peer send --to CLAUDE_PID --message '请检查 API 契约并回复。' -
49
51
  覆盖其他安装管理器的文件。
50
52
 
51
53
  ```sh
52
- npm install --global --ignore-scripts session-peer@0.3.0
54
+ npm view session-peer@0.3.2 version dist.integrity
55
+ npm install --global --ignore-scripts session-peer@0.3.2
53
56
  session-peer --version
54
57
  ```
55
58
 
56
- 预期输出:`session-peer 0.3.0 (typescript)`。隔离安装、源码构建、Windows 和
59
+ 预期输出:`session-peer 0.3.2 (typescript)`。隔离安装、源码构建、Windows 和
57
60
  卸载步骤见下方详细指南。
58
61
 
59
62
  可选的 `sp` 简写包含在 0.3.0 及更高版本中(0.2.1 及更早版本没有),不会自动启用。
@@ -62,11 +65,11 @@ session-peer --version
62
65
  ### Update
63
66
 
64
67
  使用 npm 更新由 npm 管理的安装。先检查标签并审阅目标版本,再安装指定版本。
65
- 下面示例将旧 npm 安装更新至 0.3.0。CLI 不会安装更新,`session-peer update --check` 只做检查。
68
+ 下面示例将旧 npm 安装更新至 0.3.2。CLI 不会安装更新,`session-peer update --check` 只做检查。
66
69
 
67
70
  ```sh
68
71
  npm view session-peer dist-tags
69
- npm install --global --ignore-scripts session-peer@0.3.0
72
+ npm install --global --ignore-scripts session-peer@0.3.2
70
73
  session-peer --version
71
74
  ```
72
75
 
package/RELEASING.md CHANGED
@@ -7,6 +7,77 @@ remain independent. The npm Trusted Publisher for `abruption/session-peer-ts`,
7
7
  uses OIDC and no npm token. The protected GitHub environment requires a reviewer
8
8
  and permits deployments from `main` only.
9
9
 
10
+ ## 0.3.2 release procedure
11
+
12
+ The release preparation is based on reviewed main `488ddddac302ba2ad0841061dc8df9187ff6a983`; 0.4 feature branches are excluded. The required pre-staging baseline is **0.3.1**, with `latest=0.3.1` and `preview=0.1.0-preview.1`; these are preconditions, not a permanent statement of registry state. Check the registry and dated validation record for publication status. Previous stable integrity is pinned to:
13
+ `sha512-iZq06dbm6NavHuPZYMIxAnzQN5ksqm66yufpppddVWUYkuaG5TJvktbUXTSX7v3BBFnuybEJekI0KSaDo3Xfbg==`.
14
+ Previous stable attestation metadata: `https://registry.npmjs.org/-/npm/v1/attestations/session-peer@0.3.1`. Historical records below remain historical.
15
+
16
+ 1. Review and merge the 0.3.2 preparation PR, then require successful CI and release gate for the exact merged main SHA, including Windows Node 22/24. Check the current deployment qualification evidence in VALIDATION.md; pending F5 evidence is not a pass.
17
+ 2. Recheck package ownership/2FA, the npm environment reviewer/main-only policy, stage-only Trusted Publisher mapping, and authenticated pending stages. Require 0.3.2 absent, `latest=0.3.1`, unchanged preview tag/integrity and the pinned public 0.3.1 integrity/provenance.
18
+ 3. Obtain separate approval naming the exact merged 40-character main SHA, **0.3.2**, **stable-stage**, and promotion of `latest` to 0.3.2. Preparation approval and previous release approvals do not authorize staging or publication.
19
+ 4. Only after that approval, dispatch publish.yml with `mode=stable-stage`, `version=0.3.2`, `source_sha=<approved main SHA>` and `confirmation=session-peer@0.3.2 stable-stage`. Review the staged artifact and complete separate npm 2FA approval before publication.
20
+
21
+ 0.3.1 and 0.3.2 refuse each other's SSH version preflight. Upgrade both endpoints together only after the chosen source or publication is approved; never retry an unknown send outcome.
22
+
23
+ ## Public release checkpoint — 0.3.1 (2026-10-04 KST)
24
+
25
+ At this dated checkpoint, `session-peer@0.3.1` was public with `latest=0.3.1` and unchanged
26
+ `preview=0.1.0-preview.1`; see the [dated verification](VALIDATION.md#public-031--2026-10-04-kst).
27
+ Published source is `6b48092a0e42992d2d970dd2ff5cf457f62d3ff2` and publication
28
+ run is `37209205194`. The completed procedure below is historical: do not replay
29
+ its approval, stage 0.3.1 again or republish it. A later release needs a newly
30
+ reviewed version, baseline and exact source approval.
31
+
32
+ <a id="031-stable-release-procedure"></a>
33
+
34
+ ## Completed 0.3.1 stable release procedure
35
+
36
+ The reviewed 0.3.1 source candidate covered the [reliability fixes](PARITY.md#031-reliability-fixes).
37
+ The steps below are history; the public outcome is recorded above. Previous
38
+ stable 0.3.0 integrity was pinned:
39
+ `sha512-mdtikUMrGmMrdVSvPXdJcZeouTeuixOTzGwFKPhN66ATZqTohu9HKbejgOwXJe0/zrO+nt9asCAzAEhiHWDYGA==`.
40
+ The public attestation metadata URL is
41
+ `https://registry.npmjs.org/-/npm/v1/attestations/session-peer@0.3.0`.
42
+ The script enforces the integrity, tags and registry origin of attestation URLs;
43
+ provenance contents and full URLs require separate manual comparison with the
44
+ dated public records. Preserve `preview=0.1.0-preview.1` and its pinned integrity.
45
+
46
+ 1. Merge the reviewed 0.3.1 preparation PR and require successful exact-main CI,
47
+ including Windows Node 22/24, CodeQL and the release gate.
48
+ 2. Confirm npm environment reviewers/main-only deployment policy, package
49
+ ownership/2FA and stage-only Trusted Publisher mapping. Inspect authenticated
50
+ `npm stage list session-peer`; stop on a conflicting stage.
51
+ 3. Require 0.3.1 absent, `latest=0.3.0` and `preview=0.1.0-preview.1`, and compare
52
+ the pinned integrity and public provenance records before approval.
53
+ 4. Obtain final approval naming the exact merged 40-character main SHA,
54
+ **0.3.1**, **stable-stage** and `latest` promotion to 0.3.1. Release preparation
55
+ does not authorize dispatch, and historical approvals cannot be replayed.
56
+ 5. Dispatch `publish.yml` with `mode=stable-stage`, `version=0.3.1`,
57
+ `source_sha=<approved main SHA>` and
58
+ `confirmation=session-peer@0.3.1 stable-stage`.
59
+ 6. Download the prepare job's `npm-release-<SHA>` artifact and apply the
60
+ documentation gate below before the separate protected npm environment approval.
61
+ 7. Record the stage ID and compare staged bytes with the retained artifact.
62
+ Separate final npm 2FA approval publishes 0.3.1 and promotes `latest`.
63
+ 8. On the exact source/artifact, run `release.mjs artifact` and `verify`, then
64
+ append dated public evidence to VALIDATION.md.
65
+
66
+ SSH endpoints must use the same TS version. 0.3.0 and 0.3.1 refuse each other;
67
+ coordinate upgrades. Preserve the known #20/#23 and Windows update-notice
68
+ validation limitations documented in PARITY.md. Do not claim fleet upgrades,
69
+ GitHub tags/releases or live-agent ACK from packaging or CI fixtures.
70
+
71
+ ## Public release checkpoint — 0.3.0 (2026-10-03 KST)
72
+
73
+ `session-peer@0.3.0` is public with `latest=0.3.0` and unchanged
74
+ `preview=0.1.0-preview.1`; see the [dated verification and documentation
75
+ discrepancy](VALIDATION.md#public-030--2026-10-03-kst). The published source is
76
+ `05418b21fcdef890826325d56b07bb3dabce3bb0`, not the later #91 documentation
77
+ correction. The completed steps below are history. Do not replay them or stage
78
+ 0.3.0 again; a later release requires a newly reviewed version, registry
79
+ baseline and exact source approval.
80
+
10
81
  <a id="current-public-release--021"></a>
11
82
 
12
83
  ## Public release checkpoint — 0.2.1 (2026-09-29 KST)
@@ -19,7 +90,9 @@ with `latest=0.2.1` and unchanged `preview=0.1.0-preview.1`; see the
19
90
  0.2.0 procedures below are history, not repeatable dispatches. A future release
20
91
  requires a new reviewed version and baseline preparation PR.
21
92
 
22
- ## 0.3.0 stable release procedure
93
+ <a id="030-stable-release-procedure"></a>
94
+
95
+ ## Completed 0.3.0 stable release procedure
23
96
 
24
97
  The reviewed stable target is 0.3.0, the remote usability and maintenance
25
98
  release ([changes and known limitations](PARITY.md#030-remote-usability-and-maintenance)).
@@ -29,8 +102,9 @@ Its preparation PR pins previous stable 0.2.1 integrity:
29
102
  `https://registry.npmjs.org/-/npm/v1/attestations/session-peer@0.2.1`; the script
30
103
  checks only its registry origin).
31
104
  The preview integrity remains pinned as a preservation check. No existing tag is
32
- removed. The outcome of this procedure is recorded only in a dated VALIDATION.md
33
- section; this document does not assert it.
105
+ removed. These historical steps alone do not constitute public evidence; see
106
+ the [dated verification record](VALIDATION.md#public-030--2026-10-03-kst) for
107
+ the actual outcome and archive documentation discrepancy.
34
108
 
35
109
  1. Merge the reviewed 0.3.0 preparation PR into main and require successful
36
110
  exact-main CI (including Windows Node 22/24, CodeQL and the release gate).
package/SECURITY.md CHANGED
@@ -14,7 +14,7 @@ homes, SQLite DBs, transcripts, browser profiles or .env files. Rotate exposed
14
14
  secrets with their provider; deleting a comment does not revoke a secret.
15
15
 
16
16
  Review is manual and best-effort, with no response or fix deadline. The project is
17
- a published npm client, with 0.2.1 release evidence in [VALIDATION.md](VALIDATION.md#public-021--2026-09-29-kst).
17
+ a published npm client, with 0.3.1 release evidence in [VALIDATION.md](VALIDATION.md#public-031--2026-10-04-kst).
18
18
  Reports on published versions and source commits are welcome; no maintenance
19
19
  window or backport promise exists. English and Korean reports are welcome. Disclosure
20
20
  is coordinated with the reporter; private reports are not automatically public.
package/VALIDATION.md CHANGED
@@ -1,11 +1,235 @@
1
- # Validation record — updated 2026-10-03 KST
2
-
3
- This dated record covers public 0.2.1 and 0.2.0 verification, historical 0.1.0
4
- public verification, candidate checks and live-agent observations. Older sections
1
+ # Validation record — updated 2026-10-07 KST
2
+
3
+ ## 0.3.2 preparation checkpoint — 2026-10-07 KST
4
+
5
+ This is an unpublished patch candidate based on main
6
+ `488ddddac302ba2ad0841061dc8df9187ff6a983`. The public stable version is
7
+ 0.3.1. The 0.4.0 handoff, app-server and observation drafts are not included.
8
+ Runtime changes in this candidate are limited to the version marker; remote
9
+ validation and deployment documentation do not enable Windows-client jump or
10
+ a deploy helper.
11
+
12
+ Local macOS arm64, Node 24.16.0 checks:
13
+
14
+ - `npm test`: 151 tests, 146 passed, zero failed, five Windows-only skips;
15
+ the command also builds the source and checks test types. Conformance used
16
+ the existing Python 1.0.2 reference checkout at `47c2371`; no reference repin.
17
+ - `npm run test:package`: reproducible package, fresh isolated installation,
18
+ native dependency loading, bash/zsh shorthand contract and A-to-B fixture
19
+ update/uninstall lifecycle passed.
20
+ - `node scripts/check-repository.mjs`: metadata, four README/guide contracts,
21
+ links/anchors and ignore rules passed.
22
+
23
+ These are candidate checks, not an exact-main Actions artifact or publication
24
+ verification. Public npm staging and release approvals remain separate.
25
+
26
+ ## Windows SSH destination F5 — 2026-10-07 KST
27
+
28
+ The dedicated-key SSH authentication, isolated installation and operator checks
29
+ below used **published 0.3.1**, not a claimed 0.3.2 release. Destination:
30
+ Windows 10 Pro x64 build 19045, PowerShell 5.1, Node 24.16.0 (ABI 137), bundled
31
+ npm 11.13.0, administrator account. All installation, caches, test fixtures and
32
+ child HOME/TEMP writes were confined to a newly created dedicated test prefix.
33
+ The account/host was not disposable and was not a non-administrator test.
34
+ Existing PATH, profiles, SSH server configuration and Python installation were
35
+ preserved.
36
+
37
+ Package SHA-256:
38
+ `ba8b85b03229bc99ca30d52251790d7e75b90551de924b99edce22570f7fa401`.
39
+ Registry integrity and all three dependency archives matched the lockfile at
40
+ `6b48092a0e42992d2d970dd2ff5cf457f62d3ff2`.
41
+ Operator-side signature audit verified four registry signatures and three
42
+ attestations; the package SLSA subject digest, source SHA, repository and
43
+ `publish.yml` matched. Upload bytes were checked again before offline install.
44
+
45
+ - Offline installation used absolute Node/npm paths, separate empty user/global
46
+ npm configuration files, empty cache and `--ignore-scripts`; installed lock
47
+ integrities matched the pinned dependency set.
48
+ - The self-locating `.cmd` wrapper returned the exact 0.3.1 banner in staging
49
+ and after `Directory.Move` activation. Native Windows file locking passed.
50
+ - Operator CLI over SSH used `--host`, `--remote-platform win32` and an
51
+ explicit `--remote-bin` pointing to the isolated wrapper. Both commands
52
+ passed the same-version `--version` preflight before `--stdio-request`.
53
+ Doctor returned `ok:true`, `diagnosticCompleted:true`,
54
+ `ready:false`, exit 0; nonexistent-target send dry-run
55
+ `no_reachable_target`, `status:refused`, `submitted:false`, exit 1. Local
56
+ wrapper dry-run exit 2 is separate evidence. No actual agent message sent.
57
+ - Operator checks preceded receipt publication and activation-lock release.
58
+
59
+ The private Windows storage/recovery fixture matrix returned **31 passed,
60
+ zero failed, three untested**. These are native storage and local-wrapper
61
+ fixtures; only the primary install additionally has operator SSH evidence.
62
+
63
+ | Exercised group | Result |
64
+ |---|---|
65
+ | Absent/empty/file/foreign classification; junction and foreign owner | Expected classifications/refusals |
66
+ | Matching receipt reuse; missing receipt recovery under a fresh lock | Passed; original marker runId retained in recovery receipt |
67
+ | Corrupt/mismatched/orphan receipt; unsafe receipt DACL/junction | Refused |
68
+ | Inconsistent marker; modified manifest; existing target activation | Refused |
69
+ | Lock contention; missing owner; wrong/unconfirmed owner; explicit override | Expected refusals and explicit-only recovery |
70
+ | Ended-run break followed by fresh-lock reverify; existing receipt preservation | Passed |
71
+ | Rollback without positive caller-unused evidence | Refused |
72
+ | Confirmed rollback, failed-verification rollback, caller rollback | Passed |
73
+ | Configured-install retention refusal; verified unused install+receipt removal | Passed |
74
+ | Copied Node24 path changes identity; staging never treated as final install | Passed |
75
+
76
+ The three untested matrix cells were F6 same-path runtime enforcement,
77
+ non-admin/other architectures, and a complete Node-22 installation/recovery
78
+ qualification. Node22 direct smoke below is separate. These fixtures do not
79
+ prove adversarial races or a production deploy helper. Final cleanup was
80
+ performed only after checking harness ownership and the saved fixture inventory.
81
+ The test prefix was removed; cleanup reported the existing Python launcher
82
+ unchanged. A separate post-cleanup SSH read verified prefix absence and the
83
+ same launcher SHA-256. Dedicated SSH authorization remains separate from
84
+ runtime installation; no private key or password is included in this record.
85
+
86
+ An additional Node 22.23.3 x64 (ABI 127) direct-CLI banner and native-lock
87
+ smoke passed against the same installed published package. The Node ZIP
88
+ matched the HTTPS-served official SHASUMS256; no GPG-signature check was
89
+ performed. This was not a second Node-22 installation/identity or recovery
90
+ matrix. Windows-client jump, non-admin, other architectures and F6
91
+ runtime-identity enforcement remain outside this qualification. The earlier
92
+ Linux run and its untested newer recovery rules remain historical evidence.
93
+
94
+
95
+ This dated record covers the 0.3.2 preparation checkpoint; public 0.3.1,
96
+ 0.3.0, 0.2.1 and 0.2.0 verification; historical 0.1.0 public verification;
97
+ earlier candidate checks and live-agent observations. Older sections
5
98
  describe their stated checkpoint rather than current feature availability.
6
99
  It does not claim complete Python parity.
7
100
  Python reference: v1.0.2, commit `47c23713d0a2a3c11ebde6186afd8c43489b8b65`.
8
101
 
102
+ ## Public 0.3.1 — 2026-10-04 KST
103
+
104
+ `session-peer@0.3.1` was published at `2026-10-04T14:32:10.826Z`
105
+ (23:32:10.826 KST). The public registry reports `latest=0.3.1` and unchanged
106
+ `preview=0.1.0-preview.1`.
107
+
108
+ - Published source: `6b48092a0e42992d2d970dd2ff5cf457f62d3ff2`, the #104 merge.
109
+ [Exact-main CI](https://github.com/abruption/session-peer-ts/actions/runs/37208760455)
110
+ and [CodeQL](https://github.com/abruption/session-peer-ts/actions/runs/37208760542)
111
+ passed. [Publication run](https://github.com/abruption/session-peer-ts/actions/runs/37209205194)
112
+ completed prepare/publish; GitHub records `abruption` approving environment `npm`.
113
+ - Stage ID: `5d846a99-18a7-4ec0-873e-b1b05056fb42`. The authenticated stage
114
+ download, retained Actions artifact, exact-source local pack and public tarball
115
+ are byte-identical: 190,315 bytes, 51 files. All 16 packaged Markdown files were
116
+ compared byte for byte with the published source. The source tree equals the
117
+ reviewed preparation head; commit identity is the merged SHA above.
118
+ - SHA-256: `ba8b85b03229bc99ca30d52251790d7e75b90551de924b99edce22570f7fa401`.
119
+ - Registry integrity:
120
+ `sha512-iZq06dbm6NavHuPZYMIxAnzQN5ksqm66yufpppddVWUYkuaG5TJvktbUXTSX7v3BBFnuybEJekI0KSaDo3Xfbg==`.
121
+ - Public publish/SLSA attestation subject digests match the package SHA-512.
122
+ Provenance binds the source SHA, repository, `.github/workflows/publish.yml`
123
+ and run `37209205194/attempts/1`. Public registry metadata names GitHub Actions
124
+ as Trusted Publisher and `abruption` as approver.
125
+ - `release.mjs artifact` and `verify` passed from the exact publication source
126
+ and artifact on macOS arm64, Node 24.16.0/npm 11.15.0. Verification includes
127
+ npm signature/attestation audit and a fresh public `--ignore-scripts` install,
128
+ `session-peer 0.3.1 (typescript)`, empty isolated Claude listing and clean removal.
129
+ Independent public-key/DSSE checks also passed for the subject digests and
130
+ signatures; npm's audit provides the package signature/attestation trust validation.
131
+
132
+ The 0.3.1 archive includes the reliability fixes and the migration wording
133
+ correction missing from 0.3.0. It retains dated preparation/public-history
134
+ records; this post-publication section is a later repository record, not a
135
+ same-version tarball replacement. No restaging or republication was performed.
136
+
137
+ SSH endpoints must use identical TS versions: 0.3.0 and 0.3.1 refuse each other
138
+ at preflight. Existing #20/#23 and update-notice Windows validation gaps remain.
139
+ Windows evidence is CI fixtures; the installation evidence above is local macOS.
140
+ The 0.2.1 demo's actual ACK remains historical. No fleet upgrade or GitHub tag/
141
+ Release creation is claimed. Draft #82 remains experimental and unmerged.
142
+
143
+ ## 0.3.1 candidate checks — 2026-10-04 KST
144
+
145
+ Source candidate on merged main `cb661ff4f323f637673d528f05992a2bb275fefc`
146
+ after #103, #101, #96, #95 and #102. The local runtime and fixture checks below
147
+ ran at checkpoint `71668d112929576d22a83b2dd269cfb98d3f567a`; later candidate
148
+ changes only add this dated record. See the [patch contracts](PARITY.md#031-reliability-fixes).
149
+ This section records preparation, not public 0.3.1 publication.
150
+
151
+ - macOS arm64, Node 24.16.0/npm 11.15.0; `npm ci --ignore-scripts`, build,
152
+ `test:types` and `npm test` passed: 151 tests, 146 passed, 5 Windows-only
153
+ skipped, 0 failed. Python conformance used the pinned 1.0.2 reference above.
154
+ The full suite includes `test/transport.test.ts`; a Windows command is not
155
+ evidence that this POSIX transport suite ran on Windows.
156
+ - The inactive storage fixture starts without a writer or lock holder. Its
157
+ valid saved-thread DB reports `activity=inactive`, `writerLock=absent` before
158
+ and after testing. Without opt-in it refuses before the storage guard; with
159
+ opt-in, dry-run validates without calling Codex and send queues exactly once.
160
+ Root bare and escaped `sqlite_home` settings and malformed configuration then
161
+ refuse without another queue call. Nested-only root/non-root doctor tests
162
+ use the normal diagnostic DB schema and do not authorize sending.
163
+ - Reply-To tests cover nested URI/agent confusion with zero SSH/queue calls,
164
+ and normal Claude names/Codex routes. SSH fixtures cover unnamed Claude PID
165
+ targets and malformed per-host outcomes without retry. Registry tests include
166
+ POSIX FIFO/race/size handling and healthy rows; UID 0 is simulated through
167
+ controlled identity observations with a real held native lock, not a root login.
168
+ - `test:package` passed the 51-file allowlist, reproducible packaging, clean
169
+ installation/removal and Bash/zsh shorthand contract/lifecycle. Repository
170
+ metadata, four-language docs/links and `git diff --check` passed. `npm audit`
171
+ reported 0 vulnerabilities. The exact runtime dependency `smol-toml@1.9.0`
172
+ is locked; it is installed as a dependency, not bundled into the allowlist.
173
+ - `release.mjs pack` and `artifact` passed at the checkpoint, including identical
174
+ repeated pack bytes and isolated `--ignore-scripts` install/version/list/removal.
175
+ The final documentation-only candidate is repacked and compared with source
176
+ in the preparation PR; its local artifact is not a future merged-main artifact.
177
+ - Registry preparation baseline: `latest=0.3.0`, `preview=0.1.0-preview.1`,
178
+ 0.3.1 absent. The helper pins the public 0.3.0 integrity recorded below and
179
+ retains the preview pin. No dispatch, npm stage/promotion, tag or fleet change
180
+ follows from these checks.
181
+
182
+ Windows evidence for the fixes is CI fixtures. Existing Windows-client jump,
183
+ remote deployment and update-notice validation gaps remain. Live-agent delivery
184
+ or ACK was not exercised by these fixture tests. Publication still requires the
185
+ new exact merged SHA/version/mode approval and runbook gates in RELEASING.md.
186
+
187
+ ## Public 0.3.0 — 2026-10-03 KST
188
+
189
+ `session-peer@0.3.0` was published at `2026-10-03T05:14:44.917Z`
190
+ (14:14:44.917 KST). The registry reports `latest=0.3.0` and unchanged
191
+ `preview=0.1.0-preview.1`.
192
+
193
+ - Published source: `05418b21fcdef890826325d56b07bb3dabce3bb0`, the #89 merge.
194
+ Its [exact-main CI](https://github.com/abruption/session-peer-ts/actions/runs/37096923337)
195
+ and [CodeQL](https://github.com/abruption/session-peer-ts/actions/runs/37096922981)
196
+ passed. The [stage-only publication run](https://github.com/abruption/session-peer-ts/actions/runs/37098738865)
197
+ completed prepare/publish; GitHub records `abruption` approving environment `npm`.
198
+ - Stage ID: `cc0797c4-fbde-4cb0-a01b-806ff8409b39`. The authenticated stage
199
+ download, retained Actions artifact and public registry tarball were compared
200
+ byte for byte. All were the same 184,811-byte, 51-file package.
201
+ - SHA-256: `96315c907339ed7f2def7ac3a02c40b621ca385448884eb69b7d2d975771b797`.
202
+ - Registry integrity:
203
+ `sha512-mdtikUMrGmMrdVSvPXdJcZeouTeuixOTzGwFKPhN66ATZqTohu9HKbejgOwXJe0/zrO+nt9asCAzAEhiHWDYGA==`.
204
+ - Public SLSA provenance matches the package SHA-512, source SHA, repository,
205
+ `.github/workflows/publish.yml` and run `37098738865/attempts/1`.
206
+ - From the exact published source/artifact, `release.mjs artifact` and `verify`
207
+ passed on macOS arm64, Node 24.16.0/npm 11.15.0. A fresh public install with
208
+ `--ignore-scripts` printed `session-peer 0.3.0 (typescript)`, listed no Claude
209
+ sessions in its isolated home, and uninstalled with its launcher removed.
210
+ `npm audit signatures` cryptographically verified registry signatures for
211
+ **3 packages** and attestations for **2 packages**; these are package counts.
212
+
213
+ ### Released documentation and scope
214
+
215
+ The released archive retains a stale migration sentence in PARITY.md claiming
216
+ that multi-host aggregation is absent, although its 0.3.0 feature contract and
217
+ runtime support ordered repeated `--host` results. [PR #91](https://github.com/abruption/session-peer-ts/pull/91)
218
+ corrected the source at `f6fedfc08c0f374eec1a3b5e2e6bfd09bc98dd71`.
219
+ That correction is **not in the immutable public 0.3.0 archive**; it will be
220
+ included when a later version is packaged. The corrected local candidate was
221
+ not the published artifact. No replacement stage or same-version republication
222
+ was executed after the public release was confirmed.
223
+
224
+ SSH still requires the same TS version on both ends: 0.2.1 and 0.3.0 refuse each
225
+ other at preflight. Coordinate endpoint upgrades. #20 remains partial for
226
+ Windows-client jump routing; #23's Windows deployment cell and newer Linux
227
+ receipt/recovery rules remain unvalidated. Update notices' Windows refresh,
228
+ failure and forged-field cells also remain unverified. Public installation
229
+ evidence above is local macOS evidence; Windows evidence is CI fixtures. No
230
+ fleet upgrade or GitHub tag/release is claimed by this record. The demo's actual
231
+ 0.2.1 ACK remains its own historical evidence.
232
+
9
233
  ## 0.3.0 candidate checks — 2026-10-03 KST
10
234
 
11
235
  Candidate source: main after #79, #84, #86, #85, #75 and #83 plus the 0.3.0
@@ -23,9 +247,10 @@ tarball into a temporary prefix printed `session-peer 0.3.0 (typescript)` and
23
247
  uninstalled cleanly. The packaged READMEs and guides were read from that tarball.
24
248
  Each included PR passed the full macOS/Linux/Windows Node 22/24 matrix,
25
249
  CodeQL and the release gate on its head. These are fixture results, not
26
- live-TUI ACKs and not public release evidence; 0.3.0 publication requires the
27
- procedure in [RELEASING.md](RELEASING.md#030-stable-release-procedure) and a
28
- dated public record.
250
+ live-TUI ACKs and not public release evidence. At this candidate checkpoint,
251
+ publication still required the procedure in
252
+ [RELEASING.md](RELEASING.md#030-stable-release-procedure) and a dated public
253
+ record. Completed public evidence is recorded [above](#public-030--2026-10-03-kst).
29
254
 
30
255
  ## Remote deployment workflow, POSIX cell (#23 F5) — 2026-10-02 KST
31
256