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 +32 -1
- package/CHANGELOG.zh.md +25 -1
- package/README.md +37 -21
- package/README.zh.md +27 -17
- package/docs/README.md +5 -2
- package/docs/README.zh.md +3 -2
- package/docs/assets/charter-pane.zh.png +0 -0
- package/docs/design/charter-dependency-graph-v1.zh.md +1101 -0
- package/docs/design/charter-workspace-v2.zh.md +16 -0
- package/docs/design/version-roadmap.md +2 -3
- package/docs/design/version-roadmap.zh.md +14 -4
- package/docs/release-notes/0.2.1.md +8 -6
- package/docs/release-notes/0.2.2.md +60 -0
- package/docs/release-notes/README.md +1 -2
- package/docs/releasing.md +4 -6
- package/docs/releasing.zh.md +4 -6
- package/docs/user-guide.md +36 -15
- package/docs/user-guide.zh.md +34 -13
- package/docs/verification.md +35 -29
- package/docs/verification.zh.md +30 -25
- package/lib/client/DependencyGraph.d.ts +19 -0
- package/lib/client/locales.d.ts +62 -6
- package/lib/client/relation-graph.d.ts +135 -0
- package/lib/client.js +1829 -206
- 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/types.d.ts +2 -0
- package/lib/index.js +2 -2
- package/lib/remote/wire.d.ts +37 -3
- package/lib/remote.js +23 -3
- package/lib/{service-CNjnvioR.js → service-MsIACddZ.js} +6 -3
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -25,6 +25,10 @@
|
|
|
25
25
|
proposedRequires/evidence;bootstrap active item dedupe;来源派生的 origin。
|
|
26
26
|
- Evidence Integrity/Fact Validity:registered validator、owner-only、文件大小/总字节/总时长/并发边界、
|
|
27
27
|
timeout/权限/不可读→unknown、正文变更→stale、结果不进 standing prompt;v1 verification→v2 validity 映射。
|
|
28
|
+
- Change Set 的 §6.5 依赖冲突确认:`dependencyConflictDiff` 标出新增/加重的 conflict,Pane 列出受影响交付物并要求
|
|
29
|
+
两步确认;wire 上为 optional 字段,不影响既有 preview/summary digest。
|
|
30
|
+
- 依赖关系图形区:Workspace 执行依赖卡片内的客户端透镜,语义列表始终常驻且为权威操作面;图形区不提供列表
|
|
31
|
+
之外的独有能力,编辑仍只产生 Change Set ops。实现与 W0 门禁见依赖图设计文档。
|
|
28
32
|
- source registry 按 source kind/projectionVersion 复算 message/compaction/agent-tool projection;Review/query 面
|
|
29
33
|
使用同一投影上下文并展示 batch integrity;未知投影返回 unsupported,缺 digest 返回 missing,不把“有 digest”当作
|
|
30
34
|
intact。message selection 以 trim 后正文为 canonicalization 基准;agent source 不绑定会在 accept 时剥离的
|
|
@@ -505,6 +509,18 @@ UI 组合规则固定为:`done/cancelled → terminal`,但仍单独显示 pr
|
|
|
505
509
|
|
|
506
510
|
结构非法会使整个 Change Set 失败。`dependency-conflict` 反映用户记录的实际状态,不自动回写 progress,也不把记录判为
|
|
507
511
|
损坏;Change Set 必须醒目标出新增或加重的 conflict,并要求用户确认。`charter_propose` 不能确认或直接制造这类冲突。
|
|
512
|
+
|
|
513
|
+
**实现状态(2026-11-10)**:上面这条确认要求此前只在 `charter_propose` 侧生效,Pane 的 Change Set 并没有标注
|
|
514
|
+
新增/加重的 conflict,Apply 一次点击就会提交。现已补齐:
|
|
515
|
+
|
|
516
|
+
- `dependencyConflictDiff(before, after)`(`src/core/dependencies.ts`)按 §6.5 的 1–2 条规则比较**冲突前置的数量**,
|
|
517
|
+
输出 `added`(原本不是 conflict,现在成为 conflict;新条目记 `before: 'absent'`)与 `worsened`(两侧都是 conflict,
|
|
518
|
+
但冲突前置数增加)。只比较 active dependency graph(`accepted + current`),因此 pending/superseded 条目不误报。
|
|
519
|
+
- `planChangeSet` 输出 `PlannedChangeSet.dependencyConflicts`,Host `previewChangeSet` 透传,wire 上是 **optional**
|
|
520
|
+
字段:老 Host 的帧仍能解码,新字段也不参与 `summaryDigest` / `changeSetPreviewDigest` 的输入,既有 digest 不变。
|
|
521
|
+
- Pane 用同一个纯函数在本地算出冲突(不等预览往返),在 Change Set 面板列出受影响交付物(`D<n>` + 摘要 +
|
|
522
|
+
冲突前置数变化),Apply 变为**两步确认**:第一次点击只把按钮改成"仍要应用(N 处冲突)",第二次才提交;
|
|
523
|
+
暂存批次一变(含 unstage)确认态即失效,`unknown outcome` 与写锁期间无法用 `Esc` 绕过。
|
|
508
524
|
首版不允许 inactive prerequisite,避免 prompt 中出现无法用局部标签引用的历史节点,也避免 restore 后恢复出悬空关系。
|
|
509
525
|
|
|
510
526
|
### 6.6 `appliesTo` 实验
|
|
@@ -36,10 +36,9 @@ rc.5 fixed the correctness defect inside the promised 0.1 workflow: previously e
|
|
|
36
36
|
|
|
37
37
|
## 2. Current Release State
|
|
38
38
|
|
|
39
|
-
- `0.2.
|
|
39
|
+
- `0.2.1` is published on npm (`latest`/`next`) and as GitHub Release `v0.2.1`; its tag, assets, and npm bytes
|
|
40
40
|
are immutable.
|
|
41
|
-
- `0.2.
|
|
42
|
-
published; local acceptance and promotion remain pending.
|
|
41
|
+
- `0.2.0` is the previous public release.
|
|
43
42
|
- `0.2.1` is a compatible post-`0.2.0` patch: editable message proposals, clearer diagnostics/typography, and an
|
|
44
43
|
owner-only bounded recovery cache. It does not change `recordSchemaVersion` 2 or the model tool surface; the
|
|
45
44
|
`dsh_charter_archives_v1` domain is a bounded derivative cache, not a second authority.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **状态:** Active — 版本与范围权威。
|
|
6
6
|
> **版本范围:** 0.1 历史与当前 0.2 开发线。
|
|
7
|
-
> **基准:** 2026-11-
|
|
7
|
+
> **基准:** 2026-11-11;`0.2.1` 已发布;`0.2.2` 为依赖图与 §6.5 冲突确认补丁的候选线(普通递增,不使用 `rc` 后缀)。
|
|
8
8
|
> **权威:** 中文版本为 scope 的 normative。
|
|
9
9
|
> **替代/被替代:** 无 / 无
|
|
10
10
|
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
→ 0.1.1(仅在 stable 后确有兼容补丁时)
|
|
23
23
|
→ 0.2.0 开发线 → 0.2.0
|
|
24
24
|
→ 0.2.1:0.2.0 之后的 UI、诊断与恢复缓存补丁
|
|
25
|
+
→ 0.2.2:依赖关系图形视图 + §6.5 冲突确认(纯客户端补丁线)
|
|
25
26
|
```
|
|
26
27
|
|
|
27
28
|
**`0.1.0-rc.5`** 已发布到 npm,是最新发布版本;其规范 GitHub tag/release 待恢复。**`0.1.0-rc.6`** 在验收前
|
|
@@ -35,9 +36,9 @@ rc.5 修复了与产品承诺冲突的审阅正确性问题:此前历史草案
|
|
|
35
36
|
|
|
36
37
|
## 2. 当前发布状态
|
|
37
38
|
|
|
38
|
-
- `0.2.
|
|
39
|
-
- `0.2.
|
|
40
|
-
|
|
39
|
+
- `0.2.1` 已发布到 npm(`latest`/`next`)和 GitHub Release `v0.2.1`;tag、资产和 npm 字节不可变。
|
|
40
|
+
- `0.2.2` 为当前候选线:依赖关系图形视图(纯客户端,不改 record/Remote/prompt)与 §6.5 冲突确认。
|
|
41
|
+
- `0.2.0` 是上一公开版本。
|
|
41
42
|
- `0.2.1` 是 `0.2.0` 之后的兼容补丁:可编辑消息提案、更清晰的诊断/排版、owner-only 有界恢复缓存。不改变
|
|
42
43
|
`recordSchemaVersion` 2 或模型工具面;`dsh_charter_archives_v1` 是有界派生物缓存,不是第二正本。
|
|
43
44
|
- `0.1.0-rc.6` 仍是上一个公开版本。历史 rc tag/release 不可变。
|
|
@@ -431,6 +432,14 @@ v1 item/proposal 的来源映射:可证明的 fork 保留 fork 引用;其余
|
|
|
431
432
|
|
|
432
433
|
alpha 阶段允许 schema 调整,但每次都要提供测试 fixture 迁移;beta 起冻结持久化与 Remote 主契约;rc 起冻结功能。
|
|
433
434
|
|
|
435
|
+
### 14.1 `0.2.2` 新增范围:依赖关系图形视图与 §6.5 确认
|
|
436
|
+
|
|
437
|
+
范围严格限定在客户端展示层与既有 §6.5 正确性修复:新增客户端关系图语义/几何纯函数、Workspace 图形区与
|
|
438
|
+
inspector、中英 locales、客户端测试,以及 Change Set 的新增/加重依赖冲突标注和两步确认。不改 record schema、
|
|
439
|
+
迁移、fork、Host service、Remote/wire(预览字段为 optional)、prompt 投影与字节,不改 `engines.dsh`/peer
|
|
440
|
+
ranges/`dshReleases`。对里程碑的影响:不新增人工门禁类别,但新增客户端布局/渲染性能与图形区无障碍证据;
|
|
441
|
+
沿用 §5.7 与既有 W0/W2 验收方式。W0/真实浏览器门禁未通过则本范围整体退出 0.2.2,不拆分半成品进版本。
|
|
442
|
+
|
|
434
443
|
## 14. 0.2.0 非目标
|
|
435
444
|
|
|
436
445
|
- 不增加 decision/environment 等新 item kind。
|
|
@@ -497,3 +506,4 @@ alpha 阶段允许 schema 调整,但每次都要提供测试 fixture 迁移;
|
|
|
497
506
|
| `0.1.0` | rc.5 稳定化与发布状态收敛 | 新功能 |
|
|
498
507
|
| `0.1.1` | stable 后兼容 bug/security/DSH/a11y patch | 新持久状态、新 API、新工作流 |
|
|
499
508
|
| `0.2.0` | 四个产品支柱、record v2、查询面、三中心 UI、架构重构 | 通用记忆、执行策略、任意 validator、无必要的新 domain |
|
|
509
|
+
| `0.2.2` | 客户端依赖关系图形视图、§6.5 conflict 确认、预览 optional 字段 | 新 record schema/domain、新 Remote 方法、模型可见能力变更、图形独有能力 |
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
# dsh-charter 0.2.1
|
|
2
2
|
|
|
3
|
-
> **Status:**
|
|
3
|
+
> **Status:** Released 2026-11-06 — npm and GitHub Release published.
|
|
4
4
|
> **Version scope:** `0.2.1`
|
|
5
5
|
> **Baseline:** 2026-11-06
|
|
6
6
|
> **Authority:** [version roadmap](../design/version-roadmap.md); [verification](../verification.md) for evidence.
|
|
7
7
|
> **Supersedes / Superseded by:** `0.2.0` / none.
|
|
8
8
|
|
|
9
9
|
`0.2.1` is the post-`0.2.0` patch for the message-proposal form, diagnostics presentation, Pane typography, and
|
|
10
|
-
bounded recovery cache.
|
|
10
|
+
bounded recovery cache. It is published as npm `dsh-charter@0.2.1` (`latest` and `next`) and GitHub Release
|
|
11
|
+
`v0.2.1`.
|
|
11
12
|
|
|
12
13
|
## Status
|
|
13
14
|
|
|
@@ -15,10 +16,11 @@ bounded recovery cache. No tag, GitHub Release, or npm publication exists yet.
|
|
|
15
16
|
- DSH compatibility: unchanged from `0.2.0`; all nine declared versions are matrix targets.
|
|
16
17
|
- Record schema: unchanged (`recordSchemaVersion: 2`); the new `dsh_charter_archives_v1` domain is a bounded,
|
|
17
18
|
owner-only recovery derivative, not a second authority.
|
|
18
|
-
- Source acceptance: strict TypeScript, build/smoke,
|
|
19
|
-
|
|
20
|
-
-
|
|
21
|
-
|
|
19
|
+
- Source acceptance: strict TypeScript, build/smoke, 36 files / 441 tests, and the nine-version compatibility
|
|
20
|
+
matrix; candidate and promotion workflows passed.
|
|
21
|
+
- Local acceptance and real Web/Desktop ABI passed on 2026-11-06.
|
|
22
|
+
- Post-release: real-model compaction PASS (post-compaction `charter_read` recorded); 512-item core
|
|
23
|
+
read/planning performance PASS (p95 5.2 ms / 0.6 ms). See [verification](../verification.md).
|
|
22
24
|
|
|
23
25
|
## Added
|
|
24
26
|
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# dsh-charter 0.2.2
|
|
2
|
+
|
|
3
|
+
> **Status:** Development candidate — source accepted locally; release acceptance, promotion, tag, and npm publication pending.
|
|
4
|
+
> **Version scope:** `0.2.2`
|
|
5
|
+
> **Baseline:** 2026-11-11
|
|
6
|
+
> **Authority:** [version roadmap](../design/version-roadmap.md); [verification](../verification.md) for evidence.
|
|
7
|
+
> **Supersedes / Superseded by:** none / none.
|
|
8
|
+
|
|
9
|
+
`0.2.2` adds a dependency-graph workspace view and closes the existing §6.5 dependency-conflict confirmation
|
|
10
|
+
gap. It is a client-focused patch: no record schema, migration, Host service, Remote wire, or prompt-projection
|
|
11
|
+
change.
|
|
12
|
+
|
|
13
|
+
## Status
|
|
14
|
+
|
|
15
|
+
- Package version: `0.2.2` (development candidate; not published).
|
|
16
|
+
- DSH compatibility: unchanged; the nine declared versions passed the final-tree matrix on 2026-11-11
|
|
17
|
+
(Node `v22.23.1`, pnpm `12.3.4`, source `f9d93c0`, 475/475 tests each).
|
|
18
|
+
- Record schema: unchanged (`recordSchemaVersion: 2`); no new storage domain, Remote method, or model-visible
|
|
19
|
+
capability.
|
|
20
|
+
- Source acceptance: strict TypeScript, build/smoke, 37 files / 475 tests, dependency-graph product tests, and
|
|
21
|
+
package smoke.
|
|
22
|
+
- Bundle budget: `gzip -9 -c lib/client.js` 113,990 → 130,474 B (+16,484 B), within the `<40 KB` budget; raw
|
|
23
|
+
bytes are diagnostic only.
|
|
24
|
+
- Artifact: `dsh-charter-0.2.2.tgz` (98 files, SHA-256 `032cb9048d5068f70243364f9ad60cdab6fef015e984d8bee2b1e8496fdc0651`),
|
|
25
|
+
exact-artifact package/recovery smokes passed; an isolated fresh Web profile installed and booted it.
|
|
26
|
+
- Pending: user's fresh-profile/Desktop ABI and Pane interaction acceptance, W0-1/2/3, real AT, forced colors,
|
|
27
|
+
reduced motion, 200% text scaling, 512-item UI performance re-record, promotion. See [verification](../verification.md).
|
|
28
|
+
|
|
29
|
+
## Added
|
|
30
|
+
|
|
31
|
+
- **Dependency graph in Workspace.** Local ego view with execution, candidate, and replacement-history lanes,
|
|
32
|
+
synchronized with the always-present semantic list.
|
|
33
|
+
- **Bounded isolated fallback.** Contracts without dependency edges show a grid of at most 20 execution nodes and
|
|
34
|
+
a short “add a prerequisite” hint; larger unlinked contracts hide the graph with an isolated-specific message.
|
|
35
|
+
- **Keyboard graph contract.** One Tab stop, arrow/`[`/`]` traversal, Enter for details, Escape to close and
|
|
36
|
+
return toward the list, and a skip link to the semantic list.
|
|
37
|
+
- **Dependency-conflict confirmation.** A Change Set that adds or worsens a dependency conflict lists affected
|
|
38
|
+
deliverables and requires a second Apply confirmation.
|
|
39
|
+
- **Compact prerequisite editing and windowing.** Each dependency row is a summary; its checkbox editor is opened
|
|
40
|
+
on demand. The list renders 50 rows at a time with a “show more” path.
|
|
41
|
+
|
|
42
|
+
## Changed
|
|
43
|
+
|
|
44
|
+
- The dependency list no longer renders a native multi-select with up to 511 options per row.
|
|
45
|
+
- Graph and list edits produce byte-identical `deliverable.requires` Change Set ops; Apply remains the only
|
|
46
|
+
commit point.
|
|
47
|
+
- Dense graph views degrade in order: hide replacement history, reduce depth, then hide the graph with a reason.
|
|
48
|
+
|
|
49
|
+
## Fixed
|
|
50
|
+
|
|
51
|
+
- Graph-to-list and graph-to-proposal focus paths expand the visible window before moving focus.
|
|
52
|
+
- Dependency summaries show local `D<n>` keys rather than internal item ids.
|
|
53
|
+
- Edge keys include the relation kind so matching requires/supersedes endpoints cannot collide.
|
|
54
|
+
|
|
55
|
+
## Upgrade notes
|
|
56
|
+
|
|
57
|
+
- Existing `0.2.1` records need no migration.
|
|
58
|
+
- The graph is a view over the existing relationship data; it is not a second source of truth.
|
|
59
|
+
- A dependency conflict still allows an explicit user override after the two-step confirmation; the graph never
|
|
60
|
+
changes progress or lifecycle automatically.
|
|
@@ -4,8 +4,7 @@
|
|
|
4
4
|
> **Version scope:** all release notes.
|
|
5
5
|
> **Authority:** [version roadmap](../design/version-roadmap.md).
|
|
6
6
|
|
|
7
|
-
The latest published release is [0.2.
|
|
8
|
-
(local acceptance and promotion pending); [0.1.0-rc.6](0.1.0-rc.6.md) is the previous public release.
|
|
7
|
+
The latest published release is [0.2.1](0.2.1.md). [0.2.2](0.2.2.md) is the current development candidate; [0.2.0](0.2.0.md) is the previous public release; [0.1.0-rc.6](0.1.0-rc.6.md) precedes it.
|
|
9
8
|
|
|
10
9
|
Published release history is summarized in [CHANGELOG.md](../../CHANGELOG.md) and remains available through the
|
|
11
10
|
immutable Git tags and GitHub Releases. Older per-release note files were removed during the rc.5 documentation
|
package/docs/releasing.md
CHANGED
|
@@ -12,12 +12,10 @@ tagging.
|
|
|
12
12
|
|
|
13
13
|
## Current state (2026-11-06)
|
|
14
14
|
|
|
15
|
-
- **Published:** `0.2.
|
|
16
|
-
`
|
|
17
|
-
- **
|
|
18
|
-
- **
|
|
19
|
-
- **Pending:** local acceptance, real browser/Desktop ABI, real-model compaction, 512-item performance, final
|
|
20
|
-
artifact/SHA256SUMS, candidate and promotion workflows.
|
|
15
|
+
- **Published:** `0.2.1` — npm `latest`/`next`, GitHub Release `v0.2.1`; exact artifact SHA-256
|
|
16
|
+
`d4ae14e19b4d65264a53b57c0f9d3f93eb8303189e8daa3f3f35beb97104d498`.
|
|
17
|
+
- **Previous release:** `0.2.0` (GitHub Release `v0.2.0`, npm `latest`/`next` before 0.2.1).
|
|
18
|
+
- **Post-release diagnostics:** real-model compaction and 512-item core performance both passed.
|
|
21
19
|
- Do not manually publish or bypass the protected gates.
|
|
22
20
|
|
|
23
21
|
## 1. Prepare the source
|
package/docs/releasing.zh.md
CHANGED
|
@@ -11,12 +11,10 @@ tag、不删除已发布 Release、不在打 tag 后重建字节。
|
|
|
11
11
|
|
|
12
12
|
## 当前状态(2026-11-06)
|
|
13
13
|
|
|
14
|
-
- **已发布:** `0.2.
|
|
15
|
-
`
|
|
16
|
-
-
|
|
17
|
-
-
|
|
18
|
-
- **待完成:** 本地验收、真实浏览器/Desktop ABI、真实模型 compaction、512 条性能、最终
|
|
19
|
-
artifact/SHA256SUMS、candidate 和 promotion workflow。
|
|
14
|
+
- **已发布:** `0.2.1` — npm `latest`/`next`,GitHub Release `v0.2.1`;精确产物 SHA-256
|
|
15
|
+
`d4ae14e19b4d65264a53b57c0f9d3f93eb8303189e8daa3f3f35beb97104d498`。
|
|
16
|
+
- **上一版本:** `0.2.0`(GitHub Release `v0.2.0`,0.2.1 之前的 npm `latest`/`next`)。
|
|
17
|
+
- **发布后诊断:** 真实模型 compaction 和 512 条 core 性能均已通过。
|
|
20
18
|
- 不得手动 publish,也不得绕过受保护门禁。
|
|
21
19
|
|
|
22
20
|
## 1. 准备源码
|
package/docs/user-guide.md
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
English | [中文](user-guide.zh.md)
|
|
4
4
|
|
|
5
5
|
> **Status:** Active — current operating record.
|
|
6
|
-
> **Version scope:**
|
|
7
|
-
> **Baseline:** 2026-11-
|
|
6
|
+
> **Version scope:** `0.2.2` release candidate.
|
|
7
|
+
> **Baseline:** 2026-11-11
|
|
8
8
|
|
|
9
9
|
This guide is for installing and using the plugin. For design constraints see the
|
|
10
10
|
[design specification](design/charter-design-v1.md); for version differences see the
|
|
@@ -13,7 +13,7 @@ This guide is for installing and using the plugin. For design constraints see th
|
|
|
13
13
|
## 1. Before installing
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
dsh --version #
|
|
16
|
+
dsh --version # a compatibility-matrix version; 0.2.2-rc.1 recommended
|
|
17
17
|
node --version # ^22.19.0 || >=24.0.0
|
|
18
18
|
dsh --profile web --dump-config | grep -n "charter" || true
|
|
19
19
|
```
|
|
@@ -27,24 +27,23 @@ For a Web or Desktop profile the plugin registers:
|
|
|
27
27
|
|
|
28
28
|
## 2. Install
|
|
29
29
|
|
|
30
|
-
> **Install channels.** The latest published release is `0.2.
|
|
31
|
-
>
|
|
32
|
-
> published rc.6 exact version for normal use.
|
|
30
|
+
> **Install channels.** The latest published release is `0.2.1` (npm `latest`/`next`). The `0.2.2` candidate is
|
|
31
|
+
> installed from its local acceptance tarball until promotion.
|
|
33
32
|
|
|
34
33
|
### 2.1 Requirements
|
|
35
34
|
|
|
36
35
|
- DSH: only the versions listed in the [compatibility matrix](design/compatibility.md) are supported
|
|
37
36
|
(`0.1.7-rc.2`, `0.2.0-rc.1`/`rc.2`, `0.2.1-rc.1`/`rc.2`/`rc.3`/`rc.4`/`0.2.0`, `0.2.2-rc.1`); newer stable/release versions are not
|
|
38
|
-
claimed until the matrix is extended. `0.2.1+` is required for per-Peer Remote resource authorization.
|
|
39
|
-
|
|
37
|
+
claimed until the matrix is extended. `0.2.1+` is required for per-Peer Remote resource authorization.
|
|
38
|
+
|
|
40
39
|
- Node.js **`^22.19.0 || >=24.0.0`**.
|
|
41
40
|
- A Web or Desktop profile.
|
|
42
41
|
|
|
43
42
|
### 2.2 Offline / local tarball fallback
|
|
44
43
|
|
|
45
44
|
```bash
|
|
46
|
-
npm pack dsh-charter@0.2.
|
|
47
|
-
dsh plugin --profile web add ./dsh-charter-0.2.
|
|
45
|
+
npm pack dsh-charter@0.2.1
|
|
46
|
+
dsh plugin --profile web add ./dsh-charter-0.2.1.tgz
|
|
48
47
|
```
|
|
49
48
|
|
|
50
49
|
For Desktop, use the Plugins page if local import is available; otherwise install the tarball through the Desktop
|
|
@@ -54,12 +53,12 @@ dependency is a local `file:` path. Prefer npm install in §2.3 when the registr
|
|
|
54
53
|
### 2.3 npm / Registry install (recommended) — Web profile by version or tag
|
|
55
54
|
|
|
56
55
|
```bash
|
|
57
|
-
dsh plugin --profile web add dsh-charter@0.2.
|
|
58
|
-
dsh plugin --profile web add dsh-charter
|
|
56
|
+
dsh plugin --profile web add dsh-charter@0.2.1 # latest published exact version
|
|
57
|
+
dsh plugin --profile web add ./dsh-charter-0.2.2.tgz # local 0.2.2 candidate
|
|
59
58
|
```
|
|
60
59
|
|
|
61
|
-
The latest published release
|
|
62
|
-
|
|
60
|
+
The latest published release is `0.2.1`. Use the exact `0.2.2` target after promotion; before that, use the
|
|
61
|
+
candidate tarball from the release PR. npm `next`/`latest` move
|
|
63
62
|
together on a stable promotion (npm keeps a `latest` tag and the project chooses where it points; this is our policy,
|
|
64
63
|
not an npm requirement). Use the offline tarball fallback only when the registry is unreachable or for
|
|
65
64
|
candidate verification. Pin an explicit version for reproducible profiles.
|
|
@@ -69,7 +68,7 @@ dependency and bundle selection:
|
|
|
69
68
|
|
|
70
69
|
```json
|
|
71
70
|
{
|
|
72
|
-
"dependencies": { "dsh-charter": "0.2.
|
|
71
|
+
"dependencies": { "dsh-charter": "0.2.1" },
|
|
73
72
|
"dsh": { "profile": { "bundles": ["...", "dsh-charter"] } }
|
|
74
73
|
}
|
|
75
74
|
```
|
|
@@ -212,6 +211,28 @@ Editing and history-draft extraction require the Session to be live in the curre
|
|
|
212
211
|
Session upgrades the tab to editable. `charter.bootstrap` therefore returns `not-live` rather than reading
|
|
213
212
|
another process's event log.
|
|
214
213
|
|
|
214
|
+
### 3.7 Dependency graph
|
|
215
|
+
|
|
216
|
+
The Workspace dependency card has two synchronized parts:
|
|
217
|
+
|
|
218
|
+
- a graph area showing execution, candidate, and replacement-history lanes;
|
|
219
|
+
- a compact semantic list that remains the authoritative editing surface.
|
|
220
|
+
|
|
221
|
+
The graph is a lens, not a second store. Adding or removing a prerequisite in the graph stages the same
|
|
222
|
+
`deliverable.requires` Change Set operation as the list; **Apply** remains the only commit point.
|
|
223
|
+
|
|
224
|
+
Keyboard and fallback behavior:
|
|
225
|
+
|
|
226
|
+
- `Tab` enters the graph once; `↑/↓/←/→` move through dependency relations and `[`/`]` walk every visible node
|
|
227
|
+
and edge; `Enter` opens details and `Esc` closes details or returns toward the list.
|
|
228
|
+
- The skip link moves focus directly to the semantic list.
|
|
229
|
+
- With no dependency edges, a bounded grid of isolated nodes is shown with an “add a prerequisite” hint.
|
|
230
|
+
- If there are too many isolated nodes or navigable graph elements, the graph is hidden and the list remains.
|
|
231
|
+
|
|
232
|
+
When a Change Set introduces or worsens a dependency conflict, Review/Apply lists the affected deliverables and
|
|
233
|
+
requires a second confirmation before Apply. The graph displays the same conflict state; it does not auto-change
|
|
234
|
+
progress or lifecycle.
|
|
235
|
+
|
|
215
236
|
## 4. Configuration
|
|
216
237
|
|
|
217
238
|
Defaults live in `cordis.patch.yml`. Override the same keys in the profile's `cordis.patch.yml`:
|
package/docs/user-guide.zh.md
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
[English](user-guide.md) | 中文
|
|
4
4
|
|
|
5
5
|
> **状态:** Active — 当前操作记录。
|
|
6
|
-
> **版本范围:**
|
|
7
|
-
> **基准:** 2026-11-
|
|
6
|
+
> **版本范围:** `0.2.2` 发布候选。
|
|
7
|
+
> **基准:** 2026-11-11
|
|
8
8
|
|
|
9
9
|
本文面向安装和使用插件的用户。设计约束见[设计规格](design/charter-design-v1.zh.md),版本差异见
|
|
10
10
|
[兼容矩阵](design/compatibility.zh.md)。
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
## 1. 安装前检查
|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
|
-
dsh --version #
|
|
15
|
+
dsh --version # 需要兼容矩阵中的版本;推荐 0.2.2-rc.1
|
|
16
16
|
node --version # ^22.19.0 || >=24.0.0
|
|
17
17
|
dsh --profile web --dump-config | grep -n "charter" || true
|
|
18
18
|
```
|
|
@@ -26,22 +26,22 @@ dsh --profile web --dump-config | grep -n "charter" || true
|
|
|
26
26
|
|
|
27
27
|
## 2. 安装
|
|
28
28
|
|
|
29
|
-
> **安装渠道。**
|
|
30
|
-
>
|
|
29
|
+
> **安装渠道。** 最新已发布版本是 `0.2.1`(npm `latest`/`next`)。`0.2.2` 候选在 promotion 前从本地验收
|
|
30
|
+
> tarball 安装。
|
|
31
31
|
|
|
32
32
|
### 2.1 环境要求
|
|
33
33
|
|
|
34
34
|
- DSH:只支持[兼容矩阵](design/compatibility.zh.md)中列出的版本(`0.1.7-rc.2`、`0.2.0-rc.1`/`rc.2`、
|
|
35
35
|
`0.2.1-rc.1`/`rc.2`/`rc.3`/`rc.4`/`0.2.0`、`0.2.2-rc.1`)。在扩展矩阵前不声明支持更新的 stable/release 版本;完整 per-Peer Remote
|
|
36
|
-
资源授权要求 `0.2.1+`。
|
|
36
|
+
资源授权要求 `0.2.1+`。
|
|
37
37
|
- Node.js **`^22.19.0 || >=24.0.0`**。
|
|
38
38
|
- Web 或 Desktop profile。
|
|
39
39
|
|
|
40
40
|
### 2.2 离线 / 本地 tarball 回退
|
|
41
41
|
|
|
42
42
|
```bash
|
|
43
|
-
npm pack dsh-charter@0.2.
|
|
44
|
-
dsh plugin --profile web add ./dsh-charter-0.2.
|
|
43
|
+
npm pack dsh-charter@0.2.1
|
|
44
|
+
dsh plugin --profile web add ./dsh-charter-0.2.1.tgz
|
|
45
45
|
```
|
|
46
46
|
|
|
47
47
|
Desktop 若支持本地插件导入,可在 Plugins 页面安装同一个 tarball;否则通过 Desktop profile 自己的包管理器
|
|
@@ -51,12 +51,12 @@ Desktop 若支持本地插件导入,可在 Plugins 页面安装同一个 tarba
|
|
|
51
51
|
### 2.3 npm / Registry 安装(推荐)— Web profile 按版本或 tag
|
|
52
52
|
|
|
53
53
|
```bash
|
|
54
|
-
dsh plugin --profile web add dsh-charter@0.2.
|
|
55
|
-
dsh plugin --profile web add dsh-charter
|
|
54
|
+
dsh plugin --profile web add dsh-charter@0.2.1 # 最新已发布精确版本
|
|
55
|
+
dsh plugin --profile web add ./dsh-charter-0.2.2.tgz # 本地 0.2.2 候选
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
最新公开版本是 `0.2.1`。`0.2.2` promotion 后使用精确的 `0.2.2`;在此之前使用 release PR 提供的候选
|
|
59
|
+
tarball。stable promotion 会同时移动 npm `next`/`latest`(npm 保留 `latest` tag,
|
|
60
60
|
由项目决定其指向;这是我们的策略,不是 npm 的强制要求)。只有 registry 不可达或候选验证时才使用离线 tarball 回退。固定明确版本
|
|
61
61
|
可以让 profile 可复现。
|
|
62
62
|
|
|
@@ -65,7 +65,7 @@ dsh plugin --profile web add dsh-charter@next # 当前指向 0.2.0
|
|
|
65
65
|
|
|
66
66
|
```json
|
|
67
67
|
{
|
|
68
|
-
"dependencies": { "dsh-charter": "0.2.
|
|
68
|
+
"dependencies": { "dsh-charter": "0.2.1" },
|
|
69
69
|
"dsh": { "profile": { "bundles": ["...", "dsh-charter"] } }
|
|
70
70
|
}
|
|
71
71
|
```
|
|
@@ -194,6 +194,27 @@ Web 进程可以只读显示另一个进程中 live 的 Session 的已存会话
|
|
|
194
194
|
进程 live;Session 重连后标签页升级为可编辑。因此 `charter.bootstrap` 返回 `not-live`,而不是读取另一个
|
|
195
195
|
进程的事件日志。
|
|
196
196
|
|
|
197
|
+
### 3.7 依赖关系图
|
|
198
|
+
|
|
199
|
+
Workspace 的依赖卡片包含两个同步部分:
|
|
200
|
+
|
|
201
|
+
- 图形区:执行车道、候选车道和替代历史车道;
|
|
202
|
+
- 紧凑语义列表:始终存在的权威编辑面。
|
|
203
|
+
|
|
204
|
+
图是透镜,不是第二份存储。图上的添加/删除前置与列表一样只 stage 同一个 `deliverable.requires` Change Set
|
|
205
|
+
op;**Apply** 仍是唯一提交点。
|
|
206
|
+
|
|
207
|
+
键盘与降级:
|
|
208
|
+
|
|
209
|
+
- `Tab` 只进入图形区一次;`↑/↓/←/→` 沿依赖关系移动,`[`/`]` 遍历所有可见节点与边;`Enter` 打开详情,
|
|
210
|
+
`Esc` 关闭详情或回到列表。
|
|
211
|
+
- skip link 可直接把焦点送到语义列表。
|
|
212
|
+
- 没有依赖边时显示有界孤立节点网格和“添加前置”提示。
|
|
213
|
+
- 孤立节点或可导航图元素过多时隐藏图形区,列表保持完整。
|
|
214
|
+
|
|
215
|
+
Change Set 引入或加重依赖冲突时,Review/Apply 会列出受影响交付物并要求二次确认;图形只显示同一冲突
|
|
216
|
+
状态,不会自动修改 progress 或 lifecycle。
|
|
217
|
+
|
|
197
218
|
## 4. 配置
|
|
198
219
|
|
|
199
220
|
默认值写在 `cordis.patch.yml`。在 profile 的 `cordis.patch.yml` 中覆盖同名项:
|
package/docs/verification.md
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
English | [中文](verification.zh.md)
|
|
4
4
|
|
|
5
5
|
> **Status:** Active — current operating record.
|
|
6
|
-
> **Version scope:**
|
|
7
|
-
> **Baseline:** 2026-11-
|
|
6
|
+
> **Version scope:** `0.2.2` development candidate.
|
|
7
|
+
> **Baseline:** 2026-11-11
|
|
8
8
|
|
|
9
|
-
Verification date: 2026-11-
|
|
9
|
+
Verification date: 2026-11-11. Current source version: `0.2.2` (development candidate; not published). This is the current evidence record; historical per-commit narratives live in Git
|
|
10
10
|
history and the Changelog. Temporary directories, profiles, tarballs, and fetched HTML live under `.tmp/` and are
|
|
11
11
|
excluded from the published package.
|
|
12
12
|
|
|
@@ -15,35 +15,40 @@ Environment: macOS, Node `v22.23.1`, npm `12.0.2`, pnpm `12.3.4`. Local DSH deve
|
|
|
15
15
|
|
|
16
16
|
## 1. Current conclusion
|
|
17
17
|
|
|
18
|
-
Current release state (2026-11-
|
|
18
|
+
Current release state (2026-11-11):
|
|
19
19
|
|
|
20
|
-
- Published: `0.2.
|
|
21
|
-
-
|
|
22
|
-
- `0.1.0-rc.6`:
|
|
20
|
+
- Published: `0.2.1` (npm `latest`/`next`; exact SHA-256 `d4ae14e19b4d65264a53b57c0f9d3f93eb8303189e8daa3f3f35beb97104d498`). GitHub Release `v0.2.1` is public and immutable.
|
|
21
|
+
- `0.2.0`: previous public release; GitHub Release `v0.2.0` remains immutable.
|
|
22
|
+
- `0.1.0-rc.6`: earlier public release; recovery tag `v0.1.0-rc.6-republished`.
|
|
23
23
|
- Versioning from 0.2.0 onward uses plain increments and never an `rc` suffix.
|
|
24
|
-
- Current source evidence:
|
|
25
|
-
-
|
|
24
|
+
- Current source evidence: 37 files / 475 tests on the final 0.2.2 candidate tree at `f9d93c0`; the nine-version matrix passes 475/475 on that tree (Node `v22.23.1` / pnpm `12.3.4`, evidence `.tmp/0.2.2-final-matrix2.json`).
|
|
25
|
+
- Post-release diagnostics: real-model compaction PASS (session `session-da7e7b0d-f0b0-49a2-8391-148b4782892c`); 512-item performance PASS on 2026-11-06 (core read/planning p95, see below).
|
|
26
26
|
|
|
27
27
|
| Item | Result |
|
|
28
28
|
| --- | --- |
|
|
29
29
|
| Strict TypeScript check | Pass on the current tree |
|
|
30
|
-
| Vitest |
|
|
30
|
+
| Vitest | 37 files / 475 tests pass (`npm test`, which builds first) |
|
|
31
31
|
| Host ESM build + browser factory bundle | Pass |
|
|
32
32
|
| Remote contract and client smoke | Pass |
|
|
33
33
|
| Normal package smoke | Pass |
|
|
34
|
-
| Exact-artifact package smoke | Pass on the
|
|
34
|
+
| Exact-artifact package smoke | Pass on the published `0.2.1` `.tgz` bytes (`d4ae14e1…`) from the root `SHA256SUMS`, without rebuild |
|
|
35
35
|
| Packed-artifact recovery smoke | Pass: export, target removal, restore, receipt replay, two restarts, healthy-target refusal, packed fault subset |
|
|
36
36
|
| Real `TypertGatewayService` | Pass on exact artifact with isolated DSH `0.2.1-rc.3` and `rc.4` graphs |
|
|
37
37
|
| Compatibility sentinels | Pass on `0.1.7-rc.2`, `0.2.1-rc.2`, `0.2.1-rc.4`, `0.2.1-rc.5` |
|
|
38
|
-
|
|
|
38
|
+
| 0.2.2 exact artifact smoke | PASS on 2026-11-11: `dsh-charter-0.2.2.tgz` (98 files, SHA-256 `032cb9048d5068f70243364f9ad60cdab6fef015e984d8bee2b1e8496fdc0651`); package smoke installed the exact bytes in an empty consumer and the packed recovery smoke passed all export/restore/two-restart/fault checks. |
|
|
39
|
+
| Nine-version full rerun | Pass via tracked `compat-matrix --versions all --allow-new-release` (475/475 each) |
|
|
39
40
|
| Fresh Web profile matrix (historical rc.6) | PASS: local rc.6 artifact (pre-withdrawal) installed and served on DSH `0.1.7-rc.2`, `0.2.0-rc.2`, `0.2.1-rc.2`, `0.2.1-rc.4`, `0.2.1-rc.5` |
|
|
40
41
|
| Fresh Web profile 0.2.2 | PASS on 2026-11-05: fresh `DSH_HOME` + `dsh@0.2.2-rc.1 plugin --profile web add` of `dsh-charter-0.2.0.tgz` (SHA-256 `fde5531d457effc713f4423f8b46c8f0e591770e59c55e19956f000c11bdeffc`); Web boot, page HTTP 200, charter bundle HTTP 200; boot graph contains `dsh-charter` and the page index contains `dsh-charter/client.js` |
|
|
41
42
|
| Untracked `0.2.2-alpha.2` / `0.2.2-alpha.3` probes | strict-peer install fails because these alpha lines require a Cordis 4.0.6 alpha graph; the 0.2.2-rc.1 line pins Cordis 4.1.0; no tests run; explicitly unsupported. |
|
|
42
43
|
| 0.2.1 real Web Pane | PASS on 2026-11-06: local Web profile installed the `0.2.1` candidate artifact; Pane reports `v0.2.1`, diagnostics/recovery cache and the editable message proposal render, and the browser console is clean. |
|
|
43
44
|
| 0.2.1 local human acceptance | PASS on 2026-11-06: user completed local acceptance of the 0.2.1 UI/interaction batch. |
|
|
44
|
-
| 0.2.1 Desktop ABI |
|
|
45
|
-
|
|
|
46
|
-
|
|
|
45
|
+
| 0.2.1 Desktop ABI | PASS on 2026-11-06: Desktop profile installed the exact candidate, the Electron process was restarted, and the Pane/tab ABI was confirmed. |
|
|
46
|
+
| 0.2.2 compatibility matrix | PASS on 2026-11-11: source `f9d93c031eabfe5e44cf17e302729eb7093d7e94`, Node `v22.23.1` / pnpm `12.3.4`; all nine declared DSH versions passed typecheck, build, and 475/475 tests (`.tmp/0.2.2-final-matrix2.json`). |
|
|
47
|
+
| 0.2.2 fresh profile install | PASS on 2026-11-11: isolated `DSH_HOME=/tmp/dsh-charter-fresh-022-home` initialized a fresh Web profile and installed the exact local `dsh-charter-0.2.2.tgz`; `dsh web` served the Pane entry (HTTP 303 token redirect). CLI/tarball path verified; Desktop, real Pane interaction, and zh/en switch remain manual. |
|
|
48
|
+
| 0.2.2 dependency graph source | PASS on 2026-11-11: `npm run check` 37 files / 475 tests; W0-0 prototype 41/41 (pre-isolated-grid contract; product isolated-grid tests are in `tests/client/relation-graph.spec.ts`); Web Pane rendered the graph, candidate lane, inspector, and always-present semantic list for a session with 3 active + 4 pending deliverables; browser console clean. UI self-check on 2026-11-11: isolated three-node graph + empty hint, compact list, add-edge/hide/show, and local-key prerequisite summary all rendered without console errors. W0-1/2/3 and real AT/manual gates remain pending. |
|
|
49
|
+
| 0.2.2 dependency graph bundle | Measured on 2026-11-11 against `d362d6f` with the standardized budget method `gzip -9 -c lib/client.js | wc -c`: 113,990 → 130,474 B (+16,484 B), so the `<40 KB` gzip budget passes. Raw diagnostic: `lib/client.js` 591,936 → 670,173 B (+78,237 B); raw CSS output 47,230 → 55,540 B (+8,310 B). Raw bytes are not the budget channel. |
|
|
50
|
+
| Real-model compaction | PASS on 2026-11-06 for `session-da7e7b0d-f0b0-49a2-8391-148b4782892c`: latest compaction seq 32610–32614, post-compaction snapshot seq 32623, `charter_read` call/result seq 32631/32632; injected, digest match, injection-after-compaction, survival, authenticated standing read, and no-checkpoint-leak all pass. |
|
|
51
|
+
| 512-item performance | PASS on 2026-11-06, local Node `22.23.1`: 512 pending items, 300 warm-ups then 30 samples; full pagination query p95 5.2 ms and 5-op Change Set planning p95 0.6 ms against the 100 ms budget. This measures the pure core read/planning path, not UI/network. |
|
|
47
52
|
| Real browser diagnostics | Local manual checks recorded; not a release gate |
|
|
48
53
|
| Real-model compaction | Separately recorded PASS (2026-10-22); still a manual release gate |
|
|
49
54
|
|
|
@@ -56,7 +61,7 @@ The `main` tree has passed source-level acceptance for the implemented workspace
|
|
|
56
61
|
- three-area Pane information architecture and dependency editor;
|
|
57
62
|
- proposal-batch provenance, objective-proposal lifecycle, summary/item/proposal/change query endpoints, `watchSummary`, and pending-only `charter_propose`;
|
|
58
63
|
- `npm run check`: 36 files / 441 tests;
|
|
59
|
-
- nine-version DSH matrix:
|
|
64
|
+
- nine-version DSH matrix: 475/475 on every declared version;
|
|
60
65
|
- normal package smoke: `dsh-charter-0.2.0.tgz` installs and its client factory bundle loads.
|
|
61
66
|
|
|
62
67
|
This is source acceptance, not a release acceptance: real Desktop/browser diagnostics, real-model compaction, performance,
|
|
@@ -90,19 +95,20 @@ The tracked runner creates isolated pnpm projects with strict peers and runs typ
|
|
|
90
95
|
|
|
91
96
|
| DSH version | Evidence |
|
|
92
97
|
| --- | --- |
|
|
93
|
-
| `0.1.7-rc.2` |
|
|
94
|
-
| `0.2.0-rc.1` |
|
|
95
|
-
| `0.2.0-rc.2` |
|
|
96
|
-
| `0.2.1-rc.1` |
|
|
97
|
-
| `0.2.1-rc.2` |
|
|
98
|
-
| `0.2.1-rc.3` |
|
|
99
|
-
| `0.2.1-rc.4` |
|
|
100
|
-
| `0.2.1-rc.5` |
|
|
101
|
-
| `0.2.2-rc.1` |
|
|
102
|
-
|
|
103
|
-
The 0.2.
|
|
104
|
-
`compat-matrix --versions all --allow-new-release` on 2026-11-
|
|
105
|
-
|
|
98
|
+
| `0.1.7-rc.2` | 475/475 tracked matrix PASS |
|
|
99
|
+
| `0.2.0-rc.1` | 475/475 tracked matrix PASS |
|
|
100
|
+
| `0.2.0-rc.2` | 475/475 tracked matrix PASS |
|
|
101
|
+
| `0.2.1-rc.1` | 475/475 tracked matrix PASS |
|
|
102
|
+
| `0.2.1-rc.2` | 475/475 tracked matrix PASS |
|
|
103
|
+
| `0.2.1-rc.3` | 475/475 tracked matrix PASS |
|
|
104
|
+
| `0.2.1-rc.4` | 475/475 tracked matrix PASS |
|
|
105
|
+
| `0.2.1-rc.5` | 475/475 tracked matrix PASS |
|
|
106
|
+
| `0.2.2-rc.1` | 475/475 tracked matrix PASS |
|
|
107
|
+
|
|
108
|
+
The 0.2.2 candidate tree at source commit `f9d93c031eabfe5e44cf17e302729eb7093d7e94` passed
|
|
109
|
+
`compat-matrix --versions all --allow-new-release` on 2026-11-11 with Node `v22.23.1` / pnpm `12.3.4`: every
|
|
110
|
+
declared version passed typecheck, build, and 475/475 tests. The local evidence file is
|
|
111
|
+
`.tmp/0.2.2-final-matrix2.json`. Installs use pnpm strict peer resolution, exact tool pins, a single zod 4.6.7 graph, full `pnpm list --depth Infinity` graph validation, and recorded lockfile SHA-256 values. The untracked `0.2.2-alpha.2` probe is recorded as unsupported: strict-peer install fails because DSH requires Cordis ~4.0.6-alpha.1 while rc.6 pins 4.0.5; no tests run.
|
|
106
112
|
|
|
107
113
|
## 4. What the tests cover
|
|
108
114
|
|