dsh-charter 0.3.0 → 0.3.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.
- package/CHANGELOG.md +55 -0
- package/CHANGELOG.zh.md +48 -0
- package/README.md +52 -31
- package/README.zh.md +51 -30
- package/docs/README.md +2 -2
- package/docs/README.zh.md +3 -3
- package/docs/assets/charter-graph-0.3.1.png +0 -0
- package/docs/assets/charter-graph-0.3.1.zh.png +0 -0
- package/docs/assets/charter-graph-root-text-200-0.3.2.png +0 -0
- package/docs/assets/charter-pane-0.3.1.png +0 -0
- package/docs/assets/charter-pane-0.3.1.zh.png +0 -0
- package/docs/assets/charter-state-applied-0.3.2.png +0 -0
- package/docs/assets/charter-state-conflict-0.3.2.png +0 -0
- package/docs/assets/charter-state-empty-0.3.2.png +0 -0
- package/docs/assets/charter-state-forced-colors-0.3.2.png +0 -0
- package/docs/assets/charter-state-reduced-motion-0.3.2.png +0 -0
- package/docs/assets/charter-state-staged-0.3.2.png +0 -0
- package/docs/assets/dependency-example.svg +90 -0
- package/docs/assets/dependency-example.zh.svg +90 -0
- package/docs/design/charter-dependency-graph-v1.zh.md +27 -21
- package/docs/design/charter-gui-v1.zh.md +46 -28
- package/docs/design/compatibility.md +5 -4
- package/docs/design/compatibility.zh.md +5 -4
- package/docs/design/mockups/mockup-graph.html +3 -1
- package/docs/design/mockups/mockup.css +4 -0
- package/docs/design/version-roadmap.md +7 -6
- package/docs/design/version-roadmap.zh.md +28 -12
- package/docs/release-notes/0.3.0.md +7 -3
- package/docs/release-notes/0.3.1.md +41 -0
- package/docs/release-notes/0.3.2.md +34 -0
- package/docs/release-notes/README.md +1 -1
- package/docs/releasing.md +4 -3
- package/docs/releasing.zh.md +4 -3
- package/docs/verification.md +104 -50
- package/docs/verification.zh.md +94 -46
- package/lib/client/DependencyGraph.d.ts +2 -0
- package/lib/client/DiagnosticsPage.d.ts +1 -1
- package/lib/client/locales.d.ts +18 -0
- package/lib/client/relation-graph.d.ts +0 -1
- package/lib/client.js +409 -109
- package/lib/core/standing-envelope.d.ts +31 -0
- package/lib/index.js +1 -1
- package/lib/remote.js +1 -1
- package/lib/{service-DO3Q9uB2.js → service-BSrE7Kbu.js} +39 -23
- package/lib/version.d.ts +1 -1
- package/package.json +15 -14
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,61 @@ 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.2 — 2026-11-16 (development candidate)
|
|
9
|
+
|
|
10
|
+
Accessibility/evidence convergence patch for the 0.3.x line. No record-schema, Remote-wire, or prompt change.
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Root-text graph scaling: when the root font size exceeds 16px, the whole graph canvas scales as a unit
|
|
15
|
+
(capped at 200%) and the viewport becomes scrollable, avoiding new node-text clipping.
|
|
16
|
+
- A source metric for the graph's 44px path hit target and a pure `graphTextScale` test.
|
|
17
|
+
- Final-build evidence for empty/staged/applied/conflict-confirmation, forced-colors, reduced-motion, and
|
|
18
|
+
breakpoint/root-font measurements.
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
|
|
22
|
+
- Reconciled the 0.3.0 GUI design header and Appendix D against the published 0.3.0/0.3.1 releases; carried
|
|
23
|
+
unfinished manual gates explicitly into 0.3.2.
|
|
24
|
+
- Marked the dependency-graph design Active with real AT and root-text gaps as public known gaps.
|
|
25
|
+
- Refreshed verification's current-status section for 0.3.1/0.3.2 and cleaned roadmap/docs-index pending wording.
|
|
26
|
+
|
|
27
|
+
### Verification
|
|
28
|
+
|
|
29
|
+
- `npm run check`: 42 files / **500 tests** PASS; token coverage over 11 declared DSH versions PASS;
|
|
30
|
+
`verify:ui-metrics -- --gate=final` PASS.
|
|
31
|
+
- Eleven-version source matrix PASS on the 0.3.2 tree.
|
|
32
|
+
- Manual gates still open: real VoiceOver/NVDA, native Desktop window matrix, and final human sign-off on the
|
|
33
|
+
frozen mockup side-by-side review.
|
|
34
|
+
|
|
35
|
+
## 0.3.1 — 2026-11-13
|
|
36
|
+
|
|
37
|
+
GUI convergence patch for the dependency graph, standing-envelope observability, and local traffic forensics.
|
|
38
|
+
No record-schema, Remote-wire, or prompt-projection change.
|
|
39
|
+
|
|
40
|
+
### Added
|
|
41
|
+
|
|
42
|
+
- Graph lane headings for execution/candidate/history, directional SVG arrows, a fourth history line style, and
|
|
43
|
+
path-sized 44px edge hit targets.
|
|
44
|
+
- Diagnostics standing-envelope estimate: exact `charter_read standing` bytes against the 32 KiB cap, item and
|
|
45
|
+
deliverable counts, `maxPromptBytes`, id overhead, and `<80%` / `>=80%` / over-cap states.
|
|
46
|
+
- `traffic-check` `charter_propose` call/rejection counts with display-key vs unknown-id classification, active
|
|
47
|
+
charter-surface hashes, and a `traffic-diff` baseline comparator. Local diagnostics only; no telemetry.
|
|
48
|
+
|
|
49
|
+
### Changed
|
|
50
|
+
|
|
51
|
+
- Removed the unused `BuildRelationGraphInput.ops` input and the graph viewport's fixed `max-height`; the graph
|
|
52
|
+
canvas grows with its layout.
|
|
53
|
+
- The frozen graph mockup/spec now documents lane headings, arrows, history line style, and the 44px edge hit
|
|
54
|
+
contract.
|
|
55
|
+
|
|
56
|
+
### Verification
|
|
57
|
+
|
|
58
|
+
- `npm run check`: 41 files / **499 tests** PASS; ten-version token coverage PASS.
|
|
59
|
+
- Browser audit covers lane headings, arrow markers, 44px edge hit targets, adaptive viewport, no horizontal
|
|
60
|
+
overflow at 860–1440, and 200% page scale; real AT/VoiceOver remains a separate manual gate.
|
|
61
|
+
- `verify:ui-metrics -- --gate=final` and the 0.3.1 source gates run on the final tree.
|
|
62
|
+
|
|
8
63
|
## 0.3.0 — 2026-11-13
|
|
9
64
|
|
|
10
65
|
Document-feel GUI release across Workspace, Review Center, and Diagnostics & Maintenance. No record-schema,
|
package/CHANGELOG.zh.md
CHANGED
|
@@ -4,6 +4,54 @@
|
|
|
4
4
|
|
|
5
5
|
记录 `dsh-charter` 的重要变更。DSH 插件 ABI 仍在演进,项目保持 pre-1.0 版本线。
|
|
6
6
|
|
|
7
|
+
## 0.3.2 — 2026-11-16(开发候选)
|
|
8
|
+
|
|
9
|
+
0.3.x 的无障碍/证据收敛补丁。不改变 record schema、Remote wire 或 prompt。
|
|
10
|
+
|
|
11
|
+
### 新增
|
|
12
|
+
|
|
13
|
+
- 根字号图形缩放:根字号大于 16px 时,整个画布等比缩放(最多 200%),viewport 可滚动,避免节点文本新增裁切。
|
|
14
|
+
- 图形 44px 命中路径的源码度量,以及 `graphTextScale` 纯函数测试。
|
|
15
|
+
- 最终构建的空/暂存/已应用/冲突确认、forced-colors、reduced-motion 和断点/根字号测量证据。
|
|
16
|
+
|
|
17
|
+
### 变更
|
|
18
|
+
|
|
19
|
+
- 将 0.3.0 GUI 设计状态头和附录 D 与 0.3.0/0.3.1 已发布事实对账;未完成的人工门禁显式转入 0.3.2。
|
|
20
|
+
- 依赖图文档转为 Active,并把真实 AT 与根字号缺口标为公开已知缺口。
|
|
21
|
+
- verification 当前状态节刷新到 0.3.1/0.3.2,清理 roadmap/docs index 的 pending 措辞。
|
|
22
|
+
|
|
23
|
+
### 验证
|
|
24
|
+
|
|
25
|
+
- `npm run check`:42 文件 / **500 测试** PASS;11 个声明 DSH 版本 token 覆盖 PASS;
|
|
26
|
+
`verify:ui-metrics -- --gate=final` PASS。
|
|
27
|
+
- 0.3.2 树的十一版本源码矩阵 PASS。
|
|
28
|
+
- 仍待人工:真实 VoiceOver/NVDA、Desktop 原生窗口矩阵、冻结稿并排人工签收。
|
|
29
|
+
|
|
30
|
+
## 0.3.1 — 2026-11-13
|
|
31
|
+
|
|
32
|
+
依赖图、standing envelope 可观测性与本地流量取证的 GUI 收敛补丁。不改变 record schema、Remote wire 或
|
|
33
|
+
prompt 投影。
|
|
34
|
+
|
|
35
|
+
### 新增
|
|
36
|
+
|
|
37
|
+
- 依赖图新增执行/候选/历史泳道标题、SVG 方向箭头、历史点划线,以及沿边展开的 44px 命中区。
|
|
38
|
+
- Diagnostics 增加 standing envelope 估算:按 32 KiB cap 精确计算 `charter_read standing` 字节,显示条目/
|
|
39
|
+
交付物数、`maxPromptBytes`、id 开销和 `<80%` / `>=80%` / 超 cap 三态。
|
|
40
|
+
- `traffic-check` 增加 `charter_propose` 调用/拒绝统计与 display-key/unknown-id 分类、active charter surface
|
|
41
|
+
hash;新增 `traffic-diff` 基线对比。仅本地诊断,不上报、不埋点。
|
|
42
|
+
|
|
43
|
+
### 变更
|
|
44
|
+
|
|
45
|
+
- 移除未使用的 `BuildRelationGraphInput.ops` 输入,以及依赖图 viewport 的固定 `max-height`;画布随布局增长。
|
|
46
|
+
- 冻结稿/规格补充泳道标题、箭头、历史线型和 44px 边命中合同。
|
|
47
|
+
|
|
48
|
+
### 验证
|
|
49
|
+
|
|
50
|
+
- `npm run check`:41 文件 / **499 测试** PASS;十版本 token 覆盖 PASS。
|
|
51
|
+
- 浏览器审计覆盖泳道标题、箭头 marker、44px 命中区、自适应 viewport、860–1440 无横向溢出与 200% 页面
|
|
52
|
+
缩放;真实 AT/VoiceOver 仍是独立人工门禁。
|
|
53
|
+
- `verify:ui-metrics -- --gate=final` 与 0.3.1 源码门禁在最终树运行。
|
|
54
|
+
|
|
7
55
|
## 0.3.0 — 2026-11-13
|
|
8
56
|
|
|
9
57
|
Workspace、审阅中心、诊断与维护统一到文档感 GUI。不改变 record schema、Remote wire 或 prompt 投影。
|
package/README.md
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
[](LICENSE)
|
|
4
4
|
[](https://github.com/centella-cream/dsh-charter)
|
|
5
|
-
[](docs/design/compatibility.md)
|
|
6
6
|
[](package.json)
|
|
7
|
-
[](#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
|
-

|
|
18
18
|
|
|
19
|
-
> The
|
|
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
|
-

|
|
23
23
|
|
|
24
|
-
> The execution-path dependency graph:
|
|
25
|
-
>
|
|
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,21 @@ deliverables, evidence, and dependency relationships survive compaction and rema
|
|
|
44
45
|
|
|
45
46
|
## Status
|
|
46
47
|
|
|
47
|
-
- **Current
|
|
48
|
+
- **Current development candidate:** `0.3.2` — the accessibility/evidence convergence patch. It adds root-text
|
|
49
|
+
graph scaling, final-build state/media evidence, and reconciles the 0.3.x documentation gates. **Not published
|
|
50
|
+
yet;** latest published release is `0.3.1`. It ships the document-feel Pane across
|
|
48
51
|
Workspace, Review Center, and Diagnostics; the dependency graph; the bounded DSH compatibility declaration;
|
|
49
52
|
and the Host tool fix that exposes deliverable ids to `charter_propose.requires`.
|
|
50
53
|
- **Previous release:** `0.2.2` — dependency-graph workspace view, compact dependency list, and explicit
|
|
51
54
|
dependency-conflict confirmation.
|
|
52
|
-
- **Earlier release:** `0.2.1`; **primary DSH baseline:** `0.2.2-rc.
|
|
55
|
+
- **Earlier release:** `0.2.1`; **primary DSH baseline:** `0.2.2-rc.3`; eleven declared DSH versions are
|
|
53
56
|
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`
|
|
57
|
+
- 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
58
|
suffix.
|
|
56
59
|
|
|
57
|
-
|
|
60
|
+
## Core capabilities
|
|
61
|
+
|
|
62
|
+
### Document-feel Pane
|
|
58
63
|
|
|
59
64
|
- **One document, not a dashboard.** Workspace, Review Center, and Diagnostics share the same reading column,
|
|
60
65
|
type scale, row anatomy, chips, quiet links, and empty/skeleton states.
|
|
@@ -67,12 +72,31 @@ deliverables, evidence, and dependency relationships survive compaction and rema
|
|
|
67
72
|
- **The graph is a real view, not a second authority.** The execution-path disclosure renders a px-geometry
|
|
68
73
|
graph with fixed 184px nodes, two-line truncation, status anatomy, edge states, and a compact inspector; the
|
|
69
74
|
semantic list remains authoritative.
|
|
70
|
-
- **Version visible.** The Pane header carries the
|
|
75
|
+
- **Version visible.** The Pane header carries the installed version chip, revision, and prompt meter together.
|
|
76
|
+
|
|
77
|
+
### Dependency graph and diagnostics
|
|
78
|
+
|
|
79
|
+
- **Graph audit:** lane headings, directional SVG arrows, path-sized 44px edge hit targets, a dot-dash history
|
|
80
|
+
line, an adaptive-height canvas, and removal of the unused graph `ops` input.
|
|
81
|
+
- **Standing envelope warning:** Diagnostics estimates the exact `charter_read standing` result against the
|
|
82
|
+
32 KiB cap, with `<80%` / `>=80%` / over-cap states and the included id overhead.
|
|
83
|
+
- **Traffic forensics:** the local `traffic-check` reports `charter_propose` rejection categories and active
|
|
84
|
+
charter-surface hashes; `traffic-diff` compares before/after baselines. No runtime telemetry or upload is added.
|
|
71
85
|
|
|
72
|
-
###
|
|
86
|
+
### Accessibility and evidence convergence
|
|
73
87
|
|
|
74
|
-
-
|
|
75
|
-
|
|
88
|
+
- **Root-text graph scaling:** when the root text size is larger than 16px, the graph canvas scales as a unit
|
|
89
|
+
(up to 200%) so node text, edges, lanes, and hit targets stay aligned; the viewport becomes scrollable rather
|
|
90
|
+
than clipping the graph.
|
|
91
|
+
- **Final-build evidence:** empty, staged, applied, and conflict-confirmation states, forced-colors and
|
|
92
|
+
reduced-motion captures, plus breakpoint/scaling measurements are recorded for the 0.3.2 candidate.
|
|
93
|
+
- **Known manual gates:** real VoiceOver/NVDA and native Desktop-window evidence are not claimed by automated
|
|
94
|
+
AX-tree or renderer screenshots.
|
|
95
|
+
|
|
96
|
+
### Compatibility and runtime
|
|
97
|
+
|
|
98
|
+
- DSH `0.2.2-rc.3` declarations plus a bounded `engines.dsh` 0.2-line range; exact `dshReleases`/peer list
|
|
99
|
+
remains the eleven-version matrix-verified support set.
|
|
76
100
|
- `charter_read standing` now exposes stable deliverable ids so the model can propose real `requires`
|
|
77
101
|
references; `D<n>` labels are documented as display-only, and invalid references fail explicitly.
|
|
78
102
|
- Desktop and Web plugin bundles hot-reload through the Host profile recomposition/client HMR path; CSS is
|
|
@@ -106,16 +130,12 @@ permission boundary.
|
|
|
106
130
|
A charter is a declaration, not an enforcement policy. Use Host permissions, sandbox policy, hooks, or
|
|
107
131
|
execution guards for restrictions that must be machine-enforced.
|
|
108
132
|
|
|
109
|
-
##
|
|
133
|
+
## Dependency relationships
|
|
110
134
|
|
|
111
|
-
|
|
112
|
-
deliverable can declare **prerequisites** on other deliverables, and those relationships become part of the
|
|
135
|
+
Deliverables are not an independent, ordered checklist. A deliverable can declare **prerequisites** on other deliverables, and those relationships become part of the
|
|
113
136
|
stored contract, the validation boundary, the UI plan, and the model-visible prompt.
|
|
114
137
|
|
|
115
|
-
|
|
116
|
-
Tests (D1) ───────────┐
|
|
117
|
-
Migration (D2) ───────┴──> Release (D3)
|
|
118
|
-
```
|
|
138
|
+

|
|
119
139
|
|
|
120
140
|
- **Typed, validated edges.** Each deliverable may carry `requires: [id…]`. The Host rejects self-edges,
|
|
121
141
|
duplicate prerequisites, dangling references, inactive endpoints, and cycles. The whole Change Set fails
|
|
@@ -141,7 +161,7 @@ Migration (D2) ───────┴──> Release (D3)
|
|
|
141
161
|
|
|
142
162
|
Dependencies are a user-authored **execution constraint**, not an enforced sandbox or permission system.
|
|
143
163
|
|
|
144
|
-
##
|
|
164
|
+
## Proposals, diagnostics, and recovery
|
|
145
165
|
|
|
146
166
|
- Three primary areas: **Workspace**, **Review Center**, and **Diagnostics & Maintenance**.
|
|
147
167
|
- Record schema v2 with in-memory v1 migration, proposal batches, typed provenance, and objective proposals.
|
|
@@ -182,17 +202,18 @@ storage.
|
|
|
182
202
|
|
|
183
203
|
## Install
|
|
184
204
|
|
|
185
|
-
The latest
|
|
205
|
+
The latest published release is `0.3.1`. Install it for a reproducible profile:
|
|
186
206
|
|
|
187
207
|
```bash
|
|
188
|
-
dsh plugin --profile web add dsh-charter@0.3.
|
|
208
|
+
dsh plugin --profile web add dsh-charter@0.3.1
|
|
189
209
|
```
|
|
190
210
|
|
|
191
|
-
|
|
211
|
+
The `0.3.2` candidate is not published; build/accept it from the working tree:
|
|
192
212
|
|
|
193
213
|
```bash
|
|
194
|
-
npm pack
|
|
195
|
-
dsh plugin --profile web add ./dsh-charter-0.3.
|
|
214
|
+
npm pack
|
|
215
|
+
dsh plugin --profile web add ./dsh-charter-0.3.2.tgz
|
|
216
|
+
dsh plugin --profile web add ./dsh-charter-0.3.1.tgz
|
|
196
217
|
```
|
|
197
218
|
|
|
198
219
|
For Desktop, use **Desktop → Plugins → Install/Update**, or import the same local tarball if your Desktop build
|
|
@@ -280,7 +301,7 @@ The only model-visible capacity is `maxPromptBytes`; `maxItems` and `maxPendingI
|
|
|
280
301
|
| `0.1.7-rc.2` | Supported (minimum) |
|
|
281
302
|
| `0.2.0-rc.1` / `0.2.0-rc.2` | Supported |
|
|
282
303
|
| `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.
|
|
304
|
+
| `0.2.2-rc.1` / `0.2.2-rc.2` / `0.2.2-rc.3` | Supported (primary baseline: `0.2.2-rc.3`) |
|
|
284
305
|
| `0.3.x` | Not declared until verified |
|
|
285
306
|
|
|
286
307
|
`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)
|
|
4
4
|
[](https://github.com/centella-cream/dsh-charter)
|
|
5
|
-
[](docs/design/compatibility.zh.md)
|
|
6
6
|
[](package.json)
|
|
7
|
-
[](#状态)
|
|
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
|
-

|
|
17
17
|
|
|
18
|
-
> 本地 Web profile
|
|
18
|
+
> 本地 Web profile 中的 Pane:顶部下划线 tabs、720px 文档列、对齐的文档行和可折叠执行路径。
|
|
19
19
|
> 截图仅使用合成演示数据。
|
|
20
20
|
|
|
21
|
-

|
|
22
22
|
|
|
23
|
-
>
|
|
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
|
-
-
|
|
46
|
-
|
|
46
|
+
- **当前开发候选:**`0.3.2` — 无障碍/证据收敛补丁。增加根字号图形缩放、最终构建的六状态/media 证据,并对账 0.3.x 文档门禁。**尚未发布**;最新已发布版本为 `0.3.1`。
|
|
47
|
+
包含文档感 Pane、依赖关系图、有界 DSH 兼容声明,以及让 `charter_propose.requires` 可用交付物 id 的
|
|
47
48
|
Host 工具修复。
|
|
48
49
|
- **上一版本:**`0.2.2` — 依赖关系图形视图、紧凑依赖列表和依赖冲突二次确认。
|
|
49
|
-
- **更早版本:**`0.2.1`;**主要 DSH 基线:**`0.2.2-rc.
|
|
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
|
-
|
|
53
|
+
## 核心能力
|
|
54
|
+
|
|
55
|
+
### 文档感 Pane
|
|
53
56
|
|
|
54
57
|
- **一份文档,不是仪表盘。** Workspace、审阅中心和诊断与维护共用同一阅读列、字号阶、行解剖、chip、
|
|
55
58
|
quiet link 与空态/skeleton。
|
|
@@ -61,11 +64,29 @@
|
|
|
61
64
|
margin note,不再套一层卡片。
|
|
62
65
|
- **依赖图是增强视图,不是第二权威。** 执行路径 disclosure 内是 px 几何依赖图:固定 184px 节点、两行截断、
|
|
63
66
|
状态解剖、边状态和紧凑 inspector;语义列表始终是权威操作面。
|
|
64
|
-
- **版本可见。** Pane
|
|
67
|
+
- **版本可见。** Pane 页头同时显示已安装版本 chip、revision 和 prompt meter。
|
|
68
|
+
|
|
69
|
+
### 依赖图与诊断
|
|
70
|
+
|
|
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` 对比前后基线。不新增运行时埋点、不上报。
|
|
65
77
|
|
|
66
|
-
###
|
|
78
|
+
### 无障碍与证据收敛
|
|
67
79
|
|
|
68
|
-
-
|
|
80
|
+
- **根字号图形缩放:** 根字号大于 16px 时,画布作为整体等比缩放(最多 200%),节点文本、边、泳道和命中区
|
|
81
|
+
保持对齐;viewport 改为可滚动,而不是裁切图形。
|
|
82
|
+
- **最终构建证据:** 空/暂存/已应用/冲突确认状态、forced-colors 与 reduced-motion 截图,以及断点/缩放
|
|
83
|
+
测量记录在 0.3.2 候选中。
|
|
84
|
+
- **仍待人工门禁:** 真实 VoiceOver/NVDA 与 Desktop 原生窗口证据;自动化 AX-tree 或 renderer 截图不计为
|
|
85
|
+
已通过。
|
|
86
|
+
|
|
87
|
+
### 兼容性与运行时
|
|
88
|
+
|
|
89
|
+
- DSH `0.2.2-rc.3` 声明与有界 `engines.dsh` 0.2 线范围;精确 `dshReleases`/peer 列表仍是十一版本矩阵已验证支持集。
|
|
69
90
|
- `charter_read standing` 现在返回交付物稳定 id,模型可以提出真实 `requires` 引用;`D<n>` 明确只是展示标签,
|
|
70
91
|
非法引用显式失败。
|
|
71
92
|
- Desktop/Web 插件通过 Host profile 重组 + client HMR 热更新;CSS 按归属 style tag upsert,重载后替换旧样式,
|
|
@@ -94,15 +115,12 @@
|
|
|
94
115
|
契约是声明,不是强制执行策略。需要机器强制的限制请使用 Host permissions、sandbox policy、hooks 或
|
|
95
116
|
执行守卫。
|
|
96
117
|
|
|
97
|
-
##
|
|
118
|
+
## 依赖关系
|
|
98
119
|
|
|
99
|
-
|
|
100
|
-
|
|
120
|
+
deliverable 不是一份互不相关的顺序清单。一个 deliverable 可以声明对其他 deliverable 的**前置约束**,
|
|
121
|
+
这些关系会进入存储契约、校验边界、UI 计划和模型可见 prompt。
|
|
101
122
|
|
|
102
|
-
|
|
103
|
-
测试 (D1) ────────────┐
|
|
104
|
-
迁移 (D2) ────────────┴──> 发布 (D3)
|
|
105
|
-
```
|
|
123
|
+

|
|
106
124
|
|
|
107
125
|
- **类型化、可校验的关系。**每个 deliverable 可携带 `requires: [id…]`。Host 拒绝自环、重复前置、
|
|
108
126
|
悬空引用、非 active 端点和环;整个 Change Set 原子失败,不会写入半张图。
|
|
@@ -115,10 +133,12 @@ deliverable 的**前置约束**,而这些关系会进入存储契约、校验
|
|
|
115
133
|
- **生命周期安全。**archive、restore、supersede、fork 和 proposal acceptance 都会校验或重映射关系;
|
|
116
134
|
`proposedRequires` 让 pending deliverable 引用候选前置条件,接受时解析为正式 requires。
|
|
117
135
|
- **有界。**关系集合同样受 record 和 prompt 预算约束,不引入独立的图正本。
|
|
136
|
+
- **依赖图视角。** 依赖图是局部 ego 视图,包含候选泳道和替代历史泳道;它不是第二权威,图上的编辑与列表
|
|
137
|
+
暂存同一组 Change Set ops。零依赖时使用有界孤立节点网格和明确的“添加前置”提示。
|
|
118
138
|
|
|
119
139
|
依赖是用户编写的**执行约束**,不是强制 sandbox 或权限系统。
|
|
120
140
|
|
|
121
|
-
##
|
|
141
|
+
## 提案、诊断与恢复
|
|
122
142
|
|
|
123
143
|
- 三个一级区域:**Workspace**、**Review Center**、**Diagnostics & Maintenance**。
|
|
124
144
|
- record schema v2、内存 v1 迁移、proposal batch、类型化 provenance 和 objective proposal。
|
|
@@ -158,17 +178,18 @@ compaction summary 返回只读草案,不写 storage。
|
|
|
158
178
|
|
|
159
179
|
## 安装
|
|
160
180
|
|
|
161
|
-
|
|
181
|
+
最新已发布版本是 `0.3.1`。可复现 profile 请安装:
|
|
162
182
|
|
|
163
183
|
```bash
|
|
164
|
-
dsh plugin --profile web add dsh-charter@0.3.
|
|
184
|
+
dsh plugin --profile web add dsh-charter@0.3.1
|
|
165
185
|
```
|
|
166
186
|
|
|
167
|
-
|
|
187
|
+
`0.3.2` 候选尚未发布;从工作区构建并验收:
|
|
168
188
|
|
|
169
189
|
```bash
|
|
170
|
-
npm pack
|
|
171
|
-
dsh plugin --profile web add ./dsh-charter-0.3.
|
|
190
|
+
npm pack
|
|
191
|
+
dsh plugin --profile web add ./dsh-charter-0.3.2.tgz
|
|
192
|
+
dsh plugin --profile web add ./dsh-charter-0.3.1.tgz
|
|
172
193
|
```
|
|
173
194
|
|
|
174
195
|
Desktop 请使用 **Desktop → Plugins → Install/Update**;若 Desktop 构建支持本地插件导入,也可导入同一
|
|
@@ -253,7 +274,7 @@ active-count 失败。
|
|
|
253
274
|
| `0.1.7-rc.2` | 支持(最低版本) |
|
|
254
275
|
| `0.2.0-rc.1` / `0.2.0-rc.2` | 支持 |
|
|
255
276
|
| `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.
|
|
277
|
+
| `0.2.2-rc.1` / `0.2.2-rc.2` / `0.2.2-rc.3` | 支持(主基线:`0.2.2-rc.3`) |
|
|
257
278
|
| `0.3.x` | 验证前不声明 |
|
|
258
279
|
|
|
259
280
|
`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
|
|
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 / 0.3.2 | Client-side dependency graph view. Source implementation lands on the 0.2.2 line; real browser evidence is recorded; real AT and W0-1/2/3 remain 0.3.2 gates. |
|
|
55
|
+
| [design/charter-gui-v1.zh.md](design/charter-gui-v1.zh.md) | Active | 0.3.0 / 0.3.1 / 0.3.2 | 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
|
|
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 / 0.3.2 | 工作区、提案时间线、依赖;专题范围。 |
|
|
52
|
+
| [design/charter-dependency-graph-v1.zh.md](design/charter-dependency-graph-v1.zh.md) | Active | 0.2.2 / 0.3.1 / 0.3.2 | 客户端依赖关系图形视图;源码已在 0.2.2 落地,真实浏览器证据已记录;真实 AT 与 W0-1/2/3 仍属 0.3.2 门禁。 |
|
|
53
|
+
| [design/charter-gui-v1.zh.md](design/charter-gui-v1.zh.md) | Active | 0.3.0 / 0.3.1 / 0.3.2 | 全栏目 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 设计评审。 |
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -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>
|