session-peer 0.5.1 → 0.6.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.
Files changed (52) hide show
  1. package/CONTRIBUTING.md +26 -0
  2. package/PARITY.md +134 -4
  3. package/README.ja.md +12 -8
  4. package/README.ko.md +12 -8
  5. package/README.md +12 -8
  6. package/README.zh-CN.md +12 -8
  7. package/RELEASING.md +142 -0
  8. package/VALIDATION.md +154 -2
  9. package/dist/app-server.d.ts +10 -2
  10. package/dist/app-server.js +115 -53
  11. package/dist/cli.js +54 -4
  12. package/dist/codex-storage.d.ts +46 -0
  13. package/dist/codex-storage.js +447 -0
  14. package/dist/diagnostics.js +23 -102
  15. package/dist/discovery.d.ts +32 -1
  16. package/dist/discovery.js +405 -89
  17. package/dist/handoff-operations.js +40 -10
  18. package/dist/help.js +18 -2
  19. package/dist/macos-acl.d.ts +10 -0
  20. package/dist/macos-acl.js +75 -0
  21. package/dist/output.js +6 -1
  22. package/dist/process.d.ts +1 -0
  23. package/dist/process.js +1 -1
  24. package/dist/protocol.d.ts +2 -2
  25. package/dist/protocol.js +1 -1
  26. package/dist/receipt-collector.d.ts +12 -0
  27. package/dist/receipt-collector.js +283 -0
  28. package/dist/receipt-command.d.ts +10 -0
  29. package/dist/receipt-command.js +246 -0
  30. package/dist/receipt-producer.d.ts +7 -0
  31. package/dist/receipt-producer.js +107 -0
  32. package/dist/receipt-protocol.d.ts +219 -0
  33. package/dist/receipt-protocol.js +374 -0
  34. package/dist/receipt-send.d.ts +26 -0
  35. package/dist/receipt-send.js +375 -0
  36. package/dist/receipt-state.d.ts +89 -0
  37. package/dist/receipt-state.js +503 -0
  38. package/dist/receipt-store.d.ts +32 -0
  39. package/dist/receipt-store.js +286 -0
  40. package/dist/replies.js +3 -1
  41. package/dist/send.d.ts +14 -3
  42. package/dist/send.js +165 -63
  43. package/dist/skill-metadata.js +5 -3
  44. package/docs/api.md +155 -7
  45. package/docs/design/remote-deployment.md +8 -0
  46. package/docs/design/typescript-skill-compatibility.md +50 -0
  47. package/docs/guide.ja.md +47 -15
  48. package/docs/guide.ko.md +50 -19
  49. package/docs/guide.md +48 -16
  50. package/docs/guide.zh-CN.md +47 -15
  51. package/docs/shorthand.md +1 -1
  52. package/package.json +5 -3
@@ -9,8 +9,8 @@ const verdict = (compatible) => ({ status: compatible ? 'compatible' : 'incompat
9
9
  code: compatible ? 'skill_contract_compatible' : 'skill_contract_mismatch', verification: 'metadata_only' });
10
10
  export const SKILL_METADATA_LIMIT = 65536;
11
11
  const keys = ['version', 'runtime-implementation', 'runtime-min-version', 'runtime-full-version', 'runtime-capability-policy'];
12
- // Preserve each published runtime/profile result. The 0.5.1 release candidate
13
- // carries forward only the four exact profiles accepted by public 0.5.0.
12
+ // Preserve each published runtime/profile result. The 0.6.0 preparation row
13
+ // carries forward only the four exact profiles accepted by public 0.5.2.
14
14
  // Metadata compatibility does not authenticate content or publish/install a skill.
15
15
  // Every later runtime/profile requires separate review; no version ranges.
16
16
  const matrix = {
@@ -18,7 +18,9 @@ const matrix = {
18
18
  '0.3.5': ['0.1.0', '0.2.0', '0.2.1'], '0.3.6': ['0.1.0', '0.2.0', '0.2.1'],
19
19
  '0.4.0': ['0.1.0', '0.2.0', '0.2.1', '0.3.0'],
20
20
  '0.5.0': ['0.1.0', '0.2.0', '0.2.1', '0.3.0'],
21
- '0.5.1': ['0.1.0', '0.2.0', '0.2.1', '0.3.0']
21
+ '0.5.1': ['0.1.0', '0.2.0', '0.2.1', '0.3.0'],
22
+ '0.5.2': ['0.1.0', '0.2.0', '0.2.1', '0.3.0'],
23
+ '0.6.0': ['0.1.0', '0.2.0', '0.2.1', '0.3.0']
22
24
  };
23
25
  const profiles = {
24
26
  '0.1.0': ['0.1.0', 'typescript', '0.1.0', '0.1.0', 'probe-help'],
package/docs/api.md CHANGED
@@ -1,18 +1,18 @@
1
1
  # API reference
2
2
 
3
- This reference describes source/package version **0.5.1**. Check registry availability and review the selected release before installation. Dated release evidence is recorded in [VALIDATION.md](../VALIDATION.md); before publication use a reviewed source artifact.
3
+ This reference describes source/package version **0.6.0**. Check registry availability and review the selected release before installation. Dated release evidence is recorded in [VALIDATION.md](../VALIDATION.md); before publication use a reviewed source artifact.
4
4
 
5
5
  [Back to README](../README.md) · [User guide](guide.md)
6
6
 
7
7
  The package exposes a small ESM API with TypeScript declarations. Install it
8
- locally with `npm install --ignore-scripts session-peer@0.5.1` before importing it.
8
+ locally with `npm install --ignore-scripts session-peer@0.6.0` before importing it.
9
9
  Importing the package does not execute the CLI or submit a message.
10
10
 
11
11
  ```js
12
12
  import { VERSION, VERSION_LINE, reply, envelope } from 'session-peer';
13
13
 
14
- console.log(VERSION); // 0.5.1
15
- console.log(VERSION_LINE); // session-peer 0.5.1 (typescript)
14
+ console.log(VERSION); // 0.6.0
15
+ console.log(VERSION_LINE); // session-peer 0.6.0 (typescript)
16
16
  const address = 'session-peer://v1/reply?agent=claude&session=12345&transport=local';
17
17
  console.log(reply(address)); // { to: '12345' }
18
18
  console.log(envelope('Please review and reply.', true, address));
@@ -36,6 +36,129 @@ The ordinary SSH response correction is documented separately as the [0.3.3 ordi
36
36
 
37
37
  <a id="unreleased-opt-in-handoff-cli--040-work"></a>
38
38
 
39
+ <a id="codex-storage-configuration"></a>
40
+
41
+ ## Codex storage configuration guards
42
+
43
+ The source implementation added after baseline `90481b1` extends its
44
+ selected-home check with bounded local loader-layer classification. The published
45
+ 0.5.1 comparison in PARITY is retained as dated evidence. Availability is determined
46
+ by the selected release record; source/fixture results do not establish publication
47
+ or new native delivery qualification.
48
+
49
+ The ordinary queue loader is reviewed at exact native Codex versions **0.160.1,
50
+ 0.162.1 and 0.165.0**, independently of the narrower observation profile table.
51
+ An effectful send probes the explicitly selected binary's reported version and
52
+ retains its file identity. Doctor and dry-run never execute the agent binary;
53
+ their `loaderVersionVerified:false` result is not native queue authorization.
54
+
55
+ Darwin and Linux classify the selected-home `config.toml`, system
56
+ `/etc/codex/config.toml`, `requirements.toml` and legacy `managed_config.toml`,
57
+ plus project configuration for the physical queue cwd and the saved target
58
+ thread's cwd. A live writer additionally needs an observable physical cwd and
59
+ opened state-database descriptor matching the selected inode; a queried sender
60
+ version does not establish the running consumer's configuration. macOS reads only
61
+ forced `config_toml_base64` / `requirements_toml_base64` values for
62
+ `com.openai.codex`, checking forced status before and after value retrieval.
63
+
64
+ Windows local storage classification is unqualified: Codex send/dry-run refuse
65
+ before queue submission until its native known-folder and process/storage
66
+ inspection contract is supported. This does not disable ordinary Claude paths
67
+ or qualify Linux/Windows observation. A reused native daemon retains startup
68
+ storage that these local reads cannot attest to; its existing control-socket
69
+ metadata causes refusal without connecting to or stopping it. The separately
70
+ owned stdio app-server path must bind its opened SQLite files independently.
71
+
72
+ Cloud config bundles can supply configuration and storage requirements. Cache
73
+ absence alone is insufficient because native loaders may fetch a bundle.
74
+ Without reading credential/cache contents, ordinary queue classification refuses
75
+ when selected-home `auth.json` or `cloud-config-bundle-cache.json` metadata is
76
+ present, when configuration selects keyring/auto credential storage, or when
77
+ external identity markers or a config server make cloud applicability unknown.
78
+ The conservative selector scan also includes inactive/nested tables; it does not
79
+ claim that native legacy profiles apply those selectors.
80
+ **This includes ordinary signed-in file-auth homes even when their actual account
81
+ would not receive cloud policy.** The refusal is
82
+ `codex_cloud_storage_unverified`; it is not a determination that relocation is
83
+ configured. File-auth/cache absence plus source-qualified local selectors permits
84
+ the clean ordinary path. The separately requested owned app-server route may
85
+ continue only with its actual opened-storage binding; local metadata alone is
86
+ not substituted for that proof.
87
+
88
+ Nonempty native exec-server/Noise environment markers and selected-home
89
+ `environments.toml` metadata cause refusal on both paths. The adapter classifies
90
+ local storage only and does not attach to remote workspaces. Alternative V2 user
91
+ profiles in the reviewed loaders require explicit `--profile`/`-p` arguments;
92
+ these native invocations do not select them. Diagnostic fields identify the local
93
+ layer scope and cloud applicability; they never certify complete effective policy.
94
+
95
+ Configuration files are bounded regular-file reads (1 MiB per file, 8 MiB total),
96
+ with fatal UTF-8/TOML decoding and observable descriptor/path identity and
97
+ stability checks. Project ancestry is capped at 256 directories. Explicit custom
98
+ project markers use a conservative ancestor superset, which can refuse an
99
+ otherwise unused ancestor configuration; the result is not a complete model of
100
+ native project trust. System metadata helpers have bounded output/timeouts;
101
+ byte bounds do not promise a deadline for arbitrary filesystem I/O.
102
+
103
+ Ordinary queue processes keep the sender's physical cwd. A malformed or unsafe
104
+ project config in that directory can therefore refuse a send independently of
105
+ the target's cwd. The guard also inspects conservative consumer/ancestor context
106
+ supersets without reproducing the native project-trust decision, so it can reject
107
+ configuration the native loader would ignore as untrusted. Missing/deleted saved
108
+ thread cwd, config symlinks, an unclassifiable selected DB or unavailable fixed
109
+ system metadata helpers also refuse; these are explicit availability limits.
110
+
111
+ Unsupported root `sqlite_home`, malformed/unreadable configuration, unsupported
112
+ reported loader versions, conflicting process/file evidence and changes before
113
+ dispatch refuse submission. Errors include `unsupported_codex_sqlite_home`,
114
+ `codex_config_unreadable`, `codex_storage_config_unverifiable`,
115
+ `codex_storage_loader_unsupported`, `codex_daemon_storage_unverified`,
116
+ `codex_consumer_context_unverifiable`, `codex_consumer_storage_unverifiable`,
117
+ `codex_cloud_storage_unverified` and `codex_storage_changed_before_queue`.
118
+ Doctor readiness describes ordinary local classification. A signed-in or other
119
+ cloud-unclassifiable home can report `ready:false` and omit the selected DB
120
+ schema/count check, even when a separately qualified owned route could later
121
+ supply stronger storage evidence. Reader failure is not proof of a missing DB.
122
+ Entry-file identity continuity covers the selected executable entry, not every
123
+ transitive binary a trusted wrapper might launch.
124
+
125
+ Public `storage` diagnostics contain layer names and classifications; content
126
+ hashes, configuration paths, raw TOML and preference values stay private.
127
+
128
+ Ordinary, fallback and owned app-server paths recheck applicable evidence before
129
+ effect while retaining original writer and deadline rules. A quoted explicit
130
+ `sqlite_home` pin enforces the already-classified selected location; it does not
131
+ adopt a configured relocation. This is an observable continuity guard, not an
132
+ atomic filesystem/configuration snapshot or protection against an undetectable
133
+ same-user rewrite. Missing evidence never permits fallback after an attempt or
134
+ an automatic retry of an unknown outcome.
135
+
136
+ The reviewed project-discovery implementation reads `dir/.codex/config.toml`;
137
+ its older summary comment mentioning `cwd/config.toml` is not the implemented
138
+ path. Git files (including worktree markers) stop root discovery; a `.git`
139
+ directory needs its HEAD marker. The ordinary startup path uses embedded
140
+ packaged defaults, whose reviewed TOML contains no `sqlite_home`; it does not
141
+ supply the programmatic packaged-defaults-file override. Legacy root `profile`
142
+ selection is rejected by the reviewed core, and `ConfigProfile` has no
143
+ `sqlite_home` member or storage flattening. A nested profile key is not promoted
144
+ to a root storage override. The global `-c` option is present in all three
145
+ reviewed CLI parsers and can follow the queue message argument.
146
+
147
+ Source review pins:
148
+
149
+ | Native tag | Upstream source commit |
150
+ | --- | --- |
151
+ | 0.160.1 | [`d27764b82f7118f674371e6d6e76271d9d606edb`](https://github.com/openai/codex/tree/d27764b82f7118f674371e6d6e76271d9d606edb/codex-rs/config/src/loader) |
152
+ | 0.162.1 | [`092d3acd6bec3e3a14bdc7e7a2810ab628ab759d`](https://github.com/openai/codex/tree/092d3acd6bec3e3a14bdc7e7a2810ab628ab759d/codex-rs/config/src/loader) |
153
+ | 0.165.0 | [`360319d8dee62d87e2d59fc0c21805d79519cfed`](https://github.com/openai/codex/tree/360319d8dee62d87e2d59fc0c21805d79519cfed/codex-rs/config/src/loader) |
154
+
155
+ All three macOS loader files have SHA-256
156
+ `36dd560f67b3b45bf3d63f4e2b962571456c12dc2f9ca55304f8729d49bee0c5`.
157
+ The comparison also inspects Python
158
+ [`f5e7c49554ff02771990a151e00b52f2abf3df0a`](https://github.com/abruption/session-peer/blob/f5e7c49554ff02771990a151e00b52f2abf3df0a/session_peer_core/codex.py).
159
+ These are static source and isolated-fixture checks; no native Codex queue,
160
+ user session, delivery/ACK or remote-host qualification was run for this change.
161
+
39
162
  ## Opt-in handoff CLI — 0.4.0
40
163
 
41
164
  0.4.0 includes an explicit private POSIX sender ledger. Default sends retain
@@ -91,7 +214,7 @@ message/transcript scan manufactures ACK. Ordinary generated Reply-To stays v1.
91
214
 
92
215
  POSIX opt-in `send --host HOST` performs an exact-version preflight and a
93
216
  no-effect preparation before one destination-side send. Both ends must contain
94
- the same reviewed 0.5.1 implementation. This workflow was introduced in
217
+ the same reviewed 0.6.0 implementation. This workflow was introduced in
95
218
  0.4.0; a 0.3.x banner does not establish the capability. Initialize the destination's private ledger explicitly; no command
96
219
  auto-installs a handler or initializes missing history. The origin does not
97
220
  create a local receipt collector. Reconcile with `handoff status`/`wait` on the
@@ -193,7 +316,7 @@ requested evidence goal. After any possible RPC write, no legacy fallback or
193
316
  second submission occurs.
194
317
 
195
318
  Selection is by the exact host platform/architecture and native version.
196
- The 0.5.1 source records a Linux arm64 Codex 0.162.1 candidate (pinned musl
319
+ The 0.6.0 source records a Linux arm64 Codex 0.162.1 candidate (pinned musl
197
320
  executable, procfs storage binding, `/proc/locks` writer-owner check) but does
198
321
  not activate it. Linux and any other unlisted platform/version have no
199
322
  profile, so required delivery refuses before effect and best-effort uses the
@@ -273,7 +396,7 @@ a completed milestone. Exact evidence and limits are in [VALIDATION](../VALIDATI
273
396
 
274
397
  ## 0.4.0 implementation scope
275
398
 
276
- The 0.5.1 source preserves this supported handoff scope; its Linux and Windows
399
+ The 0.6.0 source preserves this supported handoff scope; its Linux and Windows
277
400
  groundwork does not enable additional platform or ACK support.
278
401
 
279
402
  The 0.4.0 implementation includes the qualified macOS arm64 observer and explicit
@@ -284,3 +407,28 @@ voluntary receipt producer/authenticated collector bootstrap [#132](https://gith
284
407
  are future extensions. An automatic collector would still require an explicit
285
408
  receiver receipt; it must never infer ACK from messages or turn completion.
286
409
  Unsupported required goals refuse before effect; no post-attempt fallback or resend.
410
+
411
+ ## Explicit local receipt bootstrap (source implementation)
412
+
413
+ The `receipt` owner commands and `send --receipt-collector SOCKET` select a local, manually operated receipt route. They do not start services, discover alternate collectors, wake a session, answer an approval or resend a native message. Read the [operator guide](guide.md#explicit-local-receipts) before supplying private receipt input.
414
+
415
+ - `receipt init` creates a fresh managed format-2 store. Existing unmanaged format-1 history is not migrated or adopted. New legacy owner commands refuse a managed context; managed status and waits require the live collector.
416
+ - `receipt serve` is a foreground process with a single mutation and monotonic-clock owner. A second owner refuses. Unexpected state/key/endpoint replacement is not repaired. Cleanup may be unconfirmed; that does not authorize removal of an unrelated path.
417
+ - `receipt respond --receipt -` accepts only a bounded private receipt frame on stdin, through the explicitly selected private endpoint. A successful invocation records authenticated receipt evidence only; it cannot send a message. Never put capability data in argv, environment, URI, shell command text or public output.
418
+ - The generic CLI envelope stays `schemaVersion:1`. Codex's nested handoff/receipt stays v1 with the original non-null native generation. Claude uses a separate nested handoff/receipt v2 with `targetGeneration:null` and `receiptContext:{kind:"delegated_context",id:UUID}`. A v1 validator must reject that new scope rather than synthesizing a generation or downgrading it.
419
+ - `token_possession` means delegated receipt authority, not native/model identity, consumption, completion or responsibility acceptance. Existing `operator_confirmed` evidence remains a separate manual assurance. The intended recipient's native queue/history may retain delegated authority.
420
+ - Codex delegation uses only the qualified owned RPC route with private stdin. A token-bearing body is never passed through a native `--message` argument or a legacy queue fallback. Unsupported required ACK refuses before effect. Best-effort unsupported bootstrap can retain ordinary submission facts without minting an unused token.
421
+ - The original ACK operation is opened before the effect fence and uses the original total budget. A fast authenticated receipt can occupy one reserved candidate slot until positive native submission is recorded. Unknown/refused outcomes cannot be promoted by that receipt. ACK eligibility is classified through the collector's serialized transition; it never backdates an ACK or rewrites a terminal timeout.
422
+ - Each independent wait has its own immutable operation ID/deadline. Polling does not open another wait, extend authority or submit native input. A fresh collector cannot revive unused old-clock authority. Committed receipts and terminal waits are retained.
423
+
424
+ IPC is separately versioned and limited to the closed receipt operations described in the [reviewed design](https://github.com/abruption/session-peer-ts/blob/d922d6e20345f10b914ee9cf4da40476fd044f5d/docs/design/receipt-bootstrap.md). Request/response frames are at most 16,384 bytes including LF; each raw private receipt is at most 4,096 bytes. The collector admits at most 16 live connections, with finite per-read/write and total exchange budgets. Unknown post-attempt responses never authorize automatic retry. These bounds do not promise a deadline for arbitrary kernel-blocked filesystem I/O or protect against a hostile same-user writer.
425
+
426
+ Windows managed storage and reverse-SSH receipt collection remain unsupported. Existing native observation qualification remains unchanged. OS/IPC fixtures, synthetic native transports and actual live-agent receipts are separate evidence categories; this source description is not a release or live-model qualification claim.
427
+
428
+ ### Original-budget IPC 2 and retained-context limits
429
+
430
+ Private IPC 2 `hello.clockReferenceMs` is an opaque collector monotonic reference. A client captures its remaining total milliseconds after that reply and echoes the fixed reference/span in `wait-open`; the actor anchors the original cutoff to the earlier reference. Network, preparation and mint latency cannot start a renewed wait budget. This does not depend on clocks sharing an origin or on UTC comparisons. Public CLI/receipt/handoff version namespaces are unchanged by the private IPC revision.
431
+
432
+ Explicit revoke/quarantine rejects further receipt presentations, including duplicates, while owner status retains committed ACK evidence. TTL expiry alone does not erase the authenticated identical-receipt retrieval exception. A late flag refers to the first recorded wait; a later wait cannot renew it. Context limits apply jointly: the current conservative 64-KiB retained reservation can fill a 32-MiB store at about 511 small intents before the separate 10,000-record upper bound. There is no automatic retirement or deletion. A full-store refusal never authorizes dropping history or resending.
433
+
434
+ Before a managed intent is established, bootstrap refusal can have no handoff IDs; the client does not fabricate an epoch/correlation/operation for unavailable storage. Once an operation is established, its original verified IDs/deadline and independently known native facts are preserved on later failures without inventing a durable terminal result.
@@ -10,6 +10,14 @@
10
10
  | Decision owner | Repository maintainer |
11
11
  | Supersedes | Nothing. The exact-version preflight stays in force until the follow-ups below are implemented and verified |
12
12
 
13
+ **Qualification follow-up (proposal, 2026-10-21):**
14
+ [Issue #158's checklist-first design](https://github.com/abruption/session-peer-ts/issues/158) proposes
15
+ an assessment workflow with a separately requested, repository-only read-only
16
+ reporter, without a new authority or recovery engine. Draft #155
17
+ is deferred and excluded from 0.5.0. The historical workflow and evidence below
18
+ remain context; the new proposal implements none of the F1–F6 follow-ups and
19
+ requires human PR review; it does not authorize provisioning or remediation.
20
+
13
21
  ## Contents
14
22
 
15
23
  - [Context](#context)
@@ -2,6 +2,56 @@
2
2
 
3
3
  This document retains the original TS source proposal and dated design review for [#118](https://github.com/abruption/session-peer-ts/issues/118), based on the companion [Draft #20 at `963c3d7`](https://github.com/abruption/session-peer-skill/blob/963c3d748a11b1164013ee26c9c0ef285c52b285/docs/typescript-compatibility.md). Companion [design acceptance at `699a325`](https://github.com/abruption/session-peer-skill/blob/699a3251830c30c62d0f812363faf4d0eb0c8e0c/docs/typescript-compatibility.md) records the full static review of the exact candidates below on 2026-10-09. This design-only acceptance does not authorize runtime merge/release, successor skill metadata/publication, installation or pin changes, content authenticity, or live delivery support.
4
4
 
5
+ ## 0.6.0 finite row — 2026-11-03 KST release preparation
6
+
7
+ The 0.6.0 source preparation adds one explicit runtime row accepting exactly the
8
+ four existing profiles: skill 0.1.0, 0.2.0, 0.2.1 and 0.3.0, with their existing
9
+ metadata values. Compiled default, explicit `undefined`, explicit 0.6.0 and outer
10
+ `inspectSkill` use this finite row. Matching metadata returns exactly
11
+ `compatible / skill_contract_compatible / metadata_only`; changed profiles and
12
+ unreviewed stable runtime identities such as 0.5.3, 0.6.1 and 0.7.0 remain
13
+ incompatible. Malformed identities, including 0.6.0-preview.1 and 00.6.0, remain
14
+ `unknown / skill_metadata_missing` with the `verification` property absent.
15
+ All historical matrix rows, exact profile values, grammar and bounded reader
16
+ behavior remain unchanged.
17
+
18
+ The installation guidance retains independently published skill 0.2.1 source
19
+ `0f494cabd05901c03161dc91792dcf89f8e96631`, 13,996 raw UTF-8 bytes, SHA-256
20
+ `8c3520f95e0d6807303be96bfa06df69887ddaf76be05f1905505d0a956820c3`.
21
+ This row neither publishes a new skill nor changes its installation pin, body,
22
+ minimum/full metadata or permissions. In particular it does not establish that
23
+ an older skill documents new runtime receipt operations. Optional operations
24
+ still require the selected runtime's help, platform and separately validated
25
+ route. Metadata compatibility is not content authentication, authorization,
26
+ recipient identity, delivery or ACK evidence.
27
+
28
+ This section records source preparation only, not publication or completed
29
+ receipt/native qualification. The dated 0.5.2 checkpoint below retains that
30
+ historical validator's rejection of then-unreviewed 0.6.0; supplying 0.6.0 to the
31
+ new helper is not execution of the old published 0.5.2 validator. No historical
32
+ artifact or immutable complete-skill fixture is rewritten.
33
+
34
+ ## 0.5.2 finite row — 2026-10-30 KST release preparation
35
+
36
+ The 0.5.2 source explicitly accepts exactly the four profiles accepted by public
37
+ 0.5.1: skill 0.1.0, 0.2.0, 0.2.1 and 0.3.0. Compiled default, explicit
38
+ `undefined`, explicit 0.5.2 and outer `inspectSkill` use this finite row. Matching
39
+ metadata returns exactly `compatible / skill_contract_compatible / metadata_only`;
40
+ changed profiles and unreviewed 0.5.3/0.6.0 identities remain incompatible.
41
+ Malformed runtime identities remain `unknown / skill_metadata_missing` with no
42
+ `verification` property. Historical matrix rows, metadata grammar and bounded
43
+ reader behavior are unchanged.
44
+
45
+ Storage-layer refusal is independent of this metadata-only acceptance. The new
46
+ row does not authenticate skill content, qualify a send route, expand native
47
+ support, publish/install a skill or change the existing immutable guidance pin.
48
+ Runtime publication remains a separate exact-source/artifact approval step.
49
+
50
+ The dated sections below describe their own source checkpoints. For example,
51
+ 0.5.2 rejection by the historical 0.5.1 validator remains a historical helper
52
+ result, not the result of the compiled 0.5.2 validator. Supplying a historical
53
+ runtime string to a newer helper is not execution of that historical CLI.
54
+
5
55
  ## 0.5.1 finite row — 2026-10-27 KST release preparation
6
56
 
7
57
  The 0.5.1 source candidate explicitly accepts the same four exact metadata
package/docs/guide.ja.md CHANGED
@@ -1,14 +1,20 @@
1
1
  # ユーザーガイド — session-peer (TypeScript)
2
2
 
3
+ 通常の Codex キュー提出も、`auth.json` があるログイン済み home など、クラウドポリシーの適用範囲を判定できない場合は `codex_cloud_storage_unverified` で拒否します。認証情報やキャッシュの内容は読まず、別途検証する owned app-server 経路では実際のストレージとの結び付きを確認する必要があります。
4
+
5
+ このソースは Codex home、システム設定、macOS 管理設定、送信側と対象プロセスの実際の作業ディレクトリに適用されるプロジェクト設定を確認します。[ストレージ検証の範囲と拒否条件](api.md#codex-storage-configuration)を参照してください。Windows の Codex 送信・dry-run は、ローカルストレージ検査方式の検証が済むまでキュー提出前に拒否します。doctor と dry-run は Codex を実行せず、ローダーのバージョンは未確認のままです。
6
+
7
+ 現在の機能差と移植方針は[日付を明記した比較表](../PARITY.md#current-scoped-feature-matrix)を参照してください。TypeScriptで公開済みの機能と、別途固定したPythonの比較基準を区別しています。
8
+
3
9
  [README に戻る](../README.ja.md)
4
10
 
5
11
  [English](guide.md) | [한국어](guide.ko.md) | [日本語](guide.ja.md) | [简体中文](guide.zh-CN.md)
6
12
 
7
- **文書・ソースのバージョン: 0.5.1。** インストール前に、選択したリリースとレジストリのメタデータを確認してください。日付付きの準備・検証記録は [VALIDATION.md](../VALIDATION.md)、リリース手順は [RELEASING.md](../RELEASING.md) にあります。SSH の両端には同じ TypeScript クライアントのバージョンが必要で、0.3.6 と 0.5.1 は互いの SSH 事前確認を拒否します。
13
+ **文書・ソースのバージョン: 0.6.0。** インストール前に、選択したリリースとレジストリのメタデータを確認してください。日付付きの準備・検証記録は [VALIDATION.md](../VALIDATION.md)、リリース手順は [RELEASING.md](../RELEASING.md) にあります。SSH の両端には同じ TypeScript クライアントのバージョンが必要で、0.3.6 と 0.6.0 は互いの SSH 事前確認を拒否します。
8
14
 
9
- **0.4.0 handoff の範囲:** 任意の native 観測は macOS arm64 の厳密な Codex 0.160.1/0.162.1 に限定し、明示的な `operator_confirmed` 受領確認には対応する POSIX ledger を使います。Linux・Windows の native 観測と自動 ACK 収集は未対応です。 0.5.1 のソースは選択できない Linux arm64 の Codex 0.162.1 候補(固定された上流 `aarch64-unknown-linux-musl` 実行ファイル、スキーマ、注入テスト 1 回)を記録しますが、Linux 観測を有効化しません。Linux の native 観測は引き続き未対応です。
15
+ **0.4.0 handoff の範囲:** 任意の native 観測は macOS arm64 の厳密な Codex 0.160.1/0.162.1 に限定し、明示的な `operator_confirmed` 受領確認には対応する POSIX ledger を使います。Linux・Windows の native 観測と自動 ACK 収集は未対応です。 0.6.0 のソースは選択できない Linux arm64 の Codex 0.162.1 候補(固定された上流 `aarch64-unknown-linux-musl` 実行ファイル、スキーマ、注入テスト 1 回)を記録しますが、Linux 観測を有効化しません。Linux の native 観測は引き続き未対応です。
10
16
 
11
- 0.5.1 の詳細ガイドです([0.3.1 の信頼性の修正](../PARITY.md#031-reliability-fixes))。0.3.0 は複数ホスト SSH、送信者情報と返信経路、更新確認、任意の `sp` 短縮名を追加しました([0.3.0 の変更点](../PARITY.md#030-remote-usability-and-maintenance))。以前の公開記録は [0.3.1 公開リリースの証拠](../VALIDATION.md#public-031--2026-10-04-kst) にあります。以下の 0.1.0 の説明は旧版との比較です。
17
+ 0.6.0 の詳細ガイドです([0.3.1 の信頼性の修正](../PARITY.md#031-reliability-fixes))。0.3.0 は複数ホスト SSH、送信者情報と返信経路、更新確認、任意の `sp` 短縮名を追加しました([0.3.0 の変更点](../PARITY.md#030-remote-usability-and-maintenance))。以前の公開記録は [0.3.1 公開リリースの証拠](../VALIDATION.md#public-031--2026-10-04-kst) にあります。以下の 0.1.0 の説明は旧版との比較です。
12
18
 
13
19
  <a id="移行時の境界-033-候補"></a>
14
20
 
@@ -44,7 +50,7 @@
44
50
 
45
51
  実行中の **Claude Code と Codex セッション**に、ローカルまたは SSH 経由でメッセージを送る TypeScript クライアントです。Node.js で動作し、Python は不要です。
46
52
 
47
- **0.5.1 の利用ガイドです。**パッケージ名は `session-peer`、CLI コマンドは **`session-peer`**。Relay サーバーやホスティングサービスは提供しません。
53
+ **0.6.0 の利用ガイドです。**パッケージ名は `session-peer`、CLI コマンドは **`session-peer`**。Relay サーバーやホスティングサービスは提供しません。
48
54
 
49
55
  ## 機能と範囲
50
56
 
@@ -61,7 +67,7 @@ Relay 通信、MCP、wake/resume、Antigravity、自動更新は未実装です
61
67
 
62
68
  ビルド後の `node dist/cli.js list --json` は Claude/Codex をまとめて表示し、`list --agent codex --json` は既知の home を検索します。公開 npm **0.1.0** では引き続き agent と Codex 一覧の home を明示します。0.2.0 でも明示的なコマンド形式を利用できます。
63
69
 
64
- 対象は既定の `~/.codex`、`CODEX_HOME`、macOS Orca 直下のアカウント home、JSON 配列 `SESSION_PEER_CODEX_HOMES` のみです。`--codex-home` は Codex 一覧を固定して無関係な設定エラーを回避し、`--agent claude` は Codex 探索を省略します。同じ home の別名は統合し、異なる home の同じ UUID は保持します。送信には各行の `codexHome` を使ってください。任意 home の不在はエラーではなく、明示した home の不在・不正は読み取れた行を保持して終了コード 1 を返します。一覧は writer を選択せず、メッセージを提出しません。[一覧契約](../PARITY.md#source-unified-listing-contract--16--020)に順序・診断・`--all`・SSH を記載しています。0.2.0の Codex 送信は `--codex-home` 省略時に一意で安定した live writer を選択します。明示 home でも既知の競合 home をすべて検査します。非アクティブなキュー送信には保存済みスレッド、全候補の非アクティブ検証、および `--codex-home HOME --allow-inactive-codex-home` が必要で、wake/resume は実行しません。Dry-run は提出しません。JSON に診断 `codexHomeResolution` と、ネイティブ出力にある場合のみ `queueId` を追加しますが、消費確認ではありません。[選択契約](../PARITY.md#source-codex-home-selection--17--020)を参照してください。公開 **0.1.0** には明示 live home が必要で、非アクティブ許可オプションはありません。SSH の両端には同じ TypeScript クライアントのバージョン(0.5.1)が必要です。
70
+ 対象は既定の `~/.codex`、`CODEX_HOME`、macOS Orca 直下のアカウント home、JSON 配列 `SESSION_PEER_CODEX_HOMES` のみです。`--codex-home` は Codex 一覧を固定して無関係な設定エラーを回避し、`--agent claude` は Codex 探索を省略します。同じ home の別名は統合し、異なる home の同じ UUID は保持します。送信には各行の `codexHome` を使ってください。任意 home の不在はエラーではなく、明示した home の不在・不正は読み取れた行を保持して終了コード 1 を返します。一覧は writer を選択せず、メッセージを提出しません。[一覧契約](../PARITY.md#source-unified-listing-contract--16--020)に順序・診断・`--all`・SSH を記載しています。0.2.0の Codex 送信は `--codex-home` 省略時に一意で安定した live writer を選択します。明示 home でも既知の競合 home をすべて検査します。非アクティブなキュー送信には保存済みスレッド、全候補の非アクティブ検証、および `--codex-home HOME --allow-inactive-codex-home` が必要で、wake/resume は実行しません。Dry-run は提出しません。JSON に診断 `codexHomeResolution` と、ネイティブ出力にある場合のみ `queueId` を追加しますが、消費確認ではありません。[選択契約](../PARITY.md#source-codex-home-selection--17--020)を参照してください。公開 **0.1.0** には明示 live home が必要で、非アクティブ許可オプションはありません。SSH の両端には同じ TypeScript クライアントのバージョン(0.6.0)が必要です。
65
71
 
66
72
  ### 0.2.0 CLI の使いやすさ
67
73
 
@@ -76,6 +82,32 @@ Relay 通信、MCP、wake/resume、Antigravity、自動更新は未実装です
76
82
  公開済み 0.1.0 にこのソース機能が遡及適用されることはありません。
77
83
 
78
84
 
85
+ ### macOS の Claude プロファイル
86
+
87
+ `CLAUDE_CONFIG_DIR` と `ANTHROPIC_CONFIG_DIR` に空でない値がない場合、Claude の探索は `~/.claude/sessions` に加え、`~/Library/Application Support/orca/claude-profiles` 直下の各プロファイルの `home/sessions` を確認します。環境変数でパスを指定した場合は、その登録情報ディレクトリだけを使います。Linux と Windows ではこの macOS パスを探索しません。プロファイル数と登録項目数には上限があります。自動探索したプロファイルのディレクトリと登録ファイルは現在のユーザーが所有し、他のユーザーやグループが書き込めないことが必要です。安全条件を満たさない探索先があれば、探索を不完全として扱います。macOS の自動探索先にある拡張 ACL(追加アクセス権)は、所有者だけを指定したものも含めて保守的に拒否します。制限付きのシステムメタデータ検査を使い、エージェントは実行しません。
88
+
89
+ 別の探索先でエラーが起きても読み取れたセッションは一覧に残し、探索が不完全であることを診断情報と失敗終了コードで示します。送信と送信者の識別には、完全で矛盾のない根拠が必要です。同じ実体の登録ディレクトリを指す別名は一つの行にまとめられますが、PID や inbox の情報が競合する場合は、ディレクトリの順番や PID の指定では解決しません。選択と handoff の連続性検査は元の登録情報の根拠を保持し、提出直前に再確認します。一覧と dry-run は inbox に接続しません。これらの検査は native の世代、メッセージの消費、受領確認 ACK を証明しません。
90
+
91
+ ### 明示的なローカル受領確認
92
+
93
+ receipt は通常の posted/queued という提出根拠とは別です。所有者が非公開状態を明示的に初期化し、フォアグラウンドの collector を手動で開始します。サービス登録や自動起動はしません。次の `serve` は所有者が停止するまで終了しません。
94
+
95
+ ```sh
96
+ session-peer receipt init --state-dir "$HOME/.session-peer-receipts" --json
97
+ session-peer receipt serve --state-dir "$HOME/.session-peer-receipts" --json
98
+ ```
99
+
100
+ 別のターミナルで受領確認用の権限委任を明示的に要求します。受信側は非公開 stdin から receipt 専用 handler を別途呼び出します。下の二つ目のコマンド自体が receipt を取得するわけではありません。トークンをシェルのコマンド文字列、引数、環境変数、URI、公開出力、送信者や collector のファイルに含めず、非公開 stdin/FD で渡せる producer だけを使ってください。許可された受信者の native キューや履歴には残る場合があります。
101
+
102
+ ```sh
103
+ session-peer send --to claude:NAME --message "Receipt fixture" --request-ack --receipt-collector "$HOME/.session-peer-receipts/s" --wait-for acknowledged --wait-timeout 30 --json
104
+ session-peer receipt respond --collector "$HOME/.session-peer-receipts/s" --receipt - --json
105
+ ```
106
+
107
+ `token_possession` は委任されたトークンの所持を示すだけで、モデルの身元、メッセージの消費、作業完了を証明しません。Claude は native 世代が不明な別の v2 delegated receipt context を使います。Codex は元の世代に結び付いた v1 を維持し、非公開 stdin を使う検証済み owned RPC 経路だけを許可します。トークンを native の `--message` 引数に入れる代替経路はありません。既存の手動 `operator_confirmed` 根拠とも異なります。
108
+
109
+ collector は同じ端末の所有者専用経路です。保存容量の制限が重なり、小さい記録でも約 511 件で新しい受領確認要求を拒否する場合があります。自動削除や初期化で履歴を捨てることはありません。逆向き SSH collector と Windows managed storage は未対応です。明示的な各 wait は自分の期限を維持します。status/wait は非公開の状態分類を書き込む場合がありますが、native メッセージを再提出しません。不明な結果から自動再送は行いません。既存の native・プラットフォーム検証範囲は変わらず、fixture の成功は実エージェントの receipt 検証ではありません。
110
+
79
111
  ## 必要条件
80
112
 
81
113
  macOS / Linux / Windows native、Node **22.x の 22.13 以上、または 24.x**。Node 26 は対象外です。ネイティブロック依存には対応する x64/arm64 バイナリが必要で、純 JavaScript パッケージではありません。Codex 送信には `codex` が必要で、macOS/Linux では `lsof`・`ps` も必要です。Windows はネイティブロックと Restart Manager で所有者を確認します。Claude にはアクセス可能な inbox を持つ稼働中 TUI が必要です。SSH は既存の鍵・ホスト信頼と、接続先の**同一バージョン**のクライアントを使います。
@@ -84,15 +116,15 @@ macOS / Linux / Windows native、Node **22.x の 22.13 以上、または 24.x**
84
116
 
85
117
  Node 22.x の 22.13 以上または 24.x を使用し、インストールする正確なバージョンの公開状況を確認してください。Python CLI も同じコマンド名を使うため、既存のインストールがあれば先に PATH を確認してください。
86
118
 
87
- **0.5.1 のインストール:** npm の導入・更新例を実行する前に、レジストリで公開状況と選択したリリースを確認してください。利用できない場合は[レビュー済みソースビルド](#ソースからビルド)を使います。
119
+ **0.6.0 のインストール:** npm の導入・更新例を実行する前に、レジストリで公開状況と選択したリリースを確認してください。利用できない場合は[レビュー済みソースビルド](#ソースからビルド)を使います。
88
120
 
89
121
  ```sh
90
- npm view session-peer@0.5.1 version dist.integrity
91
- npm install --global --ignore-scripts session-peer@0.5.1
122
+ npm view session-peer@0.6.0 version dist.integrity
123
+ npm install --global --ignore-scripts session-peer@0.6.0
92
124
  session-peer --version
93
125
  ```
94
126
 
95
- 期待値は `session-peer 0.5.1 (typescript)`。
127
+ 期待値は `session-peer 0.6.0 (typescript)`。
96
128
 
97
129
  1. `session-peer list --agent claude --json` で宛先を探し、正確な PID を選びます。
98
130
  2. `session-peer send --to CLAUDE_PID --message 'Please reply after checking.' --dry-run --json` で提出せずに確認します。
@@ -111,7 +143,7 @@ npm run build
111
143
  node dist/cli.js --version
112
144
  npm pack --ignore-scripts
113
145
  # 任意のグローバルインストール前に PATH の既存コマンドを確認
114
- npm install --global --ignore-scripts ./session-peer-0.5.1.tgz
146
+ npm install --global --ignore-scripts ./session-peer-0.6.0.tgz
115
147
  session-peer --version
116
148
  ```
117
149
 
@@ -121,7 +153,7 @@ session-peer --version
121
153
 
122
154
  インストール前後に `type -a session-peer` と `command -v session-peer` を確認します。他の実装も同名コマンドを提供するため、PATH 上の一つを選ぶか `node /absolute/path/dist/cli.js` を使ってください。`--force` で他の管理ツールのファイルを上書きしないでください。Python パッケージ・スキル・サービスを自動変更しません。削除は `npm uninstall --global session-peer` を使い、PATH を再確認します。
123
155
 
124
- Windows PowerShell では `Get-Command session-peer -All` で既存コマンドを確認します。Python CLI を置換せずに試すには、`npm ci --ignore-scripts`、`npm run build`、`npm pack --ignore-scripts` の後、`npm install --prefix "$env:TEMP\session-peer-ts-source" --ignore-scripts .\session-peer-0.5.1.tgz` を実行し、`& "$env:TEMP\session-peer-ts-source\node_modules\.bin\session-peer.cmd" --version` で確認します。同じ prefix の `npm uninstall --prefix "$env:TEMP\session-peer-ts-source" session-peer` で削除します。
156
+ Windows PowerShell では `Get-Command session-peer -All` で既存コマンドを確認します。Python CLI を置換せずに試すには、`npm ci --ignore-scripts`、`npm run build`、`npm pack --ignore-scripts` の後、`npm install --prefix "$env:TEMP\session-peer-ts-source" --ignore-scripts .\session-peer-0.6.0.tgz` を実行し、`& "$env:TEMP\session-peer-ts-source\node_modules\.bin\session-peer.cmd" --version` で確認します。同じ prefix の `npm uninstall --prefix "$env:TEMP\session-peer-ts-source" session-peer` で削除します。
125
157
 
126
158
  ## 使い方
127
159
 
@@ -212,13 +244,13 @@ Python は開発時の比較基準です(v1.1.0、`8ca77cf31254c8287a2593fe484
212
244
 
213
245
  ## npm リリース
214
246
 
215
- 公開 **0.3.2** は 2026-10-07 KST に検証されました([固定された公開記録](../VALIDATION.md#public-032--2026-10-07-kst))。以下のレジストリ照会で 0.5.1 の現在の公開状況と npm タグを確認してください。日付付きの準備記録は、その後の公開結果を証明しません。
247
+ 公開 **0.3.2** は 2026-10-07 KST に検証されました([固定された公開記録](../VALIDATION.md#public-032--2026-10-07-kst))。以下のレジストリ照会で 0.6.0 の現在の公開状況と npm タグを確認してください。日付付きの準備記録は、その後の公開結果を証明しません。
216
248
 
217
249
  0.2.1 は 2026-09-29 KST、0.2.0 は 2026-09-28 KST に公開・検証されました。
218
250
  [0.2.1 公開記録](../VALIDATION.md#public-021--2026-09-29-kst)を参照し(以降のリリースはそれぞれ日付付きの記録を追加します)、導入前に正確なバージョンと現在のタグを確認してください。
219
251
 
220
252
  ```sh
221
- npm view session-peer@0.5.1 version dist.integrity
253
+ npm view session-peer@0.6.0 version dist.integrity
222
254
  npm view session-peer dist-tags
223
255
  ```
224
256
 
@@ -260,7 +292,7 @@ session-peer update --check --channel preview --output-format text
260
292
  実行中の CLI のパスからインストールの管理者を確実に特定できた場合にだけ示します。
261
293
  対象は、自身の `session-peer` ランチャーがこのパッケージを指す npm グローバル prefix
262
294
  (既定、Homebrew、nvm、nvm-windows、fnm。例:
263
- `npm install --global --ignore-scripts session-peer@0.5.1`)、マニフェストで
295
+ `npm install --global --ignore-scripts session-peer@0.6.0`)、マニフェストで
264
296
  `session-peer` を宣言している pnpm・Yarn・Bun のグローバルストア、Volta、npx キャッシュ
265
297
  です。プロジェクトへのインストール(`npm_project`、`pnpm_project`)、ソースチェック
266
298
  アウト(`source`)、それ以外(`unknown`)では `updateCommand: null` と `guidance` の文だけを
@@ -355,4 +387,4 @@ native 観測は、macOS arm64 の厳密な Codex 0.160.1/0.162.1 と既存の
355
387
 
356
388
  [Observation](api.md#unreleased-local-delivery-observation--72)
357
389
 
358
- Linux・Windows の native 注入観測は未対応です。 0.5.1 のソースは選択できない Linux arm64 の Codex 0.162.1 候補(固定された上流 `aarch64-unknown-linux-musl` 実行ファイル、スキーマ、注入テスト 1 回)を記録しますが、Linux 観測を有効化しません。Linux の native 観測は引き続き未対応です。対応する POSIX ledger では、運用者が明示的に確認した受領を `operator_confirmed` として記録できますが、自動 ACK 収集ではありません。0.4.0 の範囲は、検証済みの macOS 観測と明示的な運用者確認です。Linux・Windows 観測と receipt bootstrap は [#130](https://github.com/abruption/session-peer-ts/issues/130)、[#131](https://github.com/abruption/session-peer-ts/issues/131)、[#132](https://github.com/abruption/session-peer-ts/issues/132) の後続作業です。
390
+ Linux・Windows の native 注入観測は未対応です。 0.6.0 のソースは選択できない Linux arm64 の Codex 0.162.1 候補(固定された上流 `aarch64-unknown-linux-musl` 実行ファイル、スキーマ、注入テスト 1 回)を記録しますが、Linux 観測を有効化しません。Linux の native 観測は引き続き未対応です。対応する POSIX ledger では、運用者が明示的に確認した受領を `operator_confirmed` として記録できますが、自動 ACK 収集ではありません。0.4.0 の範囲は、検証済みの macOS 観測と明示的な運用者確認です。Linux・Windows 観測と receipt bootstrap は [#130](https://github.com/abruption/session-peer-ts/issues/130)、[#131](https://github.com/abruption/session-peer-ts/issues/131)、[#132](https://github.com/abruption/session-peer-ts/issues/132) の後続作業です。