session-peer 0.3.6 → 0.4.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.
package/docs/api.md CHANGED
@@ -1,18 +1,18 @@
1
1
  # API reference
2
2
 
3
- This reference describes source/package version **0.3.6**. Check registry availability and review the selected release before installation. Dated release evidence is recorded in [VALIDATION.md](../VALIDATION.md); before publication use a reviewed source artifact.
3
+ This reference describes source/package version **0.4.0**. Check registry availability and review the selected release before installation. Dated release evidence is recorded in [VALIDATION.md](../VALIDATION.md); before publication use a reviewed source artifact.
4
4
 
5
5
  [Back to README](../README.md) · [User guide](guide.md)
6
6
 
7
7
  The package exposes a small ESM API with TypeScript declarations. Install it
8
- locally with `npm install --ignore-scripts session-peer@0.3.6` before importing it.
8
+ locally with `npm install --ignore-scripts session-peer@0.4.0` before importing it.
9
9
  Importing the package does not execute the CLI or submit a message.
10
10
 
11
11
  ```js
12
12
  import { VERSION, VERSION_LINE, reply, envelope } from 'session-peer';
13
13
 
14
- console.log(VERSION); // 0.3.6
15
- console.log(VERSION_LINE); // session-peer 0.3.6 (typescript)
14
+ console.log(VERSION); // 0.4.0
15
+ console.log(VERSION_LINE); // session-peer 0.4.0 (typescript)
16
16
  const address = 'session-peer://v1/reply?agent=claude&session=12345&transport=local';
17
17
  console.log(reply(address)); // { to: '12345' }
18
18
  console.log(envelope('Please review and reply.', true, address));
@@ -33,3 +33,244 @@ not package subpath exports. Use the [CLI guide](guide.md#use) for sending and
33
33
 
34
34
 
35
35
  The ordinary SSH response correction is documented separately as the [0.3.3 ordinary SSH response correction](design/ordinary-ssh-responses.md); its internal parser is not a package-root export.
36
+
37
+ <a id="unreleased-opt-in-handoff-cli--040-work"></a>
38
+
39
+ ## Opt-in handoff CLI — 0.4.0
40
+
41
+ 0.4.0 includes an explicit private POSIX sender ledger. Default sends retain
42
+ their native status, optional fields and exit behavior. The frozen design is tracked in #69;
43
+ this implementation does not change its exact vendored document or fixture.
44
+
45
+ Initialize once with `session-peer handoff init --json`. The optional absolute
46
+ `SESSION_PEER_HANDOFF_HOME` selects its directory; commands never auto-initialize
47
+ missing or corrupt history. `handoff prepare --to TARGET --message-file FILE
48
+ --json` reserves a fresh correlation ID without sending. Use a private regular
49
+ UTF-8 file (POSIX mode 0600), then pass the retained ID with
50
+ `send --correlation-id UUID --message-file FILE --json`. A changed destination,
51
+ original generation or message binding is rejected. An unknown supplied ID is
52
+ not accepted. Ordinary opted-in sends can automatically prepare a fresh ID.
53
+
54
+ Only opted-in results add `handoff`. The inert correlation metadata in a native
55
+ message is not authentication. Durable intent is fenced before native effect;
56
+ crash recovery, `handoff status`, `handoff wait`, `ack` and `handoff confirm`
57
+ never submit again. Retention/quota limits preserve epoch-bound fences rather
58
+ than evicting old authority. Clone/rollback protection assumes intact, retained,
59
+ non-rolled-back history. Native local/SSH retry permission remains false.
60
+
61
+ Keep `ledger.key` with the private ledger: the journal stores an authenticated
62
+ encrypted message-binding digest, using that separate mode-0600 key. The raw
63
+ digest is not stored in the journal. Missing, changed or untrusted keys and old
64
+ plaintext journals fail closed; commands do not regenerate a key or migrate
65
+ history automatically. This does not protect against a same-user reader who
66
+ can obtain both files. Lost history never authorizes resubmission.
67
+
68
+ `--request-ack`, `--observe-delivery` and `--wait-for delivered|acknowledged`
69
+ select separate evidence goals. A required unsupported goal refuses before
70
+ submission; best-effort mode may submit while reporting the channel unsupported.
71
+ `--wait-timeout` is an ASCII integer 1..60 (default 30); its total operation
72
+ budget includes a 5-second cleanup reserve. Budgets 1..5 are syntactically valid
73
+ but cannot authorize an effect. A successful submission is preserved when
74
+ subsequent ledger/evidence operations fail. Best-effort sends keep their native
75
+ success exit and may add `handoffWarning: persistence_failed`; required waits
76
+ fail without erasing independently established native submission facts. No body, transcript, raw native
77
+ stderr, payload digest or receipt secret appears in handoff JSON.
78
+
79
+ Automated receipt producer/bootstrap, Windows ledger and original-sender SSH
80
+ receipt collectors remain unsupported. `ack --receipt -` and `handoff confirm
81
+ --receipt -` consume at most 4096 raw UTF-8 bytes from private stdin; no receipt
82
+ secret is accepted in argv/URI/environment. Receipt ACK means receipt only, not
83
+ ownership, completed work or permission to act. Operator confirmation is
84
+ explicitly labeled and must match retained original context. No arbitrary
85
+ message/transcript scan manufactures ACK. Ordinary generated Reply-To stays v1.
86
+
87
+
88
+ <a id="unreleased-destination-side-ssh-handoff"></a>
89
+
90
+ ### Destination-side SSH handoff
91
+
92
+ POSIX opt-in `send --host HOST` performs an exact-version preflight and a
93
+ no-effect preparation before one destination-side send. Both ends must contain
94
+ the same reviewed 0.4.0 implementation: a 0.3.x banner does not establish new
95
+ capability. Initialize the destination's private ledger explicitly; no command
96
+ auto-installs a handler or initializes missing history. The origin does not
97
+ create a local receipt collector. Reconcile with `handoff status`/`wait` on the
98
+ destination that owns the retained intent, without another send.
99
+
100
+ Preparation fixes the canonical destination target/home, original generation,
101
+ epoch and correlation ID. A supplied ID must already be unattempted/prepared
102
+ there. Fanout uses a distinct ID per destination, is limited to 32 destinations,
103
+ and rejects one caller-supplied ID for multiple hosts. An incomplete preparation
104
+ refuses before effect. After a possible effect, partial/malformed/oversized
105
+ responses remain unknown and are never replayed. Complete request-matched native
106
+ facts survive SSH 255/timeout; malformed optional handoff cannot create ACK or
107
+ erase separately valid submission facts. Ordinary opt-out discards unsolicited
108
+ handoff/query/warning fields.
109
+
110
+ The origin retains its original monotonic deadline. Each private request carries
111
+ only remaining duration, repeated in a private numeric argv selector. The
112
+ destination establishes its input timeout and owned-process cleanup watchdog
113
+ before reading the frame, requires the two durations to match, and charges
114
+ normal Node bootstrap/frame-read time to the same budget. An indefinitely blocked
115
+ static import before handler startup is outside this in-process watchdog; the
116
+ origin still has its own hard transport deadline. Transit delay is
117
+ not measurable across independent monotonic clocks: this is not a synchronized
118
+ cross-host cutoff guarantee. The source deadline is never renewed, and 5 seconds
119
+ of cleanup reserve remain inside each per-destination budget. Fake-SSH fixtures
120
+ exercise the actual destination handler and a recording socket, including the
121
+ watchdog's group cleanup; they do not constitute an actual network SSH or remote
122
+ native-agent qualification.
123
+
124
+ Each fanout destination starts its own total budget; sequential fanout can take
125
+ up to the sum of those budgets (at most 32 × 60 seconds), rather than one shared
126
+ invocation deadline. No setup, preparation or wait renews a destination's
127
+ deadline. Transport loss can return unknown before a delayed destination effect
128
+ has finished; it is not evidence of non-delivery and never authorizes a retry.
129
+
130
+ Original-sender ACK collector/bootstrap and Windows SSH handoff remain
131
+ unsupported. Required acknowledged wait refuses before submission; best-effort
132
+ request-ack reports unsupported. Destination-native observation retains the
133
+ same exact Codex version/platform/home/generation gates as local observation.
134
+
135
+
136
+ <a id="unreleased-bounded-app-server-mechanics--040-work"></a>
137
+
138
+ ## Bounded app-server mechanics — 0.4.0
139
+
140
+ `dist/app-server.js` is an internal opt-in module, not a new public package
141
+ export or a change to ordinary CLI submission. `nativeQueueOnce` requires an
142
+ absolute executable, exact home/thread/original generation, bounded owner
143
+ verifier and durable `beforeEffect` callback. Exact Codex 0.160.1 and 0.162.1
144
+ queue mechanics were tested on macOS arm64 in network-denied synthetic homes;
145
+ other platform or version tuples fail before an effect. There is no minor-range
146
+ or latest-version inference. The caller owns proof of original
147
+ writer/home and any resources used by its verifier.
148
+
149
+ Only initialize, initialized and one thread/queue/add are used. Queue receipt
150
+ returns IDs only. Body-returning observation APIs, transcript reading, resume,
151
+ wake and new model turns are not implemented. The native process is an owned
152
+ queue transport, not an inferred existing session owner. Possible write marks
153
+ outcome uncertain even when the subsequent response is malformed. No automatic
154
+ fallback follows a possible effect. Fixture-only metadata ports are not native
155
+ observation qualification. See [source evidence](../PARITY.md#unreleased-bounded-app-server-foundation--71).
156
+
157
+ The 0.162.1 qualification uses source `092d3acd6bec3e3a14bdc7e7a2810ab628ab759d`
158
+ and generated schema hashes, with all 84 native notifications opted out before
159
+ the effect (0.160.1 retains its exact 83-method list). A saved synthetic thread
160
+ remained unloaded before and after one queue request; its own echoed input and
161
+ queue/thread/client IDs were checked. A separate native API fixture verified
162
+ owned SQLite descriptor binding and durable-guard refusal with zero queue rows.
163
+ Neither fixture proves a live writer's generation, actual delivery, receipt ACK
164
+ or a body-free native observer. Linux and Windows native mechanics remain
165
+ unqualified. The initial qualification harness had echo-shape and temporary-home
166
+ mapping failures; each subsequent probe used a distinct home/thread/client ID,
167
+ and no attempted submission was replayed. Details are retained in the
168
+ `test/fixtures/app-server-schema-evidence.json` source fixture.
169
+
170
+
171
+ The queue-only SDK pins both environment and CLI SQLite home, then verifies
172
+ opened state/queue DB paths on its OWN native app-server PID before authorizing
173
+ the effect. Config precedes the environment and exact managed requirements can
174
+ supersede the CLI in the qualified versions, so initialize's home echo alone is insufficient.
175
+ Missing/mismatched descriptor proof refuses without queue/fallback. Direct
176
+ native binaries are qualified; launcher wrappers without this PID/storage proof
177
+ remain unsupported. Native bootstrap may create state/cache files according to
178
+ managed policy before binding refusal; zero queue is the guarantee, not zero
179
+ bootstrap filesystem activity. Observers still open only read-only warm stores.
180
+
181
+
182
+ <a id="unreleased-local-delivery-observation--72"></a>
183
+
184
+ ## Local delivery observation — #72
185
+
186
+ A narrower qualified source path combines #71 queue mechanics with a warm
187
+ Codex 0.160.1 or 0.162.1 metadata store on macOS arm64. `--observe-delivery` checks once
188
+ (best effort); `--wait-for delivered` polls within the original remaining
189
+ budget. The native client ID is the reserved correlation ID. A positive native
190
+ receipt remains `status: queued`, `submitted: true`, `consumptionConfirmed:
191
+ false` even when the explicit wait fails. The separate handoff describes the
192
+ requested evidence goal. After any possible RPC write, no legacy fallback or
193
+ second submission occurs.
194
+
195
+ Before an opted-in native effect, original saved thread/home/writer evidence,
196
+ default SQLite storage, exact native version and a warm supported metadata
197
+ schema are checked. Required unsupported observation refuses before effect.
198
+ Best-effort chooses legacy queue only if qualification failed before any native
199
+ app-server attempt. The sender fences its intent durably before queue/add.
200
+ A fresh queue transport is not treated as the owner of another process's thread.
201
+
202
+ The observer never reads rollouts or calls history, queue/list, thread/resume,
203
+ turn/start or full item/turn notification APIs. SQLite itself projects only
204
+ `clientId`, thread/turn IDs and an allowlisted status. Recent row keys are bounded
205
+ to 256; cells over 256 KiB are excluded before JSON extraction. Temporary SQLite
206
+ storage is memory-only and materializes keys/bounded scalars. Body/error columns
207
+ are never returned to JavaScript. SQLite internally evaluates body-bearing
208
+ `item_json` cells to project metadata; this is not a guarantee that message-body
209
+ bytes are never accessed inside the SQLite engine. Only an already-warm original store is used;
210
+ there is no migration, warm-up/backfill, new model turn or wake. Existing WAL/SHM
211
+ must already be trusted; SQLite read-only readers can participate in transient
212
+ SHM read locks. DB/WAL bytes and sidecar creation remain unchanged in fixtures.
213
+
214
+ File/schema/inode checks and queries run in owned deadline-bounded children.
215
+ An inherited-group owner verifier compares the ORIGINAL selected fingerprint
216
+ before/after each read. Wrong client ID, schema drift, owner restart or an
217
+ ambiguous row cannot advance delivery. Unknown native turn statuses remain
218
+ unknown. Queue deletion or turn completion alone never creates injection/ACK.
219
+ Each wait keeps its own operation ID/cutoff and immutable terminal record;
220
+ concurrent later waits do not replace the originating send's result. An explicit
221
+ SIGINT-stopped wait returns exit 130 when its matching stopped record is proven,
222
+ retaining independently known submission facts and never retracting/resending.
223
+
224
+ `handoff wait --correlation-id UUID --wait-for delivered` starts a new operation
225
+ over a retained, positively submitted intent. Native observation is read-only;
226
+ the operation persists private wait/terminal records. It preserves the original
227
+ home/thread/writer generation and private, exact version/source/platform
228
+ qualification. Missing qualification is unsupported; today's PATH or matching
229
+ schema never reconstructs it. A new wait has its own cutoff and never rewrites
230
+ an old terminal wait. Other processes' pending waits remain untouched and each
231
+ owner classifies its own deadline. No native executable, queue request, transcript
232
+ API or model turn is started by status/wait. Ledger contention is retried only
233
+ inside the existing total budget. A persistence failure returns the last verified
234
+ operation and known submission facts with `handoff_persistence_failed`; it does
235
+ not claim that a terminal record was written.
236
+
237
+ Qualification boundaries: the combined native CLI route is macOS arm64/Codex
238
+ 0.160.1 or 0.162.1, each with an exact pinned source profile. Dedicated new
239
+ 0.162.1 TUI sessions demonstrated one native queue attempt and exact client-ID
240
+ injection in the original thread/home using bounded metadata projections.
241
+ Synthetic tests separately cover independent-process resume, timeout, SIGINT,
242
+ concurrent waits, owner change and persistence failure. Neither completion nor
243
+ visible response establishes machine ACK. A separate voluntary matching reply
244
+ was explicitly recorded with `handoff confirm --receipt -` before any wait:
245
+ `operator_confirmed`, retained ACK and a later acknowledged wait succeeded.
246
+ A prior test that started a delivered wait before confirmation correctly refused
247
+ unprovable cross-process ordering; its intent was not resubmitted. This is manual
248
+ operator attestation, not automatic token-possession receipt collection. Dedicated Claude Code 2.1.296 tests
249
+ confirmed correlated socket delivery and best-effort ACK remaining unsupported;
250
+ a required unsupported ACK refused before posting.
251
+
252
+ The qualified native app-server queue/observation route is unsupported on
253
+ Linux/Windows. Ordinary Codex queue submission and explicit operator confirmation
254
+ on supported POSIX ledgers are separate capabilities, demonstrated by the KR/US
255
+ checks in VALIDATION. Windows private ledger and automated receipt
256
+ collector/bootstrap remain unsupported. Other native versions are not
257
+ inferred from a minor range. The original-sender SSH collector is not provided.
258
+ These source checks do not by themselves establish package publication or
259
+ a completed milestone. Exact evidence and limits are in [VALIDATION](../VALIDATION.md).
260
+
261
+
262
+
263
+
264
+
265
+ <a id="040-candidate-scope"></a>
266
+
267
+ ## 0.4.0 implementation scope
268
+
269
+ The 0.4.0 implementation includes the qualified macOS arm64 observer and explicit
270
+ `operator_confirmed` receipts on supported POSIX ledgers. Other platforms do not
271
+ inherit that qualification. Linux observation [#130](https://github.com/abruption/session-peer-ts/issues/130),
272
+ Windows observation/private storage [#131](https://github.com/abruption/session-peer-ts/issues/131) and
273
+ voluntary receipt producer/authenticated collector bootstrap [#132](https://github.com/abruption/session-peer-ts/issues/132)
274
+ are future extensions. An automatic collector would still require an explicit
275
+ receiver receipt; it must never infer ACK from messages or turn completion.
276
+ Unsupported required goals refuse before effect; no post-attempt fallback or resend.
@@ -2,7 +2,17 @@
2
2
 
3
3
  This document retains the original TS source proposal and dated design review for [#118](https://github.com/abruption/session-peer-ts/issues/118), based on the companion [Draft #20 at `963c3d7`](https://github.com/abruption/session-peer-skill/blob/963c3d748a11b1164013ee26c9c0ef285c52b285/docs/typescript-compatibility.md). Companion [design acceptance at `699a325`](https://github.com/abruption/session-peer-skill/blob/699a3251830c30c62d0f812363faf4d0eb0c8e0c/docs/typescript-compatibility.md) records the full static review of the exact candidates below on 2026-10-09. This design-only acceptance does not authorize runtime merge/release, successor skill metadata/publication, installation or pin changes, content authenticity, or live delivery support.
4
4
 
5
- ## 0.3.6 finite row
5
+ ## 0.4.0 finite row
6
+
7
+ TS source/package 0.4.0 preserves the three reviewed profiles accepted by public 0.3.6 (skill 0.1.0, 0.2.0 and published 0.2.1) and adds exactly `0.3.0 / typescript / min 0.1.0 / full 0.4.0 / probe-help` for runtime 0.4.0 only. Compiled default, explicit `undefined`, explicit 0.4.0 and outer `inspectSkill` use this finite row. All historical runtime/profile verdicts remain unchanged; old runtime identities reject the new profile, and 0.3.7, 0.4.1 and other unreviewed runtime identities remain incompatible. Parser/reader behavior and malformed/unsupported envelopes are unchanged. This is a finite row, not a SemVer range or a skill publication.
8
+
9
+ ### Exact companion 0.3.0 candidate review — 2026-10-18 KST
10
+
11
+ The complete companion [Draft PR #37 checkpoint `b8ff909ffc5fe1e5b22c66a5c302be8332a76038`](https://github.com/abruption/session-peer-skill/blob/b8ff909ffc5fe1e5b22c66a5c302be8332a76038/docs/candidates/session-peer-ts-0.3.0.md) is retained as `test/fixtures/ts-skill-0.3.0-candidate.md`: **20,162 raw UTF-8 bytes**, SHA-256 `1ae3690cb5d03777bf448cf06496fed27e4a9329deb03741d6d956a3b13c5ed4`. Exact-content review found no normative blocker and accepted this profile direction at design level only. The helper fixtures check exact bytes/hash, fatal UTF-8, compiled default/undefined/explicit 0.4.0 and outer inspection, with historical, future and malformed runtime rejection. The fixture is excluded from the npm package and its instructions are never executed by these checks.
12
+
13
+ This is candidate-specific design/content review, not approval to install or publish the skill. The retained candidate still names its older feature checkpoint and review-only status; that source text is not evidence that its final guidance has been reviewed against the eventual published runtime. After actual supporting-runtime publication, final skill content and metadata require a fresh exact-head/whole-byte review and separate human publication approval. Runtime publication does not publish or install a skill. Existing four-language guidance retains the published 0.2.1 immutable source/hash below until a separately approved skill release is actually public; only then may a later guidance change adopt its immutable pin.
14
+
15
+ ## 0.3.6 finite row — historical checkpoint
6
16
 
7
17
  TS source/package 0.3.6 explicitly carries the same three reviewed skill profiles as public 0.3.5: 0.1.0, 0.2.0 and published 0.2.1. The immutable 0.2.1 source/hash below are unchanged. Default/undefined/outer inspection use compiled VERSION=0.3.6; an explicit 0.3.5 helper still returns its historical reviewed verdict. 0.3.7 and other unreviewed identities remain incompatible. Parser/reader behavior and all malformed/unsupported envelopes remain unchanged; this is an explicit finite row, not a SemVer range or a new skill release.
8
18
 
@@ -18,7 +28,7 @@ The published bytes are retained as an offline guidance fixture, distinct from t
18
28
 
19
29
  The skill repository tag, Python skill revision, TS skill revision, and npm runtime version are independent. `runtime-min-version` describes the skill's baseline CLI compatibility floor; `runtime-full-version` describes its documented published CLI feature coverage reference. Neither is a security recommendation, a doctor-acceptance rule, permission to send, or evidence of platform/native compatibility. Optional operations still need their actual resolved TS executable's version/help and prerequisites.
20
30
 
21
- The published 0.3.4 checkpoint at [`afed4a5a8945012faf1b23d52cffecb70470a5b3`](https://github.com/abruption/session-peer-ts/tree/afed4a5a8945012faf1b23d52cffecb70470a5b3) has the following finite runtime/profile matrix. The current 0.3.6 source/package row is documented above; the dated 0.3.5 successor rollout below is historical and does not change that immutable published artifact:
31
+ The published 0.3.4 checkpoint at [`afed4a5a8945012faf1b23d52cffecb70470a5b3`](https://github.com/abruption/session-peer-ts/tree/afed4a5a8945012faf1b23d52cffecb70470a5b3) has the following finite runtime/profile matrix. The 0.4.0 candidate row and historical 0.3.6 row are documented above; the dated 0.3.5 successor rollout below is historical and does not change that immutable published artifact:
22
32
 
23
33
  | Inspecting runtime | Skill version | Implementation | Minimum | Full | Policy | Verdict |
24
34
  |---|---|---|---|---|---|---|
package/docs/guide.ja.md CHANGED
@@ -4,13 +4,15 @@
4
4
 
5
5
  [English](guide.md) | [한국어](guide.ko.md) | [日本語](guide.ja.md) | [简体中文](guide.zh-CN.md)
6
6
 
7
- **文書・ソースのバージョン: 0.3.6。** インストール前に、選択したリリースとレジストリのメタデータを確認してください。日付付きの準備・検証記録は [VALIDATION.md](../VALIDATION.md)、リリース手順は [RELEASING.md](../RELEASING.md) にあります。SSH の両端には同じ TypeScript クライアントのバージョンが必要で、0.3.5 と 0.3.6 は互いの SSH 事前確認を拒否します。
7
+ **文書・ソースのバージョン: 0.4.0。** インストール前に、選択したリリースとレジストリのメタデータを確認してください。日付付きの準備・検証記録は [VALIDATION.md](../VALIDATION.md)、リリース手順は [RELEASING.md](../RELEASING.md) にあります。SSH の両端には同じ TypeScript クライアントのバージョンが必要で、0.3.6 と 0.4.0 は互いの SSH 事前確認を拒否します。
8
8
 
9
- 0.3.6 の詳細ガイドです([0.3.1 の信頼性の修正](../PARITY.md#031-reliability-fixes))。0.3.0 は複数ホスト SSH、送信者情報と返信経路、更新確認、任意の `sp` 短縮名を追加しました([0.3.0 の変更点](../PARITY.md#030-remote-usability-and-maintenance))。以前の公開記録は [0.3.1 公開リリースの証拠](../VALIDATION.md#public-031--2026-10-04-kst) にあります。以下の 0.1.0 の説明は旧版との比較です。
9
+ **0.4.0 handoff の範囲:** 任意の native 観測は macOS arm64 の厳密な Codex 0.160.1/0.162.1 に限定し、明示的な `operator_confirmed` 受領確認には対応する POSIX ledger を使います。Linux・Windows の native 観測と自動 ACK 収集は未対応です。
10
+
11
+ 0.4.0 の詳細ガイドです([0.3.1 の信頼性の修正](../PARITY.md#031-reliability-fixes))。0.3.0 は複数ホスト SSH、送信者情報と返信経路、更新確認、任意の `sp` 短縮名を追加しました([0.3.0 の変更点](../PARITY.md#030-remote-usability-and-maintenance))。以前の公開記録は [0.3.1 公開リリースの証拠](../VALIDATION.md#public-031--2026-10-04-kst) にあります。以下の 0.1.0 の説明は旧版との比較です。
10
12
 
11
13
  <a id="移行時の境界-033-候補"></a>
12
14
 
13
- ## 移行時の境界 (0.3.6)
15
+ ## 移行時の境界 (0.4.0)
14
16
 
15
17
  [0.3.2 の公開記録](../VALIDATION.md#public-032--2026-10-07-kst)はリリースのソースと成果物を固定しています。SSH の事前確認は TS のバージョン表示の完全一致を検査しますが、コミットハッシュは検査しません。ソースビルドのレビュー済みコミットは運用者が別途揃える必要があります。
16
18
 
@@ -22,8 +24,10 @@
22
24
  - npm、Python、リモートホスト、スキルは別管理です。TS は自己更新やリモート更新を提供しません。通知は既定で無効で、無効化指定が優先します。明示的な `update --check` はレジストリを照会します。公開 TS 0.3.5 は公開スキル `0.2.1` と旧 `0.1.0`・`0.2.0` の厳密なプロファイルを受け入れます。公開 TS 0.3.2・0.3.3・0.3.4 は `0.2.1` を拒否します。導入の節には独立して公開されたスキルのソースを固定しています。
23
25
  - Windows の検証は公開 0.3.1、Windows 10 x64、管理者アカウント、PowerShell 5.1、Node 24.16.0 で行いました。オフライン導入、ラッパー・ネイティブロック、運用者の doctor・存在しない宛先の dry-run、ローカル fixture 31 件を検証しました。Node 22 はバージョン表示とネイティブロックの確認のみです。非管理者、他のアーキテクチャ、F6 のランタイム検査、以前の Linux 実験の最新規則は未検証です。0.3.2 の実機 ACK やデプロイ補助ツールの検証ではありません。
24
26
 
25
- [移行の詳細](../PARITY.md#ordinary-cli-migration-notes--117)と [Windows の検証記録](../VALIDATION.md#windows-ssh-destination-f5--2026-10-07-kst)を参照してください。Python 1.0.2 のテスト基準は維持します。比較対象の公開 CLI はどちらも一般のネイティブ ACK/wait、エンドツーエンドの重複防止、Side Session を提供しません。Relay/MCP はこの比較の対象外です。
27
+ [移行の詳細](../PARITY.md#ordinary-cli-migration-notes--117)と [Windows の検証記録](../VALIDATION.md#windows-ssh-destination-f5--2026-10-07-kst)を参照してください。上の日付付き移行比較は当時の公開版を対象にしています。0.4.0 ソースの開発時の比較基準は Python 1.1.0 ですが、公開 npm 0.3.3 の従来の 1.0.2 表示は変わりません。Python 1.1.0 には実験的なローカル Claude の受領確認専用 ACK 経路があります。これは TS 実装の自動 ACK、元の送信者側の SSH 受領確認収集、Windows handoff 対応を意味しません。どちらの基準もエンドツーエンドの消費を保証せず、Side Session は実験段階です。Relay/MCP は比較対象外です。
28
+
26
29
 
30
+ [0.4.0 handoff 設計と実装の範囲](../PARITY.md#handoff-v1-design-candidate--69)
27
31
 
28
32
  ## 目次
29
33
 
@@ -40,7 +44,7 @@
40
44
 
41
45
  実行中の **Claude Code と Codex セッション**に、ローカルまたは SSH 経由でメッセージを送る TypeScript クライアントです。Node.js で動作し、Python は不要です。
42
46
 
43
- **0.3.6 の利用ガイドです。**パッケージ名は `session-peer`、CLI コマンドは **`session-peer`**。Relay サーバーやホスティングサービスは提供しません。
47
+ **0.4.0 の利用ガイドです。**パッケージ名は `session-peer`、CLI コマンドは **`session-peer`**。Relay サーバーやホスティングサービスは提供しません。
44
48
 
45
49
  ## 機能と範囲
46
50
 
@@ -57,7 +61,7 @@ Relay 通信、MCP、wake/resume、Antigravity、自動更新は未実装です
57
61
 
58
62
  ビルド後の `node dist/cli.js list --json` は Claude/Codex をまとめて表示し、`list --agent codex --json` は既知の home を検索します。公開 npm **0.1.0** では引き続き agent と Codex 一覧の home を明示します。0.2.0 でも明示的なコマンド形式を利用できます。
59
63
 
60
- 対象は既定の `~/.codex`、`CODEX_HOME`、macOS Orca 直下のアカウント home、JSON 配列 `SESSION_PEER_CODEX_HOMES` のみです。`--codex-home` は Codex 一覧を固定して無関係な設定エラーを回避し、`--agent claude` は Codex 探索を省略します。同じ home の別名は統合し、異なる home の同じ UUID は保持します。送信には各行の `codexHome` を使ってください。任意 home の不在はエラーではなく、明示した home の不在・不正は読み取れた行を保持して終了コード 1 を返します。一覧は writer を選択せず、メッセージを提出しません。[一覧契約](../PARITY.md#source-unified-listing-contract--16--020)に順序・診断・`--all`・SSH を記載しています。0.2.0の Codex 送信は `--codex-home` 省略時に一意で安定した live writer を選択します。明示 home でも既知の競合 home をすべて検査します。非アクティブなキュー送信には保存済みスレッド、全候補の非アクティブ検証、および `--codex-home HOME --allow-inactive-codex-home` が必要で、wake/resume は実行しません。Dry-run は提出しません。JSON に診断 `codexHomeResolution` と、ネイティブ出力にある場合のみ `queueId` を追加しますが、消費確認ではありません。[選択契約](../PARITY.md#source-codex-home-selection--17--020)を参照してください。公開 **0.1.0** には明示 live home が必要で、非アクティブ許可オプションはありません。SSH の両端には同じ TypeScript クライアントのバージョン(0.3.6)が必要です。
64
+ 対象は既定の `~/.codex`、`CODEX_HOME`、macOS Orca 直下のアカウント home、JSON 配列 `SESSION_PEER_CODEX_HOMES` のみです。`--codex-home` は Codex 一覧を固定して無関係な設定エラーを回避し、`--agent claude` は Codex 探索を省略します。同じ home の別名は統合し、異なる home の同じ UUID は保持します。送信には各行の `codexHome` を使ってください。任意 home の不在はエラーではなく、明示した home の不在・不正は読み取れた行を保持して終了コード 1 を返します。一覧は writer を選択せず、メッセージを提出しません。[一覧契約](../PARITY.md#source-unified-listing-contract--16--020)に順序・診断・`--all`・SSH を記載しています。0.2.0の Codex 送信は `--codex-home` 省略時に一意で安定した live writer を選択します。明示 home でも既知の競合 home をすべて検査します。非アクティブなキュー送信には保存済みスレッド、全候補の非アクティブ検証、および `--codex-home HOME --allow-inactive-codex-home` が必要で、wake/resume は実行しません。Dry-run は提出しません。JSON に診断 `codexHomeResolution` と、ネイティブ出力にある場合のみ `queueId` を追加しますが、消費確認ではありません。[選択契約](../PARITY.md#source-codex-home-selection--17--020)を参照してください。公開 **0.1.0** には明示 live home が必要で、非アクティブ許可オプションはありません。SSH の両端には同じ TypeScript クライアントのバージョン(0.4.0)が必要です。
61
65
 
62
66
  ### 0.2.0 CLI の使いやすさ
63
67
 
@@ -80,15 +84,15 @@ macOS / Linux / Windows native、Node **22.x の 22.13 以上、または 24.x**
80
84
 
81
85
  Node 22.x の 22.13 以上または 24.x を使用し、インストールする正確なバージョンの公開状況を確認してください。Python CLI も同じコマンド名を使うため、既存のインストールがあれば先に PATH を確認してください。
82
86
 
83
- **0.3.6 のインストール:** npm の導入・更新例を実行する前に、レジストリで公開状況と選択したリリースを確認してください。利用できない場合は[レビュー済みソースビルド](#ソースからビルド)を使います。
87
+ **0.4.0 のインストール:** npm の導入・更新例を実行する前に、レジストリで公開状況と選択したリリースを確認してください。利用できない場合は[レビュー済みソースビルド](#ソースからビルド)を使います。
84
88
 
85
89
  ```sh
86
- npm view session-peer@0.3.6 version dist.integrity
87
- npm install --global --ignore-scripts session-peer@0.3.6
90
+ npm view session-peer@0.4.0 version dist.integrity
91
+ npm install --global --ignore-scripts session-peer@0.4.0
88
92
  session-peer --version
89
93
  ```
90
94
 
91
- 期待値は `session-peer 0.3.6 (typescript)`。
95
+ 期待値は `session-peer 0.4.0 (typescript)`。
92
96
 
93
97
  1. `session-peer list --agent claude --json` で宛先を探し、正確な PID を選びます。
94
98
  2. `session-peer send --to CLAUDE_PID --message 'Please reply after checking.' --dry-run --json` で提出せずに確認します。
@@ -107,7 +111,7 @@ npm run build
107
111
  node dist/cli.js --version
108
112
  npm pack --ignore-scripts
109
113
  # 任意のグローバルインストール前に PATH の既存コマンドを確認
110
- npm install --global --ignore-scripts ./session-peer-0.3.6.tgz
114
+ npm install --global --ignore-scripts ./session-peer-0.4.0.tgz
111
115
  session-peer --version
112
116
  ```
113
117
 
@@ -117,7 +121,7 @@ session-peer --version
117
121
 
118
122
  インストール前後に `type -a session-peer` と `command -v session-peer` を確認します。他の実装も同名コマンドを提供するため、PATH 上の一つを選ぶか `node /absolute/path/dist/cli.js` を使ってください。`--force` で他の管理ツールのファイルを上書きしないでください。Python パッケージ・スキル・サービスを自動変更しません。削除は `npm uninstall --global session-peer` を使い、PATH を再確認します。
119
123
 
120
- Windows PowerShell では `Get-Command session-peer -All` で既存コマンドを確認します。Python CLI を置換せずに試すには、`npm ci --ignore-scripts`、`npm run build`、`npm pack --ignore-scripts` の後、`npm install --prefix "$env:TEMP\session-peer-ts-source" --ignore-scripts .\session-peer-0.3.6.tgz` を実行し、`& "$env:TEMP\session-peer-ts-source\node_modules\.bin\session-peer.cmd" --version` で確認します。同じ prefix の `npm uninstall --prefix "$env:TEMP\session-peer-ts-source" session-peer` で削除します。
124
+ Windows PowerShell では `Get-Command session-peer -All` で既存コマンドを確認します。Python CLI を置換せずに試すには、`npm ci --ignore-scripts`、`npm run build`、`npm pack --ignore-scripts` の後、`npm install --prefix "$env:TEMP\session-peer-ts-source" --ignore-scripts .\session-peer-0.4.0.tgz` を実行し、`& "$env:TEMP\session-peer-ts-source\node_modules\.bin\session-peer.cmd" --version` で確認します。同じ prefix の `npm uninstall --prefix "$env:TEMP\session-peer-ts-source" session-peer` で削除します。
121
125
 
122
126
  ## 使い方
123
127
 
@@ -202,19 +206,19 @@ npm run test:package
202
206
  npm audit
203
207
  ```
204
208
 
205
- Python は開発時の互換検証基準のみです(v1.0.2、`47c23713d0a2a3c11ebde6186afd8c43489b8b65`)。実行時依存ではありません。POSIX 契約テストには C コンパイラーと lsof も必要です。CI は三つの OS で Node 22/24 を使います。macOS/Linux は固定した基準に対する全契約・パッケージ検査、Windows x64 はビルド・型検査、ネイティブ Claude inbox、保持/未保持ロック、writer 所有権と提出直前の競合、CLI queue 結果、隔離した模擬 SSH 宛先での実 PowerShell/.cmd フレーミング、パッケージのインストール・ネイティブ読込・削除と audit を実行します。これらは fixture 検査で、Windows では POSIX/Python 参照スイートを実行しません。Windows x64/Node 24 の実機 ACK は別の一回限りの証拠です。SQLite・Unix inbox・実 lock の fixture と、専用実 TUI の証拠 [VALIDATION.md](../VALIDATION.md) は別です。fixture 成功は ACK ではありません。パッケージ内容、反復 pack ハッシュ、新規インストール、アンインストールも検証します。ネイティブ依存の通常の install script は実行せず、検証した prebuilt 経路は `--ignore-scripts` を使います。SQLite 読み取り専用接続も WAL 共有メモリー管理に関与し得るため、スナップショットではありません。
209
+ Python は開発時の比較基準です(v1.1.0、`8ca77cf31254c8287a2593fe484bb30a7dba2727`)。実行時依存ではありません。検証範囲は通常の一覧・探索結果であり、送信や handoff 全体の相互運用性を証明するものではありません。POSIX 契約テストには C コンパイラーと lsof も必要です。CI は三つの OS で Node 22/24 を使います。macOS/Linux は固定した基準に対する全契約・パッケージ検査、Windows x64 はビルド・型検査、ネイティブ Claude inbox、保持/未保持ロック、writer 所有権と提出直前の競合、CLI queue 結果、隔離した模擬 SSH 宛先での実 PowerShell/.cmd フレーミング、パッケージのインストール・ネイティブ読込・削除と audit を実行します。これらは fixture 検査で、Windows では POSIX/Python 参照スイートを実行しません。Windows x64/Node 24 の実機 ACK は別の一回限りの証拠です。SQLite・Unix inbox・実 lock の fixture と、専用実 TUI の証拠 [VALIDATION.md](../VALIDATION.md) は別です。fixture 成功は ACK ではありません。パッケージ内容、反復 pack ハッシュ、新規インストール、アンインストールも検証します。ネイティブ依存の通常の install script は実行せず、検証した prebuilt 経路は `--ignore-scripts` を使います。SQLite 読み取り専用接続も WAL 共有メモリー管理に関与し得るため、スナップショットではありません。
206
210
 
207
211
  [CONTRIBUTING.md](../CONTRIBUTING.md)、[RELEASING.md](../RELEASING.md)、[SECURITY.md](../SECURITY.md) を参照してください。今後のリリースの公開には別途承認が必要で、自動 npm 公開はありません。[MIT](../LICENSE) ライセンスです。
208
212
 
209
213
  ## npm リリース
210
214
 
211
- 公開 **0.3.2** は 2026-10-07 KST に検証されました([固定された公開記録](../VALIDATION.md#public-032--2026-10-07-kst))。以下のレジストリ照会で 0.3.6 の現在の公開状況と npm タグを確認してください。日付付きの準備記録は、その後の公開結果を証明しません。
215
+ 公開 **0.3.2** は 2026-10-07 KST に検証されました([固定された公開記録](../VALIDATION.md#public-032--2026-10-07-kst))。以下のレジストリ照会で 0.4.0 の現在の公開状況と npm タグを確認してください。日付付きの準備記録は、その後の公開結果を証明しません。
212
216
 
213
217
  0.2.1 は 2026-09-29 KST、0.2.0 は 2026-09-28 KST に公開・検証されました。
214
218
  [0.2.1 公開記録](../VALIDATION.md#public-021--2026-09-29-kst)を参照し(以降のリリースはそれぞれ日付付きの記録を追加します)、導入前に正確なバージョンと現在のタグを確認してください。
215
219
 
216
220
  ```sh
217
- npm view session-peer@0.3.6 version dist.integrity
221
+ npm view session-peer@0.4.0 version dist.integrity
218
222
  npm view session-peer dist-tags
219
223
  ```
220
224
 
@@ -256,7 +260,7 @@ session-peer update --check --channel preview --output-format text
256
260
  実行中の CLI のパスからインストールの管理者を確実に特定できた場合にだけ示します。
257
261
  対象は、自身の `session-peer` ランチャーがこのパッケージを指す npm グローバル prefix
258
262
  (既定、Homebrew、nvm、nvm-windows、fnm。例:
259
- `npm install --global --ignore-scripts session-peer@0.3.6`)、マニフェストで
263
+ `npm install --global --ignore-scripts session-peer@0.4.0`)、マニフェストで
260
264
  `session-peer` を宣言している pnpm・Yarn・Bun のグローバルストア、Volta、npx キャッシュ
261
265
  です。プロジェクトへのインストール(`npm_project`、`pnpm_project`)、ソースチェック
262
266
  アウト(`source`)、それ以外(`unknown`)では `updateCommand: null` と `guidance` の文だけを
@@ -336,3 +340,19 @@ npm `--ignore-scripts` は利用でき、postinstall は Skills CLI を呼び出
336
340
 
337
341
  任意の `sp` 短縮名は 0.3.0 以降に含まれ(0.2.1 以前にはありません)、自動では有効になりません。
338
342
  [明示的な有効化・衝突・解除(英語)](shorthand.md)を参照してください。
343
+
344
+
345
+ <a id="unreleased-handoff"></a>
346
+
347
+ ## 非公開 handoff と配送観測(0.4.0)
348
+
349
+ 0.4.0 には opt-in private POSIX handoff ledger が含まれます。必須の証拠が unsupported の場合は提出前に拒否し、best-effort の提出は ACK を証明しません。自動受領確認の接続設定、Windows ledger、元の送信者側の SSH 受領確認収集は未対応です。POSIX SSH opt-in は明示的に初期化した宛先 ledger で送信しない準備を行い、対象・home・generation を固定して一度だけ送信します。[宛先側 SSH の説明](api.md#unreleased-destination-side-ssh-handoff)を参照してください。模擬 SSH fixture と実ネットワーク検証は区別します。
350
+
351
+ [CLI](api.md#unreleased-opt-in-handoff-cli--040-work)
352
+
353
+
354
+ native 観測は、macOS arm64 の厳密な Codex 0.160.1/0.162.1 と既存のメタデータ保存先に限って配送を観測します。検証根拠が保存された提出は、別の `handoff wait` で native 状態を読み取り専用で観測できます。この操作は非公開 ledger に待機・終了記録を保存しますが、native 提出は繰り返しません。各待機は自分の期限だけで判定し、他の待機と過去の終了結果を保持します。専用の新規 Codex 0.162.1・Claude Code 2.1.296 セッションによる実機根拠と合成テストを区別します。queued/posted、注入、ターン終了、通常の返信は受領確認 ACK ではありません。自動 ACK と Windows handoff は未対応です。
355
+
356
+ [Observation](api.md#unreleased-local-delivery-observation--72)
357
+
358
+ Linux・Windows の native 注入観測は未対応です。対応する POSIX ledger では、運用者が明示的に確認した受領を `operator_confirmed` として記録できますが、自動 ACK 収集ではありません。0.4.0 の範囲は、検証済みの macOS 観測と明示的な運用者確認です。Linux・Windows 観測と receipt bootstrap は [#130](https://github.com/abruption/session-peer-ts/issues/130)、[#131](https://github.com/abruption/session-peer-ts/issues/131)、[#132](https://github.com/abruption/session-peer-ts/issues/132) の後続作業です。
package/docs/guide.ko.md CHANGED
@@ -4,13 +4,15 @@
4
4
 
5
5
  [English](guide.md) | [한국어](guide.ko.md) | [日本語](guide.ja.md) | [简体中文](guide.zh-CN.md)
6
6
 
7
- **문서·소스 기준 버전: 0.3.6.** 설치 전에 선택한 릴리스와 레지스트리 메타데이터를 확인하세요. 날짜별 준비·검증 기록은 [VALIDATION.md](../VALIDATION.md), 릴리스 절차는 [RELEASING.md](../RELEASING.md)에 있습니다. SSH 양쪽에는 같은 TypeScript 클라이언트 버전이 필요하며, 0.3.5와 0.3.6는 서로의 SSH 사전 확인을 거부합니다.
7
+ **문서·소스 기준 버전: 0.4.0.** 설치 전에 선택한 릴리스와 레지스트리 메타데이터를 확인하세요. 날짜별 준비·검증 기록은 [VALIDATION.md](../VALIDATION.md), 릴리스 절차는 [RELEASING.md](../RELEASING.md)에 있습니다. SSH 양쪽에는 같은 TypeScript 클라이언트 버전이 필요하며, 0.3.6과 0.4.0은 서로의 SSH 사전 확인을 거부합니다.
8
8
 
9
- 이 가이드는 0.3.6를 다룹니다([0.3.1 신뢰성 수정](../PARITY.md#031-reliability-fixes)). 0.3.0에는 여러 호스트를 통한 SSH 전송, 발신자 정보와 회신 경로, 업데이트 확인, 선택 기능인 `sp` 단축 명령이 추가됐습니다([0.3.0 변경 사항](../PARITY.md#030-remote-usability-and-maintenance)). [0.3.1 공개 릴리스 기록](../VALIDATION.md#public-031--2026-10-04-kst)은 이전 버전의 발행 내역입니다. 아래에서 0.1.0을 언급할 때는 이전 버전을 설명합니다.
9
+ **0.4.0 handoff 범위:** 선택 기능인 native 관측은 macOS arm64의 정확한 Codex 0.160.1/0.162.1에 한정되며, 명시적 `operator_confirmed` 수령 확인에는 지원되는 POSIX ledger를 사용합니다. Linux·Windows의 native 관측과 자동 ACK 수집은 미지원입니다.
10
+
11
+ 이 가이드는 0.4.0을 다룹니다([0.3.1 신뢰성 수정](../PARITY.md#031-reliability-fixes)). 0.3.0에는 여러 호스트를 통한 SSH 전송, 발신자 정보와 회신 경로, 업데이트 확인, 선택 기능인 `sp` 단축 명령이 추가됐습니다([0.3.0 변경 사항](../PARITY.md#030-remote-usability-and-maintenance)). [0.3.1 공개 릴리스 기록](../VALIDATION.md#public-031--2026-10-04-kst)은 이전 버전의 발행 내역입니다. 아래에서 0.1.0을 언급할 때는 이전 버전을 설명합니다.
10
12
 
11
13
  <a id="마이그레이션-경계-033-후보"></a>
12
14
 
13
- ## 마이그레이션 경계 (0.3.6)
15
+ ## 마이그레이션 경계 (0.4.0)
14
16
 
15
17
  [0.3.2 공개 기록](../VALIDATION.md#public-032--2026-10-07-kst)은 릴리스 소스와 산출물을 고정합니다. SSH 사전 확인은 정확히 같은 TS 버전 표시를 검사하며 커밋 해시는 검사하지 않습니다. 소스 빌드의 검토 커밋 일치는 운영자가 별도로 확인해야 합니다.
16
18
 
@@ -22,8 +24,10 @@
22
24
  - npm, Python, 원격 호스트, 스킬은 각각 별도로 관리합니다. TS는 자체·원격 업데이트를 제공하지 않습니다. 알림은 기본 꺼짐이며 비활성화 설정이 우선합니다. 명시적 `update --check`는 레지스트리를 조회합니다. 공개 TS 0.3.5는 공개 스킬 `0.2.1`과 기존 `0.1.0`·`0.2.0`의 정확한 프로필을 허용하며, 공개 TS 0.3.2·0.3.3·0.3.4는 `0.2.1`을 거부합니다. 설치 절에는 별도로 공개된 스킬 소스를 고정했습니다.
23
25
  - Windows 검증은 공개 0.3.1, Windows 10 x64, 관리자 계정, PowerShell 5.1, Node 24.16.0에서 수행했습니다. 오프라인 설치, 래퍼·네이티브 잠금, 운영자의 doctor·없는 대상 dry-run과 로컬 fixture 31개가 검증됐습니다. Node 22는 버전 표시·네이티브 잠금 확인만 수행했습니다. 비관리자, 다른 아키텍처, F6 런타임 검사, 이전 Linux 실험의 최신 규칙 검증은 남아 있습니다. 이는 0.3.2 실기 ACK나 배포 도우미 검증이 아닙니다.
24
26
 
25
- [마이그레이션 상세](../PARITY.md#ordinary-cli-migration-notes--117)와 [Windows 검증 기록](../VALIDATION.md#windows-ssh-destination-f5--2026-10-07-kst)을 참고하세요. Python 1.0.2 테스트 기준은 유지합니다. 비교 대상 공개 CLI 모두 일반 네이티브 ACK/wait, 종단 간 중복 방지, Side Session을 제공하지 않습니다. Relay/MCP는 이 비교 범위에서 제외합니다.
27
+ [마이그레이션 상세](../PARITY.md#ordinary-cli-migration-notes--117)와 [Windows 검증 기록](../VALIDATION.md#windows-ssh-destination-f5--2026-10-07-kst)을 참고하세요. 위 날짜별 마이그레이션 비교는 당시 공개 버전을 기준으로 합니다. 0.4.0 소스의 개발 비교 기준은 Python 1.1.0이며, 공개 npm 0.3.3의 기존 1.0.2 표시는 바뀌지 않습니다. Python 1.1.0에는 실험적인 로컬 Claude 수신 확인 전용 ACK 경로가 있습니다. 이것이 TS 구현의 자동 ACK·원래 발신자의 SSH 수신 확인 수집기·Windows handoff 지원을 뜻하지는 않습니다. 어느 기준도 종단 간 소비를 보장하지 않으며 Side Session은 실험 범위입니다. Relay/MCP는 이 비교에서 제외합니다.
28
+
26
29
 
30
+ [0.4.0 handoff 설계와 구현 범위](../PARITY.md#handoff-v1-design-candidate--69)
27
31
 
28
32
  ## 목차
29
33
 
@@ -92,7 +96,7 @@ JSON에는 정제된 `codexHomeResolution`이 포함되며, 네이티브 응답
92
96
  `queueId`도 포함됩니다. 둘 다 메시지를 읽거나 처리했음을 확인하지 않습니다.
93
97
  [홈 선택 계약](../PARITY.md#source-codex-home-selection--17--020)을 참고하세요.
94
98
  공개 **0.1.0**은 여전히 실행 중인 홈을 명시해야 하며 비활성 세션 허용 옵션이 없습니다.
95
- SSH를 사용할 때는 발신·수신 양쪽에 같은 TypeScript 클라이언트 버전(0.3.6)을 설치해야
99
+ SSH를 사용할 때는 발신·수신 양쪽에 같은 TypeScript 클라이언트 버전(0.4.0)을 설치해야
96
100
  합니다.
97
101
 
98
102
  <a id="020-cli-사용성"></a>
@@ -132,20 +136,20 @@ Claude Code에는 받은 메시지함에 접근할 수 있는 실행 중 TUI(터
132
136
 
133
137
  Node 22.x의 22.13 이상 또는 24.x를 사용하세요. Python CLI도 같은 `session-peer`
134
138
  명령 이름을 쓰므로, 설치 전에 PATH(명령 검색 경로)에서 어떤 실행 파일을 찾는지
135
- 확인하세요. 아래 명령은 선택한 0.3.6를 npm으로 설치하는 예입니다.
139
+ 확인하세요. 아래 명령은 선택한 0.4.0을 npm으로 설치하는 예입니다.
136
140
  CLI 자체는 패키지를 설치하거나 업데이트하지 않습니다.
137
141
 
138
- **0.3.6 설치:** npm 설치·업데이트 예시를 실행하기 전에 레지스트리 제공 여부와 선택한 릴리스를 확인하세요. 해당 버전이 제공되지 않으면 [검토한 소스 빌드](#소스에서-빌드)를 사용하세요.
142
+ **0.4.0 설치:** npm 설치·업데이트 예시를 실행하기 전에 레지스트리 제공 여부와 선택한 릴리스를 확인하세요. 해당 버전이 제공되지 않으면 [검토한 소스 빌드](#소스에서-빌드)를 사용하세요.
139
143
 
140
144
  ```sh
141
- npm view session-peer@0.3.6 version dist.integrity
142
- npm install --global --ignore-scripts session-peer@0.3.6
143
- session-peer --version # session-peer 0.3.6 (typescript)
145
+ npm view session-peer@0.4.0 version dist.integrity
146
+ npm install --global --ignore-scripts session-peer@0.4.0
147
+ session-peer --version # session-peer 0.4.0 (typescript)
144
148
  session-peer list --agent claude --json
145
149
  session-peer send --to CLAUDE_PID --message 'Please review the API contract.' --dry-run --json
146
150
  ```
147
151
 
148
- 예상 결과는 `session-peer 0.3.6 (typescript)`입니다.
152
+ 예상 결과는 `session-peer 0.4.0 (typescript)`입니다.
149
153
 
150
154
  1. 세션을 조회하고 `CLAUDE_PID`를 대상으로 선택한 정확한 PID로 바꾸세요.
151
155
  2. `--dry-run`으로 검증합니다. 이 단계에서는 메시지를 제출하지 않습니다.
@@ -173,11 +177,11 @@ npm run build
173
177
  node dist/cli.js --version
174
178
  npm pack --ignore-scripts
175
179
  # Optional global install: first check which session-peer your PATH selects.
176
- npm install --global --ignore-scripts ./session-peer-0.3.6.tgz
180
+ npm install --global --ignore-scripts ./session-peer-0.4.0.tgz
177
181
  session-peer --version
178
182
  ```
179
183
 
180
- 0.3.6에서 예상되는 결과는 `session-peer 0.3.6 (typescript)`입니다. 로컬 빌드
184
+ 0.4.0에서 예상되는 결과는 `session-peer 0.4.0 (typescript)`입니다. 로컬 빌드
181
185
  산출물을 선택하려면 `./...tgz` 경로를 그대로 두세요. 이후 버전에 이 명령을 사용할
182
186
  때는 먼저 체크아웃한 소스의 버전을 확인하세요.
183
187
 
@@ -198,7 +202,7 @@ Python CLI를 덮어쓰지 않으려면 격리 prefix에 설치·제거할 수
198
202
  npm ci --ignore-scripts
199
203
  npm run build
200
204
  npm pack --ignore-scripts
201
- npm install --prefix "$env:TEMP\session-peer-ts-source" --ignore-scripts .\session-peer-0.3.6.tgz
205
+ npm install --prefix "$env:TEMP\session-peer-ts-source" --ignore-scripts .\session-peer-0.4.0.tgz
202
206
  & "$env:TEMP\session-peer-ts-source\node_modules\.bin\session-peer.cmd" --version
203
207
  # Later: npm uninstall --prefix "$env:TEMP\session-peer-ts-source" session-peer
204
208
  ```
@@ -419,8 +423,9 @@ npm run test:package
419
423
  npm audit
420
424
  ```
421
425
 
422
- Python은 개발 시 TypeScript 구현과 동작이 일치하는지 대조하는 기준 구현(conformance oracle)입니다(v1.0.2 커밋
423
- `47c23713d0a2a3c11ebde6186afd8c43489b8b65`)일 뿐 런타임 의존성이 아닙니다. POSIX 계약 테스트에는
426
+ Python은 개발 시 동작을 대조하는 기준 구현입니다(v1.1.0 커밋
427
+ `8ca77cf31254c8287a2593fe484bb30a7dba2727`). 런타임 의존성이 아닙니다.
428
+ 검증 범위는 일반 목록·탐색 결과이며, 전체 전송·handoff 상호운용성을 입증하지 않습니다. POSIX 계약 테스트에는
424
429
  C 컴파일러와 lsof도 필요합니다. CI(지속적 통합)는 세 OS에서 Node 22/24를 사용합니다.
425
430
  macOS/Linux는 고정된 참조 기준으로 전체 계약·패키지 검사를 실행하고, Windows는
426
431
  x64에서 빌드·타입 검사, 네이티브 Claude 받은 메시지함·잠금 점유/해제, writer 소유권·재검증
@@ -441,7 +446,7 @@ Windows x64/Node 24에서 실제 TUI로 확인한 ACK는 별도의 일회성 증
441
446
  <a id="package-release"></a>
442
447
  ## npm 릴리스
443
448
 
444
- 아래 레지스트리 조회로 0.3.6의 현재 제공 여부와 npm 태그를 확인하세요. 날짜가 기록된 준비 근거는 이후 발행 결과를 입증하지 않습니다.
449
+ 아래 레지스트리 조회로 0.4.0의 현재 제공 여부와 npm 태그를 확인하세요. 날짜가 기록된 준비 근거는 이후 발행 결과를 입증하지 않습니다.
445
450
 
446
451
  0.3.2는 2026-10-07 KST에, 0.3.1은 2026-10-04 KST에 공개·검증했습니다.
447
452
  [0.3.2 공개 기록](../VALIDATION.md#public-032--2026-10-07-kst)과
@@ -452,7 +457,7 @@ Windows x64/Node 24에서 실제 TUI로 확인한 ACK는 별도의 일회성 증
452
457
  설치 전에는 정확한 버전과 현재 npm 태그를 확인하세요.
453
458
 
454
459
  ```sh
455
- npm view session-peer@0.3.6 version dist.integrity
460
+ npm view session-peer@0.4.0 version dist.integrity
456
461
  npm view session-peer dist-tags
457
462
  ```
458
463
 
@@ -507,7 +512,7 @@ session-peer update --check --channel preview --output-format text
507
512
  `updateCommand`는 실행 중인 CLI 경로로 설치 주체를 확인할 수 있을 때 사용자에게 안내합니다.
508
513
  해당하는 경우는
509
514
  자체 `session-peer` 실행기가 이 패키지를 가리키는 npm 전역 prefix(기본, Homebrew, nvm,
510
- nvm-windows, fnm. 예: `npm install --global --ignore-scripts session-peer@0.3.6`),
515
+ nvm-windows, fnm. 예: `npm install --global --ignore-scripts session-peer@0.4.0`),
511
516
  매니페스트에 `session-peer`가 선언된 pnpm·Yarn·Bun 전역 저장소, Volta, npx 캐시입니다.
512
517
  프로젝트 설치(`npm_project`, `pnpm_project`), 소스 체크아웃(`source`), 그 밖의
513
518
  경우(`unknown`)에는 `updateCommand: null`과 `guidance` 문장만 돌려주므로, 관련 없는 현재
@@ -589,3 +594,18 @@ npm `--ignore-scripts`로 설치해도 되며, 설치 후 Skills CLI를 호출
589
594
 
590
595
  선택적 `sp` 단축 이름은 0.3.0 이상에 포함되며(0.2.1 이하에는 없음) 자동으로 켜지지 않습니다.
591
596
  [명시적 활성화와 이름 충돌 안내(영문)](shorthand.md)를 참고하세요.
597
+
598
+ <a id="unreleased-handoff"></a>
599
+
600
+ ## 비공개 handoff와 전송 관측 (0.4.0)
601
+
602
+ 0.4.0에는 opt-in private POSIX handoff ledger가 포함됩니다. 필수 증거 채널이 unsupported이면 제출 전에 거절하며, best-effort 제출은 ACK를 증명하지 않습니다. 자동 수신 확인 연결 설정, Windows ledger 및 원래 발신자의 SSH 수신 확인 수집기는 미지원입니다. POSIX SSH opt-in은 명시적으로 초기화한 목적지 ledger에서 전송 없는 준비 단계로 대상·home·generation을 고정한 뒤 한 번만 전송합니다. [목적지 SSH 설명](api.md#unreleased-destination-side-ssh-handoff)을 참고하세요. 가짜 SSH fixture는 실제 네트워크 검증과 구분합니다.
603
+
604
+ [CLI](api.md#unreleased-opt-in-handoff-cli--040-work)
605
+
606
+
607
+ native 전송 관찰은 macOS arm64의 정확한 Codex 0.160.1/0.162.1과 이미 생성된 메타데이터 저장소에 한정됩니다. 검증 근거가 보존된 전송은 별도 `handoff wait`로 native 상태를 읽기 전용으로 관찰할 수 있습니다. 이 작업은 비공개 ledger에 대기·종료 기록을 저장하며, native 전송을 반복하지 않습니다. 각 대기는 자신의 마감 시각으로만 판단하고 다른 대기와 기존 종료 결과를 보존합니다. 새로 만든 Codex 0.162.1·Claude Code 2.1.296 테스트 세션의 실기 근거와 합성 테스트는 구분합니다. queued/posted, 실제 주입, 턴 종료, 일반 응답은 수령 확인 ACK와 다릅니다. 자동 ACK와 Windows handoff는 미지원입니다.
608
+
609
+ [Observation](api.md#unreleased-local-delivery-observation--72)
610
+
611
+ Linux·Windows의 native 주입 관측은 미지원입니다. 지원되는 POSIX ledger에서는 운영자가 명시적으로 확인한 수령 사실을 `operator_confirmed`로 기록할 수 있지만, 자동 ACK 수집은 아닙니다. 0.4.0 범위는 검증된 macOS 관측과 명시적 운영자 확인입니다. Linux·Windows 관측과 receipt bootstrap은 각각 [#130](https://github.com/abruption/session-peer-ts/issues/130), [#131](https://github.com/abruption/session-peer-ts/issues/131), [#132](https://github.com/abruption/session-peer-ts/issues/132)에서 후속 작업으로 관리합니다.