dsh-charter 0.3.0 → 0.3.1

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 (37) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/CHANGELOG.zh.md +25 -0
  3. package/README.md +40 -31
  4. package/README.zh.md +41 -30
  5. package/docs/README.md +2 -2
  6. package/docs/README.zh.md +3 -3
  7. package/docs/assets/charter-graph-0.3.1.png +0 -0
  8. package/docs/assets/charter-graph-0.3.1.zh.png +0 -0
  9. package/docs/assets/charter-pane-0.3.1.png +0 -0
  10. package/docs/assets/charter-pane-0.3.1.zh.png +0 -0
  11. package/docs/assets/dependency-example.svg +90 -0
  12. package/docs/assets/dependency-example.zh.svg +90 -0
  13. package/docs/design/charter-dependency-graph-v1.zh.md +26 -21
  14. package/docs/design/charter-gui-v1.zh.md +15 -10
  15. package/docs/design/compatibility.md +5 -4
  16. package/docs/design/compatibility.zh.md +5 -4
  17. package/docs/design/mockups/mockup-graph.html +3 -1
  18. package/docs/design/mockups/mockup.css +4 -0
  19. package/docs/design/version-roadmap.md +8 -6
  20. package/docs/design/version-roadmap.zh.md +23 -8
  21. package/docs/release-notes/0.3.0.md +7 -3
  22. package/docs/release-notes/0.3.1.md +38 -0
  23. package/docs/release-notes/README.md +1 -1
  24. package/docs/releasing.md +2 -2
  25. package/docs/releasing.zh.md +2 -2
  26. package/docs/verification.md +46 -9
  27. package/docs/verification.zh.md +37 -5
  28. package/lib/client/DiagnosticsPage.d.ts +1 -1
  29. package/lib/client/locales.d.ts +17 -0
  30. package/lib/client/relation-graph.d.ts +0 -1
  31. package/lib/client.js +283 -23
  32. package/lib/core/standing-envelope.d.ts +31 -0
  33. package/lib/index.js +1 -1
  34. package/lib/remote.js +1 -1
  35. package/lib/{service-DO3Q9uB2.js → service-BSrE7Kbu.js} +39 -23
  36. package/lib/version.d.ts +1 -1
  37. package/package.json +15 -14
package/CHANGELOG.md CHANGED
@@ -5,6 +5,34 @@ 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.3.1 — 2026-11-13
9
+
10
+ GUI convergence patch for the dependency graph, standing-envelope observability, and local traffic forensics.
11
+ No record-schema, Remote-wire, or prompt-projection change.
12
+
13
+ ### Added
14
+
15
+ - Graph lane headings for execution/candidate/history, directional SVG arrows, a fourth history line style, and
16
+ path-sized 44px edge hit targets.
17
+ - Diagnostics standing-envelope estimate: exact `charter_read standing` bytes against the 32 KiB cap, item and
18
+ deliverable counts, `maxPromptBytes`, id overhead, and `<80%` / `>=80%` / over-cap states.
19
+ - `traffic-check` `charter_propose` call/rejection counts with display-key vs unknown-id classification, active
20
+ charter-surface hashes, and a `traffic-diff` baseline comparator. Local diagnostics only; no telemetry.
21
+
22
+ ### Changed
23
+
24
+ - Removed the unused `BuildRelationGraphInput.ops` input and the graph viewport's fixed `max-height`; the graph
25
+ canvas grows with its layout.
26
+ - The frozen graph mockup/spec now documents lane headings, arrows, history line style, and the 44px edge hit
27
+ contract.
28
+
29
+ ### Verification
30
+
31
+ - `npm run check`: 41 files / **499 tests** PASS; ten-version token coverage PASS.
32
+ - Browser audit covers lane headings, arrow markers, 44px edge hit targets, adaptive viewport, no horizontal
33
+ overflow at 860–1440, and 200% page scale; real AT/VoiceOver remains a separate manual gate.
34
+ - `verify:ui-metrics -- --gate=final` and the 0.3.1 source gates run on the final tree.
35
+
8
36
  ## 0.3.0 — 2026-11-13
9
37
 
10
38
  Document-feel GUI release across Workspace, Review Center, and Diagnostics & Maintenance. No record-schema,
package/CHANGELOG.zh.md CHANGED
@@ -4,6 +4,31 @@
4
4
 
5
5
  记录 `dsh-charter` 的重要变更。DSH 插件 ABI 仍在演进,项目保持 pre-1.0 版本线。
6
6
 
7
+ ## 0.3.1 — 2026-11-13
8
+
9
+ 依赖图、standing envelope 可观测性与本地流量取证的 GUI 收敛补丁。不改变 record schema、Remote wire 或
10
+ prompt 投影。
11
+
12
+ ### 新增
13
+
14
+ - 依赖图新增执行/候选/历史泳道标题、SVG 方向箭头、历史点划线,以及沿边展开的 44px 命中区。
15
+ - Diagnostics 增加 standing envelope 估算:按 32 KiB cap 精确计算 `charter_read standing` 字节,显示条目/
16
+ 交付物数、`maxPromptBytes`、id 开销和 `<80%` / `>=80%` / 超 cap 三态。
17
+ - `traffic-check` 增加 `charter_propose` 调用/拒绝统计与 display-key/unknown-id 分类、active charter surface
18
+ hash;新增 `traffic-diff` 基线对比。仅本地诊断,不上报、不埋点。
19
+
20
+ ### 变更
21
+
22
+ - 移除未使用的 `BuildRelationGraphInput.ops` 输入,以及依赖图 viewport 的固定 `max-height`;画布随布局增长。
23
+ - 冻结稿/规格补充泳道标题、箭头、历史线型和 44px 边命中合同。
24
+
25
+ ### 验证
26
+
27
+ - `npm run check`:41 文件 / **499 测试** PASS;十版本 token 覆盖 PASS。
28
+ - 浏览器审计覆盖泳道标题、箭头 marker、44px 命中区、自适应 viewport、860–1440 无横向溢出与 200% 页面
29
+ 缩放;真实 AT/VoiceOver 仍是独立人工门禁。
30
+ - `verify:ui-metrics -- --gate=final` 与 0.3.1 源码门禁在最终树运行。
31
+
7
32
  ## 0.3.0 — 2026-11-13
8
33
 
9
34
  Workspace、审阅中心、诊断与维护统一到文档感 GUI。不改变 record schema、Remote wire 或 prompt 投影。
package/README.md CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
4
4
  [![GitHub](https://img.shields.io/badge/GitHub-centella--cream%2Fdsh--charter-181717?logo=github)](https://github.com/centella-cream/dsh-charter)
5
- [![DSH](https://img.shields.io/badge/DSH-10%20verified%20versions-4b6bfb)](docs/design/compatibility.md)
5
+ [![DSH](https://img.shields.io/badge/DSH-11%20verified%20versions-4b6bfb)](docs/design/compatibility.md)
6
6
  [![Node](https://img.shields.io/badge/node-%5E22.19%20%7C%7C%20%3E%3D24-339933)](package.json)
7
- [![Status: 0.3.0](https://img.shields.io/badge/status-0.3.0-brightgreen)](#status)
7
+ [![Status: 0.3.1](https://img.shields.io/badge/status-0.3.1-brightgreen)](#status)
8
8
 
9
9
  English | [中文](README.zh.md)
10
10
 
@@ -14,22 +14,23 @@ English | [中文](README.zh.md)
14
14
  [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness). Goals, hard constraints,
15
15
  deliverables, evidence, and dependency relationships survive compaction and remain visible and editable.
16
16
 
17
- ![Charter Pane in the 0.3.0 document-feel layout](docs/assets/charter-pane-0.3.0.png)
17
+ ![Charter Pane in the document-feel layout](docs/assets/charter-pane-0.3.1.png)
18
18
 
19
- > The **0.3.0** Pane in a local Web profile: underline area tabs, a 720px document column, aligned document
19
+ > The Pane in a local Web profile: underline area tabs, a 720px document column, aligned document
20
20
  > rows, and a compact execution-path disclosure. Screenshot uses synthetic demo values only.
21
21
 
22
- ![Dependency graph in the 0.3.0 Pane](docs/assets/charter-graph-0.3.0.zh.png)
22
+ ![Dependency graph in the Pane](docs/assets/charter-graph-0.3.1.png)
23
23
 
24
- > The execution-path dependency graph: fixed-px nodes, three-layer node anatomy, status language, and a static
25
- > edge legend. The semantic list remains the authoritative surface.
24
+ > The execution-path dependency graph: lane headings, the three-column execution grid, and the state/type
25
+ > legend. Edge arrows and hit targets appear when dependencies exist. The semantic list remains authoritative.
26
26
 
27
27
  ## Contents
28
28
 
29
29
  - [Status](#status)
30
+ - [Core capabilities](#core-capabilities)
31
+ - [Dependency relationships](#dependency-relationships)
32
+ - [Proposals, diagnostics, and recovery](#proposals-diagnostics-and-recovery)
30
33
  - [Why](#why)
31
- - [0.3 headline: document-feel Pane](#03-headline-document-feel-pane)
32
- - [Other 0.3 capabilities](#other-03-capabilities)
33
34
  - [How it works](#how-it-works)
34
35
  - [Install](#install)
35
36
  - [Quick start](#quick-start)
@@ -44,17 +45,20 @@ deliverables, evidence, and dependency relationships survive compaction and rema
44
45
 
45
46
  ## Status
46
47
 
47
- - **Current release:** `0.3.0` — the GUI redesign release. It ships the frozen document-feel Pane across
48
+ - **Current development candidate:** `0.3.1` — the GUI convergence release. It keeps the frozen document-feel Pane and closes
49
+ the dependency-graph audit and standing-envelope observability gaps. It ships the document-feel Pane across
48
50
  Workspace, Review Center, and Diagnostics; the dependency graph; the bounded DSH compatibility declaration;
49
- and the Host tool fix that exposes deliverable ids to `charter_propose.requires`.
51
+ and the Host tool fix that exposes deliverable ids to `charter_propose.requires`. **Not published yet;** latest published release is `0.3.0`.
50
52
  - **Previous release:** `0.2.2` — dependency-graph workspace view, compact dependency list, and explicit
51
53
  dependency-conflict confirmation.
52
- - **Earlier release:** `0.2.1`; **primary DSH baseline:** `0.2.2-rc.2`; ten declared DSH versions are
54
+ - **Earlier release:** `0.2.1`; **primary DSH baseline:** `0.2.2-rc.3`; eleven declared DSH versions are
53
55
  source-matrix verified.
54
- - Versioning from `0.2.0` onward uses plain increments (`0.2.0`, `0.2.1`, `0.2.2`, `0.3.0`), never an `rc`
56
+ - Versioning from `0.2.0` onward uses plain increments (`0.2.0`, `0.2.1`, `0.2.2`, `0.3.0`, `0.3.1`), never an `rc`
55
57
  suffix.
56
58
 
57
- ### 0.3 headline: document-feel Pane
59
+ ## Core capabilities
60
+
61
+ ### Document-feel Pane
58
62
 
59
63
  - **One document, not a dashboard.** Workspace, Review Center, and Diagnostics share the same reading column,
60
64
  type scale, row anatomy, chips, quiet links, and empty/skeleton states.
@@ -67,12 +71,21 @@ deliverables, evidence, and dependency relationships survive compaction and rema
67
71
  - **The graph is a real view, not a second authority.** The execution-path disclosure renders a px-geometry
68
72
  graph with fixed 184px nodes, two-line truncation, status anatomy, edge states, and a compact inspector; the
69
73
  semantic list remains authoritative.
70
- - **Version visible.** The Pane header carries the approved `v0.3.0` chip, revision, and prompt meter together.
74
+ - **Version visible.** The Pane header carries the installed version chip, revision, and prompt meter together.
75
+
76
+ ### Dependency graph and diagnostics
71
77
 
72
- ### Other 0.3 capabilities
78
+ - **Graph audit:** lane headings, directional SVG arrows, path-sized 44px edge hit targets, a dot-dash history
79
+ line, an adaptive-height canvas, and removal of the unused graph `ops` input.
80
+ - **Standing envelope warning:** Diagnostics estimates the exact `charter_read standing` result against the
81
+ 32 KiB cap, with `<80%` / `>=80%` / over-cap states and the included id overhead.
82
+ - **Traffic forensics:** the local `traffic-check` reports `charter_propose` rejection categories and active
83
+ charter-surface hashes; `traffic-diff` compares before/after baselines. No runtime telemetry or upload is added.
73
84
 
74
- - DSH `0.2.2-rc.2` declarations plus a bounded `engines.dsh` 0.2-line range; exact `dshReleases`/peer list
75
- remains the ten-version matrix-verified support set.
85
+ ### Compatibility and runtime
86
+
87
+ - DSH `0.2.2-rc.3` declarations plus a bounded `engines.dsh` 0.2-line range; exact `dshReleases`/peer list
88
+ remains the eleven-version matrix-verified support set.
76
89
  - `charter_read standing` now exposes stable deliverable ids so the model can propose real `requires`
77
90
  references; `D<n>` labels are documented as display-only, and invalid references fail explicitly.
78
91
  - Desktop and Web plugin bundles hot-reload through the Host profile recomposition/client HMR path; CSS is
@@ -106,16 +119,12 @@ permission boundary.
106
119
  A charter is a declaration, not an enforcement policy. Use Host permissions, sandbox policy, hooks, or
107
120
  execution guards for restrictions that must be machine-enforced.
108
121
 
109
- ## 0.2 headline: constraint relationships
122
+ ## Dependency relationships
110
123
 
111
- The defining change in 0.2.0 is that deliverables are no longer an independent, ordered checklist. A
112
- deliverable can declare **prerequisites** on other deliverables, and those relationships become part of the
124
+ Deliverables are not an independent, ordered checklist. A deliverable can declare **prerequisites** on other deliverables, and those relationships become part of the
113
125
  stored contract, the validation boundary, the UI plan, and the model-visible prompt.
114
126
 
115
- ```text
116
- Tests (D1) ───────────┐
117
- Migration (D2) ───────┴──> Release (D3)
118
- ```
127
+ ![Dependency relationships: Tests D1 and Migration D2 feed Release D3](docs/assets/dependency-example.svg)
119
128
 
120
129
  - **Typed, validated edges.** Each deliverable may carry `requires: [id…]`. The Host rejects self-edges,
121
130
  duplicate prerequisites, dangling references, inactive endpoints, and cycles. The whole Change Set fails
@@ -141,7 +150,7 @@ Migration (D2) ───────┴──> Release (D3)
141
150
 
142
151
  Dependencies are a user-authored **execution constraint**, not an enforced sandbox or permission system.
143
152
 
144
- ## Other 0.2 capabilities
153
+ ## Proposals, diagnostics, and recovery
145
154
 
146
155
  - Three primary areas: **Workspace**, **Review Center**, and **Diagnostics & Maintenance**.
147
156
  - Record schema v2 with in-memory v1 migration, proposal batches, typed provenance, and objective proposals.
@@ -182,17 +191,17 @@ storage.
182
191
 
183
192
  ## Install
184
193
 
185
- The latest public release is `0.3.0`. Install the exact version for a reproducible profile:
194
+ The latest published release is `0.3.0`:
186
195
 
187
196
  ```bash
188
197
  dsh plugin --profile web add dsh-charter@0.3.0
189
198
  ```
190
199
 
191
- For air-gapped machines or exact-artifact verification, install the published tarball:
200
+ The `0.3.1` development candidate is not published. Build/accept it from the working tree:
192
201
 
193
202
  ```bash
194
- npm pack dsh-charter@0.3.0
195
- dsh plugin --profile web add ./dsh-charter-0.3.0.tgz
203
+ npm pack
204
+ dsh plugin --profile web add ./dsh-charter-0.3.1.tgz
196
205
  ```
197
206
 
198
207
  For Desktop, use **Desktop → Plugins → Install/Update**, or import the same local tarball if your Desktop build
@@ -280,7 +289,7 @@ The only model-visible capacity is `maxPromptBytes`; `maxItems` and `maxPendingI
280
289
  | `0.1.7-rc.2` | Supported (minimum) |
281
290
  | `0.2.0-rc.1` / `0.2.0-rc.2` | Supported |
282
291
  | `0.2.1-rc.1` / `0.2.1-rc.2` / `0.2.1-rc.3` / `0.2.1-rc.4` / `0.2.1-rc.5` | Supported |
283
- | `0.2.2-rc.1` / `0.2.2-rc.2` | Supported (primary baseline: `0.2.2-rc.2`) |
292
+ | `0.2.2-rc.1` / `0.2.2-rc.2` / `0.2.2-rc.3` | Supported (primary baseline: `0.2.2-rc.3`) |
284
293
  | `0.3.x` | Not declared until verified |
285
294
 
286
295
  `engines.dsh` uses a bounded 0.2-line range (`0.1.7-rc.2 || >=0.2.0-rc.1 <0.3.0-0`), evaluated with
package/README.zh.md CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
4
4
  [![GitHub](https://img.shields.io/badge/GitHub-centella--cream%2Fdsh--charter-181717?logo=github)](https://github.com/centella-cream/dsh-charter)
5
- [![DSH](https://img.shields.io/badge/DSH-10%20verified%20versions-4b6bfb)](docs/design/compatibility.zh.md)
5
+ [![DSH](https://img.shields.io/badge/DSH-11%20verified%20versions-4b6bfb)](docs/design/compatibility.zh.md)
6
6
  [![Node](https://img.shields.io/badge/node-%5E22.19%20%7C%7C%20%3E%3D24-339933)](package.json)
7
- [![Status: 0.3.0](https://img.shields.io/badge/status-0.3.0-brightgreen)](#状态)
7
+ [![Status: 0.3.1](https://img.shields.io/badge/status-0.3.1-brightgreen)](#状态)
8
8
 
9
9
  [English](README.md) | 中文
10
10
 
@@ -13,21 +13,22 @@
13
13
  `dsh-charter` 是 [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) 的持久化、用户所有的
14
14
  会话契约插件。目标、硬约束、交付物、证据和依赖关系在上下文压缩后仍然保留,并且始终可查看、可编辑。
15
15
 
16
- ![0.3.0 文档感布局中的会话契约页](docs/assets/charter-pane-0.3.0.zh.png)
16
+ ![文档感布局中的会话契约页](docs/assets/charter-pane-0.3.1.zh.png)
17
17
 
18
- > 本地 Web profile 中 **0.3.0** Pane:顶部下划线 tabs、720px 文档列、对齐的文档行和可折叠执行路径。
18
+ > 本地 Web profile 中的 Pane:顶部下划线 tabs、720px 文档列、对齐的文档行和可折叠执行路径。
19
19
  > 截图仅使用合成演示数据。
20
20
 
21
- ![0.3.0 Pane 中的依赖关系图](docs/assets/charter-graph-0.3.0.zh.png)
21
+ ![Pane 中的依赖关系图](docs/assets/charter-graph-0.3.1.zh.png)
22
22
 
23
- > 执行路径中的依赖关系图:固定 px 节点、三层节点解剖、状态语言和静态边 legend;语义列表始终是权威操作面。
23
+ > 执行路径依赖图:泳道标题、三列执行网格和状态/类型 legend;存在依赖时显示方向箭头与沿边命中区。语义列表始终是权威操作面。
24
24
 
25
25
  ## 目录
26
26
 
27
27
  - [状态](#状态)
28
+ - [核心能力](#核心能力)
29
+ - [依赖关系](#依赖关系)
30
+ - [提案、诊断与恢复](#提案诊断与恢复)
28
31
  - [为什么需要](#为什么需要)
29
- - [0.3 核心亮点:文档感 Pane](#03-核心亮点文档感-pane)
30
- - [其他 0.3 能力](#其他-03-能力)
31
32
  - [工作原理](#工作原理)
32
33
  - [安装](#安装)
33
34
  - [快速开始](#快速开始)
@@ -42,14 +43,16 @@
42
43
 
43
44
  ## 状态
44
45
 
45
- - **当前版本:**`0.3.0` — GUI 重构版本。Workspace、Review Center、Diagnostics & Maintenance 统一到冻结的
46
- 文档感 Pane;包含依赖关系图、有界 DSH 兼容声明,以及让 `charter_propose.requires` 可用交付物 id 的
47
- Host 工具修复。
46
+ - **当前开发候选:**`0.3.1` — GUI 收敛版本。保留冻结的文档感 Pane,并关闭依赖图审计和 standing envelope 可观测性缺口。
47
+ 包含文档感 Pane、依赖关系图、有界 DSH 兼容声明,以及让 `charter_propose.requires` 可用交付物 id 的
48
+ Host 工具修复。**尚未发布**;最新已发布版本为 `0.3.0`。
48
49
  - **上一版本:**`0.2.2` — 依赖关系图形视图、紧凑依赖列表和依赖冲突二次确认。
49
- - **更早版本:**`0.2.1`;**主要 DSH 基线:**`0.2.2-rc.2`;十个声明版本通过源码矩阵验证。
50
- - 从 `0.2.0` 起版本号使用普通递增(`0.2.0`、`0.2.1`、`0.2.2`、`0.3.0`),不再使用 `rc` 后缀。
50
+ - **更早版本:**`0.2.1`;**主要 DSH 基线:**`0.2.2-rc.3`;十一个声明版本通过源码矩阵验证。
51
+ - 从 `0.2.0` 起版本号使用普通递增(`0.2.0`、`0.2.1`、`0.2.2`、`0.3.0`、`0.3.1`),不再使用 `rc` 后缀。
51
52
 
52
- ### 0.3 核心亮点:文档感 Pane
53
+ ## 核心能力
54
+
55
+ ### 文档感 Pane
53
56
 
54
57
  - **一份文档,不是仪表盘。** Workspace、审阅中心和诊断与维护共用同一阅读列、字号阶、行解剖、chip、
55
58
  quiet link 与空态/skeleton。
@@ -61,11 +64,20 @@
61
64
  margin note,不再套一层卡片。
62
65
  - **依赖图是增强视图,不是第二权威。** 执行路径 disclosure 内是 px 几何依赖图:固定 184px 节点、两行截断、
63
66
  状态解剖、边状态和紧凑 inspector;语义列表始终是权威操作面。
64
- - **版本可见。** Pane 页头同时显示已批准的 `v0.3.0` chip、revision 和 prompt meter。
67
+ - **版本可见。** Pane 页头同时显示已安装版本 chip、revision 和 prompt meter。
68
+
69
+ ### 依赖图与诊断
65
70
 
66
- ### 其他 0.3 能力
71
+ - **依赖图审计:** 泳道标题、SVG 方向箭头、沿边展开的 44px 命中区、点划线历史边、自适应画布高度,并移除
72
+ 未使用的 graph `ops` 输入。
73
+ - **Standing envelope 预警:** Diagnostics 按 32 KiB cap 精确估算 `charter_read standing` 结果,显示
74
+ `<80%` / `>=80%` / 超 cap 三态,并计入 id 开销。
75
+ - **流量取证:** 本地 `traffic-check` 增加 `charter_propose` 拒绝分类和 active charter surface hash;
76
+ `traffic-diff` 对比前后基线。不新增运行时埋点、不上报。
67
77
 
68
- - DSH `0.2.2-rc.2` 声明与有界 `engines.dsh` 0.2 线范围;精确 `dshReleases`/peer 列表仍是十版本矩阵已验证支持集。
78
+ ### 兼容性与运行时
79
+
80
+ - DSH `0.2.2-rc.3` 声明与有界 `engines.dsh` 0.2 线范围;精确 `dshReleases`/peer 列表仍是十一版本矩阵已验证支持集。
69
81
  - `charter_read standing` 现在返回交付物稳定 id,模型可以提出真实 `requires` 引用;`D<n>` 明确只是展示标签,
70
82
  非法引用显式失败。
71
83
  - Desktop/Web 插件通过 Host profile 重组 + client HMR 热更新;CSS 按归属 style tag upsert,重载后替换旧样式,
@@ -94,15 +106,12 @@
94
106
  契约是声明,不是强制执行策略。需要机器强制的限制请使用 Host permissions、sandbox policy、hooks 或
95
107
  执行守卫。
96
108
 
97
- ## 0.2 核心亮点:约束关系
109
+ ## 依赖关系
98
110
 
99
- 0.2.0 最核心的变化,是 deliverable 不再是一份互不相关的顺序清单。一个 deliverable 可以声明对其他
100
- deliverable 的**前置约束**,而这些关系会进入存储契约、校验边界、UI 计划和模型可见 prompt。
111
+ deliverable 不是一份互不相关的顺序清单。一个 deliverable 可以声明对其他 deliverable 的**前置约束**,
112
+ 这些关系会进入存储契约、校验边界、UI 计划和模型可见 prompt。
101
113
 
102
- ```text
103
- 测试 (D1) ────────────┐
104
- 迁移 (D2) ────────────┴──> 发布 (D3)
105
- ```
114
+ ![依赖关系:测试 D1 与迁移 D2 汇聚到发布 D3](docs/assets/dependency-example.zh.svg)
106
115
 
107
116
  - **类型化、可校验的关系。**每个 deliverable 可携带 `requires: [id…]`。Host 拒绝自环、重复前置、
108
117
  悬空引用、非 active 端点和环;整个 Change Set 原子失败,不会写入半张图。
@@ -115,10 +124,12 @@ deliverable 的**前置约束**,而这些关系会进入存储契约、校验
115
124
  - **生命周期安全。**archive、restore、supersede、fork 和 proposal acceptance 都会校验或重映射关系;
116
125
  `proposedRequires` 让 pending deliverable 引用候选前置条件,接受时解析为正式 requires。
117
126
  - **有界。**关系集合同样受 record 和 prompt 预算约束,不引入独立的图正本。
127
+ - **依赖图视角。** 依赖图是局部 ego 视图,包含候选泳道和替代历史泳道;它不是第二权威,图上的编辑与列表
128
+ 暂存同一组 Change Set ops。零依赖时使用有界孤立节点网格和明确的“添加前置”提示。
118
129
 
119
130
  依赖是用户编写的**执行约束**,不是强制 sandbox 或权限系统。
120
131
 
121
- ## 其他 0.2 能力
132
+ ## 提案、诊断与恢复
122
133
 
123
134
  - 三个一级区域:**Workspace**、**Review Center**、**Diagnostics & Maintenance**。
124
135
  - record schema v2、内存 v1 迁移、proposal batch、类型化 provenance 和 objective proposal。
@@ -158,17 +169,17 @@ compaction summary 返回只读草案,不写 storage。
158
169
 
159
170
  ## 安装
160
171
 
161
- 当前公开版本是 `0.3.0`。可复现 profile 请安装精确版本:
172
+ 最新已发布版本是 `0.3.0`:
162
173
 
163
174
  ```bash
164
175
  dsh plugin --profile web add dsh-charter@0.3.0
165
176
  ```
166
177
 
167
- 离线机器或需要精确验证 artifact 时,安装已发布 tarball:
178
+ `0.3.1` 开发候选尚未发布;从工作区构建并验收:
168
179
 
169
180
  ```bash
170
- npm pack dsh-charter@0.3.0
171
- dsh plugin --profile web add ./dsh-charter-0.3.0.tgz
181
+ npm pack
182
+ dsh plugin --profile web add ./dsh-charter-0.3.1.tgz
172
183
  ```
173
184
 
174
185
  Desktop 请使用 **Desktop → Plugins → Install/Update**;若 Desktop 构建支持本地插件导入,也可导入同一
@@ -253,7 +264,7 @@ active-count 失败。
253
264
  | `0.1.7-rc.2` | 支持(最低版本) |
254
265
  | `0.2.0-rc.1` / `0.2.0-rc.2` | 支持 |
255
266
  | `0.2.1-rc.1` / `0.2.1-rc.2` / `0.2.1-rc.3` / `0.2.1-rc.4` / `0.2.1-rc.5` | 支持 |
256
- | `0.2.2-rc.1` / `0.2.2-rc.2` | 支持(主基线:`0.2.2-rc.2`) |
267
+ | `0.2.2-rc.1` / `0.2.2-rc.2` / `0.2.2-rc.3` | 支持(主基线:`0.2.2-rc.3`) |
257
268
  | `0.3.x` | 验证前不声明 |
258
269
 
259
270
  `engines.dsh` 使用有界的 0.2 线范围(`0.1.7-rc.2 || >=0.2.0-rc.1 <0.3.0-0`),DSH gate 会按 prerelease
package/docs/README.md CHANGED
@@ -51,8 +51,8 @@ same commit. Do not delete a historical decision just because it is inactive; mo
51
51
  | --- | --- | --- | --- |
52
52
  | [design/charter-design-v1.md](design/charter-design-v1.md) | Active | 0.1 core; invariants apply to 0.2 | Core Charter invariants and v1 product baseline. |
53
53
  | [design/charter-workspace-v2.zh.md](design/charter-workspace-v2.zh.md) | Active | 0.2.0 / 0.3.0 | Workspace, proposal timeline, dependencies; topic-scoped. |
54
- | [design/charter-dependency-graph-v1.zh.md](design/charter-dependency-graph-v1.zh.md) | Active | 0.2.2 | Client-side dependency graph view. Source implementation lands on the 0.2.2 line; real browser/AT and W0-1/2/3 gate evidence remains pending. |
55
- | [design/charter-gui-v1.zh.md](design/charter-gui-v1.zh.md) | Active | 0.3.0 | All-section GUI refactor: design system, IA/routing, Change Set contract, Pane/store split, evidence gates. Frozen visual language (document-feel): [design/mockups/](design/mockups/README.md). |
54
+ | [design/charter-dependency-graph-v1.zh.md](design/charter-dependency-graph-v1.zh.md) | Active | 0.2.2 / 0.3.1 | Client-side dependency graph view. Source implementation lands on the 0.2.2 line; real browser/AT and W0-1/2/3 gate evidence remains pending. |
55
+ | [design/charter-gui-v1.zh.md](design/charter-gui-v1.zh.md) | Active | 0.3.0 / 0.3.1 | All-section GUI refactor: design system, IA/routing, Change Set contract, Pane/store split, evidence gates. Frozen visual language (document-feel): [design/mockups/](design/mockups/README.md). |
56
56
  | [design/version-roadmap.md](design/version-roadmap.md) | Active | whole line | Scope/version authority; Chinese is normative. |
57
57
  | [design/compatibility.md](design/compatibility.md) | Active | declared DSH versions | Compatibility claims and matrix. |
58
58
  | [history/2026-10-19-charter-design-v1-review.md](history/2026-10-19-charter-design-v1-review.md) | Historical | 0.1 | Frozen v1 design review. |
package/docs/README.zh.md CHANGED
@@ -48,9 +48,9 @@
48
48
  | 文档 | 状态 | 版本范围 | 说明 |
49
49
  | --- | --- | --- | --- |
50
50
  | [design/charter-design-v1.md](design/charter-design-v1.md) | Active | 0.1 核心;不变量适用于 0.2 | Charter 核心不变量与 v1 产品基线。 |
51
- | [design/charter-workspace-v2.zh.md](design/charter-workspace-v2.zh.md) | Active | 0.2.0 / 0.3.0 | 工作区、提案时间线、依赖;专题范围。 |
52
- | [design/charter-dependency-graph-v1.zh.md](design/charter-dependency-graph-v1.zh.md) | Active | 0.2.2 | 客户端依赖关系图形视图;源码已在 0.2.2 落地,真实浏览器/AT 与 W0-1/2/3 门禁证据仍待完成。 |
53
- | [design/charter-gui-v1.zh.md](design/charter-gui-v1.zh.md) | Active | 0.3.0 | 全栏目 GUI 全面重构:设计系统、IA/路由、Change Set 合同、Pane/store 拆分、证据门禁;视觉语言已冻结(文档感):[design/mockups/](design/mockups/README.md)。 |
51
+ | [design/charter-workspace-v2.zh.md](design/charter-workspace-v2.zh.md) | Active | 0.2.0 / 0.3.0 / 0.3.1 | 工作区、提案时间线、依赖;专题范围。 |
52
+ | [design/charter-dependency-graph-v1.zh.md](design/charter-dependency-graph-v1.zh.md) | Active | 0.2.2 / 0.3.1 | 客户端依赖关系图形视图;源码已在 0.2.2 落地,真实浏览器/AT 与 W0-1/2/3 门禁证据仍待完成。 |
53
+ | [design/charter-gui-v1.zh.md](design/charter-gui-v1.zh.md) | Active | 0.3.0 / 0.3.1 | 全栏目 GUI 全面重构:设计系统、IA/路由、Change Set 合同、Pane/store 拆分、证据门禁;视觉语言已冻结(文档感):[design/mockups/](design/mockups/README.md)。 |
54
54
  | [design/version-roadmap.md](design/version-roadmap.md) | Active | 全版本线 | 范围与版本权威;中文为 normative。 |
55
55
  | [design/compatibility.md](design/compatibility.md) | Active | 已声明 DSH 版本 | 兼容声明与矩阵。 |
56
56
  | [history/2026-10-19-charter-design-v1-review.md](history/2026-10-19-charter-design-v1-review.md) | Historical | 0.1 | 冻结的 v1 设计评审。 |
@@ -0,0 +1,90 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="960" height="320" viewBox="0 0 960 320" role="img" aria-labelledby="title desc">
2
+ <title id="title">Dependency relationships: Tests and Migration are prerequisites of Release</title>
3
+ <desc id="desc">Three deliverable cards. Tests D1 and Migration D2 are prerequisites of Release D3, with directional dependency arrows.</desc>
4
+ <style>
5
+ .surface { fill: #151820; }
6
+ .frame { fill: none; stroke: #2c333e; }
7
+ .kicker { fill: #8e98a8; font: 600 11px/1.2 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: .12em; }
8
+ .lane { fill: #6f7989; font: 500 11px/1.2 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: .04em; }
9
+ .node { fill: #1b1f27; stroke: #343c49; stroke-width: 1; }
10
+ .node-selected { stroke: #4ea1ff; }
11
+ .accent-done { fill: #3fb950; }
12
+ .accent-progress { fill: #4ea1ff; }
13
+ .accent-waiting { fill: #d29922; }
14
+ .node-key { fill: #7fb7ff; font: 600 12px/1.2 "SFMono-Regular", Consolas, monospace; }
15
+ .node-title { fill: #e8ebf1; font: 600 15px/1.2 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif; }
16
+ .node-meta { fill: #8f99a9; font: 400 11px/1.2 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif; }
17
+ .chip { fill: #242a34; stroke: #343c49; }
18
+ .chip-text { fill: #b9c2d0; font: 500 10px/1.2 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
19
+ .status-done { fill: #3fb950; }
20
+ .status-progress { fill: #4ea1ff; }
21
+ .status-waiting { fill: #d29922; }
22
+ .edge { fill: none; stroke: #7d8798; stroke-width: 1.5; }
23
+ .edge-label { fill: #8e98a8; font: 400 10px/1.2 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
24
+ .hint { fill: #7e8898; font: 400 11px/1.2 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
25
+ .legend-line { fill: none; stroke: #7d8798; stroke-width: 1.5; }
26
+ .legend-dot { fill: #3fb950; }
27
+ </style>
28
+ <defs>
29
+ <marker id="arrow" viewBox="0 0 8 8" refX="7" refY="4" markerWidth="7" markerHeight="7" orient="auto">
30
+ <path d="M0,0 L8,4 L0,8 z" fill="#7d8798"/>
31
+ </marker>
32
+ </defs>
33
+
34
+ <rect class="surface" x="0.5" y="0.5" width="959" height="319" rx="14"/>
35
+ <rect class="frame" x="0.5" y="0.5" width="959" height="319" rx="14"/>
36
+
37
+ <text class="kicker" x="32" y="36">EXECUTION PATH</text>
38
+ <text class="lane" x="32" y="64">Prerequisites are visible before dependents</text>
39
+
40
+ <!-- lane guide -->
41
+ <line x1="32" y1="80" x2="928" y2="80" stroke="#252c36" stroke-width="1"/>
42
+ <text class="lane" x="32" y="100">EXECUTION</text>
43
+ <text class="lane" x="520" y="100">DEPENDENT</text>
44
+
45
+ <!-- D1 Tests -->
46
+ <g>
47
+ <rect class="node" x="32" y="118" width="236" height="82" rx="8"/>
48
+ <rect class="accent-done" x="32" y="118" width="3" height="82" rx="1.5"/>
49
+ <circle class="status-done" cx="52" cy="140" r="3"/>
50
+ <text class="node-key" x="62" y="144">D1</text>
51
+ <rect class="chip" x="190" y="128" width="62" height="20" rx="10"/>
52
+ <text class="chip-text" x="221" y="142" text-anchor="middle">done</text>
53
+ <text class="node-title" x="52" y="169">Tests</text>
54
+ <text class="node-meta" x="52" y="188">No prerequisites</text>
55
+ </g>
56
+
57
+ <!-- D2 Migration -->
58
+ <g>
59
+ <rect class="node" x="32" y="218" width="236" height="82" rx="8"/>
60
+ <rect class="accent-progress" x="32" y="218" width="3" height="82" rx="1.5"/>
61
+ <circle class="status-progress" cx="52" cy="240" r="3"/>
62
+ <text class="node-key" x="62" y="244">D2</text>
63
+ <rect class="chip" x="174" y="228" width="78" height="20" rx="10"/>
64
+ <text class="chip-text" x="213" y="242" text-anchor="middle">in progress</text>
65
+ <text class="node-title" x="52" y="269">Migration</text>
66
+ <text class="node-meta" x="52" y="288">No prerequisites</text>
67
+ </g>
68
+
69
+ <!-- D3 Release -->
70
+ <g>
71
+ <rect class="node node-selected" x="520" y="160" width="260" height="98" rx="8"/>
72
+ <rect class="accent-waiting" x="520" y="160" width="3" height="98" rx="1.5"/>
73
+ <circle class="status-waiting" cx="540" cy="184" r="3"/>
74
+ <text class="node-key" x="550" y="188">D3</text>
75
+ <rect class="chip" x="700" y="174" width="66" height="20" rx="10"/>
76
+ <text class="chip-text" x="733" y="188" text-anchor="middle">waiting</text>
77
+ <text class="node-title" x="540" y="217" fill="#e8ebf1">Release</text>
78
+ <text class="node-meta" x="540" y="237" fill="#8f99a9">2 prerequisites · waiting on D1, D2</text>
79
+ </g>
80
+
81
+ <!-- edges: D1 -> D3 and D2 -> D3 -->
82
+ <path class="edge" d="M 268 158 C 340 158, 400 185, 516 196" marker-end="url(#arrow)"/>
83
+ <path class="edge" d="M 268 258 C 340 258, 400 225, 516 218" marker-end="url(#arrow)"/>
84
+ <text class="edge-label" x="338" y="142">requires D1</text>
85
+ <text class="edge-label" x="338" y="286">requires D2</text>
86
+
87
+ <!-- legend / note -->
88
+ <line class="legend-line" x1="32" y1="306" x2="62" y2="306"/>
89
+ <text class="hint" x="72" y="310">solid = active dependency · D3 enters the prompt after D1 and D2</text>
90
+ </svg>
@@ -0,0 +1,90 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="960" height="320" viewBox="0 0 960 320" role="img" aria-labelledby="title desc">
2
+ <title id="title">依赖关系:测试与迁移是发布的前置条件</title>
3
+ <desc id="desc">三张交付物卡片。测试 D1 与迁移 D2 是发布 D3 的前置条件,带方向依赖箭头。</desc>
4
+ <style>
5
+ .surface { fill: #151820; }
6
+ .frame { fill: none; stroke: #2c333e; }
7
+ .kicker { fill: #8e98a8; font: 600 11px/1.2 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: .12em; }
8
+ .lane { fill: #6f7989; font: 500 11px/1.2 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: .04em; }
9
+ .node { fill: #1b1f27; stroke: #343c49; stroke-width: 1; }
10
+ .node-selected { stroke: #4ea1ff; }
11
+ .accent-done { fill: #3fb950; }
12
+ .accent-progress { fill: #4ea1ff; }
13
+ .accent-waiting { fill: #d29922; }
14
+ .node-key { fill: #7fb7ff; font: 600 12px/1.2 "SFMono-Regular", Consolas, monospace; }
15
+ .node-title { fill: #e8ebf1; font: 600 15px/1.2 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
16
+ .node-meta { fill: #8f99a9; font: 400 11px/1.2 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif; }
17
+ .chip { fill: #242a34; stroke: #343c49; }
18
+ .chip-text { fill: #b9c2d0; font: 500 10px/1.2 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
19
+ .status-done { fill: #3fb950; }
20
+ .status-progress { fill: #4ea1ff; }
21
+ .status-waiting { fill: #d29922; }
22
+ .edge { fill: none; stroke: #7d8798; stroke-width: 1.5; }
23
+ .edge-label { fill: #8e98a8; font: 400 10px/1.2 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
24
+ .hint { fill: #7e8898; font: 400 11px/1.2 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
25
+ .legend-line { fill: none; stroke: #7d8798; stroke-width: 1.5; }
26
+ .legend-dot { fill: #3fb950; }
27
+ </style>
28
+ <defs>
29
+ <marker id="arrow" viewBox="0 0 8 8" refX="7" refY="4" markerWidth="7" markerHeight="7" orient="auto">
30
+ <path d="M0,0 L8,4 L0,8 z" fill="#7d8798"/>
31
+ </marker>
32
+ </defs>
33
+
34
+ <rect class="surface" x="0.5" y="0.5" width="959" height="319" rx="14"/>
35
+ <rect class="frame" x="0.5" y="0.5" width="959" height="319" rx="14"/>
36
+
37
+ <text class="kicker" x="32" y="36">执行路径</text>
38
+ <text class="lane" x="32" y="64">前置条件先于依赖项可见</text>
39
+
40
+ <!-- lane guide -->
41
+ <line x1="32" y1="80" x2="928" y2="80" stroke="#252c36" stroke-width="1"/>
42
+ <text class="lane" x="32" y="100">执行</text>
43
+ <text class="lane" x="520" y="100">依赖项</text>
44
+
45
+ <!-- D1 Tests -->
46
+ <g>
47
+ <rect class="node" x="32" y="118" width="236" height="82" rx="8"/>
48
+ <rect class="accent-done" x="32" y="118" width="3" height="82" rx="1.5"/>
49
+ <circle class="status-done" cx="52" cy="140" r="3"/>
50
+ <text class="node-key" x="62" y="144">D1</text>
51
+ <rect class="chip" x="190" y="128" width="62" height="20" rx="10"/>
52
+ <text class="chip-text" x="221" y="142" text-anchor="middle">已完成</text>
53
+ <text class="node-title" x="52" y="169">测试</text>
54
+ <text class="node-meta" x="52" y="188">无前置</text>
55
+ </g>
56
+
57
+ <!-- D2 Migration -->
58
+ <g>
59
+ <rect class="node" x="32" y="218" width="236" height="82" rx="8"/>
60
+ <rect class="accent-progress" x="32" y="218" width="3" height="82" rx="1.5"/>
61
+ <circle class="status-progress" cx="52" cy="240" r="3"/>
62
+ <text class="node-key" x="62" y="244">D2</text>
63
+ <rect class="chip" x="174" y="228" width="78" height="20" rx="10"/>
64
+ <text class="chip-text" x="213" y="242" text-anchor="middle">进行中</text>
65
+ <text class="node-title" x="52" y="269">迁移</text>
66
+ <text class="node-meta" x="52" y="288">无前置</text>
67
+ </g>
68
+
69
+ <!-- D3 Release -->
70
+ <g>
71
+ <rect class="node node-selected" x="520" y="160" width="260" height="98" rx="8"/>
72
+ <rect class="accent-waiting" x="520" y="160" width="3" height="98" rx="1.5"/>
73
+ <circle class="status-waiting" cx="540" cy="184" r="3"/>
74
+ <text class="node-key" x="550" y="188">D3</text>
75
+ <rect class="chip" x="700" y="174" width="66" height="20" rx="10"/>
76
+ <text class="chip-text" x="733" y="188" text-anchor="middle">等待</text>
77
+ <text class="node-title" x="540" y="217" fill="#e8ebf1">发布</text>
78
+ <text class="node-meta" x="540" y="237" fill="#8f99a9">2 个前置 · 等待 D1、D2</text>
79
+ </g>
80
+
81
+ <!-- edges: D1 -> D3 and D2 -> D3 -->
82
+ <path class="edge" d="M 268 158 C 340 158, 400 185, 516 196" marker-end="url(#arrow)"/>
83
+ <path class="edge" d="M 268 258 C 340 258, 400 225, 516 218" marker-end="url(#arrow)"/>
84
+ <text class="edge-label" x="338" y="142">依赖 D1</text>
85
+ <text class="edge-label" x="338" y="286">依赖 D2</text>
86
+
87
+ <!-- legend / note -->
88
+ <line class="legend-line" x1="32" y1="306" x2="62" y2="306"/>
89
+ <text class="hint" x="72" y="310">实线 = 生效依赖 · D1、D2 完成后 D3 才进入 prompt</text>
90
+ </svg>