dsh-charter 0.1.0-rc.2 → 0.1.0-rc.4
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/CHANGELOG.md +135 -0
- package/CHANGELOG.zh.md +114 -0
- package/README.md +30 -10
- package/README.zh.md +27 -10
- package/cordis.patch.yml +2 -0
- package/docs/design/compatibility.md +8 -6
- package/docs/design/compatibility.zh.md +6 -4
- package/docs/design/rc3-recovery-plan.md +845 -0
- package/docs/design/rc3-recovery-plan.zh.md +849 -0
- package/docs/releasing.md +25 -18
- package/docs/releasing.zh.md +18 -15
- package/docs/user-guide.md +24 -5
- package/docs/user-guide.zh.md +20 -5
- package/docs/verification.md +84 -12
- package/docs/verification.zh.md +71 -12
- package/lib/client/archive-preview.d.ts +29 -0
- package/lib/client/draft-store.d.ts +55 -7
- package/lib/client/locales.d.ts +80 -0
- package/lib/client/remote-error.d.ts +16 -0
- package/lib/client/store.d.ts +11 -2
- package/lib/client.js +1327 -27
- package/lib/core/archive.d.ts +47 -0
- package/lib/core/errors.d.ts +1 -1
- package/lib/core/items.d.ts +7 -0
- package/lib/core/limits.d.ts +12 -0
- package/lib/core/record.d.ts +21 -1
- package/lib/core/schemas.d.ts +100 -0
- package/lib/core.d.ts +1 -0
- package/lib/core.js +2 -2
- package/lib/{fork-0PNSfiML.js → fork-CN4JaEdN.js} +258 -13
- package/lib/host/service.d.ts +54 -5
- package/lib/host/types.d.ts +64 -1
- package/lib/index.js +3 -3
- package/lib/remote/service.d.ts +6 -2
- package/lib/remote/wire.d.ts +773 -13
- package/lib/remote.js +241 -52
- package/lib/service-RnZNss35.js +1556 -0
- package/package.json +45 -30
- package/lib/service-szrVCb8p.js +0 -755
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,141 @@ English | [中文](CHANGELOG.zh.md)
|
|
|
5
5
|
All notable changes to `dsh-charter` are recorded here. The project follows a pre-1.0 version line while the
|
|
6
6
|
DSH plugin ABI is still moving.
|
|
7
7
|
|
|
8
|
+
## 0.1.0-rc.4 — 2026-10-27
|
|
9
|
+
|
|
10
|
+
Compatibility-only patch for DSH `0.2.1-rc.3` and `0.2.1-rc.4`. `0.1.0-rc.3` declared exactly five DSH versions
|
|
11
|
+
and correctly rejected installation on DSH `0.2.1-rc.3`; the plugin API itself required no change.
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- `engines.dsh` and every DSH peer range now list the seven verified versions: `0.1.7-rc.2`, `0.2.0-rc.1`,
|
|
16
|
+
`0.2.0-rc.2`, `0.2.1-rc.1`, `0.2.1-rc.2`, `0.2.1-rc.3`, `0.2.1-rc.4`.
|
|
17
|
+
- DSH `0.2.1-rc.4` becomes the primary development baseline; `0.2.1-rc.3` is verified by the same full matrix.
|
|
18
|
+
- No record schema, domain, Remote, or client behavior changes; rc.3 records upgrade without migration.
|
|
19
|
+
|
|
20
|
+
### Verification
|
|
21
|
+
|
|
22
|
+
- Full typecheck, build, client/remote smoke, and 25 files / 331 tests pass on `0.2.1-rc.3` and `0.2.1-rc.4`.
|
|
23
|
+
- The seven-version matrix passes 331/331 on every declared version.
|
|
24
|
+
- Normal, exact-artifact, and packed recovery smokes pass on the final tarball; public CI passes on Node 22.19.0/24.
|
|
25
|
+
|
|
26
|
+
## 0.1.0-rc.3 — 2026-10-26
|
|
27
|
+
|
|
28
|
+
Authority-preserving recovery release. The Charter record is now opened through one structured state machine, an
|
|
29
|
+
absent record on a restored Session is never auto-replaced, and owners can export a complete archive and restore it
|
|
30
|
+
to the same Session lifecycle.
|
|
31
|
+
|
|
32
|
+
### Added
|
|
33
|
+
|
|
34
|
+
- Source-aware initialization: `startup` may create a root or fork record; `resume`, `clear`, `compact`, `reattach`,
|
|
35
|
+
and unknown sources stop at `absent-unconfirmed` without writing. `session/created` records intent only;
|
|
36
|
+
`agent/created` is authoritative; inferred/authoritative startup intents are coalesced; `edit` no longer creates a
|
|
37
|
+
record implicitly and returns `INITIALIZATION_REQUIRED`.
|
|
38
|
+
- Structured `CharterRecordState` on the Host view and Remote wire (`healthy`, `absent-unconfirmed`, `invalid`,
|
|
39
|
+
`lifecycle-mismatch`, `unknown`, `write-uncertain`) plus `capabilities.recordMaintenance`, `maxRecoveryBytes`, and
|
|
40
|
+
`maintenanceLimit`; `recordState` is Host-derived and never persisted. Central inspection covers schema,
|
|
41
|
+
consistency, and lifecycle with a loose-identity recoverable flag.
|
|
42
|
+
- Complete-record export and controlled restore: owner-only `exportRecord`, `initializeRecord`, and `restoreRecord`
|
|
43
|
+
Remote methods (six methods total) with Session resources, strict codecs, and an outer restore contract that checks
|
|
44
|
+
only small fields before capability/owner/storage access. Archives carry identity, current snapshot, bounded
|
|
45
|
+
history, mutation receipts, and a payload digest; restore requires the same Session and lifecycle, revalidates
|
|
46
|
+
everything, refuses healthy targets, and preserves archived current/history/mutations while appending only a
|
|
47
|
+
maintenance receipt.
|
|
48
|
+
- Bounded `recentMaintenance` receipts (default 16) inside `recordSchemaVersion: 1` records, enabling exact replay of
|
|
49
|
+
initialize/restore after a lost response (including restore followed by an ordinary edit) and `OPERATION_ID_REUSED`
|
|
50
|
+
for one operation id with different content.
|
|
51
|
+
- Write-uncertain fencing: a storage rejection after a possibly durable write publishes no proposed content, stops
|
|
52
|
+
prompt injection and `charter_read`, rejects edit/initialize/restore/export, emits one structured watch demotion,
|
|
53
|
+
never overwrites the key again in the same Host lifetime, and converges from the medium after restart. Known
|
|
54
|
+
pre-flight `DomainError`s (`missing-key`/`closed`) remain definite outcomes and do not fence.
|
|
55
|
+
- Per-Session mutation queue for startup initialization, explicit initialization, ordinary edit, and restore, with a
|
|
56
|
+
re-read/CAS at every queue slot.
|
|
57
|
+
- Storage & recovery Pane section after Context: record health/revision/lifecycle/digest/over-budget, sensitive
|
|
58
|
+
complete-record export download, archive file selection + preview, two-step confirmation for explicit empty
|
|
59
|
+
initialization and restore, absent-unconfirmed guidance (including "missing or unreadable; cannot distinguish"
|
|
60
|
+
and stop-the-Host backup advice), write-uncertain restart copy, and capability/record-limit copy. English and
|
|
61
|
+
Chinese copy, light/dark and narrow layouts, keyboard/focus styles.
|
|
62
|
+
- Verification: scripted storage fault matrix (open/load/put/update controls incl. reject, defer,
|
|
63
|
+
commit-then-reject), real-JSON Host recovery scenarios, and a final-artifact recovery smoke
|
|
64
|
+
(`scripts/verify/recovery-smoke.mjs`) that runs against the packed tarball: export → remove → restore → two
|
|
65
|
+
restarts with record/state/prompt/tool-projection comparison → healthy-target refusal → packed fault subset; the
|
|
66
|
+
complete source fault matrix is covered by Host tests.
|
|
67
|
+
|
|
68
|
+
### Changed
|
|
69
|
+
|
|
70
|
+
- New deterministic business codes: `INITIALIZATION_REQUIRED`, `INVALID_ARCHIVE`, `RECORD_CONFLICT`,
|
|
71
|
+
`OPERATION_ID_REUSED`, `RECOVERY_UNSUPPORTED`.
|
|
72
|
+
- Remote namespace expanded from three to six methods; old Host frames default `recordState` to
|
|
73
|
+
`unknown/legacy-host` and `capabilities.recordMaintenance` to false. Same-revision record-state/digest/capability
|
|
74
|
+
changes now emit changed frames and survive watch/client dedupe.
|
|
75
|
+
- Client attempt state now covers initialize/restore with exact operation id/lifecycle/target digest/archive
|
|
76
|
+
retention, shared replay/abandon rules, and stable RemoteError classification (documented pre-dispatch failures are
|
|
77
|
+
definite, all possibly-executed failures retain the request; no message/`instanceof` matching).
|
|
78
|
+
|
|
79
|
+
### Fixed (audit follow-up)
|
|
80
|
+
|
|
81
|
+
- Removed the read-triggered lazy startup path entirely: a view/watch read in the `session/created → agent/created`
|
|
82
|
+
gap never infers `startup`, writes nothing, and classifies absence as `absent-unconfirmed`; only the authoritative
|
|
83
|
+
`agent/created(startup)` creates a record. Probe tests cover a gap view over absence, malformed/version-rejected
|
|
84
|
+
bytes (byte-identical), and a missing fork child (not re-forked).
|
|
85
|
+
- Restore now refuses ambiguous maintenance evidence: an archive whose own record already contains the request
|
|
86
|
+
operation id, while the target has no matching replay receipt, returns `OPERATION_ID_REUSED` without writing; both
|
|
87
|
+
initialize and restore assert record consistency immediately before the durable put.
|
|
88
|
+
- `maintenanceLimit: 1` no longer keeps the whole receipt array (`slice(-(limit-1))` bug); exactly the current receipt
|
|
89
|
+
survives, with a test.
|
|
90
|
+
- Shutdown closes admission, drains initialization and per-Session mutation queues, then closes the medium; startup
|
|
91
|
+
puts run inside the per-Session queue with a fresh re-read/CAS so they cannot overwrite a concurrent
|
|
92
|
+
initialize/restore.
|
|
93
|
+
- Maintenance replay reports the receipt's original result revision (not the current revision after a later edit);
|
|
94
|
+
the view remains the current authority.
|
|
95
|
+
- Client archive preview verifies the payload and record digests with WebCrypto, shows export time/source Session,
|
|
96
|
+
includes the envelope in the size check, and requires a healthy, integrity-checked archive before restore is
|
|
97
|
+
offered; export/initialize/restore use the shared admission predicate with localized disabled reasons; destructive
|
|
98
|
+
confirmations reset on section/target/archive/lifecycle changes and provide Cancel; in-flight and unknown-outcome
|
|
99
|
+
states have separate live-region semantics; export failures are localized by deterministic code; the dark-mode
|
|
100
|
+
`prefers-color-scheme` file-input override was removed in favor of DSH tokens; lifecycle display no longer exposes
|
|
101
|
+
the raw cwd JSON.
|
|
102
|
+
|
|
103
|
+
### Fixed (post-review races)
|
|
104
|
+
|
|
105
|
+
- Queued `initializeRecord`/`restoreRecord` re-confirm the live Session object and lifecycle and re-check the
|
|
106
|
+
write-uncertain fence before any target read; a replaced Session returns `LIFECYCLE_MISMATCH` without writing.
|
|
107
|
+
- A lifecycle change during an in-flight maintenance request converts the attempt to `unknown` and clears
|
|
108
|
+
`maintenanceSaving`, so Retry/Abandon remain reachable.
|
|
109
|
+
- A failed maintenance result's authoritative view is accepted before classification, exposing write-uncertain
|
|
110
|
+
immediately instead of the pre-write state.
|
|
111
|
+
- Archive selection and record export use request generations; a slower earlier file/export cannot overwrite a newer
|
|
112
|
+
selection or complete against a different Session/lifecycle.
|
|
113
|
+
- Complete restore requests and exported/re-restored archive envelopes are checked against `maxRecoveryBytes`;
|
|
114
|
+
`exportedAt` is bounded to the JavaScript Date range and UI previews use safe formatting.
|
|
115
|
+
|
|
116
|
+
### Security
|
|
117
|
+
|
|
118
|
+
- Maintenance is owner-only and requires DSH 0.2.1+ principal/resource enforcement; on 0.1.7/0.2.0 the Host fails
|
|
119
|
+
closed with `RECOVERY_UNSUPPORTED` before deep archive parsing or storage access. Archives contain user text and
|
|
120
|
+
are labeled sensitive; payload digests detect accidental corruption, not malicious provenance.
|
|
121
|
+
|
|
122
|
+
### Known limitations
|
|
123
|
+
|
|
124
|
+
- **rc.2 downgrade:** rc.2 uses a strict record schema without `recentMaintenance`. Once rc.3 writes a maintenance
|
|
125
|
+
receipt for a Session, rc.2 isolates that Session as schema-invalid (no injection/editing) while preserving the raw
|
|
126
|
+
record; upgrading back to rc.3 restores access. Records without maintenance operations stay readable by rc.2. This
|
|
127
|
+
is forward-readable upgrade compatibility, not rc.2 rollback compatibility.
|
|
128
|
+
- The storage API still cannot distinguish a missing record from an unreadable outer document; the UI/Plugin reports
|
|
129
|
+
"missing or unreadable; cannot distinguish", never claims corruption was identified. Stop the Host and back up or
|
|
130
|
+
repair the storage file if forensic bytes are needed.
|
|
131
|
+
- `maxRecoveryBytes` defaults to 4 MiB (at least `maxRecordBytes + 64 KiB`, 16 MiB hard ceiling). A profile whose
|
|
132
|
+
record budget leaves no room disables maintenance (`recordMaintenance:false`, reason `record-limit`) and requires
|
|
133
|
+
offline backup after stopping the Host; the existing record limit is never silently lowered.
|
|
134
|
+
- Bounded maintenance receipts: replay is guaranteed only while the receipt remains in the window.
|
|
135
|
+
- No cross-Session/cross-lifecycle import, healthy-record overwrite, or force option. No v2 domain or migration.
|
|
136
|
+
|
|
137
|
+
### Tests
|
|
138
|
+
|
|
139
|
+
- 25 test files / 330 tests (`npm test`), including the new core archive/maintenance suite, Host recovery/fault
|
|
140
|
+
scenarios, Remote six-method contract, client attempt/classification tests, and real `react-test-renderer`
|
|
141
|
+
recovery UI tests; plus the packed-artifact recovery smoke and the five-version matrix.
|
|
142
|
+
|
|
8
143
|
## 0.1.0-rc.2 — 2026-10-24
|
|
9
144
|
|
|
10
145
|
Small patch candidate: a Pane hook-order crash fix, a security upgrade, and release-channel/doc corrections.
|
package/CHANGELOG.zh.md
CHANGED
|
@@ -4,6 +4,120 @@
|
|
|
4
4
|
|
|
5
5
|
记录 `dsh-charter` 的重要变更。DSH 插件 ABI 仍在演进,项目保持 pre-1.0 版本线。
|
|
6
6
|
|
|
7
|
+
## 0.1.0-rc.4 — 2026-10-27
|
|
8
|
+
|
|
9
|
+
针对 DSH `0.2.1-rc.3` 与 `0.2.1-rc.4` 的兼容性补丁。`0.1.0-rc.3` 只声明五个 DSH 精确版本,因此在 DSH
|
|
10
|
+
`0.2.1-rc.3` 上正确拒绝安装;插件 API 本身无需修改。
|
|
11
|
+
|
|
12
|
+
### 变更
|
|
13
|
+
|
|
14
|
+
- `engines.dsh` 与所有 DSH peer ranges 现在列出七个已验证版本:`0.1.7-rc.2`、`0.2.0-rc.1`、`0.2.0-rc.2`、
|
|
15
|
+
`0.2.1-rc.1`、`0.2.1-rc.2`、`0.2.1-rc.3`、`0.2.1-rc.4`。
|
|
16
|
+
- DSH `0.2.1-rc.4` 成为主开发基线;`0.2.1-rc.3` 由同一套完整矩阵验证。
|
|
17
|
+
- 不改变 record schema、domain、Remote 或 client 行为;rc.3 记录无需迁移即可读取。
|
|
18
|
+
|
|
19
|
+
### 验证
|
|
20
|
+
|
|
21
|
+
- `0.2.1-rc.3` 与 `0.2.1-rc.4` 上 typecheck、build、client/remote smoke 与 25 个测试文件 / 331 个测试全部通过。
|
|
22
|
+
- 七版本矩阵每个声明版本均为 331/331。
|
|
23
|
+
- 最终 tarball 的 normal、exact-artifact 与 packed recovery smoke 通过;公开 CI 在 Node 22.19.0/24 通过。
|
|
24
|
+
|
|
25
|
+
## 0.1.0-rc.3 — 2026-10-26
|
|
26
|
+
|
|
27
|
+
保留权威记录的恢复版本。会话契约记录现在通过统一的结构化状态机打开;恢复的 Session 缺失记录时不再自动重建;
|
|
28
|
+
owner 可以导出完整归档并将其恢复到同一 Session lifecycle。
|
|
29
|
+
|
|
30
|
+
### 新增
|
|
31
|
+
|
|
32
|
+
- 来源感知初始化:`startup` 可创建 root/fork 记录;`resume`、`clear`、`compact`、`reattach` 与未知来源停在
|
|
33
|
+
`absent-unconfirmed` 且不写入。`session/created` 只记录意图,`agent/created` 才是权威来源;推断/权威启动意图
|
|
34
|
+
会被合并;`edit` 不再隐式创建记录并返回 `INITIALIZATION_REQUIRED`。
|
|
35
|
+
- Host view 与 Remote wire 上的结构化 `CharterRecordState`(`healthy`、`absent-unconfirmed`、`invalid`、
|
|
36
|
+
`lifecycle-mismatch`、`unknown`、`write-uncertain`),以及 `capabilities.recordMaintenance`、
|
|
37
|
+
`maxRecoveryBytes`、`maintenanceLimit`;`recordState` 由 Host 推导、绝不持久化。集中检查覆盖 schema、一致性、
|
|
38
|
+
lifecycle,并为 schema 不合法记录提供 loose identity 的 recoverable 判定。
|
|
39
|
+
- 完整记录导出与受控恢复:新增 owner-only 的 `exportRecord`、`initializeRecord`、`restoreRecord`
|
|
40
|
+
(共六个 Remote 方法),带 Session 资源与严格 codec;restore 外层契约只校验小字段,能力/owner/存储检查在深层
|
|
41
|
+
归档解析之前。归档包含 identity、当前快照、有界历史、mutation 回执与 payload digest;restore 要求同一
|
|
42
|
+
Session/lifecycle、重做全部校验、拒绝健康目标、保留归档的 current/history/mutations 且只追加 maintenance 回执。
|
|
43
|
+
- 记录(`recordSchemaVersion: 1`)内新增有界 `recentMaintenance` 回执(默认 16),支持 initialize/restore 在响应
|
|
44
|
+
丢失后的精确 replay(包括 restore 之后又发生普通 edit),同一 operation id 不同内容返回
|
|
45
|
+
`OPERATION_ID_REUSED`。
|
|
46
|
+
- 写结果不确定围栏:可能已落盘的存储拒绝不会发布提议内容,停止 prompt 注入与 `charter_read`,拒绝
|
|
47
|
+
edit/initialize/restore/export,只发一次结构化 watch 降级,同一 Host 生命周期内不再覆盖该键,重启后从介质收敛。
|
|
48
|
+
已知的 pre-flight `DomainError`(`missing-key`/`closed`)仍是确定结果,不触发围栏。
|
|
49
|
+
- 每 Session 的 mutation 队列串行 startup 初始化、显式初始化、普通 edit 与 restore,每个队列槽都重新读取并做
|
|
50
|
+
CAS。
|
|
51
|
+
- Context 之后的“存储与恢复”Pane 区:记录健康/revision/lifecycle/digest/超预算、敏感完整记录导出下载、归档选择与
|
|
52
|
+
预览、显式空初始化与恢复的两步确认、absent-unconfirmed 指引(含“缺失或不可读、无法区分”与停止 Host 备份
|
|
53
|
+
建议)、write-uncertain 重启说明、能力/record-limit 说明;中英文案、明暗与窄屏布局、键盘/focus 样式。
|
|
54
|
+
- 验证:脚本化存储故障矩阵(open/load/put/update 的 reject/defer/commit-then-reject)、真实 JSON Host 恢复场景,
|
|
55
|
+
以及针对打包 tarball 的 final-artifact recovery smoke(`scripts/verify/recovery-smoke.mjs`):export → 删除 →
|
|
56
|
+
restore → 两次重启比较 record/state/prompt/tool 投影 → 健康目标拒绝覆盖 → 存储故障矩阵。
|
|
57
|
+
|
|
58
|
+
### 变更
|
|
59
|
+
|
|
60
|
+
- 新增确定性业务码:`INITIALIZATION_REQUIRED`、`INVALID_ARCHIVE`、`RECORD_CONFLICT`、
|
|
61
|
+
`OPERATION_ID_REUSED`、`RECOVERY_UNSUPPORTED`。
|
|
62
|
+
- Remote namespace 从 3 个方法扩展到 6 个;旧 Host frame 将 `recordState` 默认为 `unknown/legacy-host`、
|
|
63
|
+
`capabilities.recordMaintenance` 默认为 false。同 revision 的 record-state/digest/capability 变化现在会发出
|
|
64
|
+
changed frame 并通过 watch/client 去重。
|
|
65
|
+
- 客户端 attempt 状态扩展 initialize/restore:精确保留 operation id/lifecycle/target digest/archive,共享
|
|
66
|
+
replay/abandon 规则,并用稳定 RemoteError 分类(文档化的 pre-dispatch 失败为确定结果;所有可能已执行的失败保留
|
|
67
|
+
请求;不做 message/`instanceof` 匹配)。
|
|
68
|
+
|
|
69
|
+
### 修复(审计跟进)
|
|
70
|
+
|
|
71
|
+
- 彻底移除读触发的 lazy startup 路径:`session/created → agent/created` 间隔内的 view/watch 读取不再推断
|
|
72
|
+
`startup`、不写入,缺失一律归类为 `absent-unconfirmed`;只有权威 `agent/created(startup)` 才创建记录。探针测试覆盖
|
|
73
|
+
该间隔内缺失、malformed/version-rejected 字节(逐字节不变)、缺失 fork 子记录(不重新 fork)。
|
|
74
|
+
- restore 拒绝模糊 maintenance 证据:若归档自身记录已含请求 operation id,而目标没有匹配的 replay 回执,返回
|
|
75
|
+
`OPERATION_ID_REUSED` 且不写入;initialize 与 restore 在持久化 put 前都会断言记录一致性。
|
|
76
|
+
- 修复 `maintenanceLimit: 1` 时保留整个回执数组的 bug(`slice(-(limit-1))`):只保留当前回执,并加测试。
|
|
77
|
+
- 关闭流程先关闭准入、排水初始化与每 Session mutation 队列,再关闭存储介质;startup put 在每 Session 队列内执行并
|
|
78
|
+
重新读取/CAS,不会覆盖并发的 initialize/restore。
|
|
79
|
+
- maintenance replay 返回回执原始 result revision(而非后续 edit 后的当前 revision);view 仍是当前权威。
|
|
80
|
+
- 客户端归档预览用 WebCrypto 校验 payload/record digest,显示导出时间/来源 Session,大小检查覆盖完整 envelope,
|
|
81
|
+
仅对健康且完整性校验通过的归档开放 restore;导出/初始化/恢复使用共享 admission 谓词并显示本地化禁用原因;
|
|
82
|
+
破坏性确认在 section/target/archive/lifecycle 变化时重置并提供取消;in-flight 与 unknown 状态分离 live-region
|
|
83
|
+
语义;导出失败按确定性 code 本地化;移除 `prefers-color-scheme` 的文件输入覆盖,改用 DSH token;lifecycle
|
|
84
|
+
展示不再暴露原始 cwd JSON。
|
|
85
|
+
|
|
86
|
+
### 修复(复审竞态)
|
|
87
|
+
|
|
88
|
+
- 排队的 `initializeRecord`/`restoreRecord` 在读取目标前重新确认 live Session 对象/lifecycle,并重新检查
|
|
89
|
+
write-uncertain fence;Session 已被替换时返回 `LIFECYCLE_MISMATCH` 且不写入。
|
|
90
|
+
- maintenance 请求执行期间 lifecycle 变化时,attempt 转为 `unknown` 并清除 `maintenanceSaving`,Retry/Abandon 不会
|
|
91
|
+
永久不可用。
|
|
92
|
+
- maintenance 失败结果携带的权威 view 会在结果分类前被接受,write-uncertain 立即显示而不是旧状态。
|
|
93
|
+
- archive 选择与记录导出加入请求 generation;较慢的旧文件/旧导出不会覆盖新选择,也不会跨 Session/lifecycle 完成。
|
|
94
|
+
- 完整 restore request 与导出/恢复后的 archive envelope 都检查 `maxRecoveryBytes`;`exportedAt` 限制在 JavaScript
|
|
95
|
+
Date 可表示范围内,UI 预览使用安全格式化。
|
|
96
|
+
|
|
97
|
+
### 安全
|
|
98
|
+
|
|
99
|
+
- 维护操作 owner-only,且要求 DSH 0.2.1+ 的 principal/资源约束;0.1.7/0.2.0 上 Host 在深层归档解析或存储访问前以
|
|
100
|
+
`RECOVERY_UNSUPPORTED` fail closed。归档包含用户文本并标注敏感;payload digest 检测意外损坏,不证明恶意来源。
|
|
101
|
+
|
|
102
|
+
### 已知限制
|
|
103
|
+
|
|
104
|
+
- **rc.2 降级:**rc.2 使用不含 `recentMaintenance` 的严格记录 schema。rc.3 为某 Session 写入 maintenance 回执后,
|
|
105
|
+
rc.2 会把该 Session 隔离为 schema-invalid(不注入/不可编辑)但保留原始记录;重新升级到 rc.3 后恢复访问。没有
|
|
106
|
+
maintenance 操作的记录仍可被 rc.2 读取。这是前向可读的升级兼容,不是 rc.2 回滚兼容。
|
|
107
|
+
- 存储 API 仍无法区分记录缺失与不可读的外层文档;UI/插件只报告“缺失或不可读,无法区分”,绝不声称识别了损坏。
|
|
108
|
+
如需取证字节,请停止 Host 并备份/修复存储文件。
|
|
109
|
+
- `maxRecoveryBytes` 默认 4 MiB(至少 `maxRecordBytes + 64 KiB`,硬上限 16 MiB)。记录预算无空间的 profile 会关闭
|
|
110
|
+
maintenance(`recordMaintenance:false`,reason `record-limit`),需要停止 Host 后离线备份;既有记录上限不会被
|
|
111
|
+
静默降低。
|
|
112
|
+
- 有界 maintenance 回执:仅当回执仍在窗口内时保证 replay。
|
|
113
|
+
- 不支持跨 Session/lifecycle 导入、覆盖健康记录或 force 选项;不引入 v2 domain 或迁移。
|
|
114
|
+
|
|
115
|
+
### 测试
|
|
116
|
+
|
|
117
|
+
- 25 个测试文件 / 330 个测试(`npm test`),含新的 core archive/maintenance 套件、Host 恢复/故障场景、Remote
|
|
118
|
+
六方法契约、客户端 attempt/分类测试与真实 `react-test-renderer` 恢复 UI 测试;另有打包产物 recovery smoke 与
|
|
119
|
+
五版本矩阵。
|
|
120
|
+
|
|
7
121
|
## 0.1.0-rc.2 — 2026-10-24
|
|
8
122
|
|
|
9
123
|
小型补丁候选:Pane hook 顺序崩溃修复、安全升级与发布渠道/文档修正。
|
package/README.md
CHANGED
|
@@ -108,15 +108,32 @@ The browser registers a `conversation.view` entry; the pane and `charter.watch`
|
|
|
108
108
|
|
|
109
109
|
## Install
|
|
110
110
|
|
|
111
|
-
`dsh-charter@0.1.0-rc.
|
|
111
|
+
`dsh-charter@0.1.0-rc.4` is the current npm pre-release. Our channel policy is to publish it under `next` and to
|
|
112
112
|
point `latest` at the newest RC until a stable release exists (npm keeps a `latest` tag and we choose where it
|
|
113
113
|
points; this is our policy, not an npm requirement). Pin the exact version for reproducible profiles, and use
|
|
114
114
|
`@next` to track the newest pre-release.
|
|
115
115
|
|
|
116
|
+
### Recovery and record health (0.1.0-rc.3+)
|
|
117
|
+
|
|
118
|
+
The rc.3 release adds authority-preserving recovery. The Pane shows a structured record state (healthy,
|
|
119
|
+
absent-unconfirmed, invalid, lifecycle mismatch, unknown, or write-uncertain). Owners on DSH `0.2.1+` can export the
|
|
120
|
+
complete record and restore a validated archive to the **same Session lifecycle** through the **Storage & recovery**
|
|
121
|
+
section; a healthy record can never be overwritten and cross-Session/lifecycle import is unsupported. When a restored
|
|
122
|
+
Session has no readable record the plugin reports "missing or unreadable; cannot be distinguished automatically" and
|
|
123
|
+
does not create an empty record or re-fork from the parent; an explicit, twice-confirmed empty initialization is
|
|
124
|
+
available. A rejected storage write fences that Session as write-uncertain (no injection/read/write) until a Host
|
|
125
|
+
restart.
|
|
126
|
+
|
|
127
|
+
Maintenance is owner-only, requires DSH `0.2.1+` principal/resource enforcement, and fails closed with
|
|
128
|
+
`RECOVERY_UNSUPPORTED` on `0.1.7`/`0.2.0`. `maxRecoveryBytes` defaults to 4 MiB (at least the record budget + 64 KiB,
|
|
129
|
+
16 MiB hard ceiling); if the record budget leaves no room, maintenance is disabled with reason `record-limit` and an
|
|
130
|
+
offline backup after stopping the Host is required. Archives contain user text and are sensitive. Records written with
|
|
131
|
+
a maintenance receipt are isolated (preserved, not injected/edited) by rc.2; upgrading back to rc.3 restores access.
|
|
132
|
+
|
|
116
133
|
### Requirements
|
|
117
134
|
|
|
118
135
|
- DSH: only the versions listed in the [compatibility matrix](docs/design/compatibility.md) are supported
|
|
119
|
-
(`0.1.7-rc.2`, `0.2.0-rc.1`/`rc.2`, `0.2.1-rc.1`/`rc.2`). Newer stable/RC versions are not claimed until the
|
|
136
|
+
(`0.1.7-rc.2`, `0.2.0-rc.1`/`rc.2`, `0.2.1-rc.1`/`rc.2`/`rc.3`/`rc.4`). Newer stable/RC versions are not claimed until the
|
|
120
137
|
matrix is extended; `0.2.1+` is required for per-Peer Remote resource authorization.
|
|
121
138
|
- Node.js **`^22.19.0 || >=24.0.0`**.
|
|
122
139
|
- A Web or Desktop profile.
|
|
@@ -126,7 +143,7 @@ points; this is our policy, not an npm requirement). Pin the exact version for r
|
|
|
126
143
|
#### Web profile — install by version or pre-release tag
|
|
127
144
|
|
|
128
145
|
```bash
|
|
129
|
-
dsh plugin --profile web add dsh-charter@0.1.0-rc.
|
|
146
|
+
dsh plugin --profile web add dsh-charter@0.1.0-rc.4 # exact version: reproducible
|
|
130
147
|
dsh plugin --profile web add dsh-charter@next # newest pre-release
|
|
131
148
|
```
|
|
132
149
|
|
|
@@ -152,12 +169,12 @@ release artifact. The GitHub Release ships the same tarball and `SHA256SUMS` use
|
|
|
152
169
|
# From a checkout:
|
|
153
170
|
npm install
|
|
154
171
|
npm run build
|
|
155
|
-
npm pack # dsh-charter-0.1.0-rc.
|
|
156
|
-
dsh plugin --profile web add ./dsh-charter-0.1.0-rc.
|
|
172
|
+
npm pack # dsh-charter-0.1.0-rc.4.tgz
|
|
173
|
+
dsh plugin --profile web add ./dsh-charter-0.1.0-rc.4.tgz
|
|
157
174
|
|
|
158
175
|
# Or download the GitHub Release tarball + SHA256SUMS and verify:
|
|
159
176
|
shasum -a 256 -c SHA256SUMS
|
|
160
|
-
dsh plugin --profile web add ./dsh-charter-0.1.0-rc.
|
|
177
|
+
dsh plugin --profile web add ./dsh-charter-0.1.0-rc.4.tgz
|
|
161
178
|
```
|
|
162
179
|
|
|
163
180
|
`dsh plugin --profile desktop` is intentionally refused by the Electron app that owns that profile; use the
|
|
@@ -167,7 +184,7 @@ Desktop Plugins page or that profile's package manager. Source-level development
|
|
|
167
184
|
### Update
|
|
168
185
|
|
|
169
186
|
- **Web (npm):** `dsh plugin --profile web add dsh-charter@next`, then restart/refresh. Pinned profiles keep
|
|
170
|
-
their explicit `0.1.0-rc.
|
|
187
|
+
their explicit `0.1.0-rc.4` entry.
|
|
171
188
|
- **Local tarball:** rebuild/download the new tarball and repeat the local install command.
|
|
172
189
|
- **Desktop:** Plugins → `dsh-charter` → **Update**; Desktop hot-applies it.
|
|
173
190
|
|
|
@@ -243,6 +260,8 @@ Defaults live in `cordis.patch.yml`. Override them in the profile patch:
|
|
|
243
260
|
| `historyLimit` | 64 | recent history receipts |
|
|
244
261
|
| `maxHistoryBytes` | 131072 | recent history bytes |
|
|
245
262
|
| `mutationLimit` | 128 | recent mutation receipts |
|
|
263
|
+
| `maintenanceLimit` | 16 | recent initialize/restore receipts (min 1) |
|
|
264
|
+
| `maxRecoveryBytes` | 4194304 | complete recovery-archive budget (≥ record budget + 64 KiB, 16 MiB ceiling) |
|
|
246
265
|
| `contextOrder` | 130 | runtime-context order; after sandbox/approval/subagent by default |
|
|
247
266
|
|
|
248
267
|
The only model-visible capacity is `maxPromptBytes`; active invariants and deliverables are not capped
|
|
@@ -256,7 +275,7 @@ truncated, or silently dropped.
|
|
|
256
275
|
| --- | --- |
|
|
257
276
|
| `0.1.7-rc.2` | Supported (minimum) |
|
|
258
277
|
| `0.2.0-rc.1` / `0.2.0-rc.2` | Supported |
|
|
259
|
-
| `0.2.1-rc.1` / `0.2.1-rc.2` | Supported (primary baseline) |
|
|
278
|
+
| `0.2.1-rc.1` / `0.2.1-rc.2` / `0.2.1-rc.3` / `0.2.1-rc.4` | Supported (primary baseline: `0.2.1-rc.4`) |
|
|
260
279
|
| `0.1.5-rc.1` and earlier | Not supported |
|
|
261
280
|
| `0.2.2-rc.x`, `0.3.x` | Not declared until verified |
|
|
262
281
|
|
|
@@ -292,7 +311,7 @@ npm run verify:compaction # manual real-model compaction check (not part of chec
|
|
|
292
311
|
```
|
|
293
312
|
|
|
294
313
|
The test suite covers the pure core, real Host composition, storage-domain behavior, Remote framing,
|
|
295
|
-
history extraction, client state, and factory-bundle registration. Current matrix: **
|
|
314
|
+
history extraction, client state, and factory-bundle registration. Current matrix: **331 tests on DSH `0.1.7-rc.2`, `0.2.0-rc.1`/`rc.2`, and `0.2.1-rc.1`/`rc.2`/`rc.3`/`rc.4`**. See the [verification record](docs/verification.md) for commands and evidence.
|
|
296
315
|
|
|
297
316
|
## Acknowledgements
|
|
298
317
|
|
|
@@ -310,6 +329,7 @@ Their ideas informed the design review; no source code is copied, and these proj
|
|
|
310
329
|
|
|
311
330
|
- [Design specification](docs/design/charter-design.md)
|
|
312
331
|
- [Design review](docs/design/charter-design-review.md)
|
|
332
|
+
- [0.1.0-rc.3 upgrade plan](docs/design/rc3-recovery-plan.md)
|
|
313
333
|
- [Compatibility matrix](docs/design/compatibility.md)
|
|
314
334
|
- [User and operator guide](docs/user-guide.md)
|
|
315
335
|
- [Verification record](docs/verification.md)
|
|
@@ -327,7 +347,7 @@ security reports, follow [SECURITY.md](SECURITY.md).
|
|
|
327
347
|
## Status
|
|
328
348
|
|
|
329
349
|
Pre-1.0. The DSH plugin ABI is still moving; compatibility is tested against the versions above, and the design
|
|
330
|
-
keeps the compatibility layer deliberately small. The public repository is [centella-cream/dsh-charter](https://github.com/centella-cream/dsh-charter). This tree is the `0.1.0-rc.
|
|
350
|
+
keeps the compatibility layer deliberately small. The public repository is [centella-cream/dsh-charter](https://github.com/centella-cream/dsh-charter). This tree is the `0.1.0-rc.4` pre-release: the real-model
|
|
331
351
|
compaction acceptance **PASS is recorded on 2026-10-22** on an anonymized evaluation Session (326 messages /
|
|
332
352
|
~228k tokens shadowed, revision-1 charter survived with matching digest — see verification §8.4). The rc.2 candidate
|
|
333
353
|
is verified locally and is intended for the npm registry under the `next` dist-tag; under our channel policy
|
package/README.zh.md
CHANGED
|
@@ -99,16 +99,30 @@ Host 在 `session/created` 时初始化记录,并在首次 prompt 前的 `agen
|
|
|
99
99
|
|
|
100
100
|
## 安装
|
|
101
101
|
|
|
102
|
-
`dsh-charter@0.1.0-rc.
|
|
102
|
+
`dsh-charter@0.1.0-rc.4` 是当前 npm 预发布版本。当前渠道策略是发布到 `next`,并在稳定版出现前让 `latest` 也指向
|
|
103
103
|
最新 RC(npm 会保留 `latest` tag,由我们决定其指向;这是我们的策略,不是 npm 的强制要求)。需要可复现 profile
|
|
104
104
|
时固定精确版本。
|
|
105
105
|
npm 目前也会把这个首个 RC 暴露在 `latest` 下,因为 npm 会给新包的首次发布自动设置 `latest`——稳定版发布后
|
|
106
106
|
会替换它。不要依赖 `@latest` 安装预发布版。
|
|
107
107
|
|
|
108
|
+
### 恢复与记录健康(0.1.0-rc.3+)
|
|
109
|
+
|
|
110
|
+
rc.3 增加保留权威记录的恢复能力。Pane 会显示结构化的记录状态(healthy、absent-unconfirmed、invalid、
|
|
111
|
+
lifecycle mismatch、unknown、write-uncertain)。DSH `0.2.1+` 上的 owner 可在 **存储与恢复** 区导出完整记录,
|
|
112
|
+
并把校验通过的归档恢复到 **同一 Session lifecycle**;健康记录不能被覆盖,也不支持跨 Session/lifecycle 导入。
|
|
113
|
+
恢复的 Session 没有可读记录时,插件报告“缺失或不可读,无法自动区分”,不会自动创建空记录或从父会话重新 fork;
|
|
114
|
+
用户可执行需两次确认的显式空初始化。存储写入被拒绝时,该 Session 被围栏为 write-uncertain(不注入/不读写),
|
|
115
|
+
直到 Host 重启。
|
|
116
|
+
|
|
117
|
+
维护操作 owner-only,要求 DSH `0.2.1+` 的 principal/资源约束;`0.1.7`/`0.2.0` 上以 `RECOVERY_UNSUPPORTED`
|
|
118
|
+
fail closed。`maxRecoveryBytes` 默认 4 MiB(至少为记录预算 + 64 KiB,硬上限 16 MiB);若记录预算无空间,维护被禁用
|
|
119
|
+
(reason `record-limit`),需停止 Host 后离线备份。归档包含用户文本,属敏感数据。写入 maintenance 回执的记录会被
|
|
120
|
+
rc.2 隔离(保留但不注入/编辑);重新升级到 rc.3 后恢复访问。
|
|
121
|
+
|
|
108
122
|
### 环境要求
|
|
109
123
|
|
|
110
124
|
- DSH:只支持[兼容矩阵](docs/design/compatibility.zh.md)中列出的版本(`0.1.7-rc.2`、`0.2.0-rc.1`/`rc.2`、
|
|
111
|
-
`0.2.1-rc.1`/`rc.2`)。在扩展矩阵前不声明支持更新的 stable/RC 版本;per-Peer Remote 资源授权需要 `0.2.1+`。
|
|
125
|
+
`0.2.1-rc.1`/`rc.2`/`rc.3`/`rc.4`)。在扩展矩阵前不声明支持更新的 stable/RC 版本;per-Peer Remote 资源授权需要 `0.2.1+`。
|
|
112
126
|
- Node.js **`^22.19.0 || >=24.0.0`**。
|
|
113
127
|
- Web 或 Desktop profile。
|
|
114
128
|
|
|
@@ -117,7 +131,7 @@ npm 目前也会把这个首个 RC 暴露在 `latest` 下,因为 npm 会给新
|
|
|
117
131
|
#### Web profile — 按版本或预发布 tag 安装
|
|
118
132
|
|
|
119
133
|
```bash
|
|
120
|
-
dsh plugin --profile web add dsh-charter@0.1.0-rc.
|
|
134
|
+
dsh plugin --profile web add dsh-charter@0.1.0-rc.4 # 精确版本:可复现
|
|
121
135
|
dsh plugin --profile web add dsh-charter@next # 最新预发布
|
|
122
136
|
```
|
|
123
137
|
|
|
@@ -142,12 +156,12 @@ tarball 回退方式。
|
|
|
142
156
|
# 在 checkout 中:
|
|
143
157
|
npm install
|
|
144
158
|
npm run build
|
|
145
|
-
npm pack # dsh-charter-0.1.0-rc.
|
|
146
|
-
dsh plugin --profile web add ./dsh-charter-0.1.0-rc.
|
|
159
|
+
npm pack # dsh-charter-0.1.0-rc.4.tgz
|
|
160
|
+
dsh plugin --profile web add ./dsh-charter-0.1.0-rc.4.tgz
|
|
147
161
|
|
|
148
162
|
# 或下载 GitHub Release 的 tarball + SHA256SUMS 并校验:
|
|
149
163
|
shasum -a 256 -c SHA256SUMS
|
|
150
|
-
dsh plugin --profile web add ./dsh-charter-0.1.0-rc.
|
|
164
|
+
dsh plugin --profile web add ./dsh-charter-0.1.0-rc.4.tgz
|
|
151
165
|
```
|
|
152
166
|
|
|
153
167
|
`dsh plugin --profile desktop` 会被拥有该 profile 的 Electron app 拒绝;请使用 Desktop 的 Plugins 页面或该
|
|
@@ -157,7 +171,7 @@ profile 自己的包管理器。源码开发流程见 [CONTRIBUTING.zh.md](CONTR
|
|
|
157
171
|
### 更新
|
|
158
172
|
|
|
159
173
|
- **Web(npm)**:`dsh plugin --profile web add dsh-charter@next`,然后重启/刷新;固定版本 profile 继续使用
|
|
160
|
-
显式的 `0.1.0-rc.
|
|
174
|
+
显式的 `0.1.0-rc.4`;
|
|
161
175
|
- **本地 tarball**:重新构建/下载新 tarball,并重复本地安装命令;
|
|
162
176
|
- **Desktop**:Plugins → `dsh-charter` → **Update**,Desktop 会热更新。
|
|
163
177
|
|
|
@@ -227,6 +241,8 @@ profile 自己的包管理器。源码开发流程见 [CONTRIBUTING.zh.md](CONTR
|
|
|
227
241
|
| `historyLimit` | 64 | 近期 history 条数 |
|
|
228
242
|
| `maxHistoryBytes` | 131072 | 近期 history 字节上限 |
|
|
229
243
|
| `mutationLimit` | 128 | 近期 mutation 回执上限 |
|
|
244
|
+
| `maintenanceLimit` | 16 | 最近的 initialize/restore 回执(最小 1) |
|
|
245
|
+
| `maxRecoveryBytes` | 4194304 | 完整恢复归档预算(≥ 记录预算 + 64 KiB,硬上限 16 MiB) |
|
|
230
246
|
| `contextOrder` | 130 | runtime context 排序;默认在 sandbox/approval/subagent 之后 |
|
|
231
247
|
|
|
232
248
|
模型可见容量只有 `maxPromptBytes`;active invariant/deliverable 不再单独设条数上限。`maxItems` 和
|
|
@@ -239,7 +255,7 @@ profile 自己的包管理器。源码开发流程见 [CONTRIBUTING.zh.md](CONTR
|
|
|
239
255
|
| --- | --- |
|
|
240
256
|
| `0.1.7-rc.2` | 支持(最低版本) |
|
|
241
257
|
| `0.2.0-rc.1` / `0.2.0-rc.2` | 支持 |
|
|
242
|
-
| `0.2.1-rc.1` / `0.2.1-rc.2` |
|
|
258
|
+
| `0.2.1-rc.1` / `0.2.1-rc.2` / `0.2.1-rc.3` / `0.2.1-rc.4` | 支持(主基线:`0.2.1-rc.4`) |
|
|
243
259
|
| `0.1.5-rc.1` 及更早 | 不支持 |
|
|
244
260
|
| `0.2.2-rc.x`、`0.3.x` | 验证前不声明 |
|
|
245
261
|
|
|
@@ -273,7 +289,7 @@ npm run verify:compaction # 手工真实模型 compaction 校验(不在 check
|
|
|
273
289
|
```
|
|
274
290
|
|
|
275
291
|
测试覆盖纯内核、真实 Host 组合、storage domain、Remote framing、历史抽取、客户端状态和 factory bundle
|
|
276
|
-
注册。当前矩阵:**DSH `0.1.7-rc.2`、`0.2.0-rc.1`/`rc.2`、`0.2.1-rc.1`/`rc.2` ×
|
|
292
|
+
注册。当前矩阵:**DSH `0.1.7-rc.2`、`0.2.0-rc.1`/`rc.2`、`0.2.1-rc.1`/`rc.2`/`rc.3`/`rc.4` × 331 个测试全部通过**。命令与证据见[验证记录](docs/verification.zh.md)。
|
|
277
293
|
|
|
278
294
|
## 致谢
|
|
279
295
|
|
|
@@ -290,6 +306,7 @@ npm run verify:compaction # 手工真实模型 compaction 校验(不在 check
|
|
|
290
306
|
|
|
291
307
|
- [设计规格](docs/design/charter-design.zh.md)
|
|
292
308
|
- [设计评审](docs/design/charter-design-review.zh.md)
|
|
309
|
+
- [0.1.0-rc.3 升级方案](docs/design/rc3-recovery-plan.zh.md)
|
|
293
310
|
- [兼容矩阵](docs/design/compatibility.zh.md)
|
|
294
311
|
- [使用与运维指南](docs/user-guide.zh.md)
|
|
295
312
|
- [验证记录](docs/verification.zh.md)
|
|
@@ -306,7 +323,7 @@ npm run verify:compaction # 手工真实模型 compaction 校验(不在 check
|
|
|
306
323
|
|
|
307
324
|
## 状态
|
|
308
325
|
|
|
309
|
-
Pre-1.0。DSH 插件 ABI 仍在演进;项目对上述版本做兼容验证,并刻意保持兼容层很小。公开仓库为 [centella-cream/dsh-charter](https://github.com/centella-cream/dsh-charter)。当前树是 `0.1.0-rc.
|
|
326
|
+
Pre-1.0。DSH 插件 ABI 仍在演进;项目对上述版本做兼容验证,并刻意保持兼容层很小。公开仓库为 [centella-cream/dsh-charter](https://github.com/centella-cream/dsh-charter)。当前树是 `0.1.0-rc.4`
|
|
310
327
|
预发布:真实模型 compaction 验收 **PASS 已于 2026-10-22 记录**(一个匿名评估会话;326 条消息 / 约 228k
|
|
311
328
|
tokens 被压缩,revision 1 契约携带匹配 digest 存活——见验证记录第 8.4 节)。rc.2 候选产物已在本地验证,计划通过 npm 的 `next` dist-tag 发布;按当前渠道策略,稳定版出现前 `latest` 也会指向最新 RC(这是有意的策略选择,不是 npm 的强制要求)。GitHub Release 将附带同一份已验证 tarball。发布稳定 `latest` 前还有一项记录在 8.4 节的人工
|
|
312
329
|
检查:重启 Desktop app 后重新打开会话契约 tab 一次,确认已安装的 bundle/tool ABI。CI
|
package/cordis.patch.yml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
English | [中文](compatibility.zh.md)
|
|
4
4
|
|
|
5
|
-
Research/verification baseline: 2026-10-
|
|
5
|
+
Research/verification baseline: 2026-10-27.
|
|
6
6
|
|
|
7
7
|
This document answers three questions:
|
|
8
8
|
|
|
@@ -18,16 +18,18 @@ This document answers three questions:
|
|
|
18
18
|
| `0.2.0-rc.1` | Supported | typecheck, build, Vitest suite, remote/client smoke |
|
|
19
19
|
| `0.2.0-rc.2` | Supported | same + real profile install/startup, boot graph, bundle HTTP |
|
|
20
20
|
| `0.2.1-rc.1` | Supported | typecheck, build, Vitest suite, remote/client smoke |
|
|
21
|
-
| `0.2.1-rc.2` | Supported
|
|
21
|
+
| `0.2.1-rc.2` | Supported | same |
|
|
22
|
+
| `0.2.1-rc.3` | Supported | typecheck, build, Vitest suite, remote/client smoke (full seven-version matrix) |
|
|
23
|
+
| `0.2.1-rc.4` | Supported (primary development baseline) | same |
|
|
22
24
|
| `0.1.5-rc.1` / `0.1.5-rc.2` / `0.1.5-rc.3` | Not supported | contract differences too large; see section 4 |
|
|
23
25
|
| `0.1.6-alpha.x` | Not supported | same generation as 0.1.5; not individually verified |
|
|
24
26
|
| `0.2.2-rc.x` | Not declared | peer range does not cover this prerelease; add after verification |
|
|
25
27
|
| `0.3.x` | Not declared | major upgrade requires re-verification |
|
|
26
28
|
|
|
27
|
-
The DSH peer ranges and `engines.dsh` in `package.json` are exactly the
|
|
29
|
+
The DSH peer ranges and `engines.dsh` in `package.json` are exactly the seven verified versions:
|
|
28
30
|
|
|
29
31
|
```text
|
|
30
|
-
0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2
|
|
32
|
+
0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4
|
|
31
33
|
```
|
|
32
34
|
|
|
33
35
|
Exact versions are intentional: a broad range would claim DSH prereleases that the project has not tested.
|
|
@@ -71,7 +73,7 @@ Extend the list only after running the version matrix for the new version, and k
|
|
|
71
73
|
| `{{` escaping | `src/core/prompt.ts` |
|
|
72
74
|
| Actor resolution | `resolveActor()` in `src/host/service.ts`, generation policy in `src/remote/actor.ts`; 0.2.1+ fails closed when a Remote call has no Peer principal |
|
|
73
75
|
| Version-specific type verification | independent `node_modules` copies described in [verification](../verification.md) |
|
|
74
|
-
| Deprecated historical event read | isolated in `src/host/session-events.ts`; **known technical debt**, not a completed replacement — DSH 0.2.1-rc.2
|
|
76
|
+
| Deprecated historical event read | isolated in `src/host/session-events.ts`; **known technical debt**, not a completed replacement — DSH 0.2.1-rc.2/rc.3/rc.4 expose no public non-deprecated reader yet |
|
|
75
77
|
|
|
76
78
|
The compatibility layer is deliberately small: only decorator shape, two optional context fields, an actor
|
|
77
79
|
reading branch, and the isolated historical-event reader. There is no second Remote codec, second session event protocol, or second sidebar API for old
|
|
@@ -107,7 +109,7 @@ npm run build
|
|
|
107
109
|
./node_modules/.bin/vitest run
|
|
108
110
|
```
|
|
109
111
|
|
|
110
|
-
`0.1.7-rc.2` and `0.2.
|
|
112
|
+
`0.1.7-rc.2`, `0.2.0-rc.2`, and `0.2.1-rc.3`/`rc.4` additionally use the matching DSH CLI to create an isolated profile, install the
|
|
111
113
|
tarball, start Web, and check the boot graph and client bundle HTTP. Results and reproduction commands are in
|
|
112
114
|
the [verification record](../verification.md).
|
|
113
115
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[English](compatibility.md) | 中文
|
|
4
4
|
|
|
5
|
-
调研与验证基准日:2026-10-
|
|
5
|
+
调研与验证基准日:2026-10-27。
|
|
6
6
|
|
|
7
7
|
本文回答三个问题:
|
|
8
8
|
|
|
@@ -18,16 +18,18 @@
|
|
|
18
18
|
| `0.2.0-rc.1` | 支持 | typecheck、build、Vitest 套件、remote/client smoke |
|
|
19
19
|
| `0.2.0-rc.2` | 支持 | 同上 + 真实 profile 安装与启动、boot graph、bundle HTTP |
|
|
20
20
|
| `0.2.1-rc.1` | 支持 | typecheck、build、Vitest 套件、remote/client smoke |
|
|
21
|
-
| `0.2.1-rc.2` |
|
|
21
|
+
| `0.2.1-rc.2` | 支持 | 同上 |
|
|
22
|
+
| `0.2.1-rc.3` | 支持 | typecheck、build、Vitest 套件、remote/client smoke(完整七版本矩阵) |
|
|
23
|
+
| `0.2.1-rc.4` | 支持(主开发基线) | 同上 |
|
|
22
24
|
| `0.1.5-rc.1` / `0.1.5-rc.2` / `0.1.5-rc.3` | 不支持 | 契约差异过大,见第 4 节 |
|
|
23
25
|
| `0.1.6-alpha.x` | 不支持 | 与 0.1.5 同代,未逐一验证 |
|
|
24
26
|
| `0.2.2-rc.x` | 未声明 | peer range 未覆盖该 prerelease;验证后再加入 |
|
|
25
27
|
| `0.3.x` | 未声明 | 大版本升级需要重新核验 |
|
|
26
28
|
|
|
27
|
-
`package.json` 的 DSH peer 范围与 `engines.dsh`
|
|
29
|
+
`package.json` 的 DSH peer 范围与 `engines.dsh` 就是已验证的七个精确版本:
|
|
28
30
|
|
|
29
31
|
```text
|
|
30
|
-
0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2
|
|
32
|
+
0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4
|
|
31
33
|
```
|
|
32
34
|
|
|
33
35
|
使用精确版本是刻意的:宽范围会声明尚未测试的 DSH prerelease。只有在跑过该版本的版本矩阵之后才扩展这个
|