dsh-charter 0.2.0 → 0.2.2

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 (44) hide show
  1. package/CHANGELOG.md +61 -1
  2. package/CHANGELOG.zh.md +51 -1
  3. package/CONTRIBUTING.md +12 -2
  4. package/CONTRIBUTING.zh.md +9 -2
  5. package/README.md +50 -20
  6. package/README.zh.md +39 -17
  7. package/docs/README.md +7 -3
  8. package/docs/README.zh.md +5 -3
  9. package/docs/assets/charter-pane.zh.png +0 -0
  10. package/docs/design/charter-dependency-graph-v1.zh.md +1101 -0
  11. package/docs/design/charter-design-v1.md +7 -3
  12. package/docs/design/charter-design-v1.zh.md +14 -1
  13. package/docs/design/charter-workspace-v2.zh.md +20 -3
  14. package/docs/design/version-roadmap.md +9 -9
  15. package/docs/design/version-roadmap.zh.md +18 -14
  16. package/docs/release-notes/0.2.0.md +7 -7
  17. package/docs/release-notes/0.2.1.md +58 -0
  18. package/docs/release-notes/0.2.2.md +60 -0
  19. package/docs/release-notes/README.md +1 -2
  20. package/docs/releasing.md +12 -7
  21. package/docs/releasing.zh.md +10 -7
  22. package/docs/user-guide.md +48 -22
  23. package/docs/user-guide.zh.md +43 -18
  24. package/docs/verification.md +40 -28
  25. package/docs/verification.zh.md +31 -24
  26. package/lib/client/DependencyGraph.d.ts +19 -0
  27. package/lib/client/locales.d.ts +97 -19
  28. package/lib/client/relation-graph.d.ts +135 -0
  29. package/lib/client/store.d.ts +5 -0
  30. package/lib/client.js +2552 -496
  31. package/lib/core/change-set.d.ts +7 -0
  32. package/lib/core/dependencies.d.ts +29 -0
  33. package/lib/core.js +1 -1
  34. package/lib/{fork-D5HVDV1i.js → fork-KSL6sovw.js} +70 -1
  35. package/lib/host/domain.d.ts +50 -0
  36. package/lib/host/service.d.ts +18 -1
  37. package/lib/host/types.d.ts +37 -1
  38. package/lib/index.js +2 -2
  39. package/lib/remote/service.d.ts +8 -1
  40. package/lib/remote/wire.d.ts +161 -3
  41. package/lib/remote.js +155 -4
  42. package/lib/{service-C3A59BG5.js → service-MsIACddZ.js} +186 -5
  43. package/lib/version.d.ts +1 -1
  44. package/package.json +1 -1
@@ -3,8 +3,8 @@
3
3
  [English](user-guide.md) | 中文
4
4
 
5
5
  > **状态:** Active — 当前操作记录。
6
- > **版本范围:** 当前开发线。
7
- > **基准:** 2026-11-03
6
+ > **版本范围:** `0.2.2` 发布候选。
7
+ > **基准:** 2026-11-11
8
8
 
9
9
  本文面向安装和使用插件的用户。设计约束见[设计规格](design/charter-design-v1.zh.md),版本差异见
10
10
  [兼容矩阵](design/compatibility.zh.md)。
@@ -12,7 +12,7 @@
12
12
  ## 1. 安装前检查
13
13
 
14
14
  ```bash
15
- dsh --version # 需要 >= 0.1.7-rc.2;推荐 0.2.0-rc.1+
15
+ dsh --version # 需要兼容矩阵中的版本;推荐 0.2.2-rc.1
16
16
  node --version # ^22.19.0 || >=24.0.0
17
17
  dsh --profile web --dump-config | grep -n "charter" || true
18
18
  ```
@@ -26,22 +26,22 @@ dsh --profile web --dump-config | grep -n "charter" || true
26
26
 
27
27
  ## 2. 安装
28
28
 
29
- > **安装渠道。** 最新已发布版本 是 `0.2.0`(npm `latest`/`next`),已正式验收。GitHub Release 使用
30
- > recovery tag `v0.2.0-republished`;0.2.0 的规范 GitHub tag/release 待恢复。普通使用请安装 rc.6。
29
+ > **安装渠道。** 最新已发布版本是 `0.2.1`(npm `latest`/`next`)。`0.2.2` 候选在 promotion 前从本地验收
30
+ > tarball 安装。
31
31
 
32
32
  ### 2.1 环境要求
33
33
 
34
34
  - DSH:只支持[兼容矩阵](design/compatibility.zh.md)中列出的版本(`0.1.7-rc.2`、`0.2.0-rc.1`/`rc.2`、
35
35
  `0.2.1-rc.1`/`rc.2`/`rc.3`/`rc.4`/`0.2.0`、`0.2.2-rc.1`)。在扩展矩阵前不声明支持更新的 stable/release 版本;完整 per-Peer Remote
36
- 资源授权要求 `0.2.1+`。DSH `0.2.1-0.2.0` 由已发布 rc.6 产物支持;已发布 0.2.0 产物未声明该版本。
36
+ 资源授权要求 `0.2.1+`。
37
37
  - Node.js **`^22.19.0 || >=24.0.0`**。
38
38
  - Web 或 Desktop profile。
39
39
 
40
40
  ### 2.2 离线 / 本地 tarball 回退
41
41
 
42
42
  ```bash
43
- npm pack dsh-charter@0.2.0
44
- dsh plugin --profile web add ./dsh-charter-0.2.0.tgz
43
+ npm pack dsh-charter@0.2.1
44
+ dsh plugin --profile web add ./dsh-charter-0.2.1.tgz
45
45
  ```
46
46
 
47
47
  Desktop 若支持本地插件导入,可在 Plugins 页面安装同一个 tarball;否则通过 Desktop profile 自己的包管理器
@@ -51,12 +51,12 @@ Desktop 若支持本地插件导入,可在 Plugins 页面安装同一个 tarba
51
51
  ### 2.3 npm / Registry 安装(推荐)— Web profile 按版本或 tag
52
52
 
53
53
  ```bash
54
- dsh plugin --profile web add dsh-charter@0.2.0 # 最新已发布版本:可复现
55
- dsh plugin --profile web add dsh-charter@next # 当前指向 0.2.0
54
+ dsh plugin --profile web add dsh-charter@0.2.1 # 最新已发布精确版本
55
+ dsh plugin --profile web add ./dsh-charter-0.2.2.tgz # 本地 0.2.2 候选
56
56
  ```
57
57
 
58
- 受保护的 `0.2.0` promotion 完成前,npm 最新公开版本仍是 `0.1.0-rc.6`;完成后使用精确的 `0.2.0`。在此之前
59
- 请使用 release PR 提供的候选 tarball。stable promotion 会同时移动 npm `next`/`latest`(npm 保留 `latest` tag,
58
+ 最新公开版本是 `0.2.1`。`0.2.2` promotion 后使用精确的 `0.2.2`;在此之前使用 release PR 提供的候选
59
+ tarball。stable promotion 会同时移动 npm `next`/`latest`(npm 保留 `latest` tag,
60
60
  由项目决定其指向;这是我们的策略,不是 npm 的强制要求)。只有 registry 不可达或候选验证时才使用离线 tarball 回退。固定明确版本
61
61
  可以让 profile 可复现。
62
62
 
@@ -65,7 +65,7 @@ dsh plugin --profile web add dsh-charter@next # 当前指向 0.2.0
65
65
 
66
66
  ```json
67
67
  {
68
- "dependencies": { "dsh-charter": "0.2.0" },
68
+ "dependencies": { "dsh-charter": "0.2.1" },
69
69
  "dsh": { "profile": { "bundles": ["...", "dsh-charter"] } }
70
70
  }
71
71
  ```
@@ -86,9 +86,12 @@ peer 兼容检查结果为准。
86
86
 
87
87
  - **导出**:下载完整记录归档(identity、当前快照、有界历史、mutation 与 maintenance 回执)。归档包含会话契约
88
88
  文本,属敏感数据。
89
- - **恢复**:只接受本地 JSON 归档(绝不接受 URL 或 Host 路径)。Pane 先校验外层封装、文件大小
90
- (`maxRecoveryBytes`)、Session 与 lifecycle,并预览 health/revision/lifecycle/digest;Host 在写入前再次完整
91
- 校验,且需要第二次确认。仅对 `absent-unconfirmed` 或 `invalid` 目标提供恢复;健康记录不能被覆盖。
89
+ - **恢复**:Host 自动保留最近 5 份归档缓存,Pane 直接列出并预览 health/revision/lifecycle/digest,Host 在写入前
90
+ 再次完整校验,且需要第二次确认;不需要先下载。仅对 `absent-unconfirmed` 或 `invalid` 目标提供恢复;健康
91
+ 记录不能被覆盖。
92
+ - **高级导入**:只接受本地 JSON 归档(绝不接受 URL 或 Host 路径),用于另一台机器导出的归档或缓存出现前
93
+ 保存的旧文件;同样经过完整校验和二次确认。
94
+ - **下载**仅用于外部校验、审计或备份,与恢复解耦;恢复不依赖下载。
92
95
  - **显式空初始化**:仅对 `absent-unconfirmed` 可用,需要破坏性二次确认,因为不可读的外层文档同样表现为缺失。
93
96
  - `write-uncertain`:存储写入可能已落盘也可能没有。重启 Host 让插件重新加载介质;在此之前该 Session 保持只读。
94
97
  - 维护操作在 DSH `0.2.1+` 上 owner-only;旧版 DSH 显示能力不可用。不支持跨 Session/lifecycle 恢复、force 导入或
@@ -191,6 +194,27 @@ Web 进程可以只读显示另一个进程中 live 的 Session 的已存会话
191
194
  进程 live;Session 重连后标签页升级为可编辑。因此 `charter.bootstrap` 返回 `not-live`,而不是读取另一个
192
195
  进程的事件日志。
193
196
 
197
+ ### 3.7 依赖关系图
198
+
199
+ Workspace 的依赖卡片包含两个同步部分:
200
+
201
+ - 图形区:执行车道、候选车道和替代历史车道;
202
+ - 紧凑语义列表:始终存在的权威编辑面。
203
+
204
+ 图是透镜,不是第二份存储。图上的添加/删除前置与列表一样只 stage 同一个 `deliverable.requires` Change Set
205
+ op;**Apply** 仍是唯一提交点。
206
+
207
+ 键盘与降级:
208
+
209
+ - `Tab` 只进入图形区一次;`↑/↓/←/→` 沿依赖关系移动,`[`/`]` 遍历所有可见节点与边;`Enter` 打开详情,
210
+ `Esc` 关闭详情或回到列表。
211
+ - skip link 可直接把焦点送到语义列表。
212
+ - 没有依赖边时显示有界孤立节点网格和“添加前置”提示。
213
+ - 孤立节点或可导航图元素过多时隐藏图形区,列表保持完整。
214
+
215
+ Change Set 引入或加重依赖冲突时,Review/Apply 会列出受影响交付物并要求二次确认;图形只显示同一冲突
216
+ 状态,不会自动修改 progress 或 lifecycle。
217
+
194
218
  ## 4. 配置
195
219
 
196
220
  默认值写在 `cordis.patch.yml`。在 profile 的 `cordis.patch.yml` 中覆盖同名项:
@@ -245,7 +269,8 @@ Web 进程可以只读显示另一个进程中 live 的 Session 的已存会话
245
269
 
246
270
  ## 5. 数据与隐私
247
271
 
248
- - 正本:`dsh_charter_v1` domain 的 `sessions` 表,每个 Session 一条记录。
272
+ - 正本:`dsh_charter_v1` domain 的 `sessions` 表,每个 Session 一条记录。恢复快照位于 `dsh_charter_archives_v1`
273
+ domain 的 `archives` 表,owner-only,每 Session 最多 5 份;整个 profile 最多 25 份,超出时淘汰最旧快照。
249
274
  - 记录包含目标、条目、派生 `promptText`/digest、近期 history 和 mutation 回执。
250
275
  - 记录绑定 `createdAt`、`cwd`、`parentSession`,Session id 复用但 lifecycle 不同时会拒绝读取和覆盖。
251
276
  - 普通日志只记录稳定 id、kind、revision 和错误码,不记录用户正文。
@@ -298,7 +323,7 @@ dsh plugin --profile web remove dsh-charter
298
323
  - 重新安装后同一 Session 会重新读取原记录。
299
324
 
300
325
  UI Purge **只能逐条清除条目**,不能删除目标、record identity/revision 或整条 Session record。如需彻底删除会话契约
301
- 数据,请先停止 DSH,确认路径后清理对应的 `dsh_charter_v1` domain 记录(或整个 profile storage 目录)。
326
+ 数据,请先停止 DSH,确认路径后清理对应的 `dsh_charter_v1` 记录和 `dsh_charter_archives_v1` 缓存(或整个 profile storage 目录)。
302
327
 
303
328
  ## 9. 开发与贡献
304
329
 
@@ -3,10 +3,10 @@
3
3
  English | [中文](verification.zh.md)
4
4
 
5
5
  > **Status:** Active — current operating record.
6
- > **Version scope:** current development line.
7
- > **Baseline:** 2026-11-05
6
+ > **Version scope:** `0.2.2` development candidate.
7
+ > **Baseline:** 2026-11-11
8
8
 
9
- Verification date: 2026-11-05. Current source version: `0.2.0` (unreleased development). This is the current evidence record; historical per-commit narratives live in Git
9
+ Verification date: 2026-11-11. Current source version: `0.2.2` (development candidate; not published). This is the current evidence record; historical per-commit narratives live in Git
10
10
  history and the Changelog. Temporary directories, profiles, tarballs, and fetched HTML live under `.tmp/` and are
11
11
  excluded from the published package.
12
12
 
@@ -15,44 +15,53 @@ Environment: macOS, Node `v22.23.1`, npm `12.0.2`, pnpm `12.3.4`. Local DSH deve
15
15
 
16
16
  ## 1. Current conclusion
17
17
 
18
- Current release state (2026-11-05):
18
+ Current release state (2026-11-11):
19
19
 
20
- - Published: `0.1.0-rc.6` (npm `latest`/`next`; exact SHA-256 `21ddbea0ae3fd88994d4e4731429ef4d8cb75db2b97e83cd7530a0386e425825`). GitHub Release uses recovery tag `v0.1.0-rc.6-republished`.
21
- - `0.1.0-rc.5`: previous accepted npm release; its canonical GitHub tag/release remains pending restoration.
22
- - Active release: `0.1.0-rc.6`, formally accepted.
23
- - Active development: `0.2.0` release candidate on `main`; package versions from 0.2.0 onward never use an `rc` suffix.
24
- - 0.2.0 source evidence: 36 files / 434 tests and the nine-version matrix pass 434/434 on the current development tree.
25
- - Pending: main-branch candidate run and promotion.
20
+ - Published: `0.2.1` (npm `latest`/`next`; exact SHA-256 `d4ae14e19b4d65264a53b57c0f9d3f93eb8303189e8daa3f3f35beb97104d498`). GitHub Release `v0.2.1` is public and immutable.
21
+ - `0.2.0`: previous public release; GitHub Release `v0.2.0` remains immutable.
22
+ - `0.1.0-rc.6`: earlier public release; recovery tag `v0.1.0-rc.6-republished`.
23
+ - Versioning from 0.2.0 onward uses plain increments and never an `rc` suffix.
24
+ - Current source evidence: 37 files / 475 tests on the final 0.2.2 candidate tree at `f9d93c0`; the nine-version matrix passes 475/475 on that tree (Node `v22.23.1` / pnpm `12.3.4`, evidence `.tmp/0.2.2-final-matrix2.json`).
25
+ - Post-release diagnostics: real-model compaction PASS (session `session-da7e7b0d-f0b0-49a2-8391-148b4782892c`); 512-item performance PASS on 2026-11-06 (core read/planning p95, see below).
26
26
 
27
27
  | Item | Result |
28
28
  | --- | --- |
29
29
  | Strict TypeScript check | Pass on the current tree |
30
- | Vitest | 36 files / 434 tests pass (`npm test`, which builds first) |
30
+ | Vitest | 37 files / 475 tests pass (`npm test`, which builds first) |
31
31
  | Host ESM build + browser factory bundle | Pass |
32
32
  | Remote contract and client smoke | Pass |
33
33
  | Normal package smoke | Pass |
34
- | Exact-artifact package smoke | Pass on the published rc.6 `.tgz` bytes (`21ddbea0…`) without rebuild |
34
+ | Exact-artifact package smoke | Pass on the published `0.2.1` `.tgz` bytes (`d4ae14e1…`) from the root `SHA256SUMS`, without rebuild |
35
35
  | Packed-artifact recovery smoke | Pass: export, target removal, restore, receipt replay, two restarts, healthy-target refusal, packed fault subset |
36
36
  | Real `TypertGatewayService` | Pass on exact artifact with isolated DSH `0.2.1-rc.3` and `rc.4` graphs |
37
37
  | Compatibility sentinels | Pass on `0.1.7-rc.2`, `0.2.1-rc.2`, `0.2.1-rc.4`, `0.2.1-rc.5` |
38
- | Nine-version full rerun | Pass via tracked `compat-matrix --versions all --allow-new-release` (434/434 each) |
38
+ | 0.2.2 exact artifact smoke | PASS on 2026-11-11: `dsh-charter-0.2.2.tgz` (98 files, SHA-256 `032cb9048d5068f70243364f9ad60cdab6fef015e984d8bee2b1e8496fdc0651`); package smoke installed the exact bytes in an empty consumer and the packed recovery smoke passed all export/restore/two-restart/fault checks. |
39
+ | Nine-version full rerun | Pass via tracked `compat-matrix --versions all --allow-new-release` (475/475 each) |
39
40
  | Fresh Web profile matrix (historical rc.6) | PASS: local rc.6 artifact (pre-withdrawal) installed and served on DSH `0.1.7-rc.2`, `0.2.0-rc.2`, `0.2.1-rc.2`, `0.2.1-rc.4`, `0.2.1-rc.5` |
40
41
  | Fresh Web profile 0.2.2 | PASS on 2026-11-05: fresh `DSH_HOME` + `dsh@0.2.2-rc.1 plugin --profile web add` of `dsh-charter-0.2.0.tgz` (SHA-256 `fde5531d457effc713f4423f8b46c8f0e591770e59c55e19956f000c11bdeffc`); Web boot, page HTTP 200, charter bundle HTTP 200; boot graph contains `dsh-charter` and the page index contains `dsh-charter/client.js` |
41
42
  | Untracked `0.2.2-alpha.2` / `0.2.2-alpha.3` probes | strict-peer install fails because these alpha lines require a Cordis 4.0.6 alpha graph; the 0.2.2-rc.1 line pins Cordis 4.1.0; no tests run; explicitly unsupported. |
42
- | Local Web + Desktop profiles | 0.2.0 development artifact installed into local `web` and `desktop` profiles on DSH `0.2.2-rc.1`; profile copies boot and serve the charter bundle. This is local evidence, not release-artifact evidence. |
43
+ | 0.2.1 real Web Pane | PASS on 2026-11-06: local Web profile installed the `0.2.1` candidate artifact; Pane reports `v0.2.1`, diagnostics/recovery cache and the editable message proposal render, and the browser console is clean. |
44
+ | 0.2.1 local human acceptance | PASS on 2026-11-06: user completed local acceptance of the 0.2.1 UI/interaction batch. |
45
+ | 0.2.1 Desktop ABI | PASS on 2026-11-06: Desktop profile installed the exact candidate, the Electron process was restarted, and the Pane/tab ABI was confirmed. |
46
+ | 0.2.2 compatibility matrix | PASS on 2026-11-11: source `f9d93c031eabfe5e44cf17e302729eb7093d7e94`, Node `v22.23.1` / pnpm `12.3.4`; all nine declared DSH versions passed typecheck, build, and 475/475 tests (`.tmp/0.2.2-final-matrix2.json`). |
47
+ | 0.2.2 fresh profile install | PASS on 2026-11-11: isolated `DSH_HOME=/tmp/dsh-charter-fresh-022-home` initialized a fresh Web profile and installed the exact local `dsh-charter-0.2.2.tgz`; `dsh web` served the Pane entry (HTTP 303 token redirect). CLI/tarball path verified; Desktop, real Pane interaction, and zh/en switch remain manual. |
48
+ | 0.2.2 dependency graph source | PASS on 2026-11-11: `npm run check` 37 files / 475 tests; W0-0 prototype 41/41 (pre-isolated-grid contract; product isolated-grid tests are in `tests/client/relation-graph.spec.ts`); Web Pane rendered the graph, candidate lane, inspector, and always-present semantic list for a session with 3 active + 4 pending deliverables; browser console clean. UI self-check on 2026-11-11: isolated three-node graph + empty hint, compact list, add-edge/hide/show, and local-key prerequisite summary all rendered without console errors. W0-1/2/3 and real AT/manual gates remain pending. |
49
+ | 0.2.2 dependency graph bundle | Measured on 2026-11-11 against `d362d6f` with the standardized budget method `gzip -9 -c lib/client.js | wc -c`: 113,990 → 130,474 B (+16,484 B), so the `<40 KB` gzip budget passes. Raw diagnostic: `lib/client.js` 591,936 → 670,173 B (+78,237 B); raw CSS output 47,230 → 55,540 B (+8,310 B). Raw bytes are not the budget channel. |
50
+ | Real-model compaction | PASS on 2026-11-06 for `session-da7e7b0d-f0b0-49a2-8391-148b4782892c`: latest compaction seq 32610–32614, post-compaction snapshot seq 32623, `charter_read` call/result seq 32631/32632; injected, digest match, injection-after-compaction, survival, authenticated standing read, and no-checkpoint-leak all pass. |
51
+ | 512-item performance | PASS on 2026-11-06, local Node `22.23.1`: 512 pending items, 300 warm-ups then 30 samples; full pagination query p95 5.2 ms and 5-op Change Set planning p95 0.6 ms against the 100 ms budget. This measures the pure core read/planning path, not UI/network. |
43
52
  | Real browser diagnostics | Local manual checks recorded; not a release gate |
44
53
  | Real-model compaction | Separately recorded PASS (2026-10-22); still a manual release gate |
45
54
 
46
55
  ### 1.1 0.2.0 development acceptance
47
56
 
48
- The `feat/0.2.0-workspace` tree has passed source-level acceptance for the implemented workspace core:
57
+ The `main` tree has passed source-level acceptance for the implemented workspace core:
49
58
 
50
59
  - record v2 write path and in-memory v1 migration;
51
60
  - dependency `requires` validation, derived readiness, and dependency-aware prompt equivalence;
52
61
  - three-area Pane information architecture and dependency editor;
53
62
  - proposal-batch provenance, objective-proposal lifecycle, summary/item/proposal/change query endpoints, `watchSummary`, and pending-only `charter_propose`;
54
- - `npm run check`: 36 files / 434 tests;
55
- - nine-version DSH matrix: 434/434 on every declared version;
63
+ - `npm run check`: 36 files / 441 tests;
64
+ - nine-version DSH matrix: 475/475 on every declared version;
56
65
  - normal package smoke: `dsh-charter-0.2.0.tgz` installs and its client factory bundle loads.
57
66
 
58
67
  This is source acceptance, not a release acceptance: real Desktop/browser diagnostics, real-model compaction, performance,
@@ -86,17 +95,20 @@ The tracked runner creates isolated pnpm projects with strict peers and runs typ
86
95
 
87
96
  | DSH version | Evidence |
88
97
  | --- | --- |
89
- | `0.1.7-rc.2` | 434/434 tracked matrix PASS |
90
- | `0.2.0-rc.1` | 434/434 tracked matrix PASS |
91
- | `0.2.0-rc.2` | 434/434 tracked matrix PASS |
92
- | `0.2.1-rc.1` | 434/434 tracked matrix PASS |
93
- | `0.2.1-rc.2` | 434/434 tracked matrix PASS |
94
- | `0.2.1-rc.3` | 434/434 tracked matrix PASS |
95
- | `0.2.1-rc.4` | 434/434 tracked matrix PASS |
96
- | `0.2.1-rc.5` | 434/434 tracked matrix PASS |
97
- | `0.2.2-rc.1` | 434/434 tracked matrix PASS |
98
-
99
- The current 0.2.0 development tree passed `compat-matrix --versions all --allow-new-release` on 2026-11-05: every declared version passed typecheck, build, and 434/434 tests. Installs use pnpm strict peer resolution, exact tool pins, a single zod 4.6.7 graph, full `pnpm list --depth Infinity` graph validation, and recorded lockfile SHA-256 values. The untracked `0.2.2-alpha.2` probe is recorded as unsupported: strict-peer install fails because DSH requires Cordis ~4.0.6-alpha.1 while rc.6 pins 4.0.5; no tests run.
98
+ | `0.1.7-rc.2` | 475/475 tracked matrix PASS |
99
+ | `0.2.0-rc.1` | 475/475 tracked matrix PASS |
100
+ | `0.2.0-rc.2` | 475/475 tracked matrix PASS |
101
+ | `0.2.1-rc.1` | 475/475 tracked matrix PASS |
102
+ | `0.2.1-rc.2` | 475/475 tracked matrix PASS |
103
+ | `0.2.1-rc.3` | 475/475 tracked matrix PASS |
104
+ | `0.2.1-rc.4` | 475/475 tracked matrix PASS |
105
+ | `0.2.1-rc.5` | 475/475 tracked matrix PASS |
106
+ | `0.2.2-rc.1` | 475/475 tracked matrix PASS |
107
+
108
+ The 0.2.2 candidate tree at source commit `f9d93c031eabfe5e44cf17e302729eb7093d7e94` passed
109
+ `compat-matrix --versions all --allow-new-release` on 2026-11-11 with Node `v22.23.1` / pnpm `12.3.4`: every
110
+ declared version passed typecheck, build, and 475/475 tests. The local evidence file is
111
+ `.tmp/0.2.2-final-matrix2.json`. Installs use pnpm strict peer resolution, exact tool pins, a single zod 4.6.7 graph, full `pnpm list --depth Infinity` graph validation, and recorded lockfile SHA-256 values. The untracked `0.2.2-alpha.2` probe is recorded as unsupported: strict-peer install fails because DSH requires Cordis ~4.0.6-alpha.1 while rc.6 pins 4.0.5; no tests run.
100
112
 
101
113
  ## 4. What the tests cover
102
114
 
@@ -3,10 +3,10 @@
3
3
  [English](verification.md) | 中文
4
4
 
5
5
  > **状态:** Active — 当前操作记录。
6
- > **版本范围:** 当前开发线。
7
- > **基准:** 2026-11-05
6
+ > **版本范围:** `0.2.2` 开发候选。
7
+ > **基准:** 2026-11-11
8
8
 
9
- 验证日期:2026-10-30。本文件是当前证据记录;历史逐提交的叙事保留在 Git 历史和 Changelog。临时目录、profile、
9
+ 验证日期:2026-11-11。当前源码版本:`0.2.2`(开发候选,尚未发布)。本文件是当前证据记录;历史逐提交的叙事保留在 Git 历史和 Changelog。临时目录、profile、
10
10
  tarball 和抓取内容位于 `.tmp/`,不进入发布包。
11
11
 
12
12
  环境:macOS,Node `v22.23.1`,npm `12.0.2`,pnpm `12.3.4`。本地 DSH 开发基线:`0.2.2-rc.1`(当前 npm
@@ -14,33 +14,38 @@ tarball 和抓取内容位于 `.tmp/`,不进入发布包。
14
14
 
15
15
  ## 1. 当前结论
16
16
 
17
- 当前发布状态(2026-10-30):
17
+ 当前发布状态(2026-11-11):
18
18
 
19
- - 已发布:`0.1.0-rc.6`(npm `latest`/`next`;精确 SHA-256 `21ddbea0ae3fd88994d4e4731429ef4d8cb75db2b97e83cd7530a0386e425825`)。GitHub Release 使用 recovery tag `v0.1.0-rc.6-republished`。
20
- - `0.1.0-rc.5`:上一个已验收 npm 版本;规范 GitHub tag/release 仍待恢复。
21
- - 当前版本:`0.1.0-rc.6`,已正式验收。
22
- - 当前开发线:`0.2.0`(`feat/0.2.0-workspace`);从 0.2.0 起版本号不使用 `rc` 后缀。
23
- - 0.2.0 源码证据:36 个测试文件 / 434 个测试,当前开发树九版本矩阵 434/434 通过。
24
- - 待完成:恢复 rc.5 规范 GitHub tag/release,并完成发布后检查。
19
+ - 已发布:`0.2.1`(npm `latest`/`next`;精确 SHA-256 `d4ae14e19b4d65264a53b57c0f9d3f93eb8303189e8daa3f3f35beb97104d498`)。GitHub Release `v0.2.1` 已公开且不可变。
20
+ - `0.2.0`:上一公开版本;GitHub Release `v0.2.0` 保持不可变。
21
+ - `0.1.0-rc.6`:更早的公开版本;使用 recovery tag `v0.1.0-rc.6-republished`。
22
+ - 从 0.2.0 起版本号使用普通递增,不使用 `rc` 后缀。
23
+ - 当前源码证据:0.2.2 最终候选树在源码提交 `f9d93c0` 上通过 37 个测试文件 / 475 个测试;九版本矩阵在该树上 475/475 通过(Node `v22.23.1` / pnpm `12.3.4`,证据 `.tmp/0.2.2-final-matrix2.json`)。
24
+ - 发布后诊断:真实模型 compaction PASS(session `session-da7e7b0d-f0b0-49a2-8391-148b4782892c`);512 条性能于 2026-11-06 PASS(core read/planning p95,见下)。
25
25
 
26
26
  | 项目 | 结果 |
27
27
  | --- | --- |
28
28
  | TypeScript 严格检查 | 当前树通过 |
29
- | Vitest | 36 个测试文件 / 434 个测试通过(`npm test`,先 build) |
29
+ | Vitest | 37 个测试文件 / 475 个测试通过(`npm test`,先 build) |
30
30
  | Host ESM 构建 + 浏览器 factory bundle | 通过 |
31
31
  | Remote 契约与 client smoke | 通过 |
32
32
  | 普通 package smoke | 通过 |
33
- | exact-artifact package smoke | 对已发布 rc.6 `.tgz` 字节(`21ddbea0…`)通过,不重建 |
33
+ | exact-artifact package smoke | 对已发布 `0.2.1` `.tgz` 字节(`d4ae14e1…`)通过,不重建 |
34
34
  | packed recovery smoke | 通过:export、删除 target、restore、receipt replay、两次 restart、健康目标拒绝、packed fault 子集 |
35
35
  | 真实 `TypertGatewayService` | 精确 artifact 在隔离的 DSH `0.2.1-rc.3` / `rc.4` 依赖图上通过 |
36
36
  | 兼容 sentinel | `0.1.7-rc.2`、`0.2.1-rc.2`、`0.2.1-rc.4`、`0.2.1-rc.5`、`0.2.2-rc.1` 通过 |
37
37
  | Fresh Web profile matrix (historical rc.6) | PASS:历史 rc.6 artifact 曾在 DSH `0.1.7-rc.2`、`0.2.0-rc.2`、`0.2.1-rc.2`、`0.2.1-rc.4`、`0.2.1-rc.5` 上安装并启动 |
38
38
  | Fresh Web 0.2.2 | 2026-11-05 PASS:全新 `DSH_HOME` + `dsh@0.2.2-rc.1 plugin --profile web add` 安装 `dsh-charter-0.2.0.tgz`(SHA-256 `fde5531d457effc713f4423f8b46c8f0e591770e59c55e19956f000c11bdeffc`);Web 启动、页面 HTTP 200、charter bundle HTTP 200;boot graph 含 `dsh-charter`,页面 index 含 `dsh-charter/client.js` |
39
- | 九版本全量 rerun | tracked `compat-matrix --versions all --allow-new-release` 通过(每版本 434/434) |
39
+ | 0.2.2 精确 artifact smoke | 2026-11-11 PASS:`dsh-charter-0.2.2.tgz`(98 个文件,SHA-256 `032cb9048d5068f70243364f9ad60cdab6fef015e984d8bee2b1e8496fdc0651`);package smoke 在空 consumer 中安装精确字节,packed recovery smoke 的 export/restore/两次重启/故障检查全部通过。 |
40
+ | 九版本全量 rerun | tracked `compat-matrix --versions all --allow-new-release` 通过(每版本 475/475) |
40
41
  | 未跟踪 `0.2.2-alpha.2` probe | strict-peer install fails because DSH requires Cordis ~4.0.6-alpha.1 while rc.6 pins 4.0.5; no tests run;rc.6 明确不支持 |
41
42
  | 本地 Web + Desktop profile | 0.2.0 开发 artifact 已装入本地 web/desktop profile;Desktop app 为 `0.2.2-rc.1`,真实 Electron ABI/交互仍需人工门禁 |
42
43
  | 真实浏览器恢复 | 受保护的人工 evidence gate;未自动化 |
43
44
  | 真实模型 compaction | 2026-10-22 记录 PASS;仍是人工发布门禁 |
45
+ | 0.2.2 兼容矩阵 | 2026-11-11 PASS:源码 `f9d93c031eabfe5e44cf17e302729eb7093d7e94`,Node `v22.23.1` / pnpm `12.3.4`;九个声明 DSH 版本全部通过 typecheck、build 和 475/475 测试(`.tmp/0.2.2-final-matrix2.json`)。 |
46
+ | 0.2.2 全新 profile 安装 | 2026-11-11 PASS:隔离 `DSH_HOME=/tmp/dsh-charter-fresh-022-home` 初始化全新 Web profile,安装精确本地 `dsh-charter-0.2.2.tgz`;`dsh web` 提供 Pane 入口(HTTP 303 token redirect)。已验证 CLI/tarball 路径;Desktop、真实 Pane 交互和中英切换仍需人工。 |
47
+ | 0.2.2 依赖图源码 | 2026-11-11 PASS:`npm run check` 37 个文件 / 475 个测试;W0-0 原型 41/41(旧契约;无边孤立节点网格例外由 `tests/client/relation-graph.spec.ts` 的产品测试覆盖);Web Pane 在 3 条 active + 4 条 pending 交付物的 Session 上渲染图形、候选泳道、inspector 和常驻语义列表;浏览器 console 无错误。UI 自测(2026-11-11):三节点孤立图 + 空提示、紧凑列表、添加依赖/隐藏/显示、本地 key 前置摘要均正常,无 console 错误。W0-1/2/3 与真实 AT/人工门禁仍待完成。 |
48
+ | 0.2.2 依赖图 bundle | 2026-11-11 以 `d362d6f` 为基线,按统一预算方法 `gzip -9 -c lib/client.js | wc -c` 实测:113,990 → 130,474 B(+16,484 B),`<40 KB` gzip 预算通过。raw 仅作诊断:`lib/client.js` 591,936 → 670,173 字节(+78,237 B),CSS output 47,230 → 55,540 B(+8,310 B);raw 不作为预算口径。 |
44
49
 
45
50
  ## 2. 本地基线
46
51
 
@@ -70,17 +75,19 @@ CI(`.github/workflows/ci.yml`)在 Node `22.19.0` / `24` 上运行 `npm run c
70
75
 
71
76
  | DSH 版本 | 证据 |
72
77
  | --- | --- |
73
- | `0.1.7-rc.2` | 434/434 tracked matrix PASS |
74
- | `0.2.0-rc.1` | 434/434 tracked matrix PASS |
75
- | `0.2.0-rc.2` | 434/434 tracked matrix PASS |
76
- | `0.2.1-rc.1` | 434/434 tracked matrix PASS |
77
- | `0.2.1-rc.2` | 434/434 tracked matrix PASS |
78
- | `0.2.1-rc.3` | 434/434 tracked matrix PASS |
79
- | `0.2.1-rc.4` | 434/434 tracked matrix PASS |
80
- | `0.2.1-rc.5` | 434/434 tracked matrix PASS |
81
- | `0.2.2-rc.1` | 434/434 tracked matrix PASS |
82
-
83
- 当前 0.2.0 开发树已于 2026-11-05 通过 `compat-matrix --versions all`:每个声明版本均通过 typecheck、build 和 434/434 测试。安装使用 pnpm strict peer、精确工具版本、单一 zod 4.6.7 图、完整 `pnpm list --depth Infinity` 图校验,并记录 lockfile SHA-256。未跟踪 `0.2.2-alpha.2` 已 probe:strict-peer install fails because DSH requires Cordis ~4.0.6-alpha.1 while rc.6 pins 4.0.5; no tests run,rc.6 明确不支持。
78
+ | `0.1.7-rc.2` | 475/475 tracked matrix PASS |
79
+ | `0.2.0-rc.1` | 475/475 tracked matrix PASS |
80
+ | `0.2.0-rc.2` | 475/475 tracked matrix PASS |
81
+ | `0.2.1-rc.1` | 475/475 tracked matrix PASS |
82
+ | `0.2.1-rc.2` | 475/475 tracked matrix PASS |
83
+ | `0.2.1-rc.3` | 475/475 tracked matrix PASS |
84
+ | `0.2.1-rc.4` | 475/475 tracked matrix PASS |
85
+ | `0.2.1-rc.5` | 475/475 tracked matrix PASS |
86
+ | `0.2.2-rc.1` | 475/475 tracked matrix PASS |
87
+
88
+ 0.2.2 候选树在源码提交 `f9d93c031eabfe5e44cf17e302729eb7093d7e94` 上于 2026-11-11 通过
89
+ `compat-matrix --versions all --allow-new-release`(Node `v22.23.1` / pnpm `12.3.4`):每个声明版本均通过
90
+ typecheck、build 和 475/475 测试;本地证据为 `.tmp/0.2.2-final-matrix2.json`。安装使用 pnpm strict peer、精确工具版本、单一 zod 4.6.7 图、完整 `pnpm list --depth Infinity` 图校验,并记录 lockfile SHA-256。未跟踪 `0.2.2-alpha.2` 已 probe:strict-peer install fails because DSH requires Cordis ~4.0.6-alpha.1 while rc.6 pins 4.0.5; no tests run,rc.6 明确不支持。
84
91
 
85
92
  ## 4. 测试覆盖
86
93
 
@@ -0,0 +1,19 @@
1
+ import type { GraphLayout, RelationGraphModel } from './relation-graph.js';
2
+ export interface DependencyGraphProps {
3
+ readonly layout: GraphLayout;
4
+ readonly model: RelationGraphModel;
5
+ readonly focusId: string | undefined;
6
+ readonly activeKey: string | undefined;
7
+ readonly depth: 1 | 2;
8
+ readonly showSupersedes: boolean;
9
+ readonly editable: boolean;
10
+ readonly onFocus: (id: string) => void;
11
+ readonly onActiveKey: (key: string) => void;
12
+ readonly onDepth: (depth: 1 | 2) => void;
13
+ readonly onShowSupersedes: (show: boolean) => void;
14
+ readonly onStageRequires: (targetId: string, nextRequires: readonly string[]) => void;
15
+ readonly onLocateList: (id: string) => void;
16
+ readonly onProposal: (id: string) => void;
17
+ readonly t: (key: string, values?: Record<string, string | number>) => string;
18
+ }
19
+ export declare function DependencyGraph({ layout, model, focusId, activeKey, depth, showSupersedes, editable, onFocus, onActiveKey, onDepth, onShowSupersedes, onStageRequires, onLocateList, onProposal, t, }: DependencyGraphProps): JSX.Element;
@@ -5,8 +5,6 @@ declare const en: {
5
5
  readonly 'header.title': "Charter";
6
6
  readonly 'header.subtitle': "Compaction rewrites history. Your commitments don't.";
7
7
  readonly 'stats.revision': "rev {revision}";
8
- readonly 'stats.active': "{count} active";
9
- readonly 'stats.stored': "{count} stored";
10
8
  readonly 'overview.afterApply': "After Apply";
11
9
  readonly 'stats.afterApply': "{active} active / {stored} stored after Apply";
12
10
  readonly 'stats.context': "{bytes} B context";
@@ -46,7 +44,7 @@ declare const en: {
46
44
  readonly 'nav.recovery': "Storage & recovery";
47
45
  readonly 'nav.open': "Open";
48
46
  readonly 'nav.workspaceHelp': "See the current objective, global invariants, execution plan, and unresolved blockers.";
49
- readonly 'nav.reviewHelp': "Review pending proposals, history drafts, inactive items, and recent changes.";
47
+ readonly 'nav.reviewHelp': "Review message proposals, compaction-history drafts, pending proposals, and recent changes.";
50
48
  readonly 'nav.diagnosticsHelp': "Inspect prompt, budgets, record health, recovery, and capability diagnostics.";
51
49
  readonly 'nav.overviewHelp': "See active commitments, counts, budget, and any pending review at a glance.";
52
50
  readonly 'nav.objectiveHelp': "Read or redirect the current objective while the original objective stays immutable.";
@@ -62,13 +60,22 @@ declare const en: {
62
60
  readonly 'changeset.promptDelta': "Prompt bytes: {before} → {after}";
63
61
  readonly 'changeset.itemsDelta': "Items: {before} → {after}";
64
62
  readonly 'changeset.editorOpen': "An inline editor is open";
63
+ readonly 'changeset.conflicts': "This Change Set introduces or worsens {count} dependency conflict(s)";
64
+ readonly 'changeset.conflictAdded': "new conflict ({before} → {after} blocking prerequisites)";
65
+ readonly 'changeset.conflictWorsened': "worsened ({before} → {after} blocking prerequisites)";
66
+ readonly 'changeset.conflictHint': "{count} dependency conflict(s) — Apply needs your confirmation";
67
+ readonly 'changeset.conflictConfirmHint': "Confirm to apply with {count} known dependency conflict(s)";
65
68
  readonly 'review.itemProposals': "Item proposals";
66
69
  readonly 'review.messageProposal': "Message proposal";
67
- readonly 'review.saveLatestMessage': "Save selected message";
68
- readonly 'message.pick': "Select a user message";
70
+ readonly 'review.messageProposalHint': "Turn one recent user message into a pending proposal. Nothing changes until you review and apply it.";
71
+ readonly 'review.saveLatestMessage': "Save as proposal";
72
+ readonly 'message.pick': "User message";
73
+ readonly 'message.pickPlaceholder': "Choose a recent user message";
69
74
  readonly 'message.kind': "Proposal kind";
70
- readonly 'message.rangeStart': "Selection start (optional)";
71
- readonly 'message.rangeEnd': "Selection end (optional)";
75
+ readonly 'message.textLabel': "Proposal text (editable)";
76
+ readonly 'message.textHint': "The selected message is loaded here. Edit it freely before saving as a pending proposal.";
77
+ readonly 'message.truncated': "This message is long and was capped for display; edit the text before saving.";
78
+ readonly 'message.legacyUnavailable': "This Host does not expose the full message text, so it cannot be edited as a proposal here.";
72
79
  readonly 'review.contentModified': "content modified";
73
80
  readonly 'review.inactiveItems': "Inactive and rejected items";
74
81
  readonly 'review.objectiveHistory': "Objective proposal history";
@@ -86,7 +93,8 @@ declare const en: {
86
93
  readonly 'review.objectiveReason': "Reason for replacing the current objective";
87
94
  readonly 'review.acceptObjective': "Accept objective";
88
95
  readonly 'review.rejectObjective': "Reject objective";
89
- readonly 'review.kicker': "Review Center";
96
+ readonly 'review.heading': "Review Center";
97
+ readonly 'review.headingHint': "Review message proposals, compaction-history drafts, pending proposals, and recent changes. Nothing changes until you apply it.";
90
98
  readonly 'review.title': "Proposal batches";
91
99
  readonly 'review.captured': "Captured at revision {revision}";
92
100
  readonly 'review.sourceIntegrity': "Source: {integrity}";
@@ -97,10 +105,7 @@ declare const en: {
97
105
  readonly 'review.source.agent-tool': "Agent tool proposal";
98
106
  readonly 'review.source.fork': "Fork proposal";
99
107
  readonly 'review.source.legacy-unknown': "Legacy unknown source";
100
- readonly 'deps.kicker': "Execution plan";
101
108
  readonly 'deps.title': "Dependencies and readiness";
102
- readonly 'deps.requires': "Requires {keys}";
103
- readonly 'deps.editAria': "Prerequisites for {key}";
104
109
  readonly 'deps.status.ready': "ready";
105
110
  readonly 'deps.status.waiting': "waiting";
106
111
  readonly 'deps.status.dependency-conflict': "dependency conflict";
@@ -109,12 +114,64 @@ declare const en: {
109
114
  readonly 'deps.status.terminal': "terminal";
110
115
  readonly 'deps.prerequisiteConflict': "prerequisite conflict";
111
116
  readonly 'deps.conflict': "The staged dependency plan contains a cycle or invalid reference. Remove or change a prerequisite before Apply.";
117
+ readonly 'deps.graphTitle': "Dependency map";
118
+ readonly 'deps.graphFocus': "Focus";
119
+ readonly 'deps.graphDepth': "Depth";
120
+ readonly 'deps.depth1': "1 hop";
121
+ readonly 'deps.depth2': "2 hops";
122
+ readonly 'deps.showSupersedes': "Show replacements";
123
+ readonly 'deps.zoomIn': "Zoom in";
124
+ readonly 'deps.zoomOut': "Zoom out";
125
+ readonly 'deps.resetLayout': "Reset zoom";
126
+ readonly 'deps.hideGraph': "Hide graph";
127
+ readonly 'deps.showGraph': "Show graph";
128
+ readonly 'deps.graphAria': "Dependency graph";
129
+ readonly 'deps.graphKeys': "Tab enters the graph once. Arrow keys move along dependencies; [ and ] visit every node and edge; Enter opens details; Esc closes details, then returns to the list.";
130
+ readonly 'deps.historyKicker': "Replaced";
131
+ readonly 'deps.historyStatus': "Not in the execution order";
132
+ readonly 'deps.candidateKicker': "Candidate";
133
+ readonly 'deps.candidateStatus': "Not in the execution order";
134
+ readonly 'deps.historyAria': "Replaced item {text}; not in the execution order";
135
+ readonly 'deps.candidateAria': "Candidate {text}; not in the execution order";
136
+ readonly 'deps.edgeAria': "{to} depends on {from}";
137
+ readonly 'deps.edgeAriaAdded': "{to} depends on {from} (added in this draft)";
138
+ readonly 'deps.edgeAriaRemoved': "{to} depends on {from} (removed in this draft)";
139
+ readonly 'deps.proposedEdgeAria': "Candidate prerequisite {from} for {to}; Enter opens the proposal";
140
+ readonly 'deps.supersedesEdgeAria': "{from} is replaced by {to}";
141
+ readonly 'deps.graphDegradedSupersedes': "The replacement history is hidden because this view is too dense.";
142
+ readonly 'deps.graphDegradedDepth': "Depth was reduced to one hop because this view is too dense.";
143
+ readonly 'deps.graphTooDense': "This dependency view has {count} navigable items; use the list instead.";
144
+ readonly 'deps.inspectorTitle': "Dependency details · {key}";
145
+ readonly 'deps.closeInspector': "Close details";
146
+ readonly 'deps.inspectorStatus': "Status";
147
+ readonly 'deps.inspectorRequires': "Requires";
148
+ readonly 'deps.addRequires': "Add a prerequisite";
149
+ readonly 'deps.removeRequires': "Remove {key}";
150
+ readonly 'deps.removeEdge': "Remove this dependency";
151
+ readonly 'deps.openProposal': "Open proposal";
152
+ readonly 'deps.skipToList': "Skip to the dependency list";
153
+ readonly 'deps.showMore': "Show {count} more dependency rows";
154
+ readonly 'deps.rowPosition': "Dependency {index} of {total}";
155
+ readonly 'deps.locateInList': "Locate in the list";
156
+ readonly 'deps.locateInGraph': "Locate in graph";
157
+ readonly 'deps.graphHint': "The graph never changes state by itself; edits are staged into the Change Set and Apply remains the only commit.";
158
+ readonly 'deps.help': "Keys and notes";
159
+ readonly 'deps.graphEmpty': "No dependencies yet. Drag one node onto another, or open a list row to add a prerequisite.";
160
+ readonly 'deps.graphIsolatedTooMany': "No dependencies yet. The isolated-node preview is hidden for this many rows; use the list.";
161
+ readonly 'deps.requiresSummary': "Prerequisites: {keys}";
162
+ readonly 'deps.noRequires': "No prerequisites";
163
+ readonly 'deps.editRequires': "Edit prerequisites";
164
+ readonly 'deps.stagedAdded': "staged addition";
165
+ readonly 'deps.dropInvalidSelf': "A deliverable cannot depend on itself.";
166
+ readonly 'deps.dropInvalidDuplicate': "This prerequisite is already present.";
167
+ readonly 'deps.stagedRemoved': "staged removal";
168
+ readonly 'deps.candidateCycle': "candidate dependencies form a cycle; acceptance will be rejected";
112
169
  readonly 'overview.budget': "Budget";
113
170
  readonly 'overview.budgetDetail': "Prompt, objective, and item limits";
114
171
  readonly 'overview.nothing': "Nothing configured yet.";
115
172
  readonly 'overview.objectiveHint': "The original objective is immutable; a redirect keeps it for review.";
116
173
  readonly 'bootstrap.kicker': "History draft";
117
- readonly 'bootstrap.title': "Charter draft from compaction history";
174
+ readonly 'bootstrap.title': "Compaction history draft";
118
175
  readonly 'bootstrap.body': string;
119
176
  readonly 'bootstrap.source': "Source: compaction summary ({tokens} tokens shadowed)";
120
177
  readonly 'bootstrap.sourcePlain': "Source: compaction summary";
@@ -249,6 +306,7 @@ declare const en: {
249
306
  readonly 'footer.abandon': "Abandon unknown request";
250
307
  readonly 'footer.abandonConfirm': "Confirm abandon — this discards the retained request and local draft text";
251
308
  readonly 'footer.applying': "Applying...";
309
+ readonly 'footer.applyConfirmConflicts': "Apply with {count} conflict(s)";
252
310
  readonly 'budget.editorOver': "This text exceeds the {limit} limit.";
253
311
  readonly 'budget.shrinking': "Over the limit, but shortening is allowed and will be admitted.";
254
312
  readonly 'budget.notGrowing': "Over the limit, but this edit does not increase the prompt; it will be admitted.";
@@ -311,11 +369,19 @@ declare const en: {
311
369
  readonly 'recovery.digest': "Record digest";
312
370
  readonly 'recovery.overBudget': "Over budget (not injected)";
313
371
  readonly 'recovery.exportTitle': "Export";
314
- readonly 'recovery.exportHint': "Download the complete record: identity, current snapshot, bounded history, and receipts.";
372
+ readonly 'recovery.exportHint': "Download the complete record for external analysis, auditing, or backup. Restore uses the cache below; it does not depend on this download.";
315
373
  readonly 'recovery.sensitive': "Sensitive: the archive contains your charter text. Store it securely.";
316
374
  readonly 'recovery.export': "Download record archive";
317
375
  readonly 'recovery.exportFailed': "The record could not be exported.";
318
376
  readonly 'recovery.chooseFile': "Choose archive file";
377
+ readonly 'recovery.cacheTitle': "Recent archive cache";
378
+ readonly 'recovery.cacheHint': "While the record budget allows it, the latest five committed snapshots are kept automatically; older snapshots are pruned. Restore selects a cached snapshot, so no download is required.";
379
+ readonly 'recovery.cacheEmpty': "No cached snapshot yet. A successful Apply creates one automatically when the record budget allows it.";
380
+ readonly 'recovery.cacheUnavailable': "The archive cache is unavailable.";
381
+ readonly 'recovery.cacheAria': "Choose a cached archive";
382
+ readonly 'recovery.cacheRevision': "Revision {revision}";
383
+ readonly 'recovery.importTitle': "Advanced: import a local archive file";
384
+ readonly 'recovery.importHint': "Only for an archive exported from another machine or kept before this cache existed. Normal restore should use the cache above.";
319
385
  readonly 'recovery.selected': "Selected";
320
386
  readonly 'recovery.previewTitle': "Archive preview";
321
387
  readonly 'recovery.previewHealth': "Health";
@@ -331,7 +397,9 @@ declare const en: {
331
397
  readonly 'recovery.initialize': "Initialize empty Charter";
332
398
  readonly 'recovery.initializeWarning': "Creating an empty Charter may replace a document that storage cannot read. Back up the file first if you need it.";
333
399
  readonly 'recovery.initializeConfirm': "Confirm initialize empty";
334
- readonly 'recovery.restore': "Restore this archive";
400
+ readonly 'recovery.restoreTitle': "Restore archive";
401
+ readonly 'recovery.restoreCached': "Restore cached snapshot";
402
+ readonly 'recovery.restoreFile': "Restore imported archive";
335
403
  readonly 'recovery.restoreConfirm': "Confirm restore";
336
404
  readonly 'recovery.capabilityUnavailable': "Record maintenance requires DSH 0.2.1 or newer with owner/resource enforcement.";
337
405
  readonly 'recovery.recordLimit': "The configured record budget leaves no room for a recovery archive; offline backup after stopping the Host is required.";
@@ -384,17 +452,27 @@ declare const en: {
384
452
  readonly 'validity.unknown': "Unknown";
385
453
  readonly 'validity.stale': "Stale";
386
454
  readonly 'validators.title': "Fact validity validator";
387
- readonly 'validators.hint': "Owner-only registered validators read files inside this workspace. No shell command runs.";
388
- readonly 'validators.itemAria': "Item to validate";
389
- readonly 'validators.kindAria': "Validator kind";
455
+ readonly 'validators.hint': "Pick one active commitment, choose what to check, then run it against a file in this workspace. The validator only reads files; it never executes a shell or edits the commitment.";
456
+ readonly 'validators.targetLabel': "Commitment to check";
457
+ readonly 'validators.targetHint': "Only active hard constraints and deliverables are listed.";
458
+ readonly 'validators.methodLabel': "What should be true";
459
+ readonly 'validators.pathLabel': "Workspace path";
460
+ readonly 'validators.expectationLabel': "Expected content";
461
+ readonly 'validators.itemAria': "Commitment to validate";
462
+ readonly 'validators.kindAria': "Validation type";
390
463
  readonly 'validators.pathAria': "Workspace relative file path";
391
464
  readonly 'validators.pathPlaceholder': "relative/path";
392
465
  readonly 'validators.expectationAria': "Expected digest or text";
393
466
  readonly 'validators.containsPlaceholder': "text to find";
394
- readonly 'validators.pickItem': "Choose an active item";
395
- readonly 'validators.run': "Run validator";
467
+ readonly 'validators.pickItem': "Choose an active commitment";
468
+ readonly 'validators.run': "Run check";
469
+ readonly 'validators.kind.path-exists': "Path exists";
470
+ readonly 'validators.kind.file-digest': "File SHA-256 matches";
471
+ readonly 'validators.kind.file-contains': "File contains text";
396
472
  readonly 'validators.done': "Validator result saved.";
397
473
  readonly 'validators.failed': "Validator request failed.";
474
+ readonly 'integrity.title': "Evidence integrity";
475
+ readonly 'integrity.hint': "Checks whether the message and summary sources that proposals came from still match the current Session history. This is not a business check of the commitment itself.";
398
476
  readonly 'integrity.check': "Check evidence integrity";
399
477
  readonly 'integrity.summary': "Checked {count} evidence binding(s); {changed} not intact.";
400
478
  readonly 'integrity.truncated': "Evidence checks were capped by the read budget.";