dsh-charter 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -1
- package/CHANGELOG.zh.md +27 -1
- package/CONTRIBUTING.md +12 -2
- package/CONTRIBUTING.zh.md +9 -2
- package/README.md +32 -18
- package/README.zh.md +28 -16
- package/docs/README.md +4 -3
- package/docs/README.zh.md +4 -3
- package/docs/assets/charter-pane.zh.png +0 -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 +4 -3
- package/docs/design/version-roadmap.md +10 -9
- package/docs/design/version-roadmap.zh.md +8 -14
- package/docs/release-notes/0.2.0.md +7 -7
- package/docs/release-notes/0.2.1.md +56 -0
- package/docs/release-notes/README.md +2 -2
- package/docs/releasing.md +15 -8
- package/docs/releasing.zh.md +13 -8
- package/docs/user-guide.md +12 -7
- package/docs/user-guide.zh.md +9 -5
- package/docs/verification.md +33 -27
- package/docs/verification.zh.md +25 -23
- package/lib/client/locales.d.ts +35 -13
- package/lib/client/store.d.ts +5 -0
- package/lib/client.js +612 -179
- package/lib/host/domain.d.ts +50 -0
- package/lib/host/service.d.ts +18 -1
- package/lib/host/types.d.ts +35 -1
- package/lib/index.js +1 -1
- package/lib/remote/service.d.ts +8 -1
- package/lib/remote/wire.d.ts +124 -0
- package/lib/remote.js +133 -2
- package/lib/{service-C3A59BG5.js → service-CNjnvioR.js} +181 -3
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# dsh-charter 0.2.1
|
|
2
|
+
|
|
3
|
+
> **Status:** Release candidate — local acceptance and promotion pending.
|
|
4
|
+
> **Version scope:** `0.2.1`
|
|
5
|
+
> **Baseline:** 2026-11-06
|
|
6
|
+
> **Authority:** [version roadmap](../design/version-roadmap.md); [verification](../verification.md) for evidence.
|
|
7
|
+
> **Supersedes / Superseded by:** `0.2.0` / none.
|
|
8
|
+
|
|
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. No tag, GitHub Release, or npm publication exists yet.
|
|
11
|
+
|
|
12
|
+
## Status
|
|
13
|
+
|
|
14
|
+
- Package version: `0.2.1`.
|
|
15
|
+
- DSH compatibility: unchanged from `0.2.0`; all nine declared versions are matrix targets.
|
|
16
|
+
- Record schema: unchanged (`recordSchemaVersion: 2`); the new `dsh_charter_archives_v1` domain is a bounded,
|
|
17
|
+
owner-only recovery derivative, not a second authority.
|
|
18
|
+
- Source acceptance: strict TypeScript, build/smoke, Vitest, and the nine-version compatibility matrix run on the
|
|
19
|
+
final candidate tree. Record the exact count and commit in [verification](../verification.md).
|
|
20
|
+
- Pending: local human acceptance, real browser/Desktop ABI, real-model compaction, 512-item performance, final
|
|
21
|
+
artifact digests, and promotion.
|
|
22
|
+
|
|
23
|
+
## Added
|
|
24
|
+
|
|
25
|
+
- Editable message proposals. Selecting a user message fills an editable body; the old character-range inputs are
|
|
26
|
+
removed. Edited proposals use manual provenance and reject non-human actors.
|
|
27
|
+
- Owner-only recovery cache with `listArchives`/`readArchive` Remote methods. Snapshots are bounded to five per
|
|
28
|
+
Session and 25 per profile, evicted oldest-first.
|
|
29
|
+
- Diagnostics form for fact validity with explicit target, method, path, and expectation fields; evidence
|
|
30
|
+
integrity is a separate action and explanation.
|
|
31
|
+
|
|
32
|
+
## Changed
|
|
33
|
+
|
|
34
|
+
- Review and recovery forms share one field-label, helper-text, and card-description hierarchy.
|
|
35
|
+
- Pane header uses the lighter `dsh-context` title scale, compact metadata, and a flat divider instead of a hero
|
|
36
|
+
card.
|
|
37
|
+
- Recovery lists cached snapshots directly; download is an independent export/audit operation. Local JSON import
|
|
38
|
+
remains an advanced path.
|
|
39
|
+
- README/README.zh describe the current 0.2.1 capabilities and carry a current Pane screenshot.
|
|
40
|
+
|
|
41
|
+
## Fixed
|
|
42
|
+
|
|
43
|
+
- Message proposal and diagnostics state reset across Sessions.
|
|
44
|
+
- Proposal-batch source integrity survives the same-revision transition from an accepted Host view to the query
|
|
45
|
+
view.
|
|
46
|
+
- Recovery cache survives Host restart; Session disposal no longer deletes it, and profile-wide LRU bounds stale
|
|
47
|
+
entries.
|
|
48
|
+
- Restore labels distinguish cached recovery from imported files.
|
|
49
|
+
|
|
50
|
+
## Upgrade notes
|
|
51
|
+
|
|
52
|
+
- Existing `0.2.0` records are read without migration. The archive-cache domain is created lazily and is optional;
|
|
53
|
+
if it cannot open, the primary record and ordinary editing remain available.
|
|
54
|
+
- `listArchives` and `readArchive` require the same owner-only maintenance capability as export/restore.
|
|
55
|
+
- Health records still refuse restore; cached snapshots are offered only for `absent-unconfirmed` or `invalid`
|
|
56
|
+
targets.
|
|
@@ -4,8 +4,8 @@
|
|
|
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.
|
|
8
|
-
(
|
|
7
|
+
The latest published release is [0.2.0](0.2.0.md). [0.2.1](0.2.1.md) is the current release candidate
|
|
8
|
+
(local acceptance and promotion pending); [0.1.0-rc.6](0.1.0-rc.6.md) is the previous public release.
|
|
9
9
|
|
|
10
10
|
Published release history is summarized in [CHANGELOG.md](../../CHANGELOG.md) and remains available through the
|
|
11
11
|
immutable Git tags and GitHub Releases. Older per-release note files were removed during the rc.5 documentation
|
package/docs/releasing.md
CHANGED
|
@@ -10,12 +10,14 @@ This is the current release checklist. It replaces the older per-rc staging note
|
|
|
10
10
|
Releases, and npm versions are immutable: never move a tag, delete a published release, or rebuild bytes after
|
|
11
11
|
tagging.
|
|
12
12
|
|
|
13
|
-
## Current state (2026-11-
|
|
14
|
-
|
|
15
|
-
- **Published:** `0.
|
|
16
|
-
`
|
|
17
|
-
- **Release candidate:** `0.2.
|
|
18
|
-
- **
|
|
13
|
+
## Current state (2026-11-06)
|
|
14
|
+
|
|
15
|
+
- **Published:** `0.2.0` — npm `latest`/`next`, GitHub Release `v0.2.0`; exact artifact SHA-256
|
|
16
|
+
`7bafffc24c18c9655d68a9a61017db54920839a159dfeeba0643337c3aae4286`.
|
|
17
|
+
- **Release candidate:** `0.2.1` on a local development branch; no tag, GitHub Release, or npm publication yet.
|
|
18
|
+
- **Previous release:** `0.1.0-rc.6` (recovery tag `v0.1.0-rc.6-republished`).
|
|
19
|
+
- **Pending:** local acceptance, real browser/Desktop ABI, real-model compaction, 512-item performance, final
|
|
20
|
+
artifact/SHA256SUMS, candidate and promotion workflows.
|
|
19
21
|
- Do not manually publish or bypass the protected gates.
|
|
20
22
|
|
|
21
23
|
## 1. Prepare the source
|
|
@@ -24,11 +26,16 @@ tagging.
|
|
|
24
26
|
plan. No unplanned feature should enter a release candidate.
|
|
25
27
|
2. Update every metadata site in one change: `package.json` version, `engines.dsh`, peer ranges,
|
|
26
28
|
`dsh.compatibility.dshReleases`, `package-lock.json`, README/README.zh, compatibility docs,
|
|
27
|
-
verification, CHANGELOGs, release notes, and root `SHA256SUMS`.
|
|
29
|
+
verification, CHANGELOGs, release notes, and root `SHA256SUMS`. Before the candidate is built, refresh
|
|
30
|
+
README/README.zh with the latest capabilities and the current Pane screenshots from the accepted build; stale
|
|
31
|
+
README copy or screenshots block the release.
|
|
28
32
|
3. Run `npm ci`, `npm run check`, and the normal `npm run smoke:package`.
|
|
29
33
|
4. Run the compatibility regression over every declared DSH version and probe untracked `next`/`latest`
|
|
30
34
|
versions. A missing, peer-drifted, or untested version blocks release.
|
|
31
|
-
5. Run the local gates on a local non-`main` branch
|
|
35
|
+
5. Run the local gates on a local non-`main` branch and build the acceptance tarball/profile. Perform local human
|
|
36
|
+
acceptance against that exact build. Only after acceptance, merge into local `main` linearly, then push
|
|
37
|
+
`main`. Do not push development branches; the remote keeps only `main`. Keep the worktree free of secrets,
|
|
38
|
+
user records, and `.tmp` artifacts.
|
|
32
39
|
|
|
33
40
|
## 2. Build the candidate bytes once
|
|
34
41
|
|
package/docs/releasing.zh.md
CHANGED
|
@@ -9,12 +9,14 @@
|
|
|
9
9
|
这是当前发布清单,取代早期按 rc 编写的暂存说明。已发布的 tag、GitHub Release 和 npm 版本不可变:不移动
|
|
10
10
|
tag、不删除已发布 Release、不在打 tag 后重建字节。
|
|
11
11
|
|
|
12
|
-
## 当前状态(2026-11-
|
|
13
|
-
|
|
14
|
-
- **已发布:** `0.
|
|
15
|
-
`
|
|
16
|
-
- **发布候选:** `0.2.
|
|
17
|
-
-
|
|
12
|
+
## 当前状态(2026-11-06)
|
|
13
|
+
|
|
14
|
+
- **已发布:** `0.2.0` — npm `latest`/`next`,GitHub Release `v0.2.0`;精确产物 SHA-256
|
|
15
|
+
`7bafffc24c18c9655d68a9a61017db54920839a159dfeeba0643337c3aae4286`。
|
|
16
|
+
- **发布候选:** `0.2.1` 在本地开发分支;尚未打 tag、发布 GitHub Release 或 npm。
|
|
17
|
+
- **上一版本:** `0.1.0-rc.6`(recovery tag `v0.1.0-rc.6-republished`)。
|
|
18
|
+
- **待完成:** 本地验收、真实浏览器/Desktop ABI、真实模型 compaction、512 条性能、最终
|
|
19
|
+
artifact/SHA256SUMS、candidate 和 promotion workflow。
|
|
18
20
|
- 不得手动 publish,也不得绕过受保护门禁。
|
|
19
21
|
|
|
20
22
|
## 1. 准备源码
|
|
@@ -22,11 +24,14 @@ tag、不删除已发布 Release、不在打 tag 后重建字节。
|
|
|
22
24
|
1. 确认范围符合[版本路线](design/version-roadmap.zh.md)和当前稳定化计划;候选版本不夹带计划外功能。
|
|
23
25
|
2. 在同一次修改中更新全部元数据:`package.json` version、`engines.dsh`、peer ranges、
|
|
24
26
|
`dsh.compatibility.dshReleases`、`package-lock.json`、README/README.zh、兼容文档、验证记录、
|
|
25
|
-
CHANGELOG、release notes 和根 `SHA256SUMS
|
|
27
|
+
CHANGELOG、release notes 和根 `SHA256SUMS`。构建候选字节前,必须把 README/README.zh 更新到当前最新能力,
|
|
28
|
+
并用已验收构建重新生成 Pane 截图;README 文案或截图过期会阻断发布。
|
|
26
29
|
3. 运行 `npm ci`、`npm run check` 和普通 `npm run smoke:package`。
|
|
27
30
|
4. 对每个声明 DSH 版本跑兼容回归,并 probe 未跟踪的 `next`/`latest` 版本;缺失、peer drift 或未验证版本
|
|
28
31
|
阻断发布。
|
|
29
|
-
5. 在本地非 `main`
|
|
32
|
+
5. 在本地非 `main` 分支跑完门禁并构建验收 tarball/profile,对该精确构建做本地人工验收。验收确认后,
|
|
33
|
+
再线性合入本地 `main` 并推送 `main`。不要推送开发分支;远程只保留 `main`。工作树不得包含 secrets、
|
|
34
|
+
用户记录或 `.tmp` 产物。
|
|
30
35
|
|
|
31
36
|
## 2. 只构建一次候选字节
|
|
32
37
|
|
package/docs/user-guide.md
CHANGED
|
@@ -90,10 +90,13 @@ short record digest, and over-budget flag.
|
|
|
90
90
|
|
|
91
91
|
- **Export** downloads the complete record archive (identity, current snapshot, bounded history, mutation and
|
|
92
92
|
maintenance receipts). The archive contains your charter text and is sensitive.
|
|
93
|
-
- **Recovery**
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
93
|
+
- **Recovery** lists the latest five archives cached by the Host; the Pane previews health/revision/lifecycle/digest
|
|
94
|
+
and requires a second confirmation before the Host revalidates and writes anything. No download is needed.
|
|
95
|
+
Restore is offered only for an `absent-unconfirmed` or `invalid` target; a healthy record cannot be overwritten.
|
|
96
|
+
- **Advanced import** accepts a local JSON archive only (never a URL or Host path), for archives exported from
|
|
97
|
+
another machine or kept before the cache existed. The same validation and confirmation gates apply.
|
|
98
|
+
- The download is for external analysis, auditing, or backup; it is independent from restore. A downloaded
|
|
99
|
+
archive is not required to recover.
|
|
97
100
|
- **Explicit empty initialization** is available for `absent-unconfirmed` and requires a destructive second
|
|
98
101
|
confirmation, because an unreadable outer document also appears absent.
|
|
99
102
|
- `write-uncertain` means a storage write may or may not have landed. Restart the Host so it reloads the medium; the
|
|
@@ -271,7 +274,9 @@ record ceiling is shown in **Context**.
|
|
|
271
274
|
|
|
272
275
|
## 5. Data and privacy
|
|
273
276
|
|
|
274
|
-
- Authority: the `sessions` table in the `dsh_charter_v1` domain, one record per Session.
|
|
277
|
+
- Authority: the `sessions` table in the `dsh_charter_v1` domain, one record per Session. Recovery snapshots live
|
|
278
|
+
in the bounded owner-only `archives` table of the `dsh_charter_archives_v1` domain (at most five per Session,
|
|
279
|
+
oldest-first eviction, and at most 25 across the profile).
|
|
275
280
|
- The record contains the objective, items, derived `promptText`/digest, recent history, and mutation receipts.
|
|
276
281
|
- The record is bound to `createdAt`, `cwd`, and `parentSession`; reusing a Session id with a different
|
|
277
282
|
lifecycle rejects reads and overwrites.
|
|
@@ -328,8 +333,8 @@ After uninstalling:
|
|
|
328
333
|
- reinstalling reads the same record for the same Session.
|
|
329
334
|
|
|
330
335
|
UI Purge is **per-item only**: it cannot remove the objective, the record identity/revision, or a whole Session
|
|
331
|
-
record. To delete charter data permanently, stop DSH and remove the corresponding `dsh_charter_v1`
|
|
332
|
-
|
|
336
|
+
record. To delete charter data permanently, stop DSH and remove both the corresponding `dsh_charter_v1` record and
|
|
337
|
+
its `dsh_charter_archives_v1` cache entries (or the whole profile storage directory) after verifying the path.
|
|
333
338
|
|
|
334
339
|
## 9. Development
|
|
335
340
|
|
package/docs/user-guide.zh.md
CHANGED
|
@@ -86,9 +86,12 @@ peer 兼容检查结果为准。
|
|
|
86
86
|
|
|
87
87
|
- **导出**:下载完整记录归档(identity、当前快照、有界历史、mutation 与 maintenance 回执)。归档包含会话契约
|
|
88
88
|
文本,属敏感数据。
|
|
89
|
-
-
|
|
90
|
-
|
|
91
|
-
|
|
89
|
+
- **恢复**:Host 自动保留最近 5 份归档缓存,Pane 直接列出并预览 health/revision/lifecycle/digest,Host 在写入前
|
|
90
|
+
再次完整校验,且需要第二次确认;不需要先下载。仅对 `absent-unconfirmed` 或 `invalid` 目标提供恢复;健康
|
|
91
|
+
记录不能被覆盖。
|
|
92
|
+
- **高级导入**:只接受本地 JSON 归档(绝不接受 URL 或 Host 路径),用于另一台机器导出的归档或缓存出现前
|
|
93
|
+
保存的旧文件;同样经过完整校验和二次确认。
|
|
94
|
+
- **下载**仅用于外部校验、审计或备份,与恢复解耦;恢复不依赖下载。
|
|
92
95
|
- **显式空初始化**:仅对 `absent-unconfirmed` 可用,需要破坏性二次确认,因为不可读的外层文档同样表现为缺失。
|
|
93
96
|
- `write-uncertain`:存储写入可能已落盘也可能没有。重启 Host 让插件重新加载介质;在此之前该 Session 保持只读。
|
|
94
97
|
- 维护操作在 DSH `0.2.1+` 上 owner-only;旧版 DSH 显示能力不可用。不支持跨 Session/lifecycle 恢复、force 导入或
|
|
@@ -245,7 +248,8 @@ Web 进程可以只读显示另一个进程中 live 的 Session 的已存会话
|
|
|
245
248
|
|
|
246
249
|
## 5. 数据与隐私
|
|
247
250
|
|
|
248
|
-
- 正本:`dsh_charter_v1` domain 的 `sessions` 表,每个 Session
|
|
251
|
+
- 正本:`dsh_charter_v1` domain 的 `sessions` 表,每个 Session 一条记录。恢复快照位于 `dsh_charter_archives_v1`
|
|
252
|
+
domain 的 `archives` 表,owner-only,每 Session 最多 5 份;整个 profile 最多 25 份,超出时淘汰最旧快照。
|
|
249
253
|
- 记录包含目标、条目、派生 `promptText`/digest、近期 history 和 mutation 回执。
|
|
250
254
|
- 记录绑定 `createdAt`、`cwd`、`parentSession`,Session id 复用但 lifecycle 不同时会拒绝读取和覆盖。
|
|
251
255
|
- 普通日志只记录稳定 id、kind、revision 和错误码,不记录用户正文。
|
|
@@ -298,7 +302,7 @@ dsh plugin --profile web remove dsh-charter
|
|
|
298
302
|
- 重新安装后同一 Session 会重新读取原记录。
|
|
299
303
|
|
|
300
304
|
UI Purge **只能逐条清除条目**,不能删除目标、record identity/revision 或整条 Session record。如需彻底删除会话契约
|
|
301
|
-
数据,请先停止 DSH,确认路径后清理对应的 `dsh_charter_v1`
|
|
305
|
+
数据,请先停止 DSH,确认路径后清理对应的 `dsh_charter_v1` 记录和 `dsh_charter_archives_v1` 缓存(或整个 profile storage 目录)。
|
|
302
306
|
|
|
303
307
|
## 9. 开发与贡献
|
|
304
308
|
|
package/docs/verification.md
CHANGED
|
@@ -4,9 +4,9 @@ English | [中文](verification.zh.md)
|
|
|
4
4
|
|
|
5
5
|
> **Status:** Active — current operating record.
|
|
6
6
|
> **Version scope:** current development line.
|
|
7
|
-
> **Baseline:** 2026-11-
|
|
7
|
+
> **Baseline:** 2026-11-06
|
|
8
8
|
|
|
9
|
-
Verification date: 2026-11-
|
|
9
|
+
Verification date: 2026-11-06. Current source version: `0.2.1` (release 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,44 +15,48 @@ 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-06):
|
|
19
19
|
|
|
20
|
-
- Published: `0.
|
|
21
|
-
- `0.1
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
- Pending:
|
|
20
|
+
- Published: `0.2.0` (npm `latest`/`next`; exact SHA-256 `7bafffc24c18c9655d68a9a61017db54920839a159dfeeba0643337c3aae4286`). GitHub Release `v0.2.0` is public and immutable.
|
|
21
|
+
- Release candidate: `0.2.1` on a local development branch; no tag, GitHub Release, or npm publication yet. The candidate artifact digest is recorded in the root `SHA256SUMS`.
|
|
22
|
+
- `0.1.0-rc.6`: previous public release; recovery tag `v0.1.0-rc.6-republished`.
|
|
23
|
+
- Versioning from 0.2.0 onward uses plain increments and never an `rc` suffix.
|
|
24
|
+
- Current source evidence: 36 files / 441 tests and the nine-version matrix pass 441/441 on the 0.2.1 candidate tree at `071a4ba065345b0d029c8d500149261e27bdd061`.
|
|
25
|
+
- Pending: local acceptance, real browser/Desktop ABI, real-model compaction, 512-item performance, final artifact/SHA256SUMS, and promotion.
|
|
26
26
|
|
|
27
27
|
| Item | Result |
|
|
28
28
|
| --- | --- |
|
|
29
29
|
| Strict TypeScript check | Pass on the current tree |
|
|
30
|
-
| Vitest | 36 files /
|
|
30
|
+
| Vitest | 36 files / 441 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 current `0.2.1` candidate `.tgz` bytes 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
|
-
| Nine-version full rerun | Pass via tracked `compat-matrix --versions all --allow-new-release` (
|
|
38
|
+
| Nine-version full rerun | Pass via tracked `compat-matrix --versions all --allow-new-release` (441/441 each) |
|
|
39
39
|
| 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
40
|
| 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
41
|
| 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
|
-
|
|
|
42
|
+
| 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
|
+
| 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 | Pending: Desktop profile has the candidate installed; the running Electron process must be restarted and the tab/tool ABI checked manually. |
|
|
45
|
+
| Real-model compaction | Pending manual gate. |
|
|
46
|
+
| 512-item performance | Pending manual gate; the source query test covers 512-item paging but not the p95 budget. |
|
|
43
47
|
| Real browser diagnostics | Local manual checks recorded; not a release gate |
|
|
44
48
|
| Real-model compaction | Separately recorded PASS (2026-10-22); still a manual release gate |
|
|
45
49
|
|
|
46
50
|
### 1.1 0.2.0 development acceptance
|
|
47
51
|
|
|
48
|
-
The `
|
|
52
|
+
The `main` tree has passed source-level acceptance for the implemented workspace core:
|
|
49
53
|
|
|
50
54
|
- record v2 write path and in-memory v1 migration;
|
|
51
55
|
- dependency `requires` validation, derived readiness, and dependency-aware prompt equivalence;
|
|
52
56
|
- three-area Pane information architecture and dependency editor;
|
|
53
57
|
- proposal-batch provenance, objective-proposal lifecycle, summary/item/proposal/change query endpoints, `watchSummary`, and pending-only `charter_propose`;
|
|
54
|
-
- `npm run check`: 36 files /
|
|
55
|
-
- nine-version DSH matrix:
|
|
58
|
+
- `npm run check`: 36 files / 441 tests;
|
|
59
|
+
- nine-version DSH matrix: 441/441 on every declared version;
|
|
56
60
|
- normal package smoke: `dsh-charter-0.2.0.tgz` installs and its client factory bundle loads.
|
|
57
61
|
|
|
58
62
|
This is source acceptance, not a release acceptance: real Desktop/browser diagnostics, real-model compaction, performance,
|
|
@@ -86,17 +90,19 @@ The tracked runner creates isolated pnpm projects with strict peers and runs typ
|
|
|
86
90
|
|
|
87
91
|
| DSH version | Evidence |
|
|
88
92
|
| --- | --- |
|
|
89
|
-
| `0.1.7-rc.2` |
|
|
90
|
-
| `0.2.0-rc.1` |
|
|
91
|
-
| `0.2.0-rc.2` |
|
|
92
|
-
| `0.2.1-rc.1` |
|
|
93
|
-
| `0.2.1-rc.2` |
|
|
94
|
-
| `0.2.1-rc.3` |
|
|
95
|
-
| `0.2.1-rc.4` |
|
|
96
|
-
| `0.2.1-rc.5` |
|
|
97
|
-
| `0.2.2-rc.1` |
|
|
98
|
-
|
|
99
|
-
The
|
|
93
|
+
| `0.1.7-rc.2` | 441/441 tracked matrix PASS |
|
|
94
|
+
| `0.2.0-rc.1` | 441/441 tracked matrix PASS |
|
|
95
|
+
| `0.2.0-rc.2` | 441/441 tracked matrix PASS |
|
|
96
|
+
| `0.2.1-rc.1` | 441/441 tracked matrix PASS |
|
|
97
|
+
| `0.2.1-rc.2` | 441/441 tracked matrix PASS |
|
|
98
|
+
| `0.2.1-rc.3` | 441/441 tracked matrix PASS |
|
|
99
|
+
| `0.2.1-rc.4` | 441/441 tracked matrix PASS |
|
|
100
|
+
| `0.2.1-rc.5` | 441/441 tracked matrix PASS |
|
|
101
|
+
| `0.2.2-rc.1` | 441/441 tracked matrix PASS |
|
|
102
|
+
|
|
103
|
+
The 0.2.1 candidate tree at source commit `071a4ba065345b0d029c8d500149261e27bdd061` passed
|
|
104
|
+
`compat-matrix --versions all --allow-new-release` on 2026-11-06: every declared version passed typecheck, build,
|
|
105
|
+
and 441/441 tests. The local evidence file is `.tmp/0.2.1-matrix.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.
|
|
100
106
|
|
|
101
107
|
## 4. What the tests cover
|
|
102
108
|
|
package/docs/verification.zh.md
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
> **状态:** Active — 当前操作记录。
|
|
6
6
|
> **版本范围:** 当前开发线。
|
|
7
|
-
> **基准:** 2026-11-
|
|
7
|
+
> **基准:** 2026-11-06
|
|
8
8
|
|
|
9
|
-
验证日期:2026-
|
|
9
|
+
验证日期:2026-11-06。当前源码版本:`0.2.1`(发布候选,尚未发布)。本文件是当前证据记录;历史逐提交的叙事保留在 Git 历史和 Changelog。临时目录、profile、
|
|
10
10
|
tarball 和抓取内容位于 `.tmp/`,不进入发布包。
|
|
11
11
|
|
|
12
12
|
环境:macOS,Node `v22.23.1`,npm `12.0.2`,pnpm `12.3.4`。本地 DSH 开发基线:`0.2.2-rc.1`(当前 npm
|
|
@@ -14,29 +14,29 @@ tarball 和抓取内容位于 `.tmp/`,不进入发布包。
|
|
|
14
14
|
|
|
15
15
|
## 1. 当前结论
|
|
16
16
|
|
|
17
|
-
当前发布状态(2026-
|
|
17
|
+
当前发布状态(2026-11-06):
|
|
18
18
|
|
|
19
|
-
- 已发布:`0.
|
|
20
|
-
-
|
|
21
|
-
-
|
|
22
|
-
-
|
|
23
|
-
- 0.2.
|
|
24
|
-
-
|
|
19
|
+
- 已发布:`0.2.0`(npm `latest`/`next`;精确 SHA-256 `7bafffc24c18c9655d68a9a61017db54920839a159dfeeba0643337c3aae4286`)。GitHub Release `v0.2.0` 已公开且不可变。
|
|
20
|
+
- 发布候选:`0.2.1` 在本地开发分支;尚未打 tag、发布 GitHub Release 或 npm。候选 artifact digest 记录在根 `SHA256SUMS`。
|
|
21
|
+
- `0.1.0-rc.6`:上一公开版本;使用 recovery tag `v0.1.0-rc.6-republished`。
|
|
22
|
+
- 从 0.2.0 起版本号使用普通递增,不使用 `rc` 后缀。
|
|
23
|
+
- 当前源码证据:0.2.1 候选树在源码提交 `071a4ba065345b0d029c8d500149261e27bdd061` 上通过 36 个测试文件 / 441 个测试,九版本矩阵 441/441 通过。
|
|
24
|
+
- 待完成:本地验收、真实浏览器/Desktop ABI、真实模型 compaction、512 条性能、最终 artifact/SHA256SUMS 和 promotion。
|
|
25
25
|
|
|
26
26
|
| 项目 | 结果 |
|
|
27
27
|
| --- | --- |
|
|
28
28
|
| TypeScript 严格检查 | 当前树通过 |
|
|
29
|
-
| Vitest | 36 个测试文件 /
|
|
29
|
+
| Vitest | 36 个测试文件 / 441 个测试通过(`npm test`,先 build) |
|
|
30
30
|
| Host ESM 构建 + 浏览器 factory bundle | 通过 |
|
|
31
31
|
| Remote 契约与 client smoke | 通过 |
|
|
32
32
|
| 普通 package smoke | 通过 |
|
|
33
|
-
| exact-artifact package smoke |
|
|
33
|
+
| exact-artifact package smoke | 对根 `SHA256SUMS` 中的当前 `0.2.1` 候选 `.tgz` 字节通过,不重建 |
|
|
34
34
|
| packed recovery smoke | 通过:export、删除 target、restore、receipt replay、两次 restart、健康目标拒绝、packed fault 子集 |
|
|
35
35
|
| 真实 `TypertGatewayService` | 精确 artifact 在隔离的 DSH `0.2.1-rc.3` / `rc.4` 依赖图上通过 |
|
|
36
36
|
| 兼容 sentinel | `0.1.7-rc.2`、`0.2.1-rc.2`、`0.2.1-rc.4`、`0.2.1-rc.5`、`0.2.2-rc.1` 通过 |
|
|
37
37
|
| Fresh Web profile matrix (historical rc.6) | PASS:历史 rc.6 artifact 曾在 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` 上安装并启动 |
|
|
38
38
|
| Fresh Web 0.2.2 | 2026-11-05 PASS:全新 `DSH_HOME` + `dsh@0.2.2-rc.1 plugin --profile web add` 安装 `dsh-charter-0.2.0.tgz`(SHA-256 `fde5531d457effc713f4423f8b46c8f0e591770e59c55e19956f000c11bdeffc`);Web 启动、页面 HTTP 200、charter bundle HTTP 200;boot graph 含 `dsh-charter`,页面 index 含 `dsh-charter/client.js` |
|
|
39
|
-
| 九版本全量 rerun | tracked `compat-matrix --versions all --allow-new-release` 通过(每版本
|
|
39
|
+
| 九版本全量 rerun | tracked `compat-matrix --versions all --allow-new-release` 通过(每版本 441/441) |
|
|
40
40
|
| 未跟踪 `0.2.2-alpha.2` probe | strict-peer install fails because DSH requires Cordis ~4.0.6-alpha.1 while rc.6 pins 4.0.5; no tests run;rc.6 明确不支持 |
|
|
41
41
|
| 本地 Web + Desktop profile | 0.2.0 开发 artifact 已装入本地 web/desktop profile;Desktop app 为 `0.2.2-rc.1`,真实 Electron ABI/交互仍需人工门禁 |
|
|
42
42
|
| 真实浏览器恢复 | 受保护的人工 evidence gate;未自动化 |
|
|
@@ -70,17 +70,19 @@ CI(`.github/workflows/ci.yml`)在 Node `22.19.0` / `24` 上运行 `npm run c
|
|
|
70
70
|
|
|
71
71
|
| DSH 版本 | 证据 |
|
|
72
72
|
| --- | --- |
|
|
73
|
-
| `0.1.7-rc.2` |
|
|
74
|
-
| `0.2.0-rc.1` |
|
|
75
|
-
| `0.2.0-rc.2` |
|
|
76
|
-
| `0.2.1-rc.1` |
|
|
77
|
-
| `0.2.1-rc.2` |
|
|
78
|
-
| `0.2.1-rc.3` |
|
|
79
|
-
| `0.2.1-rc.4` |
|
|
80
|
-
| `0.2.1-rc.5` |
|
|
81
|
-
| `0.2.2-rc.1` |
|
|
82
|
-
|
|
83
|
-
|
|
73
|
+
| `0.1.7-rc.2` | 441/441 tracked matrix PASS |
|
|
74
|
+
| `0.2.0-rc.1` | 441/441 tracked matrix PASS |
|
|
75
|
+
| `0.2.0-rc.2` | 441/441 tracked matrix PASS |
|
|
76
|
+
| `0.2.1-rc.1` | 441/441 tracked matrix PASS |
|
|
77
|
+
| `0.2.1-rc.2` | 441/441 tracked matrix PASS |
|
|
78
|
+
| `0.2.1-rc.3` | 441/441 tracked matrix PASS |
|
|
79
|
+
| `0.2.1-rc.4` | 441/441 tracked matrix PASS |
|
|
80
|
+
| `0.2.1-rc.5` | 441/441 tracked matrix PASS |
|
|
81
|
+
| `0.2.2-rc.1` | 441/441 tracked matrix PASS |
|
|
82
|
+
|
|
83
|
+
0.2.1 候选树在源码提交 `071a4ba065345b0d029c8d500149261e27bdd061` 上于 2026-11-06 通过
|
|
84
|
+
`compat-matrix --versions all --allow-new-release`:每个声明版本均通过 typecheck、build 和 441/441 测试;本地证据为
|
|
85
|
+
`.tmp/0.2.1-matrix.json`。安装使用 pnpm strict peer、精确工具版本、单一 zod 4.6.7 图、完整 `pnpm list --depth Infinity` 图校验,并记录 lockfile SHA-256。未跟踪 `0.2.2-alpha.2` 已 probe:strict-peer install fails because DSH requires Cordis ~4.0.6-alpha.1 while rc.6 pins 4.0.5; no tests run,rc.6 明确不支持。
|
|
84
86
|
|
|
85
87
|
## 4. 测试覆盖
|
|
86
88
|
|
package/lib/client/locales.d.ts
CHANGED
|
@@ -5,8 +5,6 @@ declare const en: {
|
|
|
5
5
|
readonly 'header.title': "Charter";
|
|
6
6
|
readonly 'header.subtitle': "Compaction rewrites history. Your commitments don't.";
|
|
7
7
|
readonly 'stats.revision': "rev {revision}";
|
|
8
|
-
readonly 'stats.active': "{count} active";
|
|
9
|
-
readonly 'stats.stored': "{count} stored";
|
|
10
8
|
readonly 'overview.afterApply': "After Apply";
|
|
11
9
|
readonly 'stats.afterApply': "{active} active / {stored} stored after Apply";
|
|
12
10
|
readonly 'stats.context': "{bytes} B context";
|
|
@@ -64,11 +62,15 @@ declare const en: {
|
|
|
64
62
|
readonly 'changeset.editorOpen': "An inline editor is open";
|
|
65
63
|
readonly 'review.itemProposals': "Item proposals";
|
|
66
64
|
readonly 'review.messageProposal': "Message proposal";
|
|
67
|
-
readonly 'review.
|
|
68
|
-
readonly '
|
|
65
|
+
readonly 'review.messageProposalHint': "Turn one recent user message into a pending proposal. Nothing changes until you review and apply it.";
|
|
66
|
+
readonly 'review.saveLatestMessage': "Save as proposal";
|
|
67
|
+
readonly 'message.pick': "User message";
|
|
68
|
+
readonly 'message.pickPlaceholder': "Choose a recent user message";
|
|
69
69
|
readonly 'message.kind': "Proposal kind";
|
|
70
|
-
readonly 'message.
|
|
71
|
-
readonly 'message.
|
|
70
|
+
readonly 'message.textLabel': "Proposal text (editable)";
|
|
71
|
+
readonly 'message.textHint': "The selected message is loaded here. Edit it freely before saving as a pending proposal.";
|
|
72
|
+
readonly 'message.truncated': "This message is long and was capped for display; edit the text before saving.";
|
|
73
|
+
readonly 'message.legacyUnavailable': "This Host does not expose the full message text, so it cannot be edited as a proposal here.";
|
|
72
74
|
readonly 'review.contentModified': "content modified";
|
|
73
75
|
readonly 'review.inactiveItems': "Inactive and rejected items";
|
|
74
76
|
readonly 'review.objectiveHistory': "Objective proposal history";
|
|
@@ -311,11 +313,19 @@ declare const en: {
|
|
|
311
313
|
readonly 'recovery.digest': "Record digest";
|
|
312
314
|
readonly 'recovery.overBudget': "Over budget (not injected)";
|
|
313
315
|
readonly 'recovery.exportTitle': "Export";
|
|
314
|
-
readonly 'recovery.exportHint': "Download the complete record
|
|
316
|
+
readonly 'recovery.exportHint': "Download the complete record for external analysis, auditing, or backup. Restore uses the cache below; it does not depend on this download.";
|
|
315
317
|
readonly 'recovery.sensitive': "Sensitive: the archive contains your charter text. Store it securely.";
|
|
316
318
|
readonly 'recovery.export': "Download record archive";
|
|
317
319
|
readonly 'recovery.exportFailed': "The record could not be exported.";
|
|
318
320
|
readonly 'recovery.chooseFile': "Choose archive file";
|
|
321
|
+
readonly 'recovery.cacheTitle': "Recent archive cache";
|
|
322
|
+
readonly 'recovery.cacheHint': "While the record budget allows it, the latest five committed snapshots are kept automatically; older snapshots are pruned. Restore selects a cached snapshot, so no download is required.";
|
|
323
|
+
readonly 'recovery.cacheEmpty': "No cached snapshot yet. A successful Apply creates one automatically when the record budget allows it.";
|
|
324
|
+
readonly 'recovery.cacheUnavailable': "The archive cache is unavailable.";
|
|
325
|
+
readonly 'recovery.cacheAria': "Choose a cached archive";
|
|
326
|
+
readonly 'recovery.cacheRevision': "Revision {revision}";
|
|
327
|
+
readonly 'recovery.importTitle': "Advanced: import a local archive file";
|
|
328
|
+
readonly 'recovery.importHint': "Only for an archive exported from another machine or kept before this cache existed. Normal restore should use the cache above.";
|
|
319
329
|
readonly 'recovery.selected': "Selected";
|
|
320
330
|
readonly 'recovery.previewTitle': "Archive preview";
|
|
321
331
|
readonly 'recovery.previewHealth': "Health";
|
|
@@ -331,7 +341,9 @@ declare const en: {
|
|
|
331
341
|
readonly 'recovery.initialize': "Initialize empty Charter";
|
|
332
342
|
readonly 'recovery.initializeWarning': "Creating an empty Charter may replace a document that storage cannot read. Back up the file first if you need it.";
|
|
333
343
|
readonly 'recovery.initializeConfirm': "Confirm initialize empty";
|
|
334
|
-
readonly 'recovery.
|
|
344
|
+
readonly 'recovery.restoreTitle': "Restore archive";
|
|
345
|
+
readonly 'recovery.restoreCached': "Restore cached snapshot";
|
|
346
|
+
readonly 'recovery.restoreFile': "Restore imported archive";
|
|
335
347
|
readonly 'recovery.restoreConfirm': "Confirm restore";
|
|
336
348
|
readonly 'recovery.capabilityUnavailable': "Record maintenance requires DSH 0.2.1 or newer with owner/resource enforcement.";
|
|
337
349
|
readonly 'recovery.recordLimit': "The configured record budget leaves no room for a recovery archive; offline backup after stopping the Host is required.";
|
|
@@ -384,17 +396,27 @@ declare const en: {
|
|
|
384
396
|
readonly 'validity.unknown': "Unknown";
|
|
385
397
|
readonly 'validity.stale': "Stale";
|
|
386
398
|
readonly 'validators.title': "Fact validity validator";
|
|
387
|
-
readonly 'validators.hint': "
|
|
388
|
-
readonly 'validators.
|
|
389
|
-
readonly 'validators.
|
|
399
|
+
readonly 'validators.hint': "Pick one active commitment, choose what to check, then run it against a file in this workspace. The validator only reads files; it never executes a shell or edits the commitment.";
|
|
400
|
+
readonly 'validators.targetLabel': "Commitment to check";
|
|
401
|
+
readonly 'validators.targetHint': "Only active hard constraints and deliverables are listed.";
|
|
402
|
+
readonly 'validators.methodLabel': "What should be true";
|
|
403
|
+
readonly 'validators.pathLabel': "Workspace path";
|
|
404
|
+
readonly 'validators.expectationLabel': "Expected content";
|
|
405
|
+
readonly 'validators.itemAria': "Commitment to validate";
|
|
406
|
+
readonly 'validators.kindAria': "Validation type";
|
|
390
407
|
readonly 'validators.pathAria': "Workspace relative file path";
|
|
391
408
|
readonly 'validators.pathPlaceholder': "relative/path";
|
|
392
409
|
readonly 'validators.expectationAria': "Expected digest or text";
|
|
393
410
|
readonly 'validators.containsPlaceholder': "text to find";
|
|
394
|
-
readonly 'validators.pickItem': "Choose an active
|
|
395
|
-
readonly 'validators.run': "Run
|
|
411
|
+
readonly 'validators.pickItem': "Choose an active commitment";
|
|
412
|
+
readonly 'validators.run': "Run check";
|
|
413
|
+
readonly 'validators.kind.path-exists': "Path exists";
|
|
414
|
+
readonly 'validators.kind.file-digest': "File SHA-256 matches";
|
|
415
|
+
readonly 'validators.kind.file-contains': "File contains text";
|
|
396
416
|
readonly 'validators.done': "Validator result saved.";
|
|
397
417
|
readonly 'validators.failed': "Validator request failed.";
|
|
418
|
+
readonly 'integrity.title': "Evidence integrity";
|
|
419
|
+
readonly 'integrity.hint': "Checks whether the message and summary sources that proposals came from still match the current Session history. This is not a business check of the commitment itself.";
|
|
398
420
|
readonly 'integrity.check': "Check evidence integrity";
|
|
399
421
|
readonly 'integrity.summary': "Checked {count} evidence binding(s); {changed} not intact.";
|
|
400
422
|
readonly 'integrity.truncated': "Evidence checks were capped by the read budget.";
|
package/lib/client/store.d.ts
CHANGED
|
@@ -31,6 +31,9 @@ export interface CharterSource {
|
|
|
31
31
|
/** Apply a committed view returned by edit immediately, without waiting for the stream. */
|
|
32
32
|
readonly accept: (view: CharterView) => void;
|
|
33
33
|
readonly retry: () => void;
|
|
34
|
+
/** Recent internally cached archives; restore does not require a download. */
|
|
35
|
+
readonly listArchives?: () => Promise<import('../host/types.js').CharterArchiveListResult>;
|
|
36
|
+
readonly readArchive?: (key: string) => Promise<import('../host/types.js').CharterArchiveReadResult>;
|
|
34
37
|
/** Export the complete raw record archive (owner-only maintenance call). */
|
|
35
38
|
readonly exportRecord: () => Promise<CharterRecordExport>;
|
|
36
39
|
/** Explicitly initialize an absent-unconfirmed record. */
|
|
@@ -76,6 +79,8 @@ export declare class CharterSessionSource implements CharterSource {
|
|
|
76
79
|
readonly runValidators: (requests: readonly import("../host/types.js").CharterValidatorRequest[]) => Promise<import("../host/types.js").CharterValidatorRunResult>;
|
|
77
80
|
readonly queryMessages: () => Promise<import("../host/types.js").CharterMessageListResult>;
|
|
78
81
|
readonly proposeMessage: (options?: import("../host/types.js").CharterMessageProposalOptions) => Promise<CharterEditResult>;
|
|
82
|
+
readonly listArchives: () => Promise<import("../host/types.js").CharterArchiveListResult>;
|
|
83
|
+
readonly readArchive: (key: string) => Promise<import("../host/types.js").CharterArchiveReadResult>;
|
|
79
84
|
readonly exportRecord: () => Promise<CharterRecordExport>;
|
|
80
85
|
readonly initializeRecord: (request: CharterInitializeRequest) => Promise<CharterRecordOperationResult>;
|
|
81
86
|
readonly restoreRecord: (request: CharterRestoreRequest) => Promise<CharterRecordOperationResult>;
|