dsh-charter 0.2.1 → 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 CHANGED
@@ -5,7 +5,38 @@ 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.1 — 2026-11-06 (release candidate)
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
9
40
 
10
41
  Post-`0.2.0` UI, diagnostics, and recovery-cache patch. No record-schema bump; existing `0.2.0` records remain
11
42
  readable.
package/CHANGELOG.zh.md CHANGED
@@ -4,7 +4,31 @@
4
4
 
5
5
  记录 `dsh-charter` 的重要变更。DSH 插件 ABI 仍在演进,项目保持 pre-1.0 版本线。
6
6
 
7
- ## 0.2.1 — 2026-11-06(发布候选)
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
8
32
 
9
33
  `0.2.0` 之后的 UI、诊断和恢复缓存补丁。不改变 record schema;已有 `0.2.0` 记录保持可读。
10
34
 
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
  [![GitHub](https://img.shields.io/badge/GitHub-centella--cream%2Fdsh--charter-181717?logo=github)](https://github.com/centella-cream/dsh-charter)
5
5
  [![DSH](https://img.shields.io/badge/DSH-9%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.2.1 candidate](https://img.shields.io/badge/status-0.2.1%20candidate-orange)](#status)
7
+ [![Status: 0.2.2 candidate](https://img.shields.io/badge/status-0.2.2%20candidate-orange)](#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
- ![Charter tab in the current 0.2.1 build](docs/assets/charter-pane.zh.png)
17
+ ![Charter tab in the current 0.2.2 build](docs/assets/charter-pane.zh.png)
18
18
 
19
- > The current **0.2.1** 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,21 +39,31 @@ deliverables, evidence, and dependency relationships survive compaction and rema
39
39
 
40
40
  ## Status
41
41
 
42
- - **Published release:** `0.2.0` — npm `latest` and `next`, GitHub Release `v0.2.0`.
43
- - **Release candidate:** `0.2.1` — post-`0.2.0` UI, diagnostics, and recovery-cache patch; local acceptance and
44
- promotion are still pending, so do not install it from npm yet.
45
- - **Previous release:** `0.1.0-rc.6`.
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`.
46
46
  - **Primary DSH baseline:** `0.2.2-rc.1`; nine declared DSH versions are source-matrix verified.
47
47
  - Versioning from `0.2.0` onward uses plain increments (`0.2.0`, `0.2.1`, …), never an `rc` suffix.
48
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
+
49
62
  ### 0.2.1 highlights
50
63
 
51
- - Message proposals now prefill an **editable body** from the selected user message; the old character-range
52
- inputs are gone.
53
- - Diagnostics separates fact validation from evidence integrity, and both forms explain the target and check
54
- being run.
55
- - Recovery restores from a Host-maintained cache (five per Session, 25 per profile) without requiring a
56
- downloaded file; export stays a separate operation for analysis and backup.
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).
57
67
  - The Pane header and form typography follow the lighter `dsh-context` hierarchy.
58
68
 
59
69
  ## Why
@@ -104,14 +114,19 @@ Migration (D2) ───────┴──> Release (D3)
104
114
  - **Derived readiness.** Readiness is computed from acceptance, lifecycle, prerequisite readiness, and progress:
105
115
  `ready`, `waiting`, `blocked`, `dependency-conflict`, `in-progress`, or `terminal`. No stale duplicate status
106
116
  is stored.
107
- - **Visible and editable.** Workspace shows a dependency plan with prerequisite selectors and status. An invalid
108
- graph is surfaced instead of breaking the Pane, and Apply is disabled while the plan is inconsistent.
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.
109
120
  - **Lifecycle-safe.** Archive, restore, supersede, fork, and proposal acceptance validate or remap the graph.
110
121
  `proposedRequires` lets a pending deliverable reference candidates that become formal requirements on
111
122
  acceptance.
112
123
  - **Bounded.** The relation set stays inside the same record and prompt budgets; there is no second graph
113
124
  authority.
114
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
+
115
130
  Dependencies are a user-authored **execution constraint**, not an enforced sandbox or permission system.
116
131
 
117
132
  ## Other 0.2 capabilities
@@ -155,18 +170,19 @@ storage.
155
170
 
156
171
  ## Install
157
172
 
158
- The latest public release is `0.2.0`. The `0.2.1` candidate is not on npm yet. Install the published exact
159
- version for a reproducible profile:
173
+ The latest public release is `0.2.1`. The `0.2.2` candidate is installed from its local acceptance tarball
174
+ until promotion:
160
175
 
161
176
  ```bash
162
- dsh plugin --profile web add dsh-charter@0.2.0
177
+ dsh plugin --profile web add ./dsh-charter-0.2.2.tgz
163
178
  ```
164
179
 
165
- For air-gapped machines or exact-artifact verification, install the published tarball:
180
+ For a published exact version, install `0.2.1` for now (the same path applies to `0.2.2` after promotion):
166
181
 
167
182
  ```bash
168
- npm pack dsh-charter@0.2.0
169
- dsh plugin --profile web add ./dsh-charter-0.2.0.tgz
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
170
186
  ```
171
187
 
172
188
  For Desktop, use **Desktop → Plugins → Install/Update**, or import the same local tarball if your Desktop build
package/README.zh.md CHANGED
@@ -4,7 +4,7 @@
4
4
  [![GitHub](https://img.shields.io/badge/GitHub-centella--cream%2Fdsh--charter-181717?logo=github)](https://github.com/centella-cream/dsh-charter)
5
5
  [![DSH](https://img.shields.io/badge/DSH-9%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.2.1 candidate](https://img.shields.io/badge/status-0.2.1%20candidate-orange)](#状态)
7
+ [![Status: 0.2.2 candidate](https://img.shields.io/badge/status-0.2.2%20candidate-orange)](#状态)
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
- ![当前 0.2.1 构建中的会话契约页](docs/assets/charter-pane.zh.png)
16
+ ![当前 0.2.2 构建中的会话契约页](docs/assets/charter-pane.zh.png)
17
17
 
18
- > 这是本地 Web profile 中当前 **0.2.1** Pane 的界面。UI 文案跟随 DSH 当前语言;截图使用演示数据,不发布
18
+ > 这是本地 Web profile 中当前 **0.2.2** Pane 的界面。UI 文案跟随 DSH 当前语言;截图使用演示数据,不发布
19
19
  > 任何私人 Session 内容。
20
20
 
21
21
  ## 目录
@@ -38,19 +38,28 @@
38
38
 
39
39
  ## 状态
40
40
 
41
- - **已发布版本:**`0.2.0` — npm `latest` 和 `next`,GitHub Release `v0.2.0`。
42
- - **发布候选:**`0.2.1` — `0.2.0` 之后的 UI、诊断和恢复缓存补丁;本地验收与 promotion 尚未完成,暂不要从
43
- npm 安装。
44
- - **上一版本:**`0.1.0-rc.6`。
41
+ - **发布候选:**`0.2.2` — 依赖关系图形视图、紧凑依赖列表、依赖冲突二次确认;本地验收和 promotion 尚未完成。
42
+ - **已发布版本:**`0.2.1` — npm `latest` 和 `next`,GitHub Release `v0.2.1`。
43
+ - **上一版本:**`0.2.0`。
45
44
  - **主要 DSH 基线:**`0.2.2-rc.1`;九个声明版本通过源码矩阵验证。
46
45
  - 从 `0.2.0` 起版本号使用普通递增(`0.2.0`、`0.2.1`…),不再使用 `rc` 后缀。
47
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
+
48
58
  ### 0.2.1 重点变化
49
59
 
50
- - 消息提案会从所选用户消息预填**可编辑正文**;原来的字符范围输入已移除。
51
- - 诊断区把事实有效性验证和证据完整性拆开,两处都说明验证对象和检查内容。
52
- - 恢复改为从 Host 维护的缓存选择快照(每 Session 5 份、整个 profile 25 份),不再要求先下载文件;
53
- 导出仍是独立的分析与备份操作。
60
+ - 消息提案会从所选用户消息预填**可编辑正文**。
61
+ - 诊断区把事实有效性验证和证据完整性拆开。
62
+ - 恢复改为从 Host 维护的缓存选择快照(每 Session 5 份、整个 profile 25 份)。
54
63
  - Pane 页头和表单排版对齐更轻量的 `dsh-context` 层级。
55
64
 
56
65
  ## 为什么需要
@@ -92,7 +101,7 @@ deliverable 的**前置约束**,而这些关系会进入存储契约、校验
92
101
  在前、依赖在后的顺序渲染,模型因此知道哪些承诺可以执行、必须先完成什么。
93
102
  - **派生 readiness。**readiness 由 acceptance、lifecycle、前置 readiness 和 progress 派生:`ready`、
94
103
  `waiting`、`blocked`、`dependency-conflict`、`in-progress` 或 `terminal`,不保存容易过期的重复状态。
95
- - **可见、可编辑。**Workspace 展示依赖计划和前置选择器;非法图会显示冲突提示而不是拖垮 Pane,图不一致
104
+ - **可见、可编辑。**Workspace 同时展示依赖图和紧凑语义列表,支持前置编辑与就绪状态;非法图会显示冲突提示而不是拖垮 Pane,图不一致
96
105
  时禁用 Apply。
97
106
  - **生命周期安全。**archive、restore、supersede、fork 和 proposal acceptance 都会校验或重映射关系;
98
107
  `proposedRequires` 让 pending deliverable 引用候选前置条件,接受时解析为正式 requires。
@@ -140,17 +149,18 @@ compaction summary 返回只读草案,不写 storage。
140
149
 
141
150
  ## 安装
142
151
 
143
- 当前公开版本是 `0.2.0`;`0.2.1` 候选尚未发布到 npm。可复现 profile 请先安装已发布的精确版本:
152
+ 当前公开版本是 `0.2.1`。`0.2.2` 候选在 promotion 前从本地验收 tarball 安装:
144
153
 
145
154
  ```bash
146
- dsh plugin --profile web add dsh-charter@0.2.0
155
+ dsh plugin --profile web add ./dsh-charter-0.2.2.tgz
147
156
  ```
148
157
 
149
- 离线机器或需要精确验证 artifact 时,安装已发布 tarball:
158
+ 已发布精确版本目前安装 `0.2.1`(promotion 后同一路径改为 `0.2.2`):
150
159
 
151
160
  ```bash
152
- npm pack dsh-charter@0.2.0
153
- dsh plugin --profile web add ./dsh-charter-0.2.0.tgz
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
154
164
  ```
155
165
 
156
166
  Desktop 请使用 **Desktop → Plugins → Install/Update**;若 Desktop 构建支持本地插件导入,也可导入同一
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,7 +21,7 @@ A status block has this shape:
20
21
 
21
22
  ```text
22
23
  > **Status:** Active
23
- > **Version scope:** 0.2.1
24
+ > **Version scope:** 0.2.2 (development candidate)
24
25
  > **Baseline:** 2026-11-06
25
26
  > **Authority:** docs/design/version-roadmap.zh.md
26
27
  > **Supersedes / Superseded by:** none / <path or none>
@@ -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. |
@@ -61,7 +63,8 @@ same commit. Do not delete a historical decision just because it is inactive; mo
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
65
  | [release-notes/0.2.0.md](release-notes/0.2.0.md) | Historical | 0.2.0 | Published npm release and GitHub Release. |
64
- | [release-notes/0.2.1.md](release-notes/0.2.1.md) | Release candidate | 0.2.1 | Local acceptance and promotion pending. |
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. |
65
68
 
66
69
  ## Maintenance rules
67
70
 
package/docs/README.zh.md CHANGED
@@ -19,7 +19,7 @@
19
19
 
20
20
  ```text
21
21
  > **Status:** Active
22
- > **Version scope:** 0.2.1
22
+ > **Version scope:** 0.2.2(开发候选)
23
23
  > **Baseline:** 2026-11-06
24
24
  > **Authority:** docs/design/version-roadmap.zh.md
25
25
  > **Supersedes / Superseded by:** none / <路径或 none>
@@ -59,7 +59,8 @@
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
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.1.md](release-notes/0.2.1.md) | Release candidate | 0.2.1 | 本地验收与 promotion 待完成。 |
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。 |
63
64
 
64
65
  ## 维护规则
65
66
 
Binary file