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.
- package/CHANGELOG.md +61 -1
- package/CHANGELOG.zh.md +51 -1
- package/CONTRIBUTING.md +12 -2
- package/CONTRIBUTING.zh.md +9 -2
- package/README.md +50 -20
- package/README.zh.md +39 -17
- package/docs/README.md +7 -3
- package/docs/README.zh.md +5 -3
- package/docs/assets/charter-pane.zh.png +0 -0
- package/docs/design/charter-dependency-graph-v1.zh.md +1101 -0
- package/docs/design/charter-design-v1.md +7 -3
- package/docs/design/charter-design-v1.zh.md +14 -1
- package/docs/design/charter-workspace-v2.zh.md +20 -3
- package/docs/design/version-roadmap.md +9 -9
- package/docs/design/version-roadmap.zh.md +18 -14
- package/docs/release-notes/0.2.0.md +7 -7
- package/docs/release-notes/0.2.1.md +58 -0
- package/docs/release-notes/0.2.2.md +60 -0
- package/docs/release-notes/README.md +1 -2
- package/docs/releasing.md +12 -7
- package/docs/releasing.zh.md +10 -7
- package/docs/user-guide.md +48 -22
- package/docs/user-guide.zh.md +43 -18
- package/docs/verification.md +40 -28
- package/docs/verification.zh.md +31 -24
- package/lib/client/DependencyGraph.d.ts +19 -0
- package/lib/client/locales.d.ts +97 -19
- package/lib/client/relation-graph.d.ts +135 -0
- package/lib/client/store.d.ts +5 -0
- package/lib/client.js +2552 -496
- package/lib/core/change-set.d.ts +7 -0
- package/lib/core/dependencies.d.ts +29 -0
- package/lib/core.js +1 -1
- package/lib/{fork-D5HVDV1i.js → fork-KSL6sovw.js} +70 -1
- package/lib/host/domain.d.ts +50 -0
- package/lib/host/service.d.ts +18 -1
- package/lib/host/types.d.ts +37 -1
- package/lib/index.js +2 -2
- package/lib/remote/service.d.ts +8 -1
- package/lib/remote/wire.d.ts +161 -3
- package/lib/remote.js +155 -4
- package/lib/{service-C3A59BG5.js → service-MsIACddZ.js} +186 -5
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,7 +5,67 @@ 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.2.
|
|
8
|
+
## 0.2.2 — 2026-11-11 (release candidate)
|
|
9
|
+
|
|
10
|
+
Dependency-graph workspace view and explicit dependency-conflict confirmation. No record-schema, Host, Remote,
|
|
11
|
+
or prompt-projection change.
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- Dependency graph in Workspace: a local ego view with execution, candidate, and replacement-history lanes,
|
|
16
|
+
synchronized with the semantic dependency list.
|
|
17
|
+
- Isolated contracts render a bounded grid of execution nodes with an explicit "add a prerequisite" hint.
|
|
18
|
+
- Graph and candidate-history keyboard traversal: one Tab stop, arrow keys, `[`/`]`, Enter, Escape, and a skip
|
|
19
|
+
link to the semantic list.
|
|
20
|
+
- Two-step Apply confirmation when a Change Set adds or worsens a dependency conflict; the affected deliverables
|
|
21
|
+
are listed in the Change Set panel.
|
|
22
|
+
- Compact per-row prerequisite editor and 50-row windowing for the dependency list.
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
|
|
26
|
+
- The dependency list is a compact summary plus a checkbox editor instead of a native multi-select; row counts
|
|
27
|
+
expose "item i of N" to assistive technology.
|
|
28
|
+
- Graph edits and list edits produce identical `deliverable.requires` operations.
|
|
29
|
+
- Dense views degrade in order: hide replacement history, reduce depth, then hide the graph with an explicit
|
|
30
|
+
reason.
|
|
31
|
+
|
|
32
|
+
### Fixed
|
|
33
|
+
|
|
34
|
+
- Graph-to-list and graph-to-proposal focus paths expand the visible window before moving focus.
|
|
35
|
+
- Local prerequisite labels are shown instead of internal item ids.
|
|
36
|
+
- Dependency graph edge keys include the relation kind, so requires and supersedes records with the same
|
|
37
|
+
endpoints cannot collide.
|
|
38
|
+
|
|
39
|
+
## 0.2.1 — 2026-11-06
|
|
40
|
+
|
|
41
|
+
Post-`0.2.0` UI, diagnostics, and recovery-cache patch. No record-schema bump; existing `0.2.0` records remain
|
|
42
|
+
readable.
|
|
43
|
+
|
|
44
|
+
### Added
|
|
45
|
+
|
|
46
|
+
- Editable message proposals: selecting a user message preloads its full text into an editable body; edited
|
|
47
|
+
proposals use manual provenance and the Host rejects non-human actors.
|
|
48
|
+
- Bounded recovery cache in the owner-only `dsh_charter_archives_v1` domain with `listArchives`/`readArchive`
|
|
49
|
+
Remote entries: at most five snapshots per Session and 25 per profile, oldest-first eviction.
|
|
50
|
+
- Diagnostics separates fact validity checks from evidence integrity; proposal batches render the query-plane
|
|
51
|
+
`sourceIntegrity` without an extra Host round trip.
|
|
52
|
+
|
|
53
|
+
### Changed
|
|
54
|
+
|
|
55
|
+
- Message-proposal, diagnostics, and recovery forms use one label/description hierarchy; the Pane header follows
|
|
56
|
+
the lighter `dsh-context` page-title scale and spacing.
|
|
57
|
+
- Recovery lists cached snapshots directly; download export is independent from restore. Local JSON import stays
|
|
58
|
+
available as an advanced path.
|
|
59
|
+
- README capability list and Pane screenshot describe the current 0.2.1 UI.
|
|
60
|
+
|
|
61
|
+
### Fixed
|
|
62
|
+
|
|
63
|
+
- Message proposal state resets when the Session changes; diagnostics state and feedback reset as well.
|
|
64
|
+
- Same-revision query views retain proposal batch integrity after an Apply.
|
|
65
|
+
- Cache snapshots survive Host restarts; no Session-disposal purge, and profile-wide LRU bounds orphan entries.
|
|
66
|
+
- Restore wording distinguishes cached recovery from imported files.
|
|
67
|
+
|
|
68
|
+
## 0.2.0 — 2026-11-05
|
|
9
69
|
|
|
10
70
|
Workspace and dependency-plan upgrade. Versioning from this release onward uses plain increments
|
|
11
71
|
(`0.2.0`, `0.2.1`, ...) and never an `rc` suffix.
|
package/CHANGELOG.zh.md
CHANGED
|
@@ -4,7 +4,57 @@
|
|
|
4
4
|
|
|
5
5
|
记录 `dsh-charter` 的重要变更。DSH 插件 ABI 仍在演进,项目保持 pre-1.0 版本线。
|
|
6
6
|
|
|
7
|
-
## 0.2.
|
|
7
|
+
## 0.2.2 — 2026-11-11(发布候选)
|
|
8
|
+
|
|
9
|
+
依赖关系图形视图与显式依赖冲突确认。不改变 record schema、Host、Remote 或 prompt 投影。
|
|
10
|
+
|
|
11
|
+
### 新增
|
|
12
|
+
|
|
13
|
+
- Workspace 依赖关系图:局部 ego 视图,含执行、候选和替代历史车道,与语义依赖列表同步。
|
|
14
|
+
- 无边契约显示有界孤立节点网格,并提示可以直接拖拽或编辑前置。
|
|
15
|
+
- 图形与候选/历史车道键盘遍历:单 Tab 停靠、方向键、`[`/`]`、Enter、Escape,以及跳到语义列表的 skip link。
|
|
16
|
+
- Change Set 引入或加重依赖冲突时,Apply 需要两步确认;Change Set 面板列出受影响交付物。
|
|
17
|
+
- 每行前置编辑改为紧凑 checkbox 编辑器,依赖列表默认窗口化为 50 行。
|
|
18
|
+
|
|
19
|
+
### 变更
|
|
20
|
+
|
|
21
|
+
- 依赖列表改为摘要 + checkbox 编辑器,不再使用原生 multi-select;行号同时提供“第 i 条,共 N 条”的辅助技术文本。
|
|
22
|
+
- 图与列表的编辑产生完全相同的 `deliverable.requires` ops。
|
|
23
|
+
- 过密视图按顺序降级:隐藏替代历史 → 降低深度 → 隐藏图形并给出明确原因。
|
|
24
|
+
|
|
25
|
+
### 修复
|
|
26
|
+
|
|
27
|
+
- 图→列表、图→提案的焦点路径会先扩展可见窗口,再送达焦点。
|
|
28
|
+
- 前置摘要使用局部 key,不再显示内部 item id。
|
|
29
|
+
- 图形边 key 包含关系类型,避免同一对端点的 requires 与 supersedes 键冲突。
|
|
30
|
+
|
|
31
|
+
## 0.2.1 — 2026-11-06
|
|
32
|
+
|
|
33
|
+
`0.2.0` 之后的 UI、诊断和恢复缓存补丁。不改变 record schema;已有 `0.2.0` 记录保持可读。
|
|
34
|
+
|
|
35
|
+
### 新增
|
|
36
|
+
|
|
37
|
+
- 可编辑消息提案:选择用户消息后把完整正文带入可编辑框;编辑后的提案使用 manual provenance,Host 拒绝
|
|
38
|
+
非人类 actor。
|
|
39
|
+
- owner-only `dsh_charter_archives_v1` 恢复缓存与 `listArchives`/`readArchive` Remote 入口:每 Session
|
|
40
|
+
最多 5 份、整个 profile 最多 25 份,最旧优先淘汰。
|
|
41
|
+
- 诊断区拆分事实有效性验证和证据完整性;proposal batch 直接渲染查询面的 `sourceIntegrity`,不再额外请求
|
|
42
|
+
Host。
|
|
43
|
+
|
|
44
|
+
### 变更
|
|
45
|
+
|
|
46
|
+
- 消息提案、诊断和恢复表单共用同一套标签/说明层级;Pane 页头采用更轻量的 `dsh-context` 标题比例和间距。
|
|
47
|
+
- 恢复区直接列出缓存快照;下载导出与恢复解耦。本地 JSON 导入保留为高级路径。
|
|
48
|
+
- README 能力列表和 Pane 截图更新为当前 0.2.1 界面。
|
|
49
|
+
|
|
50
|
+
### 修复
|
|
51
|
+
|
|
52
|
+
- Session 切换时重置消息提案状态,同时重置诊断状态和反馈。
|
|
53
|
+
- Apply 后同 revision 的查询视图仍保留 proposal batch 的 integrity。
|
|
54
|
+
- 缓存快照在 Host 重启后保留;不再随 Session dispose 清空,并用 profile 级 LRU 限制孤儿条目。
|
|
55
|
+
- 恢复文案区分缓存恢复和文件导入。
|
|
56
|
+
|
|
57
|
+
## 0.2.0 — 2026-11-05
|
|
8
58
|
|
|
9
59
|
工作区与依赖计划升级。从该版本起使用普通递增版本号(`0.2.0`、`0.2.1`……),不再使用 `rc` 后缀。
|
|
10
60
|
|
package/CONTRIBUTING.md
CHANGED
|
@@ -41,8 +41,18 @@ npm run check
|
|
|
41
41
|
## Branch workflow (solo maintainer)
|
|
42
42
|
|
|
43
43
|
The remote keeps only `main`. Do development on local non-`main` branches; do not push those branches.
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
|
|
45
|
+
Fixed path for every change:
|
|
46
|
+
|
|
47
|
+
1. Create a local non-`main` branch from local `main`.
|
|
48
|
+
2. Implement and run the local gates there.
|
|
49
|
+
3. Build an acceptance tarball/profile and perform **local human acceptance** against the exact build.
|
|
50
|
+
4. Only after acceptance: merge the branch into local `main` linearly.
|
|
51
|
+
5. Push `main` only. Protected actions on `main` are force-pushes, deletion, and non-linear merges, not a
|
|
52
|
+
PR review requirement.
|
|
53
|
+
|
|
54
|
+
No release, tag, or remote branch is created before local acceptance. Record the acceptance result in the
|
|
55
|
+
release verification notes.
|
|
46
56
|
|
|
47
57
|
External contributors may still open PRs from forks. The maintainer reviews and merges them locally under
|
|
48
58
|
the same main-only policy.
|
package/CONTRIBUTING.zh.md
CHANGED
|
@@ -42,8 +42,15 @@ npm run check
|
|
|
42
42
|
|
|
43
43
|
## 分支流程(单维护者)
|
|
44
44
|
|
|
45
|
-
远程仓库只保留 `main
|
|
46
|
-
|
|
45
|
+
远程仓库只保留 `main`。每个改动的固定路径:
|
|
46
|
+
|
|
47
|
+
1. 从本地 `main` 创建本地非 `main` 分支;
|
|
48
|
+
2. 在分支上实现并跑完本地门禁;
|
|
49
|
+
3. 构建验收 tarball/profile,对精确构建做**本地人工验收**;
|
|
50
|
+
4. 只有验收确认后,才线性合入本地 `main`;
|
|
51
|
+
5. 只推送 `main`。`main` 的保护是不允许 force-push、删除和非线性合并,而不是 PR review 要求。
|
|
52
|
+
|
|
53
|
+
本地验收前不创建 release/tag,也不推送远端分支;验收结果写入发布验证记录。
|
|
47
54
|
|
|
48
55
|
外部贡献者仍可从 fork 提交 PR;维护者按同样的 main-only 策略在本地审查和合并。
|
|
49
56
|
|
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
[](https://github.com/centella-cream/dsh-charter)
|
|
5
5
|
[](docs/design/compatibility.md)
|
|
6
6
|
[](package.json)
|
|
7
|
-
[](#status)
|
|
8
8
|
|
|
9
9
|
English | [中文](README.zh.md)
|
|
10
10
|
|
|
@@ -14,9 +14,9 @@ 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
|
-

|
|
17
|
+

|
|
18
18
|
|
|
19
|
-
> The current **0.2** Pane in a local Web profile. UI strings follow the active DSH language; this image uses
|
|
19
|
+
> The current **0.2.2** Pane in a local Web profile. UI strings follow the active DSH language; this image uses
|
|
20
20
|
> demo values so no private Session content is published.
|
|
21
21
|
|
|
22
22
|
## Contents
|
|
@@ -39,12 +39,33 @@ deliverables, evidence, and dependency relationships survive compaction and rema
|
|
|
39
39
|
|
|
40
40
|
## Status
|
|
41
41
|
|
|
42
|
-
- **
|
|
43
|
-
-
|
|
44
|
-
|
|
42
|
+
- **Release candidate:** `0.2.2` — dependency-graph workspace view, compact dependency list, and explicit
|
|
43
|
+
dependency-conflict confirmation. Local acceptance and promotion are still pending.
|
|
44
|
+
- **Published release:** `0.2.1` — npm `latest` and `next`, GitHub Release `v0.2.1`.
|
|
45
|
+
- **Previous release:** `0.2.0`.
|
|
45
46
|
- **Primary DSH baseline:** `0.2.2-rc.1`; nine declared DSH versions are source-matrix verified.
|
|
46
47
|
- Versioning from `0.2.0` onward uses plain increments (`0.2.0`, `0.2.1`, …), never an `rc` suffix.
|
|
47
48
|
|
|
49
|
+
### 0.2.2 highlights
|
|
50
|
+
|
|
51
|
+
- **Dependency graph view:** Workspace renders a local ego graph of deliverables plus a compact, always-present
|
|
52
|
+
semantic list. Execution, candidate, and replacement lanes are distinct; isolated contracts use a bounded grid.
|
|
53
|
+
- **Graph and list are one editing surface:** both stage the same `deliverable.requires` Change Set ops; Apply
|
|
54
|
+
remains the only commit point.
|
|
55
|
+
- **Explicit dependency conflicts:** a Change Set that adds or worsens a dependency conflict lists the affected
|
|
56
|
+
deliverables and requires a second confirmation before Apply.
|
|
57
|
+
- **Compact prerequisite editor:** the list shows a two-line summary and opens a checkbox editor for one row at a
|
|
58
|
+
time, avoiding hundreds of native multi-select options.
|
|
59
|
+
- **Keyboard and degraded states:** the graph is one Tab stop with arrow/`[`/`]` traversal, a skip link to the
|
|
60
|
+
list, and explicit dense/isolated fallbacks.
|
|
61
|
+
|
|
62
|
+
### 0.2.1 highlights
|
|
63
|
+
|
|
64
|
+
- Message proposals prefill an **editable body** from the selected user message.
|
|
65
|
+
- Diagnostics separates fact validation from evidence integrity.
|
|
66
|
+
- Recovery restores from a bounded Host cache (five per Session, 25 per profile).
|
|
67
|
+
- The Pane header and form typography follow the lighter `dsh-context` hierarchy.
|
|
68
|
+
|
|
48
69
|
## Why
|
|
49
70
|
|
|
50
71
|
Compaction replaces older history with a summary. A summary can keep the general task while quietly dropping
|
|
@@ -66,8 +87,8 @@ permission boundary.
|
|
|
66
87
|
and a Host-canonical preview digest.
|
|
67
88
|
- **Safe onboarding.** An existing compacted Session gets a review-only draft from its latest usable compaction
|
|
68
89
|
summary; nothing becomes effective until you review and apply it.
|
|
69
|
-
- **Recoverable records.** Export/restore is owner-only,
|
|
70
|
-
fences only that Session until a Host restart.
|
|
90
|
+
- **Recoverable records.** Export/restore is owner-only, the Host keeps at most five recent recovery snapshots per
|
|
91
|
+
Session (25 across the profile), healthy records refuse overwrite, and an uncertain write fences only that Session until a Host restart.
|
|
71
92
|
- **Fail closed per Session.** A structurally invalid record is preserved for diagnosis and never overwritten.
|
|
72
93
|
|
|
73
94
|
A charter is a declaration, not an enforcement policy. Use Host permissions, sandbox policy, hooks, or
|
|
@@ -93,14 +114,19 @@ Migration (D2) ───────┴──> Release (D3)
|
|
|
93
114
|
- **Derived readiness.** Readiness is computed from acceptance, lifecycle, prerequisite readiness, and progress:
|
|
94
115
|
`ready`, `waiting`, `blocked`, `dependency-conflict`, `in-progress`, or `terminal`. No stale duplicate status
|
|
95
116
|
is stored.
|
|
96
|
-
- **Visible and editable.** Workspace shows
|
|
97
|
-
graph is surfaced instead of breaking the Pane, and Apply is disabled
|
|
117
|
+
- **Visible and editable.** Workspace shows the dependency graph and a compact semantic list with prerequisite
|
|
118
|
+
editing and readiness status. An invalid graph is surfaced instead of breaking the Pane, and Apply is disabled
|
|
119
|
+
while the plan is inconsistent.
|
|
98
120
|
- **Lifecycle-safe.** Archive, restore, supersede, fork, and proposal acceptance validate or remap the graph.
|
|
99
121
|
`proposedRequires` lets a pending deliverable reference candidates that become formal requirements on
|
|
100
122
|
acceptance.
|
|
101
123
|
- **Bounded.** The relation set stays inside the same record and prompt budgets; there is no second graph
|
|
102
124
|
authority.
|
|
103
125
|
|
|
126
|
+
- **Graph lens.** The graph is a local, ego-scoped view with a candidate lane and replacement-history lane. It
|
|
127
|
+
never becomes a second authority: graph edits stage the same Change Set ops as the list. With no dependency
|
|
128
|
+
edges, a bounded isolated-node grid plus an explicit “add a prerequisite” hint keeps the graph discoverable.
|
|
129
|
+
|
|
104
130
|
Dependencies are a user-authored **execution constraint**, not an enforced sandbox or permission system.
|
|
105
131
|
|
|
106
132
|
## Other 0.2 capabilities
|
|
@@ -109,12 +135,13 @@ Dependencies are a user-authored **execution constraint**, not an enforced sandb
|
|
|
109
135
|
- Record schema v2 with in-memory v1 migration, proposal batches, typed provenance, and objective proposals.
|
|
110
136
|
- `summary`/`watchSummary` plus paged item/proposal/change queries. The Pane uses summary + queries and keeps
|
|
111
137
|
the full-watch stream only as a compatibility fallback.
|
|
112
|
-
- Pending-only `charter_propose` tool and user-triggered message proposals with
|
|
138
|
+
- Pending-only `charter_propose` tool and user-triggered message proposals with an editable body and kind.
|
|
113
139
|
- Evidence Integrity and Fact Validity, including owner-only registered validators:
|
|
114
140
|
`workspace.path-exists`, `workspace.file-digest`, and `workspace.file-contains`.
|
|
115
141
|
- Source-integrity projection checks for message, compaction-summary, and agent-tool batches; fork projections
|
|
116
142
|
are explicitly reported as `unsupported`.
|
|
117
|
-
- Fork with item/validity/evidence/dependency remapping; Recovery Center export/initialize
|
|
143
|
+
- Fork with item/validity/evidence/dependency remapping; Recovery Center export/initialize and owner-only restore
|
|
144
|
+
from a bounded five-snapshot cache.
|
|
118
145
|
- English/Chinese UI, light/dark themes, keyboard focus states, and container-query responsiveness.
|
|
119
146
|
|
|
120
147
|
## How it works
|
|
@@ -124,6 +151,8 @@ flowchart LR
|
|
|
124
151
|
U[User edits the Charter tab] --> A[charter.edit]
|
|
125
152
|
A --> B[Atomic single-record update]
|
|
126
153
|
B --> D[(dsh_charter_v1 storage domain)]
|
|
154
|
+
D -. bounded snapshots .-> Q[(dsh_charter_archives_v1 / max 5)]
|
|
155
|
+
Q --> X[Owner-only restore cache]
|
|
127
156
|
D --> R[Deterministic renderer]
|
|
128
157
|
R --> C[user-role runtime context]
|
|
129
158
|
D --> T[charter_read]
|
|
@@ -141,18 +170,19 @@ storage.
|
|
|
141
170
|
|
|
142
171
|
## Install
|
|
143
172
|
|
|
144
|
-
The latest public release is `0.1
|
|
145
|
-
until
|
|
173
|
+
The latest public release is `0.2.1`. The `0.2.2` candidate is installed from its local acceptance tarball
|
|
174
|
+
until promotion:
|
|
146
175
|
|
|
147
176
|
```bash
|
|
148
|
-
|
|
149
|
-
dsh plugin --profile web add ./dsh-charter-0.2.0.tgz
|
|
177
|
+
dsh plugin --profile web add ./dsh-charter-0.2.2.tgz
|
|
150
178
|
```
|
|
151
179
|
|
|
152
|
-
|
|
180
|
+
For a published exact version, install `0.2.1` for now (the same path applies to `0.2.2` after promotion):
|
|
153
181
|
|
|
154
182
|
```bash
|
|
155
|
-
dsh plugin --profile web add dsh-charter@0.2.
|
|
183
|
+
dsh plugin --profile web add dsh-charter@0.2.1
|
|
184
|
+
npm pack dsh-charter@0.2.1
|
|
185
|
+
dsh plugin --profile web add ./dsh-charter-0.2.1.tgz
|
|
156
186
|
```
|
|
157
187
|
|
|
158
188
|
For Desktop, use **Desktop → Plugins → Install/Update**, or import the same local tarball if your Desktop build
|
|
@@ -268,8 +298,8 @@ npm run verify:compaction # manual real-model compaction check
|
|
|
268
298
|
node scripts/verify/compat-matrix.mjs --versions all --allow-new-release
|
|
269
299
|
```
|
|
270
300
|
|
|
271
|
-
Current source evidence: **36 files /
|
|
272
|
-
**
|
|
301
|
+
Current source evidence: **36 files / 441 tests**, and the nine-version DSH matrix passes **9/9** at
|
|
302
|
+
**441/441**. See the [verification record](docs/verification.md) for exact commands and the distinction between
|
|
273
303
|
source, local-matrix, exact-artifact, and manual evidence.
|
|
274
304
|
|
|
275
305
|
CI runs `npm run check` and `npm run smoke:package` on Node `22.19.0` and `24`; the release candidate and promotion workflows are separate gates. A green candidate is not a publication.
|
package/README.zh.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
[](https://github.com/centella-cream/dsh-charter)
|
|
5
5
|
[](docs/design/compatibility.zh.md)
|
|
6
6
|
[](package.json)
|
|
7
|
-
[](#状态)
|
|
8
8
|
|
|
9
9
|
[English](README.md) | 中文
|
|
10
10
|
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
`dsh-charter` 是 [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) 的持久化、用户所有的
|
|
14
14
|
会话契约插件。目标、硬约束、交付物、证据和依赖关系在上下文压缩后仍然保留,并且始终可查看、可编辑。
|
|
15
15
|
|
|
16
|
-

|
|
16
|
+

|
|
17
17
|
|
|
18
|
-
> 这是本地 Web profile 中当前 **0.2** Pane 的界面。UI 文案跟随 DSH 当前语言;截图使用演示数据,不发布
|
|
18
|
+
> 这是本地 Web profile 中当前 **0.2.2** Pane 的界面。UI 文案跟随 DSH 当前语言;截图使用演示数据,不发布
|
|
19
19
|
> 任何私人 Session 内容。
|
|
20
20
|
|
|
21
21
|
## 目录
|
|
@@ -38,12 +38,30 @@
|
|
|
38
38
|
|
|
39
39
|
## 状态
|
|
40
40
|
|
|
41
|
-
-
|
|
42
|
-
-
|
|
43
|
-
|
|
41
|
+
- **发布候选:**`0.2.2` — 依赖关系图形视图、紧凑依赖列表、依赖冲突二次确认;本地验收和 promotion 尚未完成。
|
|
42
|
+
- **已发布版本:**`0.2.1` — npm `latest` 和 `next`,GitHub Release `v0.2.1`。
|
|
43
|
+
- **上一版本:**`0.2.0`。
|
|
44
44
|
- **主要 DSH 基线:**`0.2.2-rc.1`;九个声明版本通过源码矩阵验证。
|
|
45
45
|
- 从 `0.2.0` 起版本号使用普通递增(`0.2.0`、`0.2.1`…),不再使用 `rc` 后缀。
|
|
46
46
|
|
|
47
|
+
### 0.2.2 重点变化
|
|
48
|
+
|
|
49
|
+
- **依赖关系图形视图:**Workspace 以局部 ego 图展示交付物前置关系,并保留紧凑语义列表;执行、候选和替代历史
|
|
50
|
+
车道分开;无依赖边时显示有界孤立节点网格。
|
|
51
|
+
- **图与列表共用一个编辑面:**两侧都写同一组 `deliverable.requires` Change Set ops,Apply 仍是唯一提交点。
|
|
52
|
+
- **显式依赖冲突:**引入或加重依赖冲突的 Change Set 会列出受影响交付物,并要求二次确认后再 Apply。
|
|
53
|
+
- **紧凑前置编辑:**列表显示两行摘要,点“编辑前置”才展开一行的 checkbox 编辑器,避免一次渲染数百个
|
|
54
|
+
native multi-select 选项。
|
|
55
|
+
- **键盘与降级状态:**图形区只占一个 Tab 停靠点,方向键/`[`/`]` 遍历,skip link 跳到列表;图形过密或
|
|
56
|
+
无依赖时有明确降级和空状态。
|
|
57
|
+
|
|
58
|
+
### 0.2.1 重点变化
|
|
59
|
+
|
|
60
|
+
- 消息提案会从所选用户消息预填**可编辑正文**。
|
|
61
|
+
- 诊断区把事实有效性验证和证据完整性拆开。
|
|
62
|
+
- 恢复改为从 Host 维护的缓存选择快照(每 Session 5 份、整个 profile 25 份)。
|
|
63
|
+
- Pane 页头和表单排版对齐更轻量的 `dsh-context` 层级。
|
|
64
|
+
|
|
47
65
|
## 为什么需要
|
|
48
66
|
|
|
49
67
|
压缩会把较早的上下文替换成摘要。摘要可能保留总体任务,却丢掉长期约束,比如“不要改 migrations/”、
|
|
@@ -60,8 +78,8 @@
|
|
|
60
78
|
- **原子 Apply。**一个 Change Set 要么完整提交,要么不提交;带 revision 冲突、幂等重试和 Host canonical
|
|
61
79
|
preview digest。
|
|
62
80
|
- **安全接入。**已有压缩历史的 Session 可以生成只读草案;用户确认前不会生效。
|
|
63
|
-
- **可恢复。**export/restore 仅 owner
|
|
64
|
-
Host 重启恢复。
|
|
81
|
+
- **可恢复。**export/restore 仅 owner 可用;Host 每个 Session 最多保留 5 份恢复快照(整个 profile 最多 25 份);健康记录拒绝覆盖;
|
|
82
|
+
写入结果不确定时只隔离该 Session,等待 Host 重启恢复。
|
|
65
83
|
- **逐 Session fail closed。**结构损坏的记录会保留用于诊断,不会被覆盖。
|
|
66
84
|
|
|
67
85
|
契约是声明,不是强制执行策略。需要机器强制的限制请使用 Host permissions、sandbox policy、hooks 或
|
|
@@ -83,7 +101,7 @@ deliverable 的**前置约束**,而这些关系会进入存储契约、校验
|
|
|
83
101
|
在前、依赖在后的顺序渲染,模型因此知道哪些承诺可以执行、必须先完成什么。
|
|
84
102
|
- **派生 readiness。**readiness 由 acceptance、lifecycle、前置 readiness 和 progress 派生:`ready`、
|
|
85
103
|
`waiting`、`blocked`、`dependency-conflict`、`in-progress` 或 `terminal`,不保存容易过期的重复状态。
|
|
86
|
-
- **可见、可编辑。**Workspace
|
|
104
|
+
- **可见、可编辑。**Workspace 同时展示依赖图和紧凑语义列表,支持前置编辑与就绪状态;非法图会显示冲突提示而不是拖垮 Pane,图不一致
|
|
87
105
|
时禁用 Apply。
|
|
88
106
|
- **生命周期安全。**archive、restore、supersede、fork 和 proposal acceptance 都会校验或重映射关系;
|
|
89
107
|
`proposedRequires` 让 pending deliverable 引用候选前置条件,接受时解析为正式 requires。
|
|
@@ -97,12 +115,13 @@ deliverable 的**前置约束**,而这些关系会进入存储契约、校验
|
|
|
97
115
|
- record schema v2、内存 v1 迁移、proposal batch、类型化 provenance 和 objective proposal。
|
|
98
116
|
- `summary`/`watchSummary` 及分页 item/proposal/change query;Pane 使用 summary + query,完整 watch 仅作为
|
|
99
117
|
兼容回退。
|
|
100
|
-
- pending-only `charter_propose`;用户触发的 message proposal
|
|
118
|
+
- pending-only `charter_propose`;用户触发的 message proposal(选择器、可编辑正文、kind)。
|
|
101
119
|
- Evidence Integrity 与 Fact Validity,以及 owner-only 注册式验证器:
|
|
102
120
|
`workspace.path-exists`、`workspace.file-digest`、`workspace.file-contains`。
|
|
103
121
|
- message/compaction-summary/agent-tool batch 的 source integrity 投影复算;fork source integrity 明确返回
|
|
104
122
|
`unsupported`。
|
|
105
|
-
- fork 的 item/validity/evidence/依赖重映射;Recovery Center 支持 export/initialize
|
|
123
|
+
- fork 的 item/validity/evidence/依赖重映射;Recovery Center 支持 export/initialize,以及从最多 5 份的
|
|
124
|
+
owner-only 快照缓存恢复。
|
|
106
125
|
- 中英文 UI、明暗主题、键盘 focus 状态和容器查询响应式布局。
|
|
107
126
|
|
|
108
127
|
## 工作原理
|
|
@@ -112,6 +131,8 @@ flowchart LR
|
|
|
112
131
|
U[用户在 Charter 页编辑] --> A[charter.edit]
|
|
113
132
|
A --> B[原子单记录更新]
|
|
114
133
|
B --> D[(dsh_charter_v1 storage domain)]
|
|
134
|
+
D -. 有界快照 .-> Q[(dsh_charter_archives_v1 / 最多 5 份)]
|
|
135
|
+
Q --> X[owner-only 恢复缓存]
|
|
115
136
|
D --> R[确定性 renderer]
|
|
116
137
|
R --> C[user-role runtime context]
|
|
117
138
|
D --> T[charter_read]
|
|
@@ -128,17 +149,18 @@ compaction summary 返回只读草案,不写 storage。
|
|
|
128
149
|
|
|
129
150
|
## 安装
|
|
130
151
|
|
|
131
|
-
当前公开版本是 `0.1
|
|
152
|
+
当前公开版本是 `0.2.1`。`0.2.2` 候选在 promotion 前从本地验收 tarball 安装:
|
|
132
153
|
|
|
133
154
|
```bash
|
|
134
|
-
|
|
135
|
-
dsh plugin --profile web add ./dsh-charter-0.2.0.tgz
|
|
155
|
+
dsh plugin --profile web add ./dsh-charter-0.2.2.tgz
|
|
136
156
|
```
|
|
137
157
|
|
|
138
|
-
|
|
158
|
+
已发布精确版本目前安装 `0.2.1`(promotion 后同一路径改为 `0.2.2`):
|
|
139
159
|
|
|
140
160
|
```bash
|
|
141
|
-
dsh plugin --profile web add dsh-charter@0.2.
|
|
161
|
+
dsh plugin --profile web add dsh-charter@0.2.1
|
|
162
|
+
npm pack dsh-charter@0.2.1
|
|
163
|
+
dsh plugin --profile web add ./dsh-charter-0.2.1.tgz
|
|
142
164
|
```
|
|
143
165
|
|
|
144
166
|
Desktop 请使用 **Desktop → Plugins → Install/Update**;若 Desktop 构建支持本地插件导入,也可导入同一
|
|
@@ -251,7 +273,7 @@ npm run verify:compaction # 手动真实模型 compaction 检查
|
|
|
251
273
|
node scripts/verify/compat-matrix.mjs --versions all --allow-new-release
|
|
252
274
|
```
|
|
253
275
|
|
|
254
|
-
当前源码证据:**36 个测试文件 /
|
|
276
|
+
当前源码证据:**36 个测试文件 / 441 个测试**,九版本 DSH 矩阵 **9/9**、每版 **441/441** 通过。精确命令
|
|
255
277
|
和 source/local-matrix/exact-artifact/manual 证据的区别见[验证记录](docs/verification.zh.md)。
|
|
256
278
|
|
|
257
279
|
CI 在 Node `22.19.0` 和 `24` 上运行 `npm run check` 与 `npm run smoke:package`;release candidate 和 promotion 是独立门禁。green candidate 不等于已发布。
|
package/docs/README.md
CHANGED
|
@@ -9,6 +9,7 @@ Every design/plan/review document starts with a status block using exactly these
|
|
|
9
9
|
|
|
10
10
|
| Status | Meaning |
|
|
11
11
|
| --- | --- |
|
|
12
|
+
| `Proposed` | A design proposal that is **not implemented and not authoritative**. It records an option under consideration; it never describes existing behaviour and must not be cited as the current contract. Entering scope requires a roadmap decision first. |
|
|
12
13
|
| `Active` | Current authority or current operating guide; kept up to date. |
|
|
13
14
|
| `Implemented — pending release acceptance` | Source implementation exists and passes source gates, but the release/manual gates are not complete. |
|
|
14
15
|
| `Historical` | Frozen record of a completed or abandoned decision; read-only and not current guidance. |
|
|
@@ -20,8 +21,8 @@ A status block has this shape:
|
|
|
20
21
|
|
|
21
22
|
```text
|
|
22
23
|
> **Status:** Active
|
|
23
|
-
> **Version scope:** 0.2.
|
|
24
|
-
> **Baseline:** 2026-11-
|
|
24
|
+
> **Version scope:** 0.2.2 (development candidate)
|
|
25
|
+
> **Baseline:** 2026-11-06
|
|
25
26
|
> **Authority:** docs/design/version-roadmap.zh.md
|
|
26
27
|
> **Supersedes / Superseded by:** none / <path or none>
|
|
27
28
|
```
|
|
@@ -50,6 +51,7 @@ same commit. Do not delete a historical decision just because it is inactive; mo
|
|
|
50
51
|
| --- | --- | --- | --- |
|
|
51
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. |
|
|
52
53
|
| [design/charter-workspace-v2.zh.md](design/charter-workspace-v2.zh.md) | Implemented — pending release acceptance | 0.2.0 | Workspace, proposal timeline, dependencies; topic-scoped. |
|
|
54
|
+
| [design/charter-dependency-graph-v1.zh.md](design/charter-dependency-graph-v1.zh.md) | Implemented — pending release acceptance | 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. |
|
|
53
55
|
| [design/version-roadmap.md](design/version-roadmap.md) | Active | whole line | Scope/version authority; Chinese is normative. |
|
|
54
56
|
| [design/compatibility.md](design/compatibility.md) | Active | declared DSH versions | Compatibility claims and matrix. |
|
|
55
57
|
| [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. |
|
|
@@ -60,7 +62,9 @@ same commit. Do not delete a historical decision just because it is inactive; mo
|
|
|
60
62
|
| [user-guide.md](user-guide.md) | Active | current line | Installation and usage guide. |
|
|
61
63
|
| [release-notes/0.1.0-rc.5.md](release-notes/0.1.0-rc.5.md) | Historical | 0.1.0-rc.5 | Published npm release note. |
|
|
62
64
|
| [release-notes/0.1.0-rc.6.md](release-notes/0.1.0-rc.6.md) | Historical | 0.1.0-rc.6 | Published/accepted release note. |
|
|
63
|
-
| [release-notes/0.2.0.md](release-notes/0.2.0.md) |
|
|
65
|
+
| [release-notes/0.2.0.md](release-notes/0.2.0.md) | Historical | 0.2.0 | Published npm release and GitHub Release. |
|
|
66
|
+
| [release-notes/0.2.2.md](release-notes/0.2.2.md) | Development candidate | 0.2.2 | Dependency graph and conflict confirmation; promotion pending. |
|
|
67
|
+
| [release-notes/0.2.1.md](release-notes/0.2.1.md) | Historical | 0.2.1 | Published npm release and GitHub Release. |
|
|
64
68
|
|
|
65
69
|
## Maintenance rules
|
|
66
70
|
|
package/docs/README.zh.md
CHANGED
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
|
|
20
20
|
```text
|
|
21
21
|
> **Status:** Active
|
|
22
|
-
> **Version scope:** 0.2.
|
|
23
|
-
> **Baseline:** 2026-11-
|
|
22
|
+
> **Version scope:** 0.2.2(开发候选)
|
|
23
|
+
> **Baseline:** 2026-11-06
|
|
24
24
|
> **Authority:** docs/design/version-roadmap.zh.md
|
|
25
25
|
> **Supersedes / Superseded by:** none / <路径或 none>
|
|
26
26
|
```
|
|
@@ -58,7 +58,9 @@
|
|
|
58
58
|
| [user-guide.md](user-guide.md) | Active | 当前版本线 | 安装与使用指南。 |
|
|
59
59
|
| [release-notes/0.1.0-rc.5.md](release-notes/0.1.0-rc.5.md) | Historical | 0.1.0-rc.5 | 已发布 npm 版本的发布说明。 |
|
|
60
60
|
| [release-notes/0.1.0-rc.6.md](release-notes/0.1.0-rc.6.md) | Historical | 0.1.0-rc.6 | 已发布并验收的发布说明。 |
|
|
61
|
-
| [release-notes/0.2.0.md](release-notes/0.2.0.md) |
|
|
61
|
+
| [release-notes/0.2.0.md](release-notes/0.2.0.md) | Historical | 0.2.0 | 已发布 npm 版本和 GitHub Release。 |
|
|
62
|
+
| [release-notes/0.2.2.md](release-notes/0.2.2.md) | Development candidate | 0.2.2 | 依赖图与冲突二次确认;promotion 待完成。 |
|
|
63
|
+
| [release-notes/0.2.1.md](release-notes/0.2.1.md) | Historical | 0.2.1 | 已发布 npm 版本和 GitHub Release。 |
|
|
62
64
|
|
|
63
65
|
## 维护规则
|
|
64
66
|
|
|
Binary file
|