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/CONTRIBUTING.md CHANGED
@@ -30,7 +30,7 @@ This repository follows the PR-based workflow of
30
30
  npm ci --ignore-scripts
31
31
  npm run build
32
32
  node scripts/check-repository.mjs
33
- SESSION_PEER_PYTHON_ROOT=/path/to/python-v1.0.2 npm test
33
+ SESSION_PEER_PYTHON_ROOT=/path/to/python-v1.1.0 npm test
34
34
  npm run test:package
35
35
  npm audit
36
36
  ```
@@ -44,9 +44,11 @@ separate TypeScript consumer. The package root exposes only pure protocol helper
44
44
  The npm TypeScript indicator requires publishing these declarations in a new
45
45
  version; it does not retroactively alter `0.1.0-preview.0`.
46
46
 
47
- Python reference commit: `47c23713d0a2a3c11ebde6186afd8c43489b8b65`.
48
- CI checks it out separately. Python is a development oracle, never a runtime
49
- fallback. Match Node 22/24, macOS/Linux and the native dependency requirements.
47
+ Python reference: 1.1.0 commit `8ca77cf31254c8287a2593fe484bb30a7dba2727`.
48
+ CI checks it out separately; `test/fixtures/python-reference.pin.json` verifies
49
+ selected source hashes before the ordinary list/discovery comparison tests run.
50
+ This limited comparison does not establish full send/handoff interoperability.
51
+ Python is a development oracle, never a runtime fallback. Match Node 22/24, macOS/Linux and the native dependency requirements.
50
52
  Windows CI separately runs `npm run test:windows` and `npm run test:package`
51
53
  on x64 Node 22/24. The Windows fixture compiles with the runner's .NET Framework
52
54
  C# compiler and uses real locks/processes plus an isolated fake SSH endpoint
package/PARITY.md CHANGED
@@ -1,5 +1,51 @@
1
1
  # Python compatibility and npm migration
2
2
 
3
+ ## Current comparison — Python 1.1.0 / TypeScript 0.4.0
4
+
5
+ Updated 2026-10-18 KST. TypeScript 0.4.0 uses published
6
+ Python **1.1.0**, commit
7
+ [`8ca77cf`](https://github.com/abruption/session-peer/tree/8ca77cf31254c8287a2593fe484bb30a7dba2727),
8
+ as the ordinary list/discovery comparison baseline. JSON reports
9
+ `referenceVersion: "1.1.0"`; this identifies a comparison source, not complete
10
+ runtime parity. The source reports `VERSION=0.4.0`; publication evidence belongs
11
+ to the dated validation and release records. This source does not change
12
+ immutable public npm artifacts or their historical comparison markers.
13
+
14
+ - The exact-release `compatibility-v1.json` and compatibility document are
15
+ byte-identical to the historical Python 1.0.2 versions. The existing
16
+ `conformance.test.ts` and `discovery.test.ts` selection passed **21 tests** on
17
+ macOS arm64 / Node 24.16.0 / Python 3.15.0 against an isolated export of the
18
+ exact 1.1.0 source. This is ordinary list/discovery and synthetic refusal
19
+ evidence, not full send/handoff/SSH interoperability or live ACK evidence.
20
+ - [`python-reference.pin.json`](test/fixtures/python-reference.pin.json) records
21
+ the exact ordinary source, comparison scope and selected source-file hashes;
22
+ the tests check those hashes before using the oracle. CI and the publishing
23
+ workflow use the same immutable source. This test-only manifest is not an npm
24
+ runtime dependency or an installed-package authenticity check.
25
+ - Python 1.1.0 source adds bounded Claude registry reads and fail-closed Codex
26
+ SQLite-storage checks, along with revised SSH evidence handling and opt-in
27
+ target-generation/handoff behavior. TS retains its own error codes, stricter
28
+ selected-storage parser and distinct native result shapes; it does not copy
29
+ Python output mechanically or weaken its existing guards. These differences
30
+ were inspected statically; the 21 tests are not coverage of every new path.
31
+ - Python 1.1.0 has an experimental local Claude receipt-only ACK path. This
32
+ does not establish automated ACK, SSH handoff or Windows handoff support in
33
+ the scoped TS 0.4.0 implementation. Receipt bootstrap, original generation, body-free native
34
+ observation, cleanup and platform qualification remain separate gates.
35
+ Neither a native queue result nor turn completion establishes ACK or safe
36
+ retry; no end-to-end consumption/exactly-once guarantee is introduced.
37
+
38
+ The frozen handoff design and its historical Python 1.0.3 design-review baseline
39
+ remain separate from this ordinary runtime comparison. Exact frozen bytes and
40
+ hashes are preserved. See [the published design checkpoint](#published-python-handoff-checkpoint--2026-10-11)
41
+ and [VALIDATION.md](VALIDATION.md#python-110-ordinary-comparison--2026-10-11-kst).
42
+
43
+ ## Historical 0.3.x comparison context
44
+
45
+ The retained tables and dated migration sections below describe their original
46
+ Python 1.0.2/1.0.3 comparisons and TS 0.3.x source snapshots. Their historical
47
+ pins and evidence are not rewritten as new-release conformance claims.
48
+
3
49
  Updated 2026-10-14 KST. Python reference: **1.0.2**,
4
50
  [`47c2371`](https://github.com/abruption/session-peer/tree/47c23713d0a2a3c11ebde6186afd8c43489b8b65/session_peer_core).
5
51
  This matrix describes the **TS 0.3.6 source/package contract**: the 0.2.0 unified listing, safe home selection,
@@ -74,7 +120,7 @@ not a missing implementation. Issue links describe work, not available features.
74
120
  | Relay server / hosted control service | Separate infrastructure and deployment | Not part of the TS CLI deliverable | Deliberately different scope; #29 must define client boundaries before implementation |
75
121
  | Wait / general ACK / exactly-once consumption | No general CLI wait/ACK or exactly-once consumption guarantee | No general CLI wait/ACK or exactly-once consumption guarantee | Shared limit, not a TS parity gap; paired-device deduplication is not end-to-end consumption |
76
122
 
77
- Historical 0.2.0 source anchors and the unchanged Python oracle:
123
+ Historical 0.2.0 source anchors and the then-pinned Python oracle:
78
124
  [TS CLI](https://github.com/abruption/session-peer-ts/blob/0edc4f8ae05256698f591b7402e89cd3d5858eef/src/cli.ts),
79
125
  [writer](https://github.com/abruption/session-peer-ts/blob/0edc4f8ae05256698f591b7402e89cd3d5858eef/src/writer.ts),
80
126
  [send](https://github.com/abruption/session-peer-ts/blob/0edc4f8ae05256698f591b7402e89cd3d5858eef/src/send.ts),
@@ -196,9 +242,10 @@ Output sources: TS CLI/send above; Python
196
242
 
197
243
  ## Ordinary CLI migration notes — #117
198
244
 
199
- This comparison excludes Relay/MCP and paired-device transports. The existing
200
- Python 1.0.2 oracle and `referenceVersion` stay unchanged. A separate fixed-source
201
- review on 2026-10-09 uses published Python 1.0.3
245
+ This dated 0.3.x comparison excludes Relay/MCP and paired-device transports.
246
+ It retained the Python 1.0.2 oracle and `referenceVersion` at that checkpoint;
247
+ the current 0.4.0 candidate baseline is described above. A fixed-source
248
+ review on 2026-10-09 used published Python 1.0.3
202
249
  [`0d252550`](https://github.com/abruption/session-peer/tree/0d252550ab40c26d1ac4a19193df6ca2f84d830b)
203
250
  and TS 0.3.2 [`f335f073`](https://github.com/abruption/session-peer-ts/tree/f335f07352c842f2f6ceb12bd2ca6274b52f69f7)
204
251
  for migration guidance, not byte/shape parity or a runtime-reference repin.
@@ -307,6 +354,116 @@ Windows support, WSL/POSIX SSH and TS native Windows SSH are separate paths.
307
354
  external Relay infrastructure or a remote host automatically. To return to
308
355
  Python, select its recorded path or uninstall only the npm-owned installation.
309
356
 
357
+ ## Handoff v1 design candidate — #69
358
+
359
+ **Design-freeze checkpoint: jointly approved, frozen DESIGN v0.2; runtime was
360
+ unimplemented and unshipped at that checkpoint.** The current source implementation
361
+ and its limited 0.4.0 scope are described below. All four issues
362
+ [#69](https://github.com/abruption/session-peer-ts/issues/69),
363
+ [#70](https://github.com/abruption/session-peer-ts/issues/70),
364
+ [#71](https://github.com/abruption/session-peer-ts/issues/71) and
365
+ [#72](https://github.com/abruption/session-peer-ts/issues/72) remain in the
366
+ single 0.4.0 milestone. Milestone assignment is not delivery or publication evidence.
367
+
368
+ The upstream candidate is [Python Draft PR #261](https://github.com/abruption/session-peer/pull/261),
369
+ commit `99d8ec3855d57da34a6fa789f3a375820a8fbe85`:
370
+ [document](https://github.com/abruption/session-peer/blob/99d8ec3855d57da34a6fa789f3a375820a8fbe85/docs/contracts/handoff-v1.md)
371
+ and [synthetic fixture](https://github.com/abruption/session-peer/blob/99d8ec3855d57da34a6fa789f3a375820a8fbe85/tests/fixtures/handoff-v1.json).
372
+ Exact copies are retained in `test/fixtures/handoff-v1.md` and
373
+ `test/fixtures/handoff-v1.json`; `handoff-v1.pin.json` records their SHA-256 hashes,
374
+ review status and separate runtime/design references. These test-only files are
375
+ excluded from the npm package. The design-only checkpoint retained its then-current
376
+ 51-file allowlist; the implementation adds its runtime modules explicitly.
377
+
378
+ The design review uses published Python 1.0.3 at
379
+ `0d252550ab40c26d1ac4a19193df6ca2f84d830b` as its compatibility baseline.
380
+ The original review retained the then-current Python 1.0.2 ordinary comparison
381
+ pin. The current candidate separately checks ordinary list/discovery against
382
+ published Python 1.1.0; that does not change these frozen design bytes or claim
383
+ identical Python/TS legacy outputs or implemented cross-runtime handoff parity.
384
+ An approved design commit pins the shared contract fixture independently of
385
+ runtime publication and the bounded ordinary comparison.
386
+
387
+ ### Proposed separation and TS implementation gates
388
+
389
+ | Axis | Candidate meaning / TS boundary |
390
+ | --- | --- |
391
+ | Submission | Preserve native status, target, queueId, submitted and optional-field absence; an observer failure must not pass through a catch that erases known submission evidence. |
392
+ | Observation | Opt-in metadata-only output for an exact native message ID/home/original generation. SQLite may evaluate body-bearing cells internally; this is not a blanket no-body-access promise. Queue deletion or turn completion is not receipt ACK. |
393
+ | Receipt ACK | Receipt-only capability or explicitly recorded operator attestation; never generic reply parsing, a new model prompt, wake or permission to act. |
394
+ | Wait | Separate immutable wait operation/results; a late receipt can add current evidence without changing the original timeout result. |
395
+ | Retry | Native local/SSH replay remains forbidden. Sender fences do not implement receiver dedup or a universal exactly-once guarantee. |
396
+ | SSH | A fully validated, requested explicit-wait result may preserve queued/true with ok:false/exit1. Unrequested handoff data cannot enable this exception; target validation is still required. |
397
+
398
+ The candidate adds a nested `handoff` object only in opted-in mode. Its proposed
399
+ init/prepare/status/wait/confirm/ack commands, epoch IDs, private collector,
400
+ 30-second per-destination budget and 5-second cleanup reserve were **not CLI
401
+ capabilities at the design-freeze checkpoint**. The source subset is described
402
+ in the scoped implementation sections below. Budgets 1–5 seconds are syntactically valid in the proposal
403
+ but refuse before effect. Source-streamed SSH without a compatible receipt handler
404
+ remains ACK-unsupported under this candidate. No transcript/body-returning observer
405
+ or fallback after a possible submission is authorized.
406
+
407
+ ### Amended candidate review and remaining gates
408
+
409
+ The amended exact candidate supersedes the first `605061` review snapshot. Its
410
+ normative document and synthetic vectors now address the seven prior findings:
411
+
412
+ 1. Duplicate receipt queries require original capability-hash authentication,
413
+ including the same-committed-receipt expiry exception; wrong tokens are denied.
414
+ 2. Receipt classification and wait-order facts commit atomically. Proven committed
415
+ ACKs survive clock restart; unprovable manual confirmation refuses without rewriting history.
416
+ 3. Receipt evidence binds the original generation. Null generation cannot mint
417
+ authority; copied original capability data is explicitly only token-possession assurance.
418
+ 4. Sender/collector outputs and own persistence exclude secrets, while intended
419
+ recipient native storage may retain effect-input authority outside CLI control.
420
+ 5. Missing/corrupt ledger or unknown ID returns a closed `handoffQuery` error,
421
+ without a fabricated epoch or native result. Known tombstones retain original context.
422
+ 6. Raw private input, compact public subtree and outer/fanout limits are defined
423
+ separately; lexical constraints stay inside the new schema and native facts are preserved.
424
+ 7. Explicit-wait wire exceptions require the original request and validated native
425
+ target/IDs/goal; returned metadata cannot opt a legacy request in or promote forged ACK.
426
+
427
+ The final candidate now aligns the three remaining fixture/profile rules:
428
+
429
+ - Four original-request profiles preserve Python Claude's absent native fields,
430
+ TS Claude's nullable name/optional agent and Codex's queued/true/false result,
431
+ optional queue ID, native UUID normalization and canonical home/context.
432
+ - A post-submission unsupported channel is a request-gated explicit-wait failure
433
+ at exit 1, preserving known submission and any injection evidence.
434
+ - Interrupting a pending explicit wait records stopped/stopped_by_operator and
435
+ returns complete structured output with ok:false/exit130. A successful status
436
+ query of that record returns exit 0; terminal waits remain immutable.
437
+
438
+ The shared candidate has 39 synthetic request-aware wire vectors for positive,
439
+ forged, wrong-target/home/agent/profile, unsupported and interruption cases.
440
+ The exact candidate has TS design-only approval after independent review; no
441
+ additional normative change is requested for these reviewed findings.
442
+ **Joint design freeze is recorded for the exact source/hash tuple above.**
443
+ [Python acceptance record](https://github.com/abruption/session-peer/pull/261#issuecomment-6016310362)
444
+ confirms both sides' design-only approval; TS acceptance was recorded at
445
+ `63473fb80936b0085e08039997ac39f7158a58dd`. `handoff-v1.pin.json` now has
446
+ `jointFreezeApproved:true`, `runtimeImplemented:false` and no open design-review
447
+ gates. The byte-identical source document and synthetic fixture retain their
448
+ historical proposal/draft labels; the external approval freezes DESIGN, not a
449
+ shipped or implemented runtime protocol. No regeneration or runtime/reference
450
+ repin occurred. Normative/schema/vector changes require a new exact joint review.
451
+ Design-only approval does not establish receipt/bootstrap/runtime acceptance or
452
+ authorize merge, implementation, live effects, operational changes or publication.
453
+
454
+ Python's exact-candidate documentation tests and CodeQL passed; its optional
455
+ Control dependency audit and required release gate failed. That CI status is
456
+ separate from this static design review. No bypass, dependency repair or claim of
457
+ a fully passing upstream PR is made by this historical review. At that checkpoint,
458
+ runtime producer/collector/bootstrap, platform cleanup, metadata-only observation
459
+ and live acceptance were future gates; current implementation evidence appears below.
460
+
461
+ `handoff-contract.test.ts` checks exact pins, synthetic status and selected golden
462
+ safety invariants. It does not implement or test a collector, native receipt,
463
+ crash recovery, monotonic clock continuity, app-server or live SSH. Upstream's
464
+ separate test-only validator likewise supplies design/schema checks, not runtime
465
+ acceptance evidence. No issue is closed and no implementation is enabled here.
466
+
310
467
  ## Evidence and ongoing maintenance
311
468
 
312
469
  | Evidence class | What it establishes | What it does not establish |
@@ -862,3 +1019,179 @@ Version 0.3.3 uses compiled `VERSION=0.3.3` on the production doctor inspection
862
1019
  See the [bounded grammar, matrix and reader evidence](docs/design/typescript-skill-compatibility.md). Companion [Draft #20 design acceptance at `699a325`](https://github.com/abruption/session-peer-skill/blob/699a3251830c30c62d0f812363faf4d0eb0c8e0c/docs/typescript-compatibility.md) records the 2026-10-09 static design review of exact #126 `ba18bb806a6ba503381259b4255211af3adc0336` and release Draft #129 `bfb3d6f1256ab076a76660e08a7bf1ad071a6c6c`; their reviewed design SHA-256 values are recorded in the linked guard design. No tests were rerun in that review. At this dated checkpoint, runtime and successor skill were unpublished. The earlier queued coordination request remains historical, without independently established consumption or approval. Design/fixture acceptance does not authorize runtime merge/release, final skill metadata/publication/installation/pin changes or claim public compatibility; the immutable npm 0.3.2 checker stays legacy-only. The guard runtime must actually publish before separate successor skill finalization/tag/publication/pin changes. At that checkpoint the install pin remained `081cc3c1d16a394bd92824333f4bc61c36951799`; managers own upgrades, and no postinstall is introduced.
863
1020
 
864
1021
  At the 2026-10-09 KST preparation checkpoint, [#128](https://github.com/abruption/session-peer-ts/issues/128) integrated open PRs #125/#127 and Draft #126 for review; that preparation did not bypass their human merge gate or approve staging/publication. 0.3.2 and 0.3.3 refuse each other's SSH preflight. Windows jump-host #20, provisioning #23, the Python 1.0.2 oracle, and unshipped 0.4/native ACK boundaries remain unchanged.
1022
+
1023
+
1024
+ ### Published Python handoff checkpoint — 2026-10-11
1025
+
1026
+ Python [1.1.0](https://github.com/abruption/session-peer/releases/tag/v1.1.0) is now public at
1027
+ `8ca77cf31254c8287a2593fe484bb30a7dba2727`. Its
1028
+ [handoff contract](https://github.com/abruption/session-peer/blob/8ca77cf31254c8287a2593fe484bb30a7dba2727/docs/contracts/handoff-v1.md)
1029
+ SHA-256 is `46a953010c49214bd8f969412f26713384fbe09a0ba78ebf0fef75da40d0d889`,
1030
+ byte-identical to the jointly reviewed design. The published fixture SHA-256 is
1031
+ `963b94e78f510c2535e405813558275d512a5bfe6bbd99ffdf0994b4d2e6e441`,
1032
+ also byte-identical to the frozen shared fixture. Both identities were rechecked
1033
+ against the exact release source through local Git without replace objects and
1034
+ the GitHub contents API.
1035
+ The exact reviewed TS mirror remains unchanged; publication is not permission
1036
+ to regenerate shared vectors or declare runtime conformance.
1037
+
1038
+ The handoff pin manifest records this source-only comparison separately from the
1039
+ historical Python 1.0.3 design baseline and the historical Python 1.0.2 ordinary
1040
+ oracle. The current candidate's ordinary source pin is recorded separately in
1041
+ `python-reference.pin.json`.
1042
+ The Python release's experimental local Claude receipt path does not establish
1043
+ automated ACK support in the TS implementation. The pure-validator comparisons
1044
+ below do not establish native execution parity.
1045
+ Receipt bootstrap and additional native platforms are deferred to #130–#132;
1046
+ original binding/generation guards remain mandatory in the included scope. This design-identity record alone does not repin a runtime
1047
+ reference or establish runtime conformance.
1048
+
1049
+
1050
+ <a id="unreleased-handoff-implementation--70"></a>
1051
+
1052
+ ## 0.4.0 private handoff implementation — #70
1053
+
1054
+ The frozen #69 design pin is unchanged. The private POSIX ledger and
1055
+ strict protocol helpers now implement prepare, at-most-once sender fencing,
1056
+ status, bounded wait records and explicit receipt/operator-confirmation
1057
+ validation. [CLI details](docs/api.md#unreleased-opt-in-handoff-cli--040-work)
1058
+ describe the opt-in 0.4.0 scope; earlier 0.3.x packages lack these commands. Automated ACK
1059
+ bootstrap, Windows private ACL support and original-sender SSH collector
1060
+ coordination are deferred extensions (#131/#132), not prerequisites of the
1061
+ user-approved limited 0.4.0 scope. Fixture passes are not live receipt/injection
1062
+ qualification. Default ordinary output stays unchanged. The ordinary conformance oracle is
1063
+ published Python 1.1.0; experimental receipt implementation parity is not claimed.
1064
+ `handoff-cross-runtime.test.ts` also invokes the pinned published Python pure
1065
+ validators/projection helpers and the TS validators on 45 data cases: all seven
1066
+ shared states, schema/privacy/ACK/retry negatives, unsupported observation and
1067
+ agent-specific native field absence. Standalone and canonical module hashes are
1068
+ pinned. No native CLI, ledger/collector, model or network is invoked by that
1069
+ comparison; equal validator decisions are not end-to-end handoff parity.
1070
+
1071
+ The journal encrypts its private message-binding digest with a separate
1072
+ mode-0600 `ledger.key`; missing/changed/untrusted keys and plaintext journals
1073
+ are refused without automatic key recovery or history migration. This is an
1074
+ at-rest journal boundary, not protection against a reader of both private
1075
+ files. Duplicate committed operator confirmation returns the original receipt
1076
+ without rewriting its wait classification or journal.
1077
+
1078
+ <a id="unreleased-bounded-app-server-foundation--71"></a>
1079
+
1080
+ ## 0.4.0 bounded app-server foundation — #71
1081
+
1082
+ The opt-in internal client is qualified only for queue mechanics on Codex
1083
+ 0.160.1 and 0.162.1 / macOS arm64, using separate isolated network-denied synthetic homes. One
1084
+ native queue/add, original client message ID persistence and no loaded/resumed
1085
+ thread were observed. This is not live delivery, general owner-route or receipt
1086
+ ACK qualification. Legacy Codex queue remains the default CLI path.
1087
+
1088
+ The client bounds frames, RPCs, traffic, owner verification, monotonic deadlines
1089
+ and owned process-group cleanup. An authorized caller supplies a durable
1090
+ before-effect fence; at most one queue RPC follows it. After a possible write,
1091
+ disconnect, timeout, schema error or remote refusal never enables fallback or
1092
+ resend. initialize opts out the exact profile notification set (83 for 0.160.1,
1093
+ 84 for 0.162.1); queue/add's own input echo is validated but only IDs are returned.
1094
+ queue/list, history, full item/turn notifications, resume/start and model turns
1095
+ are excluded. The separate synthetic metadata protocol is explicitly fixture
1096
+ only. Other platforms/versions and native app-server observation remain unsupported.
1097
+
1098
+ Generated schema hashes and the fixed official source commit are recorded in
1099
+ `test/fixtures/app-server-schema-evidence.json`; tests use hermetic streams and
1100
+ owned Node children. These mechanics do not establish Python runtime delivery parity
1101
+ or implement automatic ACK.
1102
+
1103
+
1104
+ <a id="unreleased-local-observation-integration--72"></a>
1105
+
1106
+ ## 0.4.0 local observation integration — #72
1107
+
1108
+ [Scoped runtime details](docs/api.md#unreleased-local-delivery-observation--72)
1109
+ cover bounded one-shot/explicit-wait observation, native CID queueing, original
1110
+ writer generation checks, per-operation terminal waits and positive native fact
1111
+ preservation. Generated schema/native queue mechanics are distinct from
1112
+ synthetic metadata/wait integration and live consumption evidence. The combined
1113
+ CLI path is restricted to Codex 0.160.1 or 0.162.1/macOS arm64; POSIX SQL fixtures alone do
1114
+ not qualify other native platforms. No rollout/transcript API is queried, no ACK is inferred
1115
+ and no post-attempt fallback/resend occurs.
1116
+
1117
+ Dedicated 0.162.1 Codex and Claude Code 2.1.296 test sessions supplied additional
1118
+ local evidence; native client ID injection is separate from plain model response
1119
+ or ACK. Retained qualified intents support independent waits with no
1120
+ new native submission. Observation is read-only against native state; each wait
1121
+ persists its private operation and terminal record in the sender ledger. Each process owns its wait cutoff; foreign pending and
1122
+ old terminal waits are preserved. A separate voluntary matching reply was
1123
+ explicitly confirmed before any wait with `operator_confirmed`; ACK status and
1124
+ a later acknowledged wait succeeded. Confirmation after an earlier independent
1125
+ wait correctly refused `receipt_order_unprovable`, without replay. This is manual
1126
+ operator attestation, not an automated token-possession collector.
1127
+
1128
+ POSIX SSH opt-in now prepares an unattempted intent at an explicitly initialized
1129
+ destination ledger, pins resolved target/home/generation/epoch/CID, then sends
1130
+ once. Strict request-aware native facts survive complete failed-transport
1131
+ responses; unsolicited/malformed handoff cannot create ACK. Source deadlines
1132
+ are not renewed; destination remaining-duration watchdogs reap owned groups.
1133
+ Transit delay cannot be synchronized across independent monotonic clocks.
1134
+ Destination-handler/recording-socket fixtures use fake SSH. Separate real
1135
+ KR/US Linux checks established ordinary native queue acceptance and a US manual
1136
+ operator receipt; they did not qualify native client-ID observation on Linux. See [SSH details](docs/api.md#unreleased-destination-side-ssh-handoff).
1137
+
1138
+ Open capabilities include original-sender SSH collector coordination, Windows
1139
+ ACL/native observation and automated receipt producer/collector bootstrap. Other
1140
+ platform/version tuples and arbitrary blocking-filesystem deadlines are not
1141
+ qualified by these tests.
1142
+ #69/#70/#71/#72 remain together in the scoped 0.4.0 milestone. The ordinary
1143
+ comparison is pinned to Python 1.1.0; version 0.4.0 does not claim broader
1144
+ runtime parity.
1145
+
1146
+
1147
+ Storage binding is checked on the owned queue transport before its effect:
1148
+ env/CLI pins plus exact opened state/queue paths. Managed-policy redirection or
1149
+ missing direct-native PID proof refuses with zero queue RPC. An additional
1150
+ network-denied initialization-only fixture verified config/CLI/env precedence
1151
+ with zero queued rows and no model/thread effect. Bootstrap policy files are
1152
+ not promised unchanged by the native tool; no managed requirement is bypassed.
1153
+
1154
+ ### Exact 0.162.1 queue profile qualification
1155
+
1156
+ The internal queue client also pins Codex 0.162.1/source
1157
+ `092d3acd6bec3e3a14bdc7e7a2810ab628ab759d` on macOS arm64. The source/schema
1158
+ fixture records the exact notification opt-out set (84 methods, compared with
1159
+ 83 in 0.160.1). An unloaded, isolated thread received one queue request with its
1160
+ exact supplied client ID and native queue receipt; a separate owned-descriptor
1161
+ fixture refused the durable effect guard and left zero queue rows. No version
1162
+ range, Linux/Windows qualification, live delivery or ACK follows from these
1163
+ queue-only fixtures. Initial harness failures are recorded separately and were
1164
+ never retried with an already-attempted intent.
1165
+
1166
+ ## 0.4.0 candidate release scope
1167
+
1168
+ On 2026-10-11 the user approved keeping #69/#70/#71/#72 together in 0.4.0,
1169
+ with the following explicit qualification boundaries. This is source-candidate
1170
+ scope, not a publication claim or blanket Python runtime parity.
1171
+
1172
+ | Capability | Included candidate scope | Deferred extension |
1173
+ | --- | --- | --- |
1174
+ | Native client-ID injection observation | Exact Codex 0.160.1/0.162.1 on macOS arm64; warm original metadata store and unchanged writer generation | Linux [#130](https://github.com/abruption/session-peer-ts/issues/130), Windows [#131](https://github.com/abruption/session-peer-ts/issues/131); no inherited profile support |
1175
+ | Explicit receipt ACK | Operator attestation on supported POSIX ledgers, with original binding/order validated; `operator_confirmed` is not model authentication | Voluntary receipt producer, authenticated collector/bootstrap and original-sender SSH collector [#132](https://github.com/abruption/session-peer-ts/issues/132) |
1176
+ | Windows handoff storage | Required capability reports unsupported; ordinary published Windows send/SSH are separate | Private DACL/reparse storage and owned cleanup qualification [#131](https://github.com/abruption/session-peer-ts/issues/131) |
1177
+ | SSH handoff | Explicit same-version destination preparation/ledger, strict binding and one send; unsupported goals refuse before effect | Real remote native client-ID observation remains unqualified; actual Linux queues/manual ACK do not establish it |
1178
+
1179
+ An automatic receipt collector, if later implemented, still records only a
1180
+ receiver's explicit receipt. Visible replies, arbitrary message text, queue
1181
+ deletions and turn completion never authorize ACK promotion. The frozen design
1182
+ bytes and historical approval metadata remain unchanged. SQLite projections may
1183
+ evaluate body-bearing cells internally; bodies/errors do not cross into JS or
1184
+ ordinary output. Required unsupported goals refuse before effect; after any
1185
+ possible submission no fallback/resend is permitted.
1186
+
1187
+ The four development PRs were merged in the authorized order #106→#107→#108→#109.
1188
+ Scoped evidence and separate release acceptance are tracked in their issues and
1189
+ [#150](https://github.com/abruption/session-peer-ts/issues/150). Platform/collector follow-ups are not completion
1190
+ conditions for this limited release. Companion skill candidate guidance and
1191
+ version/profile rollout is tracked in [companion #31](https://github.com/abruption/session-peer-skill/issues/31)
1192
+ and [Draft #37](https://github.com/abruption/session-peer-skill/pull/37).
1193
+ The 0.4.0 finite row preserves the three reviewed published profiles and accepts
1194
+ the exact proposed skill 0.3.0/min0.1.0/full0.4.0/probe-help tuple after design/content
1195
+ review of the complete Draft #37 fixture. That fixture is not a published skill
1196
+ or installation pin; final skill bytes require renewed exact review. A new runtime
1197
+ version is never automatically compatible by numerical ordering.
package/README.ja.md CHANGED
@@ -13,9 +13,11 @@
13
13
 
14
14
  [English](README.md) | [한국어](README.ko.md) | [日本語](README.ja.md) | [简体中文](README.zh-CN.md)
15
15
 
16
- <!-- docs-contract: stable-release-source; package=session-peer; bin=session-peer; node=22.13+/24; python-reference=1.0.2 -->
16
+ <!-- docs-contract: stable-release-source; package=session-peer; bin=session-peer; node=22.13+/24; python-reference=1.1.0 -->
17
17
 
18
- **文書・ソースのバージョン: 0.3.6。** インストール前に、選択したリリースとレジストリのメタデータを確認してください。日付付きの準備・検証記録は [VALIDATION.md](VALIDATION.md)、リリース手順は [RELEASING.md](RELEASING.md) にあります。SSH の両端には同じ TypeScript クライアントのバージョンが必要で、0.3.5 と 0.3.6 は互いの SSH 事前確認を拒否します。
18
+ **文書・ソースのバージョン: 0.4.0。** インストール前に、選択したリリースとレジストリのメタデータを確認してください。日付付きの準備・検証記録は [VALIDATION.md](VALIDATION.md)、リリース手順は [RELEASING.md](RELEASING.md) にあります。SSH の両端には同じ TypeScript クライアントのバージョンが必要で、0.3.6 と 0.4.0 は互いの SSH 事前確認を拒否します。
19
+
20
+ **0.4.0 handoff の範囲:** 任意の native 観測は macOS arm64 の厳密な Codex 0.160.1/0.162.1 に限定し、明示的な `operator_confirmed` 受領確認には対応する POSIX ledger を使います。Linux・Windows の native 観測と自動 ACK 収集は未対応です。
19
21
 
20
22
  **実行中の Claude Code・Codex セッションを見つけ、ローカルまたは SSH でメッセージを送信します。**
21
23
  Python 不要の Node.js クライアントです。パッケージ名とコマンド名は `session-peer` です。
@@ -56,15 +58,15 @@ SSH は既存の鍵・ホスト信頼設定と両端の**同じバージョン
56
58
  `Get-Command session-peer -All` で PATH を確認してください。利用する実装を選び、
57
59
  別の管理ツールのファイルを `--force` で上書きしないでください。
58
60
 
59
- **0.3.6 のインストール:** npm の導入・更新例を実行する前に、レジストリで公開状況と選択したリリースを確認してください。利用できない場合は[レビュー済みソースビルド](docs/guide.ja.md#ソースからビルド)を使います。
61
+ **0.4.0 のインストール:** npm の導入・更新例を実行する前に、レジストリで公開状況と選択したリリースを確認してください。利用できない場合は[レビュー済みソースビルド](docs/guide.ja.md#ソースからビルド)を使います。
60
62
 
61
63
  ```sh
62
- npm view session-peer@0.3.6 version dist.integrity
63
- npm install --global --ignore-scripts session-peer@0.3.6
64
+ npm view session-peer@0.4.0 version dist.integrity
65
+ npm install --global --ignore-scripts session-peer@0.4.0
64
66
  session-peer --version
65
67
  ```
66
68
 
67
- 期待する出力: `session-peer 0.3.6 (typescript)`。分離インストール・ソースビルド・
69
+ 期待する出力: `session-peer 0.4.0 (typescript)`。分離インストール・ソースビルド・
68
70
  Windows・削除の手順は以下の詳細ガイドを参照してください。
69
71
 
70
72
  任意の `sp` 短縮名は 0.3.0 以降に含まれ(0.2.1 以前にはありません)、自動では有効になりません。
@@ -73,12 +75,12 @@ Windows・削除の手順は以下の詳細ガイドを参照してください
73
75
  ### Update
74
76
 
75
77
  npm で導入したクライアントは npm で更新します。タグと対象バージョンを確認してから
76
- 正確なバージョンを指定してください。以下は古い npm 版を選択した 0.3.6 に更新する例です。
78
+ 正確なバージョンを指定してください。以下は古い npm 版を選択した 0.4.0 に更新する例です。
77
79
  CLI は更新をインストールせず、`session-peer update --check` は確認のみ行います。
78
80
 
79
81
  ```sh
80
82
  npm view session-peer dist-tags
81
- npm install --global --ignore-scripts session-peer@0.3.6
83
+ npm install --global --ignore-scripts session-peer@0.4.0
82
84
  session-peer --version
83
85
  ```
84
86
 
@@ -112,6 +114,10 @@ session-peer --version
112
114
  - [開発・貢献](CONTRIBUTING.md).
113
115
  - [リリース手順](RELEASING.md).
114
116
 
117
+ - [0.4.0 handoff 設計と実装の範囲](PARITY.md#handoff-v1-design-candidate--69).
118
+
119
+ - [private handoff CLI と制限](docs/api.md#unreleased-opt-in-handoff-cli--040-work).
120
+
115
121
  ## License
116
122
 
117
123
  [MIT ライセンス](LICENSE)で公開しています。
package/README.ko.md CHANGED
@@ -18,9 +18,11 @@ Python을 설치하지 않아도 Node.js에서 실행되는 TypeScript 클라이
18
18
 
19
19
  </div>
20
20
 
21
- <!-- docs-contract: stable-release-source; package=session-peer; bin=session-peer; node=22.13+/24; python-reference=1.0.2 -->
21
+ <!-- docs-contract: stable-release-source; package=session-peer; bin=session-peer; node=22.13+/24; python-reference=1.1.0 -->
22
22
 
23
- **문서·소스 기준 버전: 0.3.6.** 설치 전에 선택한 릴리스와 레지스트리 메타데이터를 확인하세요. 날짜별 준비·검증 기록은 [VALIDATION.md](VALIDATION.md), 릴리스 절차는 [RELEASING.md](RELEASING.md)에 있습니다. SSH 양쪽에는 같은 TypeScript 클라이언트 버전이 필요하며, 0.3.5와 0.3.6는 서로의 SSH 사전 확인을 거부합니다.
23
+ **문서·소스 기준 버전: 0.4.0.** 설치 전에 선택한 릴리스와 레지스트리 메타데이터를 확인하세요. 날짜별 준비·검증 기록은 [VALIDATION.md](VALIDATION.md), 릴리스 절차는 [RELEASING.md](RELEASING.md)에 있습니다. SSH 양쪽에는 같은 TypeScript 클라이언트 버전이 필요하며, 0.3.6과 0.4.0은 서로의 SSH 사전 확인을 거부합니다.
24
+
25
+ **0.4.0 handoff 범위:** 선택 기능인 native 관측은 macOS arm64의 정확한 Codex 0.160.1/0.162.1에 한정되며, 명시적 `operator_confirmed` 수령 확인에는 지원되는 POSIX ledger를 사용합니다. Linux·Windows의 native 관측과 자동 ACK 수집은 미지원입니다.
24
26
 
25
27
  <a id="demo"></a>
26
28
  ## 시연
@@ -65,15 +67,15 @@ PowerShell에서는 `Get-Command session-peer -All`로 PATH(명령 검색 경로
65
67
  실행 파일을 찾는지 확인하세요. 사용할 구현을 선택하고 다른 패키지 관리자가 설치한
66
68
  파일을 `--force`로 덮어쓰지 마세요. 설치와 갱신은 사용자가 npm으로 직접 수행합니다.
67
69
 
68
- **0.3.6 설치:** npm 설치·업데이트 예시를 실행하기 전에 레지스트리 제공 여부와 선택한 릴리스를 확인하세요. 해당 버전이 제공되지 않으면 [검토한 소스 빌드](docs/guide.ko.md#소스에서-빌드)를 사용하세요.
70
+ **0.4.0 설치:** npm 설치·업데이트 예시를 실행하기 전에 레지스트리 제공 여부와 선택한 릴리스를 확인하세요. 해당 버전이 제공되지 않으면 [검토한 소스 빌드](docs/guide.ko.md#소스에서-빌드)를 사용하세요.
69
71
 
70
72
  ```sh
71
- npm view session-peer@0.3.6 version dist.integrity
72
- npm install --global --ignore-scripts session-peer@0.3.6
73
+ npm view session-peer@0.4.0 version dist.integrity
74
+ npm install --global --ignore-scripts session-peer@0.4.0
73
75
  session-peer --version
74
76
  ```
75
77
 
76
- 예상 결과는 `session-peer 0.3.6 (typescript)`입니다. 별도 경로에 설치하거나,
78
+ 예상 결과는 `session-peer 0.4.0 (typescript)`입니다. 별도 경로에 설치하거나,
77
79
  소스에서 빌드하거나, Windows에서 설치·제거하는 방법은 [사용자 가이드](docs/guide.ko.md#설치)를 참고하세요.
78
80
 
79
81
  선택 사항인 `sp` 단축 명령은 0.3.0 이상에 포함되며(0.2.1 이하에는 없음) 자동으로
@@ -84,13 +86,13 @@ session-peer --version
84
86
  ### 업데이트
85
87
 
86
88
  npm으로 설치한 클라이언트는 사용자가 직접 npm으로 업데이트합니다. 사용 가능한 배포 태그
87
- (dist-tag)와 대상 버전을 확인한 뒤 해당 버전을 지정해 설치하세요. 아래 예시는 이전 npm 설치본을 선택한 0.3.6로
89
+ (dist-tag)와 대상 버전을 확인한 뒤 해당 버전을 지정해 설치하세요. 아래 예시는 이전 npm 설치본을 선택한 0.4.0으로
88
90
  업데이트합니다. `session-peer` CLI는 업데이트를 설치하지 않습니다. `session-peer
89
91
  update --check`는 새 버전이 있는지 확인할 뿐입니다.
90
92
 
91
93
  ```sh
92
94
  npm view session-peer dist-tags
93
- npm install --global --ignore-scripts session-peer@0.3.6
95
+ npm install --global --ignore-scripts session-peer@0.4.0
94
96
  session-peer --version
95
97
  ```
96
98
 
@@ -126,6 +128,10 @@ session-peer --version
126
128
  - [개발·기여 안내](CONTRIBUTING.md).
127
129
  - [릴리스 절차](RELEASING.md).
128
130
 
131
+ - [0.4.0 handoff 설계와 구현 범위](PARITY.md#handoff-v1-design-candidate--69).
132
+
133
+ - [private handoff CLI와 지원 한계](docs/api.md#unreleased-opt-in-handoff-cli--040-work).
134
+
129
135
  <a id="license"></a>
130
136
  ## 라이선스
131
137
 
package/README.md CHANGED
@@ -13,9 +13,11 @@
13
13
 
14
14
  [English](README.md) | [한국어](README.ko.md) | [日本語](README.ja.md) | [简体中文](README.zh-CN.md)
15
15
 
16
- <!-- docs-contract: stable-release-source; package=session-peer; bin=session-peer; node=22.13+/24; python-reference=1.0.2 -->
16
+ <!-- docs-contract: stable-release-source; package=session-peer; bin=session-peer; node=22.13+/24; python-reference=1.1.0 -->
17
17
 
18
- **Documentation and source version: 0.3.6.** Review the selected release and registry metadata before installation. Dated preparation and validation records are in [VALIDATION.md](VALIDATION.md); release procedures are in [RELEASING.md](RELEASING.md). SSH endpoints require the same TypeScript client version; 0.3.5 and 0.3.6 refuse each other’s SSH preflight.
18
+ **Documentation and source version: 0.4.0.** Review the selected release and registry metadata before installation. Dated preparation and validation records are in [VALIDATION.md](VALIDATION.md); release procedures are in [RELEASING.md](RELEASING.md). SSH endpoints require the same TypeScript client version; 0.3.6 and 0.4.0 refuse each other’s SSH preflight.
19
+
20
+ **0.4.0 handoff scope:** opt-in native observation is limited to exact Codex 0.160.1/0.162.1 on macOS arm64; explicit `operator_confirmed` receipts use supported POSIX ledgers. Linux/Windows native observation and automatic ACK collection remain unsupported.
19
21
 
20
22
  **Find and message running Claude Code and Codex sessions, locally or over SSH.**
21
23
  A Node.js client that runs without Python. Package and command: `session-peer`.
@@ -56,15 +58,15 @@ Check `type -a session-peer` on macOS/Linux or `Get-Command session-peer -All`
56
58
  in PowerShell before installing. Choose the intended PATH entry; do not use
57
59
  `--force` to overwrite another manager’s files.
58
60
 
59
- **Version 0.3.6 installation:** check registry availability and review the chosen release before running the npm install/update examples. If that version is unavailable, use the [reviewed source build](docs/guide.md#build-from-source).
61
+ **Version 0.4.0 installation:** check registry availability and review the chosen release before running the npm install/update examples. If that version is unavailable, use the [reviewed source build](docs/guide.md#build-from-source).
60
62
 
61
63
  ```sh
62
- npm view session-peer@0.3.6 version dist.integrity
63
- npm install --global --ignore-scripts session-peer@0.3.6
64
+ npm view session-peer@0.4.0 version dist.integrity
65
+ npm install --global --ignore-scripts session-peer@0.4.0
64
66
  session-peer --version
65
67
  ```
66
68
 
67
- Expected: `session-peer 0.3.6 (typescript)`. For isolated installation, source
69
+ Expected: `session-peer 0.4.0 (typescript)`. For isolated installation, source
68
70
  builds, Windows and removal, see the detailed guide below.
69
71
 
70
72
  Optional `sp` shorthand ships with 0.3.0 and later (not 0.2.1 or earlier) and is
@@ -74,12 +76,12 @@ never enabled automatically. See [explicit activation and collisions](docs/short
74
76
 
75
77
  Use npm for an npm-managed installation. Check the available tags and review
76
78
  the target version, then install that exact version; this example updates an
77
- older npm installation to the selected 0.3.6 release. The CLI does not install updates;
79
+ older npm installation to the selected 0.4.0 release. The CLI does not install updates;
78
80
  `session-peer update --check` only reports them.
79
81
 
80
82
  ```sh
81
83
  npm view session-peer dist-tags
82
- npm install --global --ignore-scripts session-peer@0.3.6
84
+ npm install --global --ignore-scripts session-peer@0.4.0
83
85
  session-peer --version
84
86
  ```
85
87
 
@@ -112,6 +114,10 @@ does not install a skill. Review its pinned-source instructions in the guide.
112
114
  - [Development and contributions](CONTRIBUTING.md).
113
115
  - [Release process](RELEASING.md).
114
116
 
117
+ - [0.4.0 handoff design and implementation scope](PARITY.md#handoff-v1-design-candidate--69).
118
+
119
+ - [Private handoff CLI and limitations](docs/api.md#unreleased-opt-in-handoff-cli--040-work).
120
+
115
121
  ## License
116
122
 
117
123
  Licensed under the [MIT License](LICENSE).