session-peer 0.3.6 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONTRIBUTING.md +6 -4
- package/PARITY.md +431 -6
- package/README.ja.md +14 -8
- package/README.ko.md +14 -8
- package/README.md +14 -8
- package/README.zh-CN.md +14 -8
- package/RELEASING.md +109 -0
- package/VALIDATION.md +806 -1
- package/dist/app-server.d.ts +207 -0
- package/dist/app-server.js +1044 -0
- package/dist/cli.js +229 -39
- package/dist/handoff-ledger.d.ts +103 -0
- package/dist/handoff-ledger.js +791 -0
- package/dist/handoff-observer-probe.d.ts +1 -0
- package/dist/handoff-observer-probe.js +170 -0
- package/dist/handoff-operations.d.ts +29 -0
- package/dist/handoff-operations.js +496 -0
- package/dist/handoff-writer-probe.d.ts +1 -0
- package/dist/handoff-writer-probe.js +146 -0
- package/dist/handoff.d.ts +112 -0
- package/dist/handoff.js +261 -0
- package/dist/help.js +18 -0
- package/dist/linux-native-probe.d.ts +1 -0
- package/dist/linux-native-probe.js +51 -0
- package/dist/linux-proc.d.ts +55 -0
- package/dist/linux-proc.js +150 -0
- package/dist/metadata-observation.d.ts +49 -0
- package/dist/metadata-observation.js +250 -0
- package/dist/native-profiles.d.ts +25 -0
- package/dist/native-profiles.js +62 -0
- package/dist/output.js +7 -1
- package/dist/process.d.ts +28 -0
- package/dist/process.js +284 -2
- package/dist/protocol.d.ts +2 -2
- package/dist/protocol.js +1 -1
- package/dist/send.d.ts +18 -1
- package/dist/send.js +91 -6
- package/dist/skill-metadata.js +7 -4
- package/dist/ssh-response.d.ts +11 -0
- package/dist/ssh-response.js +78 -2
- package/dist/ssh.d.ts +2 -1
- package/dist/ssh.js +37 -2
- package/dist/windows.d.ts +28 -0
- package/dist/windows.js +149 -1
- package/docs/api.md +255 -4
- package/docs/design/typescript-skill-compatibility.md +55 -2
- package/docs/guide.ja.md +36 -16
- package/docs/guide.ko.md +39 -19
- package/docs/guide.md +46 -20
- package/docs/guide.zh-CN.md +36 -16
- package/docs/shorthand.md +1 -1
- package/package.json +2 -2
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
|
|
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
|
|
48
|
-
CI checks it out separately.
|
|
49
|
-
|
|
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,86 @@
|
|
|
1
1
|
# Python compatibility and npm migration
|
|
2
2
|
|
|
3
|
+
## 0.5.0 release scope — 2026-10-20 KST
|
|
4
|
+
|
|
5
|
+
The 0.5.0 source carries platform-qualification groundwork. It does not activate additional observation or
|
|
6
|
+
Windows jump support. #130, #131, #20 and #23 remain partial follow-ups:
|
|
7
|
+
|
|
8
|
+
- #153: exact platform/native-version selection and procfs inspection groundwork;
|
|
9
|
+
the Linux arm64 candidate is not selectable, locally or over SSH.
|
|
10
|
+
- #156: unselected Windows tree-cleanup backend and private-storage guard;
|
|
11
|
+
production `run()` retains direct-child-only Windows cleanup, and Windows
|
|
12
|
+
handoff storage/native observation remain unsupported.
|
|
13
|
+
- #154: Win32-OpenSSH ProxyCommand construction and no-network quoting evidence;
|
|
14
|
+
Windows-client jump still refuses before effect.
|
|
15
|
+
- #155 is deferred for minimum-contract redesign and is excluded from this
|
|
16
|
+
release. Its harness, authority/recovery logic and qualification claims
|
|
17
|
+
are not included; #23 remains open.
|
|
18
|
+
|
|
19
|
+
The finite 0.5.0 doctor matrix preserves the four exact profiles reviewed for
|
|
20
|
+
0.4.0. This is metadata-only compatibility, not additional feature or platform
|
|
21
|
+
qualification. The installed-skill guidance pin, native-version evidence,
|
|
22
|
+
Python reference and ordinary no-resend/receipt boundaries are unchanged.
|
|
23
|
+
SSH endpoints require exactly the same TS version, including 0.5.0.
|
|
24
|
+
Publication and validation evidence belong to dated release records; these
|
|
25
|
+
source changes alone are not public artifact verification.
|
|
26
|
+
|
|
27
|
+
## Public 0.4.0 checkpoint — 2026-10-18 KST
|
|
28
|
+
|
|
29
|
+
[Version 0.4.0](https://github.com/abruption/session-peer-ts/releases/tag/v0.4.0)
|
|
30
|
+
is public from source `dde3923efe116f87f38b1639b29b889d2b832e44`.
|
|
31
|
+
The [dated verification](VALIDATION.md#public-040--2026-10-18-kst) records identical
|
|
32
|
+
reviewed/Actions/staged/public bytes, signature/provenance checks and isolated
|
|
33
|
+
installation/removal. The release includes the approved limited macOS Codex
|
|
34
|
+
observation and explicit operator-confirmed receipt scope below; #130–#132
|
|
35
|
+
remain separate platform/collector extensions. Published skill 0.2.1 remains
|
|
36
|
+
the installation pin; runtime publication is not companion-skill publication.
|
|
37
|
+
|
|
38
|
+
## Current comparison — Python 1.1.0 / TypeScript 0.5.0
|
|
39
|
+
|
|
40
|
+
Updated 2026-10-20 KST. TypeScript 0.5.0 uses published
|
|
41
|
+
Python **1.1.0**, commit
|
|
42
|
+
[`8ca77cf`](https://github.com/abruption/session-peer/tree/8ca77cf31254c8287a2593fe484bb30a7dba2727),
|
|
43
|
+
as the ordinary list/discovery comparison baseline. JSON reports
|
|
44
|
+
`referenceVersion: "1.1.0"`; this identifies a comparison source, not complete
|
|
45
|
+
runtime parity. The source reports `VERSION=0.5.0`; publication evidence belongs
|
|
46
|
+
to the dated validation and release records. This source does not change
|
|
47
|
+
immutable public npm artifacts or their historical comparison markers.
|
|
48
|
+
|
|
49
|
+
- The exact-release `compatibility-v1.json` and compatibility document are
|
|
50
|
+
byte-identical to the historical Python 1.0.2 versions. The existing
|
|
51
|
+
`conformance.test.ts` and `discovery.test.ts` selection passed **21 tests** on
|
|
52
|
+
macOS arm64 / Node 24.16.0 / Python 3.15.0 against an isolated export of the
|
|
53
|
+
exact 1.1.0 source. This is ordinary list/discovery and synthetic refusal
|
|
54
|
+
evidence, not full send/handoff/SSH interoperability or live ACK evidence.
|
|
55
|
+
- [`python-reference.pin.json`](test/fixtures/python-reference.pin.json) records
|
|
56
|
+
the exact ordinary source, comparison scope and selected source-file hashes;
|
|
57
|
+
the tests check those hashes before using the oracle. CI and the publishing
|
|
58
|
+
workflow use the same immutable source. This test-only manifest is not an npm
|
|
59
|
+
runtime dependency or an installed-package authenticity check.
|
|
60
|
+
- Python 1.1.0 source adds bounded Claude registry reads and fail-closed Codex
|
|
61
|
+
SQLite-storage checks, along with revised SSH evidence handling and opt-in
|
|
62
|
+
target-generation/handoff behavior. TS retains its own error codes, stricter
|
|
63
|
+
selected-storage parser and distinct native result shapes; it does not copy
|
|
64
|
+
Python output mechanically or weaken its existing guards. These differences
|
|
65
|
+
were inspected statically; the 21 tests are not coverage of every new path.
|
|
66
|
+
- Python 1.1.0 has an experimental local Claude receipt-only ACK path. This
|
|
67
|
+
does not establish automated ACK, SSH handoff or Windows handoff support in
|
|
68
|
+
the scoped TS 0.4.0 implementation. Receipt bootstrap, original generation, body-free native
|
|
69
|
+
observation, cleanup and platform qualification remain separate gates.
|
|
70
|
+
Neither a native queue result nor turn completion establishes ACK or safe
|
|
71
|
+
retry; no end-to-end consumption/exactly-once guarantee is introduced.
|
|
72
|
+
|
|
73
|
+
The frozen handoff design and its historical Python 1.0.3 design-review baseline
|
|
74
|
+
remain separate from this ordinary runtime comparison. Exact frozen bytes and
|
|
75
|
+
hashes are preserved. See [the published design checkpoint](#published-python-handoff-checkpoint--2026-10-11)
|
|
76
|
+
and [VALIDATION.md](VALIDATION.md#python-110-ordinary-comparison--2026-10-11-kst).
|
|
77
|
+
|
|
78
|
+
## Historical 0.3.x comparison context
|
|
79
|
+
|
|
80
|
+
The retained tables and dated migration sections below describe their original
|
|
81
|
+
Python 1.0.2/1.0.3 comparisons and TS 0.3.x source snapshots. Their historical
|
|
82
|
+
pins and evidence are not rewritten as new-release conformance claims.
|
|
83
|
+
|
|
3
84
|
Updated 2026-10-14 KST. Python reference: **1.0.2**,
|
|
4
85
|
[`47c2371`](https://github.com/abruption/session-peer/tree/47c23713d0a2a3c11ebde6186afd8c43489b8b65/session_peer_core).
|
|
5
86
|
This matrix describes the **TS 0.3.6 source/package contract**: the 0.2.0 unified listing, safe home selection,
|
|
@@ -74,7 +155,7 @@ not a missing implementation. Issue links describe work, not available features.
|
|
|
74
155
|
| 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
156
|
| 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
157
|
|
|
77
|
-
Historical 0.2.0 source anchors and the
|
|
158
|
+
Historical 0.2.0 source anchors and the then-pinned Python oracle:
|
|
78
159
|
[TS CLI](https://github.com/abruption/session-peer-ts/blob/0edc4f8ae05256698f591b7402e89cd3d5858eef/src/cli.ts),
|
|
79
160
|
[writer](https://github.com/abruption/session-peer-ts/blob/0edc4f8ae05256698f591b7402e89cd3d5858eef/src/writer.ts),
|
|
80
161
|
[send](https://github.com/abruption/session-peer-ts/blob/0edc4f8ae05256698f591b7402e89cd3d5858eef/src/send.ts),
|
|
@@ -196,9 +277,10 @@ Output sources: TS CLI/send above; Python
|
|
|
196
277
|
|
|
197
278
|
## Ordinary CLI migration notes — #117
|
|
198
279
|
|
|
199
|
-
This comparison excludes Relay/MCP and paired-device transports.
|
|
200
|
-
Python 1.0.2 oracle and `referenceVersion`
|
|
201
|
-
|
|
280
|
+
This dated 0.3.x comparison excludes Relay/MCP and paired-device transports.
|
|
281
|
+
It retained the Python 1.0.2 oracle and `referenceVersion` at that checkpoint;
|
|
282
|
+
the current 0.4.0 candidate baseline is described above. A fixed-source
|
|
283
|
+
review on 2026-10-09 used published Python 1.0.3
|
|
202
284
|
[`0d252550`](https://github.com/abruption/session-peer/tree/0d252550ab40c26d1ac4a19193df6ca2f84d830b)
|
|
203
285
|
and TS 0.3.2 [`f335f073`](https://github.com/abruption/session-peer-ts/tree/f335f07352c842f2f6ceb12bd2ca6274b52f69f7)
|
|
204
286
|
for migration guidance, not byte/shape parity or a runtime-reference repin.
|
|
@@ -307,6 +389,116 @@ Windows support, WSL/POSIX SSH and TS native Windows SSH are separate paths.
|
|
|
307
389
|
external Relay infrastructure or a remote host automatically. To return to
|
|
308
390
|
Python, select its recorded path or uninstall only the npm-owned installation.
|
|
309
391
|
|
|
392
|
+
## Handoff v1 design candidate — #69
|
|
393
|
+
|
|
394
|
+
**Design-freeze checkpoint: jointly approved, frozen DESIGN v0.2; runtime was
|
|
395
|
+
unimplemented and unshipped at that checkpoint.** The current source implementation
|
|
396
|
+
and its limited 0.4.0 scope are described below. All four issues
|
|
397
|
+
[#69](https://github.com/abruption/session-peer-ts/issues/69),
|
|
398
|
+
[#70](https://github.com/abruption/session-peer-ts/issues/70),
|
|
399
|
+
[#71](https://github.com/abruption/session-peer-ts/issues/71) and
|
|
400
|
+
[#72](https://github.com/abruption/session-peer-ts/issues/72) remain in the
|
|
401
|
+
single 0.4.0 milestone. Milestone assignment is not delivery or publication evidence.
|
|
402
|
+
|
|
403
|
+
The upstream candidate is [Python Draft PR #261](https://github.com/abruption/session-peer/pull/261),
|
|
404
|
+
commit `99d8ec3855d57da34a6fa789f3a375820a8fbe85`:
|
|
405
|
+
[document](https://github.com/abruption/session-peer/blob/99d8ec3855d57da34a6fa789f3a375820a8fbe85/docs/contracts/handoff-v1.md)
|
|
406
|
+
and [synthetic fixture](https://github.com/abruption/session-peer/blob/99d8ec3855d57da34a6fa789f3a375820a8fbe85/tests/fixtures/handoff-v1.json).
|
|
407
|
+
Exact copies are retained in `test/fixtures/handoff-v1.md` and
|
|
408
|
+
`test/fixtures/handoff-v1.json`; `handoff-v1.pin.json` records their SHA-256 hashes,
|
|
409
|
+
review status and separate runtime/design references. These test-only files are
|
|
410
|
+
excluded from the npm package. The design-only checkpoint retained its then-current
|
|
411
|
+
51-file allowlist; the implementation adds its runtime modules explicitly.
|
|
412
|
+
|
|
413
|
+
The design review uses published Python 1.0.3 at
|
|
414
|
+
`0d252550ab40c26d1ac4a19193df6ca2f84d830b` as its compatibility baseline.
|
|
415
|
+
The original review retained the then-current Python 1.0.2 ordinary comparison
|
|
416
|
+
pin. The current candidate separately checks ordinary list/discovery against
|
|
417
|
+
published Python 1.1.0; that does not change these frozen design bytes or claim
|
|
418
|
+
identical Python/TS legacy outputs or implemented cross-runtime handoff parity.
|
|
419
|
+
An approved design commit pins the shared contract fixture independently of
|
|
420
|
+
runtime publication and the bounded ordinary comparison.
|
|
421
|
+
|
|
422
|
+
### Proposed separation and TS implementation gates
|
|
423
|
+
|
|
424
|
+
| Axis | Candidate meaning / TS boundary |
|
|
425
|
+
| --- | --- |
|
|
426
|
+
| 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. |
|
|
427
|
+
| 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. |
|
|
428
|
+
| Receipt ACK | Receipt-only capability or explicitly recorded operator attestation; never generic reply parsing, a new model prompt, wake or permission to act. |
|
|
429
|
+
| Wait | Separate immutable wait operation/results; a late receipt can add current evidence without changing the original timeout result. |
|
|
430
|
+
| Retry | Native local/SSH replay remains forbidden. Sender fences do not implement receiver dedup or a universal exactly-once guarantee. |
|
|
431
|
+
| 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. |
|
|
432
|
+
|
|
433
|
+
The candidate adds a nested `handoff` object only in opted-in mode. Its proposed
|
|
434
|
+
init/prepare/status/wait/confirm/ack commands, epoch IDs, private collector,
|
|
435
|
+
30-second per-destination budget and 5-second cleanup reserve were **not CLI
|
|
436
|
+
capabilities at the design-freeze checkpoint**. The source subset is described
|
|
437
|
+
in the scoped implementation sections below. Budgets 1–5 seconds are syntactically valid in the proposal
|
|
438
|
+
but refuse before effect. Source-streamed SSH without a compatible receipt handler
|
|
439
|
+
remains ACK-unsupported under this candidate. No transcript/body-returning observer
|
|
440
|
+
or fallback after a possible submission is authorized.
|
|
441
|
+
|
|
442
|
+
### Amended candidate review and remaining gates
|
|
443
|
+
|
|
444
|
+
The amended exact candidate supersedes the first `605061` review snapshot. Its
|
|
445
|
+
normative document and synthetic vectors now address the seven prior findings:
|
|
446
|
+
|
|
447
|
+
1. Duplicate receipt queries require original capability-hash authentication,
|
|
448
|
+
including the same-committed-receipt expiry exception; wrong tokens are denied.
|
|
449
|
+
2. Receipt classification and wait-order facts commit atomically. Proven committed
|
|
450
|
+
ACKs survive clock restart; unprovable manual confirmation refuses without rewriting history.
|
|
451
|
+
3. Receipt evidence binds the original generation. Null generation cannot mint
|
|
452
|
+
authority; copied original capability data is explicitly only token-possession assurance.
|
|
453
|
+
4. Sender/collector outputs and own persistence exclude secrets, while intended
|
|
454
|
+
recipient native storage may retain effect-input authority outside CLI control.
|
|
455
|
+
5. Missing/corrupt ledger or unknown ID returns a closed `handoffQuery` error,
|
|
456
|
+
without a fabricated epoch or native result. Known tombstones retain original context.
|
|
457
|
+
6. Raw private input, compact public subtree and outer/fanout limits are defined
|
|
458
|
+
separately; lexical constraints stay inside the new schema and native facts are preserved.
|
|
459
|
+
7. Explicit-wait wire exceptions require the original request and validated native
|
|
460
|
+
target/IDs/goal; returned metadata cannot opt a legacy request in or promote forged ACK.
|
|
461
|
+
|
|
462
|
+
The final candidate now aligns the three remaining fixture/profile rules:
|
|
463
|
+
|
|
464
|
+
- Four original-request profiles preserve Python Claude's absent native fields,
|
|
465
|
+
TS Claude's nullable name/optional agent and Codex's queued/true/false result,
|
|
466
|
+
optional queue ID, native UUID normalization and canonical home/context.
|
|
467
|
+
- A post-submission unsupported channel is a request-gated explicit-wait failure
|
|
468
|
+
at exit 1, preserving known submission and any injection evidence.
|
|
469
|
+
- Interrupting a pending explicit wait records stopped/stopped_by_operator and
|
|
470
|
+
returns complete structured output with ok:false/exit130. A successful status
|
|
471
|
+
query of that record returns exit 0; terminal waits remain immutable.
|
|
472
|
+
|
|
473
|
+
The shared candidate has 39 synthetic request-aware wire vectors for positive,
|
|
474
|
+
forged, wrong-target/home/agent/profile, unsupported and interruption cases.
|
|
475
|
+
The exact candidate has TS design-only approval after independent review; no
|
|
476
|
+
additional normative change is requested for these reviewed findings.
|
|
477
|
+
**Joint design freeze is recorded for the exact source/hash tuple above.**
|
|
478
|
+
[Python acceptance record](https://github.com/abruption/session-peer/pull/261#issuecomment-6016310362)
|
|
479
|
+
confirms both sides' design-only approval; TS acceptance was recorded at
|
|
480
|
+
`63473fb80936b0085e08039997ac39f7158a58dd`. `handoff-v1.pin.json` now has
|
|
481
|
+
`jointFreezeApproved:true`, `runtimeImplemented:false` and no open design-review
|
|
482
|
+
gates. The byte-identical source document and synthetic fixture retain their
|
|
483
|
+
historical proposal/draft labels; the external approval freezes DESIGN, not a
|
|
484
|
+
shipped or implemented runtime protocol. No regeneration or runtime/reference
|
|
485
|
+
repin occurred. Normative/schema/vector changes require a new exact joint review.
|
|
486
|
+
Design-only approval does not establish receipt/bootstrap/runtime acceptance or
|
|
487
|
+
authorize merge, implementation, live effects, operational changes or publication.
|
|
488
|
+
|
|
489
|
+
Python's exact-candidate documentation tests and CodeQL passed; its optional
|
|
490
|
+
Control dependency audit and required release gate failed. That CI status is
|
|
491
|
+
separate from this static design review. No bypass, dependency repair or claim of
|
|
492
|
+
a fully passing upstream PR is made by this historical review. At that checkpoint,
|
|
493
|
+
runtime producer/collector/bootstrap, platform cleanup, metadata-only observation
|
|
494
|
+
and live acceptance were future gates; current implementation evidence appears below.
|
|
495
|
+
|
|
496
|
+
`handoff-contract.test.ts` checks exact pins, synthetic status and selected golden
|
|
497
|
+
safety invariants. It does not implement or test a collector, native receipt,
|
|
498
|
+
crash recovery, monotonic clock continuity, app-server or live SSH. Upstream's
|
|
499
|
+
separate test-only validator likewise supplies design/schema checks, not runtime
|
|
500
|
+
acceptance evidence. No issue is closed and no implementation is enabled here.
|
|
501
|
+
|
|
310
502
|
## Evidence and ongoing maintenance
|
|
311
503
|
|
|
312
504
|
| Evidence class | What it establishes | What it does not establish |
|
|
@@ -646,9 +838,9 @@ or agent session was used.
|
|
|
646
838
|
| 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 |
|
|
647
839
|
| 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 |
|
|
648
840
|
| 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` |
|
|
649
|
-
| Timeouts | Python subprocess timeouts on the direct child | POSIX: each `ssh` (and every other external command) starts detached, in a new session and process group without a controlling terminal, registered as soon as its PID exists; cleanup covers that group only (a descendant that calls `setsid()` leaves it and is out of scope; no PID scanning); a timeout, an output overflow or SIGINT/SIGTERM/SIGHUP to the CLI kills the whole group, including a jump `ProxyCommand` that holds the pipes, and the call completes after the exit plus a 100 ms grace instead of waiting for the pipes. Windows: only the direct child is killed, descendants may linger, and the call still returns at the deadline. Preflight timeout stays a refusal and request timeout stays `unknown` without retry ([#87](https://github.com/abruption/session-peer-ts/issues/87)) |
|
|
841
|
+
| Timeouts | Python subprocess timeouts on the direct child | POSIX: each `ssh` (and every other external command) starts detached, in a new session and process group without a controlling terminal, registered as soon as its PID exists; cleanup covers that group only (a descendant that calls `setsid()` leaves it and is out of scope; no PID scanning); a timeout, an output overflow or SIGINT/SIGTERM/SIGHUP to the CLI kills the whole group, including a jump `ProxyCommand` that holds the pipes, and the call completes after the exit plus a 100 ms grace instead of waiting for the pipes. Windows: only the direct child is killed, descendants may linger, and the call still returns at the deadline. A candidate owned-tree cleanup backend is prepared but deliberately not selected: Windows process creation/exit times are wall-clock instants, so descendant ownership cannot be proven without a Job-object boundary ([#131](https://github.com/abruption/session-peer-ts/issues/131)). Preflight timeout stays a refusal and request timeout stays `unknown` without retry ([#87](https://github.com/abruption/session-peer-ts/issues/87)) |
|
|
650
842
|
| `--ssh-opt` | Arbitrary ssh arguments minus a substring blocklist (`proxycommand`, `localcommand`, `permitlocalcommand`) | Allowlist only: `-p PORT`, `-l USER`, `-i IDENTITY_FILE`, `-o Port=`/`User=`/`IdentityFile=`/`IdentitiesOnly=yes\|no`, `-4`, `-6`, as separate or attached tokens. Anything else is `unsupported_ssh_option`; a bad, duplicate or dash-leading value is `invalid_ssh_option`. Identity paths refuse `%` and `$` (OpenSSH token/environment expansion). Options are re-emitted canonically after the fixed `BatchMode=yes`, `StrictHostKeyChecking=yes` and `ConnectTimeout=10`, which OpenSSH therefore keeps |
|
|
651
|
-
| Jump hosts | `ProxyJump`/`-J` allowed through `--ssh-opt`; the hop gets no command-line `BatchMode`/`StrictHostKeyChecking` | **Done for POSIX clients:** typed `--ssh-jump USER@HOST[:PORT]` (one hop, explicit user, shell- and %-inert characters only). The CLI builds a fixed `ProxyCommand`: the shell-quoted, %-escaped `ssh` path with `BatchMode=yes`, `StrictHostKeyChecking=yes`, `UpdateHostKeys=no`, `ConnectTimeout=10`, `ConnectionAttempts=1`, `ProxyCommand=none`, `ProxyJump=none`, `ControlPath=none`, `ForwardAgent=no`, `ClearAllForwardings=yes`, `PermitLocalCommand=no`, `-W '[%h]:%p'`. It is placed with the fixed options, together with outer `ControlMaster=no`, `ControlPath=none` and `ProxyUseFdpass=no`, so it overrides a `ProxyJump`/`ProxyCommand` and any control master in ssh_config for the target (checked with `ssh -G -F <fixture>`). `-J`/`ProxyJump`/`ProxyCommand` through `--ssh-opt` stay refused. Refused with `--ssh-control-path` and on **Windows clients** (`ssh_jump_unsupported_platform`)
|
|
843
|
+
| Jump hosts | `ProxyJump`/`-J` allowed through `--ssh-opt`; the hop gets no command-line `BatchMode`/`StrictHostKeyChecking` | **Done for POSIX clients:** typed `--ssh-jump USER@HOST[:PORT]` (one hop, explicit user, shell- and %-inert characters only). The CLI builds a fixed `ProxyCommand`: the shell-quoted, %-escaped `ssh` path with `BatchMode=yes`, `StrictHostKeyChecking=yes`, `UpdateHostKeys=no`, `ConnectTimeout=10`, `ConnectionAttempts=1`, `ProxyCommand=none`, `ProxyJump=none`, `ControlPath=none`, `ForwardAgent=no`, `ClearAllForwardings=yes`, `PermitLocalCommand=no`, `-W '[%h]:%p'`. It is placed with the fixed options, together with outer `ControlMaster=no`, `ControlPath=none` and `ProxyUseFdpass=no`, so it overrides a `ProxyJump`/`ProxyCommand` and any control master in ssh_config for the target (checked with `ssh -G -F <fixture>`). `-J`/`ProxyJump`/`ProxyCommand` through `--ssh-opt` stay refused. Refused with `--ssh-control-path` and on **Windows clients** (`ssh_jump_unsupported_platform`): Windows quoting passed a no-connection Win32-OpenSSH 9.5p1 probe, but a connected hop and process cleanup are unverified. No multi-hop, and no Tailscale lookup for the hop (v1). Result field `sshJump`. `--ssh-opt` values (including `-4`/`-6`) apply to the target only, not the hop. Shell scope: the generated `ProxyCommand` was verified with sh, bash and zsh; other login shells are unverified. Unverified boundaries: connected Win32-OpenSSH client jumps. A separate Windows `ProxyCommand` builder (quoted absolute `ssh.exe` path, doubled `%`, `-W "[%h]:%p"`, same hardening options; other paths refused with `ssh_jump_unsupported_ssh_path`) is checked against source-derived models of Win32-OpenSSH, libuv and UCRT command-line parsing and, in an isolated no-connection probe, against the real Win32-OpenSSH 9.5p1 `ssh.exe` (27/27 cells, [record](VALIDATION.md#windows-client-jump-proxycommand-probe--20-2026-10-20-kst)); it is not reachable from the CLI. Enabling it still needs a connected hop run and Windows owned-process-tree cleanup on timeout, overflow and interrupt: production `run()` kills only the direct child, so a `ProxyCommand` descendant may survive; #131 keeps tree cleanup as an unselected preparation backend (historical backend trials used a PowerShell → PING stand-in; current native tests check only the production direct-child baseline, not the candidate backend or an `ssh.exe` → `ProxyCommand` `ssh.exe` shape). Such a stop remains an unknown effect with no resend. Enabling also needs an analysis (not yet a fix) of real `ssh.exe` not exiting with pipe stdin in a non-interactive session, and the same absolute, resolved `ssh.exe` as both the outer binary and the `ProxyCommand` program. Python parity: Python accepts arbitrary `-J` hops; TS offers a stricter, typed single hop |
|
|
652
844
|
| User | `sshUser`/`sshUserSource`: `explicit` from `USER@HOST`, else `ssh -G` (`ssh_config_or_local_default`), else `unknown` | Same fields and sources; `-l USER` also counts as `explicit`. `-l` together with `USER@HOST` is `conflicting_ssh_user`, because `-l` silently wins. Without an explicit user, one local `ssh -G` runs per host (5 s limit). It does not connect, but per ssh(1)/ssh_config(5) it evaluates the user's ssh configuration, including `Match exec` commands, as Python's lookup does. A failed or unexpected lookup gives `unknown` for that host only |
|
|
653
845
|
| Trust boundary | Blocklisted command-line options; user ssh config trusted | The allowlist governs only options this CLI puts on the `ssh` command line. The user's and system ssh_config are trusted user configuration: `ProxyCommand`, `ProxyJump`, `Match exec`, `Include` and similar settings there apply to every `ssh` this CLI starts, as for the user's own `ssh` |
|
|
654
846
|
| IPv6 | Passed through to `ssh` | `2001:db8::1`, `[2001:db8::1]` and `user@[2001:db8::1]` are accepted; brackets are removed for `ssh`, `sshHost` shows the destination used. Zone IDs (`%`) are refused |
|
|
@@ -862,3 +1054,236 @@ Version 0.3.3 uses compiled `VERSION=0.3.3` on the production doctor inspection
|
|
|
862
1054
|
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
1055
|
|
|
864
1056
|
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.
|
|
1057
|
+
|
|
1058
|
+
|
|
1059
|
+
### Published Python handoff checkpoint — 2026-10-11
|
|
1060
|
+
|
|
1061
|
+
Python [1.1.0](https://github.com/abruption/session-peer/releases/tag/v1.1.0) is now public at
|
|
1062
|
+
`8ca77cf31254c8287a2593fe484bb30a7dba2727`. Its
|
|
1063
|
+
[handoff contract](https://github.com/abruption/session-peer/blob/8ca77cf31254c8287a2593fe484bb30a7dba2727/docs/contracts/handoff-v1.md)
|
|
1064
|
+
SHA-256 is `46a953010c49214bd8f969412f26713384fbe09a0ba78ebf0fef75da40d0d889`,
|
|
1065
|
+
byte-identical to the jointly reviewed design. The published fixture SHA-256 is
|
|
1066
|
+
`963b94e78f510c2535e405813558275d512a5bfe6bbd99ffdf0994b4d2e6e441`,
|
|
1067
|
+
also byte-identical to the frozen shared fixture. Both identities were rechecked
|
|
1068
|
+
against the exact release source through local Git without replace objects and
|
|
1069
|
+
the GitHub contents API.
|
|
1070
|
+
The exact reviewed TS mirror remains unchanged; publication is not permission
|
|
1071
|
+
to regenerate shared vectors or declare runtime conformance.
|
|
1072
|
+
|
|
1073
|
+
The handoff pin manifest records this source-only comparison separately from the
|
|
1074
|
+
historical Python 1.0.3 design baseline and the historical Python 1.0.2 ordinary
|
|
1075
|
+
oracle. The current candidate's ordinary source pin is recorded separately in
|
|
1076
|
+
`python-reference.pin.json`.
|
|
1077
|
+
The Python release's experimental local Claude receipt path does not establish
|
|
1078
|
+
automated ACK support in the TS implementation. The pure-validator comparisons
|
|
1079
|
+
below do not establish native execution parity.
|
|
1080
|
+
Receipt bootstrap and additional native platforms are deferred to #130–#132;
|
|
1081
|
+
original binding/generation guards remain mandatory in the included scope. This design-identity record alone does not repin a runtime
|
|
1082
|
+
reference or establish runtime conformance.
|
|
1083
|
+
|
|
1084
|
+
|
|
1085
|
+
<a id="unreleased-handoff-implementation--70"></a>
|
|
1086
|
+
|
|
1087
|
+
## 0.4.0 private handoff implementation — #70
|
|
1088
|
+
|
|
1089
|
+
The frozen #69 design pin is unchanged. The private POSIX ledger and
|
|
1090
|
+
strict protocol helpers now implement prepare, at-most-once sender fencing,
|
|
1091
|
+
status, bounded wait records and explicit receipt/operator-confirmation
|
|
1092
|
+
validation. [CLI details](docs/api.md#unreleased-opt-in-handoff-cli--040-work)
|
|
1093
|
+
describe the opt-in 0.4.0 scope; earlier 0.3.x packages lack these commands. Automated ACK
|
|
1094
|
+
bootstrap, Windows private ACL support and original-sender SSH collector
|
|
1095
|
+
coordination are deferred extensions (#131/#132), not prerequisites of the
|
|
1096
|
+
user-approved limited 0.4.0 scope. Fixture passes are not live receipt/injection
|
|
1097
|
+
qualification. Default ordinary output stays unchanged. The ordinary conformance oracle is
|
|
1098
|
+
published Python 1.1.0; experimental receipt implementation parity is not claimed.
|
|
1099
|
+
`handoff-cross-runtime.test.ts` also invokes the pinned published Python pure
|
|
1100
|
+
validators/projection helpers and the TS validators on 45 data cases: all seven
|
|
1101
|
+
shared states, schema/privacy/ACK/retry negatives, unsupported observation and
|
|
1102
|
+
agent-specific native field absence. Standalone and canonical module hashes are
|
|
1103
|
+
pinned. No native CLI, ledger/collector, model or network is invoked by that
|
|
1104
|
+
comparison; equal validator decisions are not end-to-end handoff parity.
|
|
1105
|
+
|
|
1106
|
+
The journal encrypts its private message-binding digest with a separate
|
|
1107
|
+
mode-0600 `ledger.key`; missing/changed/untrusted keys and plaintext journals
|
|
1108
|
+
are refused without automatic key recovery or history migration. This is an
|
|
1109
|
+
at-rest journal boundary, not protection against a reader of both private
|
|
1110
|
+
files. Duplicate committed operator confirmation returns the original receipt
|
|
1111
|
+
without rewriting its wait classification or journal.
|
|
1112
|
+
|
|
1113
|
+
<a id="unreleased-bounded-app-server-foundation--71"></a>
|
|
1114
|
+
|
|
1115
|
+
## 0.4.0 bounded app-server foundation — #71
|
|
1116
|
+
|
|
1117
|
+
The opt-in internal client is qualified only for queue mechanics on Codex
|
|
1118
|
+
0.160.1 and 0.162.1 / macOS arm64, using separate isolated network-denied synthetic homes. One
|
|
1119
|
+
native queue/add, original client message ID persistence and no loaded/resumed
|
|
1120
|
+
thread were observed. This is not live delivery, general owner-route or receipt
|
|
1121
|
+
ACK qualification. Legacy Codex queue remains the default CLI path.
|
|
1122
|
+
|
|
1123
|
+
The client bounds frames, RPCs, traffic, owner verification, monotonic deadlines
|
|
1124
|
+
and owned process-group cleanup. An authorized caller supplies a durable
|
|
1125
|
+
before-effect fence; at most one queue RPC follows it. After a possible write,
|
|
1126
|
+
disconnect, timeout, schema error or remote refusal never enables fallback or
|
|
1127
|
+
resend. initialize opts out the exact profile notification set (83 for 0.160.1,
|
|
1128
|
+
84 for 0.162.1); queue/add's own input echo is validated but only IDs are returned.
|
|
1129
|
+
queue/list, history, full item/turn notifications, resume/start and model turns
|
|
1130
|
+
are excluded. The separate synthetic metadata protocol is explicitly fixture
|
|
1131
|
+
only. Other platforms/versions and native app-server observation remain unsupported.
|
|
1132
|
+
|
|
1133
|
+
Generated schema hashes and the fixed official source commit are recorded in
|
|
1134
|
+
`test/fixtures/app-server-schema-evidence.json`; tests use hermetic streams and
|
|
1135
|
+
owned Node children. These mechanics do not establish Python runtime delivery parity
|
|
1136
|
+
or implement automatic ACK.
|
|
1137
|
+
|
|
1138
|
+
|
|
1139
|
+
<a id="unreleased-local-observation-integration--72"></a>
|
|
1140
|
+
|
|
1141
|
+
## 0.4.0 local observation integration — #72
|
|
1142
|
+
|
|
1143
|
+
[Scoped runtime details](docs/api.md#unreleased-local-delivery-observation--72)
|
|
1144
|
+
cover bounded one-shot/explicit-wait observation, native CID queueing, original
|
|
1145
|
+
writer generation checks, per-operation terminal waits and positive native fact
|
|
1146
|
+
preservation. Generated schema/native queue mechanics are distinct from
|
|
1147
|
+
synthetic metadata/wait integration and live consumption evidence. The combined
|
|
1148
|
+
CLI path is restricted to Codex 0.160.1 or 0.162.1/macOS arm64; POSIX SQL fixtures alone do
|
|
1149
|
+
not qualify other native platforms. No rollout/transcript API is queried, no ACK is inferred
|
|
1150
|
+
and no post-attempt fallback/resend occurs.
|
|
1151
|
+
|
|
1152
|
+
Dedicated 0.162.1 Codex and Claude Code 2.1.296 test sessions supplied additional
|
|
1153
|
+
local evidence; native client ID injection is separate from plain model response
|
|
1154
|
+
or ACK. Retained qualified intents support independent waits with no
|
|
1155
|
+
new native submission. Observation is read-only against native state; each wait
|
|
1156
|
+
persists its private operation and terminal record in the sender ledger. Each process owns its wait cutoff; foreign pending and
|
|
1157
|
+
old terminal waits are preserved. A separate voluntary matching reply was
|
|
1158
|
+
explicitly confirmed before any wait with `operator_confirmed`; ACK status and
|
|
1159
|
+
a later acknowledged wait succeeded. Confirmation after an earlier independent
|
|
1160
|
+
wait correctly refused `receipt_order_unprovable`, without replay. This is manual
|
|
1161
|
+
operator attestation, not an automated token-possession collector.
|
|
1162
|
+
|
|
1163
|
+
POSIX SSH opt-in now prepares an unattempted intent at an explicitly initialized
|
|
1164
|
+
destination ledger, pins resolved target/home/generation/epoch/CID, then sends
|
|
1165
|
+
once. Strict request-aware native facts survive complete failed-transport
|
|
1166
|
+
responses; unsolicited/malformed handoff cannot create ACK. Source deadlines
|
|
1167
|
+
are not renewed; destination remaining-duration watchdogs reap owned groups.
|
|
1168
|
+
Transit delay cannot be synchronized across independent monotonic clocks.
|
|
1169
|
+
Destination-handler/recording-socket fixtures use fake SSH. Separate real
|
|
1170
|
+
KR/US Linux checks established ordinary native queue acceptance and a US manual
|
|
1171
|
+
operator receipt; they did not qualify native client-ID observation on Linux. See [SSH details](docs/api.md#unreleased-destination-side-ssh-handoff).
|
|
1172
|
+
|
|
1173
|
+
Open capabilities include original-sender SSH collector coordination, Windows
|
|
1174
|
+
ACL/native observation and automated receipt producer/collector bootstrap. Other
|
|
1175
|
+
platform/version tuples and arbitrary blocking-filesystem deadlines are not
|
|
1176
|
+
qualified by these tests.
|
|
1177
|
+
#69/#70/#71/#72 remain together in the scoped 0.4.0 milestone. The ordinary
|
|
1178
|
+
comparison is pinned to Python 1.1.0; version 0.4.0 does not claim broader
|
|
1179
|
+
runtime parity.
|
|
1180
|
+
|
|
1181
|
+
|
|
1182
|
+
Storage binding is checked on the owned queue transport before its effect:
|
|
1183
|
+
env/CLI pins plus exact opened state/queue paths. Managed-policy redirection or
|
|
1184
|
+
missing direct-native PID proof refuses with zero queue RPC. An additional
|
|
1185
|
+
network-denied initialization-only fixture verified config/CLI/env precedence
|
|
1186
|
+
with zero queued rows and no model/thread effect. Bootstrap policy files are
|
|
1187
|
+
not promised unchanged by the native tool; no managed requirement is bypassed.
|
|
1188
|
+
|
|
1189
|
+
### Exact 0.162.1 queue profile qualification
|
|
1190
|
+
|
|
1191
|
+
The internal queue client also pins Codex 0.162.1/source
|
|
1192
|
+
`092d3acd6bec3e3a14bdc7e7a2810ab628ab759d` on macOS arm64. The source/schema
|
|
1193
|
+
fixture records the exact notification opt-out set (84 methods, compared with
|
|
1194
|
+
83 in 0.160.1). An unloaded, isolated thread received one queue request with its
|
|
1195
|
+
exact supplied client ID and native queue receipt; a separate owned-descriptor
|
|
1196
|
+
fixture refused the durable effect guard and left zero queue rows. No version
|
|
1197
|
+
range, Linux/Windows qualification, live delivery or ACK follows from these
|
|
1198
|
+
queue-only fixtures. Initial harness failures are recorded separately and were
|
|
1199
|
+
never retried with an already-attempted intent.
|
|
1200
|
+
|
|
1201
|
+
### Platform-aware native profile table — #130 (0.5.0 source; Linux candidate not selectable)
|
|
1202
|
+
|
|
1203
|
+
Queue and observation selection use one exact
|
|
1204
|
+
`(host platform-arch, native version, source commit)` row with its
|
|
1205
|
+
`initialize.platformOs`, storage-binding, owner-inspection and SSH-destination
|
|
1206
|
+
policy and a pinned executable artifact (historical darwin-arm64 rows predate
|
|
1207
|
+
artifact pinning). Selectable rows remain darwin-arm64 Codex 0.160.1/0.162.1
|
|
1208
|
+
only. A **linux-arm64 Codex 0.162.1 candidate** is recorded but not
|
|
1209
|
+
selectable: its upstream `codex-aarch64-unknown-linux-musl` executable digest
|
|
1210
|
+
(`071cbe8d…cabe5`), Linux-generated schema/notification hashes (equal to
|
|
1211
|
+
darwin 0.162.1) and one dedicated-thread client-ID injection on a Linux arm64
|
|
1212
|
+
test host are in `test/fixtures/linux-observation-native-evidence.json`.
|
|
1213
|
+
Every Linux tuple therefore refuses required delivery before effect and uses
|
|
1214
|
+
the ordinary queue for best-effort observation, locally and over SSH
|
|
1215
|
+
(Linux rows can never be selected by SSH destination requests). Historical
|
|
1216
|
+
KR/US ordinary queue results are not injection evidence.
|
|
1217
|
+
|
|
1218
|
+
### Linux row activation follow-up design — #130 (frozen, not implemented)
|
|
1219
|
+
|
|
1220
|
+
Activation of the candidate requires both bindings below, reviewed together
|
|
1221
|
+
with the ledger owner; neither changes ordinary JSON or existing ledgers.
|
|
1222
|
+
|
|
1223
|
+
1. **Original writer executable.** At capability, effect and every
|
|
1224
|
+
independent-wait owner check, the single lsof/`/proc/locks` writer PID's
|
|
1225
|
+
`/proc/<pid>/exe` must be the qualified artifact: inode equal to the
|
|
1226
|
+
digest-verified selected executable, or (different path) a complete digest
|
|
1227
|
+
equal to the row's `artifact.sha256`, computed in the owned worker under
|
|
1228
|
+
the original deadline. Mismatch, unreadable `exe`, deleted executable or a
|
|
1229
|
+
gnu/other-version writer → `metadata_owner_changed` / required unsupported
|
|
1230
|
+
before effect; no fallback to the ordinary Darwin owner contract.
|
|
1231
|
+
2. **Retained kernel identity.** Leave `generation` byte-compatible (it is
|
|
1232
|
+
also the ordinary writer evidence). Add one optional private ledger field
|
|
1233
|
+
on observation-qualified intents only, e.g.
|
|
1234
|
+
`observationOwner: { schemaVersion: 1, kind: 'linux_procfs', starttime,
|
|
1235
|
+
bootId, exeDev, exeIno }` (`/proc/<pid>/stat` field 22, `/proc/sys/kernel/
|
|
1236
|
+
random/boot_id`), written in the same durable step as the qualification
|
|
1237
|
+
and never exposed in ordinary/public JSON. Every owner check (send and
|
|
1238
|
+
independent wait) must reproduce it exactly; a record without it, with an
|
|
1239
|
+
unknown `schemaVersion`/`kind`, or written by an older runtime cannot
|
|
1240
|
+
resume Linux observation (`unsupported`, fail-closed); Darwin records are
|
|
1241
|
+
unaffected.
|
|
1242
|
+
|
|
1243
|
+
Activation scope also requires an end-to-end CLI test that fails when the
|
|
1244
|
+
destination wire request omits the `remote` flag (today only hermetic and a
|
|
1245
|
+
since-superseded Linux-host regression cover it), and states that procfs
|
|
1246
|
+
lock/device matching was exercised only on ext4; other filesystems
|
|
1247
|
+
(btrfs/overlay/tmpfs/NFS) remain unverified and must refuse if `/proc/locks`
|
|
1248
|
+
and `stat` device numbers disagree.
|
|
1249
|
+
|
|
1250
|
+
Required negative tests: writer exe inode/digest mismatch (gnu or other
|
|
1251
|
+
version holding the lock while a pinned musl queue binary is selected);
|
|
1252
|
+
deleted/replaced writer executable; same-second PID reuse with identical
|
|
1253
|
+
lsof/ps fields but a different kernel start time or boot ID; a retained
|
|
1254
|
+
record missing or carrying a malformed `observationOwner`; an old-runtime
|
|
1255
|
+
ledger record; reboot between send and wait; SSH destination still refused;
|
|
1256
|
+
Darwin and ordinary ledger JSON byte-for-byte unchanged.
|
|
1257
|
+
|
|
1258
|
+
## 0.4.0 candidate release scope
|
|
1259
|
+
|
|
1260
|
+
On 2026-10-11 the user approved keeping #69/#70/#71/#72 together in 0.4.0,
|
|
1261
|
+
with the following explicit qualification boundaries. This is source-candidate
|
|
1262
|
+
scope, not a publication claim or blanket Python runtime parity.
|
|
1263
|
+
|
|
1264
|
+
| Capability | Included candidate scope | Deferred extension |
|
|
1265
|
+
| --- | --- | --- |
|
|
1266
|
+
| 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 |
|
|
1267
|
+
| 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) |
|
|
1268
|
+
| 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) |
|
|
1269
|
+
| 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 |
|
|
1270
|
+
|
|
1271
|
+
An automatic receipt collector, if later implemented, still records only a
|
|
1272
|
+
receiver's explicit receipt. Visible replies, arbitrary message text, queue
|
|
1273
|
+
deletions and turn completion never authorize ACK promotion. The frozen design
|
|
1274
|
+
bytes and historical approval metadata remain unchanged. SQLite projections may
|
|
1275
|
+
evaluate body-bearing cells internally; bodies/errors do not cross into JS or
|
|
1276
|
+
ordinary output. Required unsupported goals refuse before effect; after any
|
|
1277
|
+
possible submission no fallback/resend is permitted.
|
|
1278
|
+
|
|
1279
|
+
The four development PRs were merged in the authorized order #106→#107→#108→#109.
|
|
1280
|
+
Scoped evidence and separate release acceptance are tracked in their issues and
|
|
1281
|
+
[#150](https://github.com/abruption/session-peer-ts/issues/150). Platform/collector follow-ups are not completion
|
|
1282
|
+
conditions for this limited release. Companion skill candidate guidance and
|
|
1283
|
+
version/profile rollout is tracked in [companion #31](https://github.com/abruption/session-peer-skill/issues/31)
|
|
1284
|
+
and [Draft #37](https://github.com/abruption/session-peer-skill/pull/37).
|
|
1285
|
+
The 0.4.0 finite row preserves the three reviewed published profiles and accepts
|
|
1286
|
+
the exact proposed skill 0.3.0/min0.1.0/full0.4.0/probe-help tuple after design/content
|
|
1287
|
+
review of the complete Draft #37 fixture. That fixture is not a published skill
|
|
1288
|
+
or installation pin; final skill bytes require renewed exact review. A new runtime
|
|
1289
|
+
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
|
|
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.
|
|
18
|
+
**文書・ソースのバージョン: 0.5.0。** インストール前に、選択したリリースとレジストリのメタデータを確認してください。日付付きの準備・検証記録は [VALIDATION.md](VALIDATION.md)、リリース手順は [RELEASING.md](RELEASING.md) にあります。SSH の両端には同じ TypeScript クライアントのバージョンが必要で、0.3.6 と 0.5.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 収集は未対応です。 0.5.0 のソースは選択できない Linux arm64 の Codex 0.162.1 候補(固定された上流 `aarch64-unknown-linux-musl` 実行ファイル、スキーマ、注入テスト 1 回)を記録しますが、Linux 観測を有効化しません。Linux の native 観測は引き続き未対応です。
|
|
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.
|
|
61
|
+
**0.5.0 のインストール:** npm の導入・更新例を実行する前に、レジストリで公開状況と選択したリリースを確認してください。利用できない場合は[レビュー済みソースビルド](docs/guide.ja.md#ソースからビルド)を使います。
|
|
60
62
|
|
|
61
63
|
```sh
|
|
62
|
-
npm view session-peer@0.
|
|
63
|
-
npm install --global --ignore-scripts session-peer@0.
|
|
64
|
+
npm view session-peer@0.5.0 version dist.integrity
|
|
65
|
+
npm install --global --ignore-scripts session-peer@0.5.0
|
|
64
66
|
session-peer --version
|
|
65
67
|
```
|
|
66
68
|
|
|
67
|
-
期待する出力: `session-peer 0.
|
|
69
|
+
期待する出力: `session-peer 0.5.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.
|
|
78
|
+
正確なバージョンを指定してください。以下は古い npm 版を選択した 0.5.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.
|
|
83
|
+
npm install --global --ignore-scripts session-peer@0.5.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)で公開しています。
|