dsh-charter 0.3.1 → 0.3.3

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.
Files changed (57) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/CHANGELOG.zh.md +40 -0
  3. package/README.md +55 -23
  4. package/README.zh.md +45 -19
  5. package/docs/README.md +4 -2
  6. package/docs/README.zh.md +5 -3
  7. package/docs/assets/charter-graph-0.3.3.png +0 -0
  8. package/docs/assets/charter-graph-0.3.3.zh.png +0 -0
  9. package/docs/assets/charter-graph-root-text-200-0.3.2.png +0 -0
  10. package/docs/assets/charter-pane-0.3.3.png +0 -0
  11. package/docs/assets/charter-pane-0.3.3.zh.png +0 -0
  12. package/docs/assets/charter-state-applied-0.3.2.png +0 -0
  13. package/docs/assets/charter-state-conflict-0.3.2.png +0 -0
  14. package/docs/assets/charter-state-empty-0.3.2.png +0 -0
  15. package/docs/assets/charter-state-forced-colors-0.3.2.png +0 -0
  16. package/docs/assets/charter-state-reduced-motion-0.3.2.png +0 -0
  17. package/docs/assets/charter-state-staged-0.3.2.png +0 -0
  18. package/docs/design/charter-dependency-graph-v1.zh.md +5 -4
  19. package/docs/design/charter-draft-calibration-v1.zh.md +617 -0
  20. package/docs/design/charter-draft-extraction-v1.zh.md +346 -0
  21. package/docs/design/charter-gui-v1.zh.md +31 -18
  22. package/docs/design/compatibility.md +11 -5
  23. package/docs/design/compatibility.zh.md +10 -5
  24. package/docs/design/version-roadmap.md +12 -15
  25. package/docs/design/version-roadmap.zh.md +14 -11
  26. package/docs/release-notes/0.3.1.md +7 -4
  27. package/docs/release-notes/0.3.2.md +35 -0
  28. package/docs/release-notes/0.3.3.md +32 -0
  29. package/docs/release-notes/README.md +1 -1
  30. package/docs/releasing.md +6 -4
  31. package/docs/releasing.zh.md +6 -4
  32. package/docs/user-guide.md +16 -2
  33. package/docs/user-guide.zh.md +15 -2
  34. package/docs/verification.md +73 -48
  35. package/docs/verification.zh.md +69 -44
  36. package/lib/client/DependencyGraph.d.ts +2 -0
  37. package/lib/client/bootstrap-plan.d.ts +9 -1
  38. package/lib/client/draft-store.d.ts +12 -1
  39. package/lib/client/locales.d.ts +12 -0
  40. package/lib/client/pane-scope.d.ts +2 -0
  41. package/lib/client/store.d.ts +12 -1
  42. package/lib/client.js +567 -240
  43. package/lib/core/bootstrap.d.ts +14 -0
  44. package/lib/core/schemas.d.ts +3 -0
  45. package/lib/core/structured-bootstrap.d.ts +49 -0
  46. package/lib/core.js +2 -2
  47. package/lib/{fork-KSL6sovw.js → fork-h8Gx4AJd.js} +178 -166
  48. package/lib/host/draft-translation.d.ts +47 -0
  49. package/lib/host/service.d.ts +19 -1
  50. package/lib/host/types.d.ts +43 -0
  51. package/lib/index.js +3 -3
  52. package/lib/remote/service.d.ts +6 -1
  53. package/lib/remote/wire.d.ts +91 -2
  54. package/lib/remote.js +116 -4
  55. package/lib/{service-BSrE7Kbu.js → service-CPha5Ipx.js} +734 -42
  56. package/lib/version.d.ts +1 -1
  57. package/package.json +19 -18
@@ -0,0 +1,346 @@
1
+ # `dsh-charter` 0.3.3 契约草案抽取与语言归一方案
2
+
3
+ > **状态:** `Implemented — pending release acceptance` —— 0.3.3 源码实现完成,尚未发布。
4
+ > **版本范围:** `0.3.3`(本地候选),先于 0.4.0。确定性抽取 + **自动宿主模型语言归一**:
5
+ > 无 record schema 变更、无 prompt 投影变更、无模型工具面变更;wire 面新增
6
+ > `charter/bootstrapDraft` + 一个 additive objective op 字段。
7
+ > **修订:** v3(2026-11-23)——并入评审 P0-A/0-B/P1-1/P1-3,并将“按界面语言生成 zh/en 草案”
8
+ > 纳入 0.3.3(用户决策 2026-11-23):`ctx.get('llm')` 可选调用;模型缺失/失败时回退源语言并显式提示。
9
+ > **基准:** 2026-11-23,`main` @ `53410cb`;`0.3.2` 已发布(SHA-256 `9dcb82ae…`)。
10
+ > **权威边界:** 版本范围由[版本路线](version-roadmap.zh.md)决定;proposal/来源语义由
11
+ > [charter-workspace-v2.zh.md](charter-workspace-v2.zh.md) 决定;审阅 UI 视觉由
12
+ > [charter-gui-v1.zh.md](charter-gui-v1.zh.md) §4.9 冻结稿决定。
13
+ > **替代/被替代:** 无 / 无。[charter-draft-calibration-v1.zh.md](charter-draft-calibration-v1.zh.md)
14
+ > (0.4.0 校准层)**硬依赖**本文的结构化候选、ref 命名空间与 apply 合同。
15
+ > **专题范围:** 压缩摘要 → 契约草案的确定性抽取质量、结构化 wire 合同与 apply 模型。
16
+
17
+ ## 0. 摘要与版本拆分
18
+
19
+ 用户反馈(2026-11-23):草案难用——语言不跟随、切分碎片化、冗余不聚合。拆分为两个版本:
20
+
21
+ | 版本 | 内容 | 模型调用 | wire |
22
+ | --- | --- | --- | --- |
23
+ | **0.3.3(本文,先发布)** | 语义保全切分、近重复折叠、语言标注、kind 打分、结构化候选(稳定 ref)、自动 zh/en 语言归一、完整 apply 合同 | 有(宿主 `ctx.llm` 单轮翻译,自动) | 新增 `charter/bootstrapDraft`;`objective.initialize` 增加可选 `clientRef`(additive) |
24
+ | **0.4.0(校准方案,后发布)** | 语义级聚合、专用校准 prompt、diff 审阅、质量 A/B | 有(`ctx.llm` one-shot,opt-in 高级校准) | 新增 `charter/calibrateBootstrap`、`charter/calibrationStatus`;`applyBootstrap` additive 扩展 |
25
+
26
+ **语言目标**:客户端以当前 DSH locale 的 `zh`/`en` 作为目标语言;结构化抽取后若草案语言不一致,
27
+ Host 通过会话当前模型做一次严格 JSON 批量翻译;模型不可用或失败时保留原文并显示降级提示。
28
+ 0.3.3 仍不做语义级合并;那属于 0.4.0。
29
+
30
+ ## 1. 现状证据(0.3.2 发布树)
31
+
32
+ | 环节 | 当前行为 | 证据 |
33
+ | --- | --- | --- |
34
+ | 超长切分 | 句 → 子句 → `hardSplit` 按码点硬切,无标记 | [bootstrap.ts:123-139](../../src/core/bootstrap.ts)、:147-183 |
35
+ | 去重 | `unique()` 小写全等,无近重复折叠 | bootstrap.ts:185-197 |
36
+ | 语言 | 无 locale 输入、无检测、无标注 | bootstrap.ts:205-208 签名 |
37
+ | kind 分类 | 关键词正则二分(CONSTRAINT),无置信度 | bootstrap.ts:43 |
38
+ | bootstrap wire | `charterBootstrapProposalSchema` **strict**,候选是裸 `string[]` | [wire.ts:489-499](../../src/remote/wire.ts) |
39
+ | apply 请求 | `charterBootstrapApplyRequestSchema = charterEditRequestSchema.extend({draftHandle}).strict()` | [schemas.ts:254-256](../../src/core/schemas.ts) |
40
+ | apply 校验(条目) | clientRef `bootstrap-(inv\|del)-<index>` 定位候选;`contentModified = text !== candidates[index]`(`withModified`) | [service.ts:1740-1790](../../src/host/service.ts) |
41
+ | apply 校验(objective) | `objective.initialize` 仅当 `op.text === extraction.proposal.objective` **逐字相等**;`objective.propose`/`redirect` 一律拒绝 | service.ts:1745-1756 |
42
+ | edit 内部通道 | `this.edit(request, actor, bootstrapSource?, opts?)` —— actor/source/opts 是**不经 wire 的宿主侧参数**;request 本体经 `normalizeEditRequest` strict 重解析 | service.ts:1797-1808、[normalize.ts:144-156](../../src/core/normalize.ts) |
43
+ | 条目创建 | `itemFromInput` 复制 contentModified/requires/proposedRequires 等,**不复制 evidence** | [commands.ts:39-69](../../src/core/commands.ts) |
44
+
45
+ 后果:超预算长句被硬切成语义碎片且用户无从知晓;近重复条目全量堆给用户;草案语言与界面
46
+ 语言不一致时无提示;候选没有稳定身份;objective 与结构化候选没有 apply 通道。
47
+
48
+ ## 2. 目标与非目标
49
+
50
+ ### 2.1 目标
51
+
52
+ - G1 **语义完整**:切分只在句/子句边界发生;无法保全语义时保留完整原文并显式标记
53
+ `oversized`,由用户编辑或拆分——碎片从"静默产生"变为"显式例外"。
54
+ - G2 **冗余可见**:近重复折叠为组,代表条目 + 折叠计数,组成员可展开、可单独勾选。
55
+ - G3 **语言感知**:每条候选与整体草案标注 `zh/en/mixed`;与界面语言不一致时客户端提示
56
+ (翻译留给 0.4.0)。
57
+ - G4 **稳定身份**:每条候选获得确定性 `ref`;apply 合同覆盖 invariant/deliverable/objective
58
+ 全部三类(§4.4)。
59
+ - G5 **kind 提示**:归类从二分正则升级为打分 + 置信度,低置信显式标注。
60
+ - G6 **旧客户端字节等价**:`charter/bootstrap` 的输出对同一摘要与 0.3.2 **逐字节一致**
61
+ (legacy 抽取器冻结 + golden fixture,§4.2)。
62
+
63
+ ### 2.2 非目标
64
+
65
+ - 不做 0.4.0 的语义级聚合/高级校准;语言翻译是 0.3.3 的受控单轮调用;
66
+ - 不改 record schema、prompt 投影、`charter_read`/`charter_propose`;
67
+ - 不改 `charter/bootstrap` 响应形状与其抽取行为(冻结);
68
+ - 不改变"plan 永不丢弃候选、超预算转 pending"的既有溢出可见语义。
69
+
70
+ ## 3. 结构化抽取器(extractStructured,仅服务新方法)
71
+
72
+ 以下改进**只进入结构化抽取器**;legacy 抽取器原样冻结(§4.2)。
73
+
74
+ ### 3.1 语义保全切分
75
+
76
+ 1. 句边界(`[.!?。!?]`)与子句边界(`[;;,,、::]`)切分保留;
77
+ 2. **无 `hardSplit` 静默碎片**:单句/单子句超过 `maxItemBytes` 时整段保留为一条候选并标记
78
+ `oversized: true`;
79
+ 3. 仅当单条超过 `maxItemBytes × 4` 时才截断,必须在句边界并追加显式标记
80
+ `…[已截断,完整原文见来源]`(标记文本走 locales),同时记录 `truncatedFrom`(原始 UTF-8
81
+ 字节数);
82
+ 4. `oversized`/截断候选**不可原样 apply**:Host 强制(§4.4),UI 提前禁用并给出首要原因,
83
+ 引导「编辑拆分」(编辑器预填句边界建议拆分点,D-A3)。
84
+
85
+ ### 3.2 近重复折叠
86
+
87
+ - 规范化键:NFC → 小写 → 去首尾/折叠连续空白 → 去尾部标点;键全等折叠;
88
+ - 前缀包含(规范化后 A 是 B 前缀且 len(A) ≥ 12 字符)折叠进更长者;
89
+ - 产出折叠组:代表条目 + 成员列表(成员各自有 ref,可单独勾选);折叠不是丢弃,组内成员
90
+ 一步可达;
91
+ - 语义级近重复(同义改写)明确不做,留给 0.4.0。
92
+
93
+ ### 3.3 语言检测与标注
94
+
95
+ - Unicode script 码点占比:Latin ≥ 70% → `en`;CJK ≥ 70% → `zh`;其余 → `mixed`
96
+ (阈值集中定义、进 fixture,D-A4 用真实摘要语料校准一次);
97
+ - 每条候选 + 草案整体(`draftLang`,按字节加权多数)各有一个 `lang`;
98
+ - **Host 不读取 ambient client locale**:DTO 不含 mismatch 判断字段(v1 的 `localeMismatch` 已删除);
99
+ 客户端拿 `draftLang`/`lang` 与自身界面语言比对并提示。需要语言归一时,客户端在
100
+ `bootstrapDraft` 请求中显式传 `targetLanguage: zh|en`;Host 只接受白名单,不猜语言。
101
+
102
+ ### 3.4 kind 分类打分
103
+
104
+ - 加权打分:约束词密度(must/禁止/不得/…)、祈使句式、交付物名词模式(完成/实现/交付/…)、
105
+ 来源章节先验(critical → invariant,pending → deliverable);
106
+ - 输出 `suggestedKind` + `kindConfidence: 'high' | 'low'`;low 置信 UI 标注"建议归类,请确认";
107
+ - 打分是纯函数,中英正反例表驱动 fixture。
108
+
109
+ ### 3.5 objective 候选改进
110
+
111
+ 显式标签(latest/original/原始/最新修正/目标)缺失时,用"首段落优先 + 请求句式打分"
112
+ (希望/要求/需要/目标是/wants/needs)替代裸首 bullet;打分并列取更靠前者,保证确定性。
113
+ 结构化抽取器产出的 objective 是**候选**(ref `d-obj-0`),apply 规则见 §4.4。
114
+
115
+ ## 4. Wire 与 apply 合同
116
+
117
+ ### 4.1 为什么是新方法而不是扩展现有响应
118
+
119
+ `charterBootstrapProposalSchema`、`charterViewCapabilitiesSchema` 均为 `.strict()`:向现有
120
+ 响应 DTO 加字段会让旧客户端 bundle 的 strict 解析拒绝新 Host 响应(Host/client bundle 允许
121
+ 短暂错位是既有事实)。项目先例全部是"新能力 = 新方法 + 探测回退"(`watchSummary`/
122
+ `queryItems`/`previewChangeSet`)。因此:
123
+
124
+ - `charter/bootstrap` 请求/响应/抽取行为**零变化**(§4.2 冻结);
125
+ - 新增 `charter/bootstrapDraft`;旧客户端永不感知;
126
+ - 新客户端对旧 Host:方法缺失的稳定传输错误 → 回退 `charter/bootstrap`,UI 退化为现行
127
+ 纯文本列表;回退路径进测试矩阵。
128
+
129
+ ### 4.2 双抽取器模型(修复评审 P1-1)
130
+
131
+ v1 声称"两方法文本集合等价"不成立(折叠/oversized/objective 打分必然改变文本集合)。
132
+ v2 采用**双抽取器、单摘要源、共享 handle、ref 命名空间路由**:
133
+
134
+ | | legacy 抽取器 | 结构化抽取器(v2) |
135
+ | --- | --- | --- |
136
+ | 实现 | 现 `bootstrapFromSummary` **原样冻结**,重命名为 `extractLegacy`,配 golden fixture(合成摘要 → 输出 JSON 快照,逐字节锁定) | §3 全部改进,`extractorVersion: 2` |
137
+ | 服务方法 | `charter/bootstrap`(响应 DTO 不变) | `charter/bootstrapDraft` |
138
+ | 服务 ref 命名空间 | `bootstrap-(inv\|del)-<i>`(现状不变) | `d-*`(§4.3) |
139
+ | 演进 | 0.3.x 内冻结不改;弃用时机另议(D-A5) | 0.4.0 校准层的输入 |
140
+
141
+ - 两个抽取器读取**同一最新 compaction summary 事件**(同 `summarySeq`/内容);
142
+ - **legacy `draftHandle` 保持 0.3.2 的 draft-bound 算法不变**,保证旧 client 响应字节等价;
143
+ - **结构化 `draftHandle` = f(source, structured items, draftLang)**,由 `bootstrapDraft` 返回;apply 时
144
+ 按 clientRef 命名空间选择校验器:legacy ref 用 legacy handle,`d-*` ref 用结构化 handle 缓存;
145
+ 同一 apply 请求禁止混用两个命名空间(`INVALID_ARGUMENT`);
146
+ - 一致性要求:legacy 输出 = golden 快照(字节等价 0.3.2);结构化输出 = 自身 golden;两命名空间
147
+ apply 校验互不串扰(专项测试)。
148
+
149
+ ### 4.3 `charter/bootstrapDraft` DTO
150
+
151
+ ```ts
152
+ 'charter/bootstrapDraft': (request: {
153
+ readonly sessionId: SessionId
154
+ }) => Promise<RemoteResult<CharterBootstrapDraftResult>>
155
+
156
+ interface CharterBootstrapDraftItem {
157
+ readonly ref: string // 确定性:objective=`d-obj-0`;条目=`d-<inv|del>-<g>[.<m>]`
158
+ // <g>=折叠组序,<m>=组内成员序(代表条目无 .m 后缀)
159
+ readonly kind: 'objective' | 'invariant' | 'deliverable'
160
+ readonly text: string
161
+ readonly lang: 'zh' | 'en' | 'mixed'
162
+ readonly oversized: boolean
163
+ readonly truncatedFrom?: number // §3.1-3 截断时的原始 UTF-8 字节数
164
+ readonly kindConfidence?: 'high' | 'low' // kind ≠ objective 时给出
165
+ readonly foldCount?: number // >1 表示折叠组代表
166
+ readonly foldMembers?: readonly { readonly ref: string; readonly text: string }[] // 有界
167
+ }
168
+
169
+ interface CharterBootstrapDraftResult {
170
+ readonly available: boolean
171
+ readonly reason?: 'not-live' | 'no-summary' | 'unavailable'
172
+ readonly draftHandle?: string // 结构化 handle:source + items + draftLang(§4.2);legacy handle 不变
173
+ readonly source?: { readonly summarySeq: number; readonly at: number; readonly shadowedTokens?: number }
174
+ readonly items?: readonly CharterBootstrapDraftItem[] // objective 至多 1 条,排最前
175
+ readonly draftLang?: 'zh' | 'en' | 'mixed'
176
+ readonly language?: {
177
+ readonly requested: 'zh' | 'en' | null
178
+ readonly status: 'source' | 'translated' | 'unavailable' | 'failed'
179
+ readonly reason?: string
180
+ readonly provider?: string
181
+ readonly model?: string
182
+ }
183
+ readonly extractorVersion: 2
184
+ }
185
+ ```
186
+
187
+ - `ref` 是**同一次摘要 + 同一 extractorVersion 内**的稳定身份(由摘要内容与抽取器版本决定),
188
+ 跨 compaction、跨 extractorVersion 不保证;apply 校验始终以 Host 当前重抽取为准;
189
+ - DTO 不含 locale mismatch 字段(§3.3);不含 capability 字段(校准能力状态在 0.4.0 用独立
190
+ 方法 `charter/calibrationStatus` 暴露,避免向本 strict DTO 追加字段造成 0.3.3 client ×
191
+ 0.4.0 host 的解析破坏)。
192
+
193
+ ### 4.4 apply 模型(修复评审 P0-B;0.4.0 的 objective 校准复用本节合同)
194
+
195
+ `charter/applyBootstrap` 请求/响应形状在 0.3.3 **不变**(`draftHandle` + ops)。校验规则按
196
+ clientRef 命名空间分派:
197
+
198
+ **通用**
199
+
200
+ 1. draftHandle 必须匹配对应抽取器的缓存/重抽取结果;legacy 沿用 0.3.2 校验,结构化用 bootstrapDraft 返回的 handle;
201
+ 2. 一个请求内所有 bootstrap clientRef 必须同命名空间;混用 → `INVALID_ARGUMENT`;
202
+ 3. Host 以对应抽取器**当前重抽取**结果为准校验(不信任客户端提交的任何元数据);
203
+ 4. `contentModified` 判定不变:提交文本 ≠ 对应候选文本 → true(Host 端计算)。
204
+
205
+ **legacy 命名空间(`bootstrap-(inv|del)-<i>`)**:与 0.3.2 逐规则等价(golden 测试锁定)。
206
+
207
+ **结构化命名空间(`d-*`)**:
208
+
209
+ | op | 规则 |
210
+ | --- | --- |
211
+ | `item.add` / `item.propose`,ref=`d-inv-*` / `d-del-*` | ref 必须解析到当前重抽取的对应候选(含折叠组成员 ref);kind 必须匹配;文本与候选不等 → `contentModified=true`(既有语义);**ref 指向 `oversized` 或截断候选且文本未经编辑 → `INVALID_ARGUMENT`(message 注明 oversized-unedited)**,编辑后按不等文本规则通过 |
212
+ | `objective.initialize`,携带可选 `clientRef: 'd-obj-0'` | `clientRef` 为 **op schema 的 additive optional 字段**(仅结构化命名空间使用;旧 host 收到含该字段的请求会 strict 拒绝,但新 client 只在 `bootstrapDraft` 成功后才可能构造它——skew 安全)。校验:结构化抽取存在 objective 候选,且 `op.text` 与其**逐字相等**(维持现行严格度:bootstrap 阶段不接受修改版 objective;用户改写走初始化后的常规编辑/redirect 流程)。记录已有 objective → 既有 core `INVALID_TRANSITION` 拒绝(不变) |
213
+ | `objective.propose` / `objective.redirect` | 维持拒绝(与现状一致;objective 提案属消息提案流程) |
214
+
215
+ **objective 的 `clientRef` 缺省行为**:不带 `clientRef` 的 `objective.initialize` 继续按现行
216
+ legacy 规则校验(= legacy 抽取 objective 逐字相等),保证旧客户端路径不变。
217
+
218
+ ### 4.5 与 0.4.0 的衔接
219
+
220
+ 0.4.0 在此合同上追加:`c-*` ref 命名空间(校准候选)、`calibrationRunId` 请求字段、
221
+ objective 校准候选经同一 `objective.initialize + clientRef` 路径(基准文本换为缓存中的校准
222
+ objective,逐字相等规则不变)。详见校准方案 §6/§7;本文的命名空间分派与 handle 语义是其
223
+ 地基,0.4.0 不得另行发明。
224
+
225
+ ### 4.6 自动语言归一(0.3.3)
226
+
227
+ - 客户端 `CharterSessionSource.bootstrap()` 读取 `ctx.locale.getLocale().active`;无论 locale 是否 zh/en,
228
+ 只要方法存在就调用 `charter/bootstrapDraft`(折叠/oversized/ref 不因语言退化);仅 zh/en 时传
229
+ `targetLanguage`,其他 locale 传 undefined 并保留源语言草案。
230
+ - Host 先在确定性结构化抽取后立即返回源语言草案;若语言一致则不调用模型。不一致时:
231
+ - `ctx.get('llm')` 可选解析;默认取当前 Session 的 `agent.model.current()`;可通过
232
+ `languageFollowProvider`/`languageFollowModel` 配置专用翻译路由(两者都设置时覆盖);
233
+ - 默认第一批 `bootstrapDraft` 请求(`awaitTranslation:false`)只返回源语言草案,`language.status='pending'`;
234
+ 客户端先渲染草案,再在后台发第二个 `awaitTranslation:true` 请求(最多等待 `languageFollowTimeoutMs`);
235
+ - 通过 `ctx.llm` 做有界分批 hand-built one-shot(本地流式文本组装);只取 text block,丢弃 reasoning;
236
+ - 只发送当前活动代表候选 + objective(不发送折组成员),要求严格 JSON `{items:[{ref,text}]}`;
237
+ ref 集合必须完整、不可增删、不可重复;preserve numbers/paths/identifiers;
238
+ - 输出逐条过 `inspectUserText`/长度检查;单条超限重新标 `oversized`;`finish` 非 stop 整批失败;
239
+ - 成功:第二阶段返回 `language.status='translated'`,`draftLang=target`,并把翻译结果按 draftHandle 缓存;
240
+ 客户端只在草案仍 pristine(未选择/未编辑)时替换,不覆盖用户正在审阅的内容;
241
+ - 失败/无模型:保留结构化原文,`language.status='unavailable'|'failed'`,UI 显示降级提示与技术详情;不阻断审阅。
242
+ - 旧客户端不传 `awaitTranslation` 时默认 `true`,保持同步调用语义。
243
+ - 翻译缓存是本 Host 进程内的有界 transient 数据(key 含摘要 digest、extractorVersion、target、provider/model),
244
+ `applyBootstrap` 用同一个 `draftHandle` 取回译文作为 `contentModified` 基准;缓存失效时拒绝过期 apply,
245
+ 客户端重新取草案。
246
+ - 自动调用会向用户配置的模型发送压缩摘要/契约草案文本;profile 配置 `languageFollow: false` 可关闭自动
247
+ 翻译(结构化抽取仍生效);README/user-guide/release notes 必须披露;record/Remote/模型工具面不变。
248
+ - **非阻塞:** 首屏草案不等待模型;语言归一在客户端首屏之后的后台请求中完成,
249
+ `languageFollowTimeoutMs` 默认 60s 且有配置上限;超时/失败回退源语言。
250
+
251
+ ## 5. UI(遵循 gui-v1 §4.9 冻结视觉语言)
252
+
253
+ - Review Center 草案区:语言 chip(`zh/en/mixed`,outline chip 规格);`draftLang` ≠ 界面语言
254
+ 时单行提示(客户端比对);
255
+ - 候选行沿用行解剖(§4.9 规则 6):`oversized` 行显示 warn chip「超预算」+ 完整文本 +
256
+ 「编辑拆分」quietlink,勾选框禁用并显示首要原因;截断行显示「已截断(原始 N B)」元信息;
257
+ - 折叠组:代表行 + `+N 条重复` outline chip;0.3.3 展示计数并保留成员 ref/text,成员展开交互留给
258
+ 0.4.0 校准/审阅增强(不丢失原文,见原始草案 disclosure);
259
+ - kind 低置信:`建议归类` outline chip;
260
+ - objective 候选区:单条展示 + 勾选;说明文案明确"应用后将直接成为当前目标(无待审中间态)"
261
+ (与现状 bootstrap objective 行为一致);
262
+ - 原始草案全文(未折叠、未标记的抽取原文)保留在既有 disclosure,任何新展示不替代它。
263
+
264
+ ## 6. 兼容与降级
265
+
266
+ | 组合 | 行为 | 验证 |
267
+ | --- | --- | --- |
268
+ | 0.3.2 client + 0.3.3 host | 只调用 `charter/bootstrap`;legacy 抽取器冻结 → 响应**逐字节等价** 0.3.2 | legacy golden fixture(P0 测试) |
269
+ | 0.3.3 client + 0.3.2 host | `bootstrapDraft` 方法缺失 → 稳定传输错误 → 回退旧方法;UI 无结构化元数据 | 模拟旧 Host 回退测试 |
270
+ | 0.3.3 client + 0.3.3 host | 结构化路径 + `d-*` apply | 全矩阵 |
271
+ | record 数据 | 与 0.3.2 完全同构(零 schema 变更);双向升降级无围栏 | round-trip 测试 |
272
+
273
+ 路线边界:0.3.x 线此前承诺"零 Remote 变化";D-A1 需将 0.3.3 边界修订为"允许 additive
274
+ Remote 方法与 additive optional op 字段;禁止 record schema、prompt、模型工具面变更"。
275
+
276
+ ## 7. 测试与验收
277
+
278
+ ### L1 Core fixture
279
+
280
+ - 结构化抽取:句/子句切分、oversized 标记、4× 截断边界与标记文本、折叠键/前缀包含/成员完整、
281
+ 语言阈值边界语料、kind 打分中英正反例、objective 打分并列规则、确定性(同输入同输出同 ref);
282
+ - **legacy golden**:`extractLegacy` 对固定语料的输出 JSON 与 0.3.2 快照逐字节一致。
283
+ **接受偏差(2026-11-23):** 原方案要求 ≥10 条真实脱敏摘要;当前仓库没有可安全提交的真实摘要语料,
284
+ 实际交付为 10 条合成案例(混合章节/超长硬切/CRLF+NFD/中英/重复/无 objective 等)。机制已逐字节锁定;发布前由发布决策选择
285
+ “补 ≥10 条真实脱敏摘要”或“书面接受 3 条合成片段作为偏差”。
286
+ - `extractorVersion` 变更时 ref 不稳定的显式测试;
287
+ - **自动语言归一**:目标同语不调用、跨语调用成功、模型缺失回退、finish=max-tokens/malformed/缺 ref 整批失败、译文超限重标 oversized、缓存命中/失效、`applyBootstrap` 以译文为基准。
288
+
289
+ ### L2 Host / wire
290
+
291
+ - `bootstrapDraft` 与 `bootstrap`:同一摘要同一 draftHandle;两命名空间 apply 校验互不串扰;
292
+ - ref 解析:`d-inv-<g>.<m>` 成员、伪造 ref、跨 Session ref、过期 handle、**混用命名空间拒绝**;
293
+ - oversized 未编辑 apply 拒绝;编辑后 `contentModified=true` 通过;
294
+ - `objective.initialize`:带 `clientRef` 逐字校验、不带 `clientRef` 走 legacy 规则、记录已有
295
+ objective 时 `INVALID_TRANSITION`、`objective.propose/redirect` 拒绝不变;
296
+ - method 缺失回退路径(模拟旧 Host);旧 clientRef 语法回归不变。
297
+
298
+ ### L3 浏览器 / UI
299
+
300
+ 语言 chip、折叠展开、oversized 禁用与原因、截断元信息、低置信标注、objective 候选说明:
301
+ 明暗 × 中英 × 320–1440;冻结稿风格对照(gui-v1 §8.3 方法沿用)。
302
+
303
+ ### 发布门禁
304
+
305
+ 沿用 0.3.x 全套(candidate 单次打包、exact-artifact smoke/recovery、11 版本矩阵 + untracked
306
+ probe、fresh profile、Promotion、SHA256SUMS/C+1)。0.3.3 特有 P0:**legacy golden 字节等价**
307
+ 与**新旧 client/host 四象限 skew**。
308
+
309
+ ## 8. 实施阶段
310
+
311
+ | 阶段 | 内容 | 退出条件 |
312
+ | --- | --- | --- |
313
+ | E1 core(1.5–2d) | §3 结构化抽取器 + legacy 冻结/golden + L1 | 抽取确定性测试绿;legacy golden 字节等价;现有 bootstrap 测试无回归 |
314
+ | E2 wire/host(1.5–2d) | §4 方法 + ref 命名空间 + apply 合同(含 objective clientRef)+ L2 | 四象限 skew 矩阵绿;混用命名空间拒绝 |
315
+ | E3 UI/发布(1.5–2d) | §5 + L3 + 文档批次 + 发布门禁 | 冻结稿对照通过;`npm run check` 全绿 |
316
+
317
+ 估计 4.5–6 工程日(不含人工验收;较 v1 上调,因 apply 合同与 golden 体系)。单分支、每阶段
318
+ 独立提交、门禁全绿才推进。
319
+
320
+ ## 9. 待确认决策
321
+
322
+ | 编号 | 决策 | 建议 |
323
+ | --- | --- | --- |
324
+ | D-A1 | 路线修订:0.3.3 边界允许 additive Remote 方法 + additive optional op 字段 | **已采纳并实现**:新增 bootstrapDraft + objective clientRef;0.3.3 本地候选。 |
325
+ | D-A2 | 折叠组默认展开还是折叠 | 0.3.3 默认折叠、只显示计数与成员 ref;成员展开交互后续实现。 |
326
+ | D-A3 | oversized 编辑拆分是否提供句边界建议拆分点 | 0.3.3 只显示 oversized/编辑提示;自动建议拆分点后续实现。 |
327
+ | D-A4 | 语言阈值 | 实现为 Latin ≥70% / CJK ≥70% / 其余 mixed;进 fixture,真实语料校准留待发布验收。 |
328
+ | D-A5 | legacy `charter/bootstrap` 弃用时机 | 0.3.x 全程保留;0.5.0 线评估移除(需先确认无旧 client 存量) |
329
+
330
+ ## 附录 A:与 0.4.0 的接口承诺(冻结项)
331
+
332
+ 0.4.0 依赖且本文冻结后不再变更的合同点:
333
+
334
+ 1. `d-*` ref 语法与确定性规则(§4.3);
335
+ 2. legacy/structured 各自 draftHandle 与命名空间分派(§4.2);
336
+ 3. apply 命名空间分派 + 禁止混用 + Host 重抽取校验 + `contentModified` 基准规则(§4.4);
337
+ 4. `objective.initialize` 可选 `clientRef` 字段与逐字相等规则(§4.4);
338
+ 5. `extractorVersion` 字段(缓存键与 0.4.0 校准输入的一部分)。
339
+
340
+ ## 附录 B:变更记录
341
+
342
+ | 日期 | 变更 |
343
+ | --- | --- |
344
+ | 2026-11-23 | 创建提案 v1(Proposed):从校准方案拆出确定性层。 |
345
+ | 2026-11-23 | **评审修订 v2**:P0-B → §4.4 完整 apply 模型;P1-1 → §4.2 双抽取器模型;P1-3 → 删除 `localeMismatch`;新增 §4.5。 |
346
+ | 2026-11-23 | **实现修订 v3(用户决策)**:0.3.3 加入自动 zh/en 语言归一(§4.6,`ctx.get('llm')` 单轮翻译,模型缺失降级);状态转 Implemented;新增语言/翻译测试门禁。 |
@@ -1,11 +1,10 @@
1
1
  # `dsh-charter` 0.3.0 GUI 全面重构方案(所有栏目统一)
2
2
 
3
- > **状态:** `Active` —— 0.3.0 开发范围与设计权威(W0–W6 源码实现完成,人工验收待完成)。未发布;人工验收
4
- > 通过前不得声称 0.3.0 可用或已发布,不得推送开发分支。
5
- > **版本范围:** `0.3.0`(W0–W6,所有栏目统一重构;纯客户端,不改 record/Remote/prompt/模型能力;仅做 DSH 版本声明维护,见 §2)。
3
+ > **状态:** `Active` —— 0.3.0/0.3.1 已发布;0.3.2 无障碍与证据收敛进行中。
4
+ > 0.3.0/0.3.1 的发布树和 tag 不可重写;0.3.2 的人工 AT、200% 根字号和截图对账完成前不发布。
5
+ > **版本范围:** `0.3.0` / `0.3.1` 已发布;`0.3.2` 为当前纯客户端无障碍/证据补丁(不改 record/Remote/prompt/模型能力)。
6
6
  > 版本决策见 §2.1。
7
- > **基准:** 2026-11-12,基于已发布 `0.2.2` 发布树(client 源码最后变更 `f9d93c0`,发布证据见
8
- > [0.2.2 发布说明](../release-notes/0.2.2.md))。本文所有度量均在 `main` @ `433bdce` 的工作树上重测。
7
+ > **基准:** 2026-11-16,基于已发布的 `0.3.1` 发布树;0.3.2 证据在 `feat/0.3.2-a11y` 上采集。
9
8
  > **权威边界:** 版本范围由[版本路线](version-roadmap.zh.md)决定;产品不变量由
10
9
  > [v1 核心设计](charter-design-v1.zh.md)决定;Workspace/Proposal/依赖语义由
11
10
  > [charter-workspace-v2.zh.md](charter-workspace-v2.zh.md) §5、§6 决定。本文只细化 GUI 呈现、交互状态与验证证据;
@@ -17,8 +16,7 @@
17
16
  > record schema、迁移、Host service、Remote/wire、prompt 投影、模型工具面;DSH 兼容维护仅限版本声明,见 §2。
18
17
  > **调研快照:** 2026-11-11;宿主 DSH `0.2.2-rc.1` 的设计 token 事实与社区插件/skill 榜单见附录 A–C。
19
18
  > **评审修订:** 2026-11-11 独立评审的 4 个 P1、11 个 P2 与 2 个外围修正已全部并入(见附录 E)。
20
- > **执行边界:** 本地分支 `feat/0.3.0-gui`(未推送);人工验收前不合并 `main`、不 tag/release/publish、
21
- > 不声称 0.3.0 可用或已发布。
19
+ > **执行边界:** `0.3.0`/`0.3.1` 已发布且不可变;`0.3.2` 仅在本地分支开发,人工验收前不合并/不发布。
22
20
 
23
21
  ## 0. 摘要
24
22
 
@@ -563,6 +561,9 @@ canonical diff、reconcile 状态)。若 D0 选择改为内联卡片,则必
563
561
  键盘语义与焦点。节点层在其上方,点击边不会遮挡节点;键盘仍通过图形区单 Tab + roving tab 访问。
564
562
  - **画布高度**:不设固定 `max-height`;画布随布局高度增长,窄屏仍由 disclosure 折叠;200% 页面缩放下
565
563
  由宿主滚动承载,不在图形区制造第二套固定像素视口。
564
+ - **根字号文本缩放(0.3.2)**:当根字号大于 16px 时,整个画布按 `min(2, rootFontPx / 16)` 等比缩放,
565
+ 节点几何、文本、边、泳道和 44px 命中路径一起缩放;viewport 在放大后允许横向滚动,语义列表仍保持
566
+ 正常文档流。200% 根字号实测由 0.3.2 证据记录,不再把 page-scale 的证据当作根字号证据。
566
567
  - **inspector**:画布下方一行式区域(顶部发丝分隔):选中节点 `Dn + 正文 + 进度 chip` /
567
568
  依赖与被依赖 outline chips / 暂存变更 chip / 右侧 [编辑][+ 依赖] ghost sm。不使用重面板。
568
569
  - **边界**:语义列表始终是权威操作面;<880px 图形区随 disclosure 默认折叠且不渲染画布;节点为
@@ -835,20 +836,32 @@ URL/commit、拒绝无许可证或行为不明的包;impeccable 的 launcher
835
836
  - [x] 指标门禁全部达标(§0.1),结果记入 verification;统计口径与 `ui-metrics.mjs` 一致(`verify:ui-metrics --gate=final` 全项 PASS)。
836
837
  - [x] 目标只渲染一次;全局预算只剩 2 类表达(字段级计数保留);Workspace ≤ 6 个兄弟块(`ui-metrics` legacy objective=0;WorkspacePage 4 个 section + notices)。
837
838
  - [x] 所有“打开/跳转”落到锚点并聚焦;无 no-op(`section-routing` 测试 + 浏览器路由证据)。
838
- - [ ] clean 状态无常驻操作条;dirty/replay/conflict/unknown 各自唯一呈现。
839
- - [ ] W0 滚动所有权运行时探针(Web/Desktop × Composer 开合 × 三种宽度)完成并冻结。
840
- - [ ] Change Set 按 v2 §5.7 最小合同(桌面 complementary region、窄屏 modal bottom sheet)通过键盘/焦点验收。
841
- - [ ] 明暗 × 中英 × 320/375/560/850/1440 × 六状态截图完成,主截图来自验收构建且使用合成数据。
842
- - [ ] 字体偏好 10/14/22 下不破版;内容文字跟随、UI 文字固定阶。
843
- - [ ] 键盘全路径 + 200% 缩放 + forced-colors + reduced-motion 通过。
844
- - [ ] 与冻结稿(docs/design/mockups/)并排对照评审通过:明暗 × 320/375/560/850/1440 × 六状态。
839
+ - [x] clean 状态无常驻操作条;dirty/replay/conflict/unknown 各自唯一呈现(0.3.1 发布构建截图与 DOM 测试;六状态截图仍见 0.3.2 对账)。
840
+ - [ ] W0 滚动所有权运行时探针(Web/Desktop × Composer 开合 × 三种宽度)完成并冻结 → **0.3.2 跟踪项 A6**。
841
+ - [x] Change Set 按 v2 §5.7 最小合同(桌面 complementary region、窄屏 modal bottom sheet)通过键盘/焦点验收(现有 Pane 测试;真实 AT 仍见 A2)。
842
+ - [ ] 明暗 × 中英 × 320/375/560/850/1440 × 六状态截图完成,主截图来自验收构建且使用合成数据 → **0.3.2 跟踪项 A3**。
843
+ - [x] 字体偏好 10/14/22 下不破版;内容文字跟随、UI 文字固定阶(0.3.0/0.3.1 CDP 证据)。
844
+ - [ ] 键盘全路径 + 200% 缩放 + forced-colors + reduced-motion 通过 → **0.3.2 跟踪项 A1/A2/A3**。
845
+ - [ ] 与冻结稿(docs/design/mockups/)并排对照评审通过:明暗 × 320/375/560/850/1440 × 六状态 → **0.3.2 跟踪项 A4**。
845
846
  - [x] 依赖图节点 px 几何 + 正文两行截断;用户字号 10/14/22 下无文本裁切、无节点溢出(`DependencyGraph.tsx` PX_PER_EM/PX_PER_EM_Y、184px;CDP scrollWidth/scrollHeight 检查)。
846
847
  - [x] rail、inspector、图形工具条无原始枚举/op 类型串,全部走 locales(`changeset.*`/`deps.*`/`progress.*` 审计;`grep` 无原始状态串)。
847
848
  - [x] 区域导航为顶部下划线 tabs(nav + aria-current);旧左侧纵向导航已移除(`charter-tabs`、`aria-current`;DOM 无 `.charter-nav`)。
848
- - [x] 旧版 DSH token 覆盖审计完成(2026-11-12,10 版本 / 41 静态 token / 1 动态 fallback);兼容块为空且有门禁。
849
- - [ ] `npm run check`、兼容矩阵、exact artifact/fresh profile 门禁通过,证据按 CI/local/manual 标注。
850
- - [ ] README/README.zh、CHANGELOG、release notes、docs 索引、SHA256SUMS 同批更新;未 push/tag/publish。
851
- - [x] 人工验收前未推送 `feat/0.3.0-gui`、未合并 `main`、未 tag/publish;仓库与 README 无“0.3.0 可用/已发布”声明。
849
+ - [x] 旧版 DSH token 覆盖审计完成(2026-11-13,11 版本 / 41 静态 token / 1 动态 fallback);兼容块为空且有门禁。
850
+ - [x] `npm run check`、兼容矩阵、exact artifact/fresh profile 门禁通过,证据按 CI/local/manual 标注(0.3.2 candidate/promotion run)。
851
+ - [x] README/README.zh、CHANGELOG、release notes、docs 索引、SHA256SUMS 同批更新;0.3.1 已 push/tag/publish。
852
+ - [x] 0.3.0/0.3.1 发布分支、tag、npm 和 GitHub Release 已由保护流程完成;历史 tag 不可变。
853
+
854
+ ### 0.3.2 对账(2026-11-16)
855
+
856
+ | 附录 D 项 | 状态 | 后续动作 |
857
+ | --- | --- | --- |
858
+ | 指标门禁、路由、单次目标、locale/token 门禁 | 已完成 | 0.3.1 回归证据 |
859
+ | 发布元数据、tag、npm、SHA | 已完成(0.3.0/0.3.1/0.3.2) | 0.3.2 candidate/promotion 已完成 |
860
+ | 六状态截图、forced-colors、reduced-motion、200% | 未完成 | 0.3.2 A1/A3 |
861
+ | 真实 VoiceOver/NVDA、W0-3 SVG 焦点 | 未完成 | 0.3.2 A2 |
862
+ | 冻结稿人工并排、Desktop 原生窗口 | 未完成 | 0.3.2 A4/A5 |
863
+ | W0-1 断点/栏宽、W0-2 行容量实测 | 未完成 | 0.3.2 A6 |
864
+
852
865
 
853
866
  ## 附录 E:变更记录
854
867
 
@@ -4,11 +4,11 @@ English | [中文](compatibility.zh.md)
4
4
 
5
5
  > **Status:** Active — compatibility claims for the declared DSH versions.
6
6
  > **Version scope:** all declared DSH versions.
7
- > **Baseline:** 2026-11-05
7
+ > **Baseline:** 2026-11-23
8
8
  > **Authority:** [version roadmap](version-roadmap.md) for release scope; the matrix below for compatibility.
9
9
  > **Supersedes / Superseded by:** none / none
10
10
 
11
- Research/verification baseline: 2026-10-30.
11
+ Research/verification baseline: 2026-11-23.
12
12
 
13
13
  This document answers three questions:
14
14
 
@@ -30,20 +30,26 @@ This document answers three questions:
30
30
  | `0.2.1-rc.5` | Supported | same |
31
31
  | `0.2.2-rc.1` | Supported (previous baseline) | same + real Web profile install/startup, boot graph, bundle HTTP |
32
32
  | `0.2.2-rc.2` | Supported | typecheck, build, Vitest suite, remote/client smoke |
33
- | `0.2.2-rc.3` | Supported (primary development baseline) | typecheck, build, Vitest suite, remote/client smoke, eleven-version source matrix |
33
+ | `0.2.2-rc.3` | Supported | typecheck, build, Vitest suite, remote/client smoke, source matrix |
34
+ | `0.2.2-rc.4` | Supported | typecheck, build, Vitest suite, remote/client smoke, thirteen-version source matrix |
35
+ | `0.2.2-rc.5` | Supported (primary development baseline) | typecheck, build, Vitest suite, remote/client smoke, thirteen-version source matrix |
34
36
  | `0.1.5-rc.1` / `0.1.5-rc.2` / `0.1.5-rc.3` | Not supported | contract differences too large; see section 4 |
35
37
  | `0.1.6-alpha.x` | Not supported | same generation as 0.1.5; not individually verified |
36
38
  | `0.2.2-alpha.2` / `0.2.2-alpha.3` | Not supported | 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. |
37
39
  | `0.3.x` | Not declared | major upgrade requires re-verification |
38
40
 
39
- The DSH peer ranges and `engines.dsh` in `package.json` cover exactly the eleven verified versions:
41
+ Upgrade-guide review for `0.2.2-rc.3`/`0.2.2-rc.4` → `0.2.2-rc.5`: the only documented changes are the
42
+ DeepSeek content-refusal error code and default web-search provider. The plugin consumes neither surface, so no
43
+ migration is required. The local source matrix directly exercises the latest graph.
44
+
45
+ The DSH peer ranges and `engines.dsh` in `package.json` cover exactly the thirteen verified versions:
40
46
 
41
47
  ```text
42
48
  engines.dsh:
43
49
  0.1.7-rc.2 || >=0.2.0-rc.1 <0.3.0-0
44
50
 
45
51
  verified peer ranges / dsh.compatibility.dshReleases:
46
- 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-rc.1 || 0.2.2-rc.2 || 0.2.2-rc.3
52
+ 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-rc.1 || 0.2.2-rc.2 || 0.2.2-rc.3 || 0.2.2-rc.4 || 0.2.2-rc.5
47
53
  ```
48
54
 
49
55
  Token compatibility (0.3.0): the Pane consumes 41 static host design tokens plus one runtime
@@ -4,11 +4,11 @@
4
4
 
5
5
  > **状态:** Active — 已声明 DSH 版本的兼容声明。
6
6
  > **版本范围:** 所有已声明 DSH 版本。
7
- > **基准:** 2026-11-03
7
+ > **基准:** 2026-11-23
8
8
  > **权威:** 发布范围见[版本路线](version-roadmap.zh.md);兼容性以下方矩阵为准。
9
9
  > **替代/被替代:** 无 / 无
10
10
 
11
- 调研与验证基准日:2026-10-30。
11
+ 调研与验证基准日:2026-11-23。
12
12
 
13
13
  本文回答三个问题:
14
14
 
@@ -30,20 +30,25 @@
30
30
  | `0.2.1-rc.5` | 支持 | 同上 |
31
31
  | `0.2.2-rc.1` | 支持(上一基线) | 同上 + typecheck/build/Vitest/remote/client smoke + 真实 Web profile 安装/启动、boot graph、bundle HTTP |
32
32
  | `0.2.2-rc.2` | 支持 | typecheck/build/Vitest/remote/client smoke |
33
- | `0.2.2-rc.3` | 支持(主开发基线) | typecheck/build/Vitest/remote/client smoke + 十一版本源码矩阵 |
33
+ | `0.2.2-rc.3` | 支持 | typecheck/build/Vitest/remote/client smoke + 源码矩阵 |
34
+ | `0.2.2-rc.4` | 支持 | typecheck/build/Vitest/remote/client smoke + 十三版本源码矩阵 |
35
+ | `0.2.2-rc.5` | 支持(主开发基线) | typecheck/build/Vitest/remote/client smoke + 十三版本源码矩阵 |
34
36
  | `0.1.5-rc.1` / `0.1.5-rc.2` / `0.1.5-rc.3` | 不支持 | 契约差异过大,见第 4 节 |
35
37
  | `0.1.6-alpha.x` | 不支持 | 与 0.1.5 同代,未逐一验证 |
36
38
  | `0.2.2-alpha.2` / `0.2.2-alpha.3` | 不支持 | strict-peer 安装失败:这些 alpha 版本要求 Cordis 4.0.6 alpha 图;0.2.2-rc.1 线固定 Cordis 4.1.0,不进入测试 |
37
39
  | `0.3.x` | 未声明 | 大版本升级需要重新核验 |
38
40
 
39
- `package.json` 的 DSH peer 范围与 `engines.dsh` 覆盖已验证的十一个精确版本:
41
+ 对 `0.2.2-rc.3`/`0.2.2-rc.4` → `0.2.2-rc.5` 的升级指南已核对:文档化变更只有 DeepSeek 内容拒答错误码与
42
+ 默认 web-search provider;插件不消费这两个面,因此无需迁移。本地源码矩阵直接覆盖最新依赖图。
43
+
44
+ `package.json` 的 DSH peer 范围与 `engines.dsh` 覆盖已验证的十三个精确版本:
40
45
 
41
46
  ```text
42
47
  engines.dsh:
43
48
  0.1.7-rc.2 || >=0.2.0-rc.1 <0.3.0-0
44
49
 
45
50
  已验证的 peer ranges / dsh.compatibility.dshReleases:
46
- 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-rc.1 || 0.2.2-rc.2 || 0.2.2-rc.3
51
+ 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-rc.1 || 0.2.2-rc.2 || 0.2.2-rc.3 || 0.2.2-rc.4 || 0.2.2-rc.5
47
52
  ```
48
53
 
49
54
  Token 兼容(0.3.0):Pane 使用 41 个静态宿主设计 token 和 1 个运行时变量
@@ -5,9 +5,8 @@ English | [中文](version-roadmap.zh.md)
5
5
  > This English file is a non-normative summary. The Chinese roadmap is normative when details differ.
6
6
  >
7
7
  > **Status:** Active — version and scope authority.
8
- > **Version scope:** 0.1 history, the published 0.2 line, and the 0.3 GUI line and the 0.3.1 convergence candidate.
9
- > **Baseline:** 2026-11-13; `0.2.2` and `0.3.0` are published; `0.3.1` is the GUI convergence candidate (in
10
- > progress, unpublished; plain increments, no `rc` suffix).
8
+ > **Version scope:** 0.1 history, the published 0.2 line, the published 0.3.0/0.3.1/0.3.2 line, and the implemented 0.3.3 candidate.
9
+ > **Baseline:** 2026-11-23; `0.2.2` and `0.3.0` are published; `0.3.1` is the published GUI convergence patch; `0.3.2` was published on 2026-11-16; `0.3.3` is the locally implemented structured-draft/language candidate; `0.4.0` is the next feature line.
11
10
  > **Authority:** Chinese [version-roadmap.zh.md](version-roadmap.zh.md) is normative for scope.
12
11
  > **Supersedes / Superseded by:** none / none
13
12
 
@@ -27,7 +26,7 @@ The release path is:
27
26
  → 0.2.1 post-0.2.0 UI/diagnostics/recovery-cache patch
28
27
  → 0.2.2 dependency graph + §6.5 confirmation (client-only patch, published)
29
28
  → 0.3.0 all-section GUI refactor (client-only, published)
30
- → 0.3.1 dependency-graph/a11y convergence, envelope warning, local traffic forensics (client-only, candidate)
29
+ → 0.3.1 dependency-graph/a11y convergence, envelope warning, local traffic forensics (client-only, published)
31
30
  → 0.4.0 existing-deliverable relation proposal + record schema v3 (scope decision pending)
32
31
  ```
33
32
 
@@ -39,7 +38,7 @@ rc.5 fixed the correctness defect inside the promised 0.1 workflow: previously e
39
38
 
40
39
  `0.2.0` is not a bucket for isolated improvements. It is a complete Charter workflow upgrade spanning existing-feature improvements, new capabilities, information architecture and interaction redesign, data-model evolution, query APIs, and client architecture.
41
40
 
42
- `0.3.0` is the published GUI baseline: it unifies the GUI of Workspace, Review Center, and Diagnostics & Maintenance under one design system and interaction contract, and completes real routing, the Change Set contract, and the Pane/store split. The scope and acceptance plan live in [charter-gui-v1.zh.md](charter-gui-v1.zh.md) (`Active`). It was released on 2026-11-13. `0.3.1` is the current convergence candidate and remains unpublished until human acceptance; its branch is not pushed, `main` is not merged, and nothing is tagged/released/published or described as available.
41
+ `0.3.0` is the published GUI baseline: it unifies the GUI of Workspace, Review Center, and Diagnostics & Maintenance under one design system and interaction contract, and completes real routing, the Change Set contract, and the Pane/store split. The scope and acceptance plan live in [charter-gui-v1.zh.md](charter-gui-v1.zh.md) (`Active`). It was released on 2026-11-13. `0.3.1` was released on 2026-11-13; the next candidate line is `0.4.0`.
43
42
 
44
43
  ## 2. Current Release State
45
44
 
@@ -47,7 +46,7 @@ rc.5 fixed the correctness defect inside the promised 0.1 workflow: previously e
47
46
  - `0.2.1` is published on npm (`latest`/`next`) and as GitHub Release `v0.2.1`; its tag, assets, and npm bytes are immutable.
48
47
  - `0.2.0` is an earlier public release.
49
48
  - `0.2.1` is a compatible post-`0.2.0` patch: editable message proposals, clearer diagnostics/typography, and an owner-only bounded recovery cache. It does not change `recordSchemaVersion` 2 or the model tool surface; the `dsh_charter_archives_v1` domain is a bounded derivative cache, not a second authority.
50
- - `0.3.0` was published on 2026-11-13. `0.3.1` is the current GUI convergence candidate (dependency-graph audit, standing-envelope warning, local traffic forensics): unpublished; the local branch is not pushed and nothing is tagged/released/published before human acceptance.
49
+ - `0.3.0` was published on 2026-11-13. `0.3.1` was published on 2026-11-13 as the GUI convergence patch; `0.4.0` is the next candidate line.
51
50
  - `0.1.0-rc.6` remains an earlier public release. Historical rc tags and releases are immutable.
52
51
 
53
52
  ## 3. Why rc.5
@@ -305,16 +304,14 @@ Alpha milestones may change the schema, but every change must ship fixture migra
305
304
  | `0.1.1` | Compatible stable bug/security/DSH/accessibility patches | New persistent state, API, or workflow |
306
305
  | `0.2.0` | Four product pillars, record v2, query plane, three-area UI, architecture refactor | General memory, execution policy, arbitrary validators, unnecessary domain migration |
307
306
  | `0.2.2` | Client-side dependency graph, §6.5 conflict confirmation, optional preview fields | New record schema/domain, new Remote methods, model-visible capability changes, graph-only capabilities |
307
+ | `0.3.1` | Published dependency/a11y/standing-envelope convergence; no record/Remote/prompt change | New schema/domain, Remote/model capability, DSH ABI/wire change |
308
+ | `0.3.3` | Structured draft extraction: additive bootstrapDraft Remote, objective clientRef, folding/oversized/refs; automatic zh/en language follow with `languageFollow` opt-out and source fallback | Record schema/domain, prompt/tool changes, breaking legacy bootstrap/apply, unbounded always-on model call |
308
309
  | `0.3.0` | All-section GUI refactor: design system, IA/routing, Change Set contract, Pane/store split, a11y/screenshot evidence | New record schema/domain, new Remote/model capability, compatibility declaration changes, pushing/merging/tagging/publishing or availability claims before human acceptance |
309
310
 
310
- ## 16. `0.3.0` GUI Refactor (in development)
311
+ ## 16. `0.3.x` GUI line and `0.3.3` draft candidate
311
312
 
312
- The 0.3.0 line unifies the GUI of all Pane areas (Workspace, Review Center, Diagnostics & Maintenance) under one
313
- design system and interaction contract: token-based styling, real scroll/focus routing, the workspace-v2 Change Set
314
- contract, the Pane/store split, and DOM/browser accessibility and screenshot evidence. It is client-only: no record
315
- schema, migration, Host service, Remote/wire, prompt projection, model capability, or compatibility declaration
316
- changes.
313
+ The `0.3.0`–`0.3.2` line published the all-section GUI design, dependency graph, and accessibility/evidence
314
+ convergence. `0.3.3` adds the structured draft extraction and optional automatic language follow. The GUI remains
315
+ client-only except for the additive draft methods documented in the extraction design.
317
316
 
318
- Authority: [charter-gui-v1.zh.md](charter-gui-v1.zh.md) (`Active`). Status: W0 started; not implemented and not
319
- released. Until human acceptance passes, the local `feat/0.3.0-gui` branch is not pushed, `main` is not merged, and
320
- nothing may be tagged/released/published or described as available.
317
+ Authority: [charter-gui-v1.zh.md](charter-gui-v1.zh.md) (`Active`) and [the extraction design](charter-draft-extraction-v1.zh.md) (`Implemented — pending release acceptance`). The 0.3.3 candidate is not published until the normal release gates and human acceptance pass.