dsh-charter 0.3.2 → 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 (47) hide show
  1. package/CHANGELOG.md +19 -1
  2. package/CHANGELOG.zh.md +18 -1
  3. package/README.md +46 -26
  4. package/README.zh.md +37 -21
  5. package/docs/README.md +2 -0
  6. package/docs/README.zh.md +2 -0
  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-pane-0.3.3.png +0 -0
  10. package/docs/assets/charter-pane-0.3.3.zh.png +0 -0
  11. package/docs/design/charter-draft-calibration-v1.zh.md +617 -0
  12. package/docs/design/charter-draft-extraction-v1.zh.md +346 -0
  13. package/docs/design/charter-gui-v1.zh.md +2 -2
  14. package/docs/design/compatibility.md +11 -5
  15. package/docs/design/compatibility.zh.md +10 -5
  16. package/docs/design/version-roadmap.md +9 -11
  17. package/docs/design/version-roadmap.zh.md +6 -4
  18. package/docs/release-notes/0.3.2.md +6 -5
  19. package/docs/release-notes/0.3.3.md +32 -0
  20. package/docs/release-notes/README.md +1 -1
  21. package/docs/releasing.md +6 -5
  22. package/docs/releasing.zh.md +6 -5
  23. package/docs/user-guide.md +16 -2
  24. package/docs/user-guide.zh.md +15 -2
  25. package/docs/verification.md +31 -23
  26. package/docs/verification.zh.md +32 -23
  27. package/lib/client/bootstrap-plan.d.ts +9 -1
  28. package/lib/client/draft-store.d.ts +12 -1
  29. package/lib/client/locales.d.ts +11 -0
  30. package/lib/client/pane-scope.d.ts +2 -0
  31. package/lib/client/store.d.ts +12 -1
  32. package/lib/client.js +328 -41
  33. package/lib/core/bootstrap.d.ts +14 -0
  34. package/lib/core/schemas.d.ts +3 -0
  35. package/lib/core/structured-bootstrap.d.ts +49 -0
  36. package/lib/core.js +2 -2
  37. package/lib/{fork-KSL6sovw.js → fork-h8Gx4AJd.js} +178 -166
  38. package/lib/host/draft-translation.d.ts +47 -0
  39. package/lib/host/service.d.ts +19 -1
  40. package/lib/host/types.d.ts +43 -0
  41. package/lib/index.js +3 -3
  42. package/lib/remote/service.d.ts +6 -1
  43. package/lib/remote/wire.d.ts +91 -2
  44. package/lib/remote.js +116 -4
  45. package/lib/{service-BSrE7Kbu.js → service-CPha5Ipx.js} +734 -42
  46. package/lib/version.d.ts +1 -1
  47. 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;新增语言/翻译测试门禁。 |
@@ -847,7 +847,7 @@ URL/commit、拒绝无许可证或行为不明的包;impeccable 的 launcher
847
847
  - [x] rail、inspector、图形工具条无原始枚举/op 类型串,全部走 locales(`changeset.*`/`deps.*`/`progress.*` 审计;`grep` 无原始状态串)。
848
848
  - [x] 区域导航为顶部下划线 tabs(nav + aria-current);旧左侧纵向导航已移除(`charter-tabs`、`aria-current`;DOM 无 `.charter-nav`)。
849
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.1 candidate/promotion run)。
850
+ - [x] `npm run check`、兼容矩阵、exact artifact/fresh profile 门禁通过,证据按 CI/local/manual 标注(0.3.2 candidate/promotion run)。
851
851
  - [x] README/README.zh、CHANGELOG、release notes、docs 索引、SHA256SUMS 同批更新;0.3.1 已 push/tag/publish。
852
852
  - [x] 0.3.0/0.3.1 发布分支、tag、npm 和 GitHub Release 已由保护流程完成;历史 tag 不可变。
853
853
 
@@ -856,7 +856,7 @@ URL/commit、拒绝无许可证或行为不明的包;impeccable 的 launcher
856
856
  | 附录 D 项 | 状态 | 后续动作 |
857
857
  | --- | --- | --- |
858
858
  | 指标门禁、路由、单次目标、locale/token 门禁 | 已完成 | 0.3.1 回归证据 |
859
- | 发布元数据、tag、npm、SHA | 已完成(0.3.0/0.3.1) | 0.3.2 走同一 candidate/promotion 流程 |
859
+ | 发布元数据、tag、npm、SHA | 已完成(0.3.0/0.3.1/0.3.2) | 0.3.2 candidate/promotion 已完成 |
860
860
  | 六状态截图、forced-colors、reduced-motion、200% | 未完成 | 0.3.2 A1/A3 |
861
861
  | 真实 VoiceOver/NVDA、W0-3 SVG 焦点 | 未完成 | 0.3.2 A2 |
862
862
  | 冻结稿人工并排、Desktop 原生窗口 | 未完成 | 0.3.2 A4/A5 |
@@ -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,8 +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 published 0.3.1 convergence patch.
9
- > **Baseline:** 2026-11-13; `0.2.2` and `0.3.0` are published; `0.3.1` is the published GUI convergence patch; `0.3.2` is the current accessibility/evidence candidate; `0.4.0` is the next feature line.
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.
10
10
  > **Authority:** Chinese [version-roadmap.zh.md](version-roadmap.zh.md) is normative for scope.
11
11
  > **Supersedes / Superseded by:** none / none
12
12
 
@@ -304,16 +304,14 @@ Alpha milestones may change the schema, but every change must ship fixture migra
304
304
  | `0.1.1` | Compatible stable bug/security/DSH/accessibility patches | New persistent state, API, or workflow |
305
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 |
306
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 |
307
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 |
308
310
 
309
- ## 16. `0.3.0` GUI Refactor (in development)
311
+ ## 16. `0.3.x` GUI line and `0.3.3` draft candidate
310
312
 
311
- The 0.3.0 line unifies the GUI of all Pane areas (Workspace, Review Center, Diagnostics & Maintenance) under one
312
- design system and interaction contract: token-based styling, real scroll/focus routing, the workspace-v2 Change Set
313
- contract, the Pane/store split, and DOM/browser accessibility and screenshot evidence. It is client-only: no record
314
- schema, migration, Host service, Remote/wire, prompt projection, model capability, or compatibility declaration
315
- 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.
316
316
 
317
- Authority: [charter-gui-v1.zh.md](charter-gui-v1.zh.md) (`Active`). Status: W0 started; not implemented and not
318
- released. Until human acceptance passes, the local `feat/0.3.0-gui` branch is not pushed, `main` is not merged, and
319
- 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.
@@ -3,8 +3,8 @@
3
3
  [English](version-roadmap.md) | 中文
4
4
 
5
5
  > **状态:** Active — 版本与范围权威。
6
- > **版本范围:** 0.1 历史、已发布的 0.2 线、已发布的 0.3.0 GUI 重构线与 0.3.1 收敛发布线。
7
- > **基准:** 2026-11-13;`0.2.2`、`0.3.0` 已发布;`0.3.1` 为已发布的 GUI 收敛补丁;`0.3.2` 为当前无障碍/证据候选;`0.4.0` 为下一功能线。
6
+ > **版本范围:** 0.1 历史、已发布的 0.2 线、已发布的 0.3.0/0.3.1/0.3.2 线,以及已发布的 0.3.3。
7
+ > **基准:** 2026-11-23;`0.2.2`、`0.3.0` 已发布;`0.3.1` 为已发布的 GUI 收敛补丁;`0.3.2` 已于 2026-11-16 发布;`0.3.3` 为已实现的结构化草案/语言跟随候选;`0.4.0` 为下一功能线。
8
8
  > **权威:** 中文版本为 scope 的 normative。
9
9
  > **替代/被替代:** 无 / 无
10
10
 
@@ -51,7 +51,8 @@ rc.5 修复了与产品承诺冲突的审阅正确性问题:此前历史草案
51
51
  - `0.2.1` 是 `0.2.0` 之后的兼容补丁:可编辑消息提案、更清晰的诊断/排版、owner-only 有界恢复缓存。不改变
52
52
  `recordSchemaVersion` 2 或模型工具面;`dsh_charter_archives_v1` 是有界派生物缓存,不是第二正本。
53
53
  - `0.3.1` 已发布:保持零 record/Remote/prompt 变化;`0.4.0` 才允许 relation proposal 与 schema v3。
54
- - `0.3.2` 为当前无障碍/证据收敛补丁:不改 record/Remote/prompt,不合并/发布直到人工验收完成。
54
+ - `0.3.2` 已于 2026-11-16 发布;不改 record/Remote/prompt,人工 AT/Desktop 证据作为公开已知缺口。
55
+ - `0.3.3` 为已本地实现的结构化草案与自动语言跟随候选:语义保全切分、重复折叠、稳定 ref、可选宿主模型 zh/en 归一;未发布,发布前需人工验收。
55
56
  - `0.1.0-rc.6` 仍是更早的公开版本。历史 rc tag/release 不可变。
56
57
 
57
58
  ## 3. 为什么是 rc.5
@@ -158,7 +159,7 @@ rc.5 定位为 **审阅正确性、交互安全与稳定版证据收敛**。不
158
159
 
159
160
  rc.4 已把 `0.2.1-rc.3` 和 `rc.4` 加入 `engines.dsh` 与 peer ranges。rc.5 补齐遗漏的 `dsh.compatibility.dshReleases`,提交可重复的版本矩阵 runner,并重新验证当时声明的七版本证据。
160
161
 
161
- 最低版 `0.1.7-rc.2`、旧 resource 边界 `0.2.0-rc.2`、当前推荐版 `0.2.2-rc.3` 必须完成完整矩阵;其余已支持版本至少运行 typecheck、build、tests 和 smoke。
162
+ 最低版 `0.1.7-rc.2`、旧 resource 边界 `0.2.0-rc.2`、当前推荐版 `0.2.2-rc.5` 必须完成完整矩阵;其余已支持版本至少运行 typecheck、build、tests 和 smoke。
162
163
 
163
164
  未经验证不再扩大范围。若上游新版本破坏公开契约,应记录未支持,而不是在 rc.5 维护第二套实现。
164
165
 
@@ -542,4 +543,5 @@ DSH ABI/wire。本分支另做仅声明层的兼容维护:rc.2 的 engines/pee
542
543
  | `0.2.0` | 四个产品支柱、record v2、查询面、三中心 UI、架构重构 | 通用记忆、执行策略、任意 validator、无必要的新 domain |
543
544
  | `0.2.2` | 客户端依赖关系图形视图、§6.5 conflict 确认、预览 optional 字段 | 新 record schema/domain、新 Remote 方法、模型可见能力变更、图形独有能力 |
544
545
  | `0.3.1` | GUI 收敛补丁:依赖图审计、standing envelope 预警、本地 traffic checker;零 record/Remote/prompt 变化(已发布) | 新 record schema/domain、新 Remote/模型能力、DSH ABI/wire 变更 |
546
+ | `0.3.3` | 结构化草案抽取:`charter/bootstrapDraft` additive Remote、objective `clientRef`、折叠/oversized/ref;自动 zh/en 语言归一(`languageFollow` 可关,失败回退源语言) | record schema/domain、prompt 投影、模型工具面变更、破坏 legacy bootstrap/apply、无开关的无界模型调用 |
545
547
  | `0.4.0` | 既有交付物 relation proposal + record schema v3 + downgrade fence(待决策) | 未经 roadmap/设计修订直接实现、无 downgrade fence、无人工验收 |
@@ -1,6 +1,7 @@
1
1
  # dsh-charter 0.3.2
2
2
 
3
- > **Status:** Development candidate — accessibility/evidence gates pending.
3
+ > **Status:** Released 2026-11-16 — npm `latest`/`next` and GitHub Release `v0.3.2` published.
4
+ > Real VoiceOver/native Desktop evidence remains explicitly open as a known gap.
4
5
  > **Version scope:** `0.3.2`
5
6
  > **Baseline:** 2026-11-16
6
7
  > **Authority:** [version roadmap](../design/version-roadmap.zh.md); [verification](../verification.md) for evidence.
@@ -19,11 +20,11 @@ wire, prompt projection, or the model tool surface.
19
20
  roadmap and docs-index pending wording.
20
21
  - Eleven-version compatibility matrix including DSH `0.2.2-rc.3`.
21
22
 
22
- ## Local candidate
23
+ ## Published artifact
23
24
 
24
- - `dist/dsh-charter-0.3.2.tgz` SHA-256 `9ff018d9139a39a553abe46d9bc350200f41af6f5f5e9bee9db59d44bdcdb842`;
25
- exact-artifact package smoke and packed recovery smoke PASS. Root `SHA256SUMS` remains published 0.3.1 until
26
- the protected candidate flow produces the release bytes.
25
+ - `dsh-charter-0.3.2.tgz` SHA-256 `9dcb82ae34eaaeb6d266bb98f3e1f92f3a0798042ce3dc282abe9173ff79e056`;
26
+ candidate run `43851182655` at producer commit `2d8004e9…`; release commit `7ca51a62…`; tag/GitHub
27
+ Release `v0.3.2` public and immutable. Exact-artifact package smoke and packed recovery smoke PASS.
27
28
 
28
29
  ## Still-open manual gates
29
30
 
@@ -0,0 +1,32 @@
1
+ # dsh-charter 0.3.3
2
+
3
+ > **Status:** Released 2026-11-24 — npm `latest`/`next` and GitHub Release `v0.3.3` published.
4
+ > **Version scope:** `0.3.3`
5
+ > **Baseline:** 2026-11-23; latest published release `0.3.2` (SHA-256 `9dcb82ae…`).
6
+ > **Authority:** [version roadmap](../design/version-roadmap.zh.md); [extraction design](../design/charter-draft-extraction-v1.zh.md); [verification](../verification.md).
7
+
8
+ `0.3.3` improves the review-only compaction draft. It does not change the record schema, prompt projection,
9
+ `charter_read`/`charter_propose`, or the model write boundary.
10
+
11
+ ## Scope
12
+
13
+ - Semantic extraction: sentence-boundary-only splitting, oversized candidates kept whole and marked, explicit
14
+ truncation metadata.
15
+ - Duplicate folding: exact and conservative prefix duplicates become one representative with fold count and refs.
16
+ - Compatibility: thirteen declared DSH versions, including the current `0.2.2-rc.4`/`0.2.2-rc.5` releases; the local source matrix passes all thirteen.
17
+ - Automatic language following: when the draft language differs from the DSH UI locale (`zh`/`en`), the source
18
+ draft renders first and the Host performs bounded strict-JSON translation in the background. Slow/custom models
19
+ are split/retried per batch, partial successes are retained, and failures fall back to source text with a
20
+ visible notice; an optional dedicated provider/model can be configured.
21
+ - Additive `charter/bootstrapDraft` and structured `applyBootstrap` refs; legacy extraction/apply remains unchanged.
22
+
23
+ ## Known limits
24
+
25
+ - Translation requires a configured session model; without one the draft remains in the source language and the
26
+ Pane shows a fallback notice. Set `languageFollow: false` in the profile config to disable the automatic call;
27
+ deterministic extraction/folding still applies.
28
+ - Only sentence-level semantic splitting is deterministic; semantic aggregation/diff review remains future work.
29
+ - Large drafts translate in bounded batches with per-batch timeouts, one split retry, and partial merge; one slow/failed batch does not discard successful translations.
30
+ - An optional `languageFollowProvider`/`languageFollowModel` pair lets custom-API users send normalization to a known-fast model instead of the session default.
31
+ - The draft card renders the source-language extraction immediately; language normalization runs in a background request and replaces the draft only while it is pristine. `languageFollowTimeoutMs` bounds that background wait (default 60s).
32
+ - Published 2026-11-24. The C+1 checksum commit records the exact candidate tarball in the root `SHA256SUMS`.
@@ -4,7 +4,7 @@
4
4
  > **Version scope:** all release notes.
5
5
  > **Authority:** [version roadmap](../design/version-roadmap.md).
6
6
 
7
- The current development candidate is [0.3.2](0.3.2.md). The latest release is [0.3.1](0.3.1.md); [0.3.0](0.3.0.md) is the previous public release; [0.2.0](0.2.0.md) precedes it; [0.1.0-rc.6](0.1.0-rc.6.md) is the earlier recovery release.
7
+ The current release is [0.3.3](0.3.3.md). The latest release is [0.3.2](0.3.2.md). [0.3.1](0.3.1.md) is the previous public release; [0.3.0](0.3.0.md) precedes it; [0.2.0](0.2.0.md) precedes it; [0.1.0-rc.6](0.1.0-rc.6.md) is the earlier recovery release.
8
8
 
9
9
  Published release history is summarized in [CHANGELOG.md](../../CHANGELOG.md) and remains available through the
10
10
  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,13 @@ 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-13)
13
+ ## Current state (2026-11-24)
14
14
 
15
- - **Development candidate:** `0.3.2` — accessibility/evidence convergence; not pushed/tagged/published.
16
- - **Published:** `0.3.1` — npm `latest`/`next`, GitHub Release `v0.3.1`; exact artifact
17
- `dsh-charter-0.3.1.tgz`, SHA-256 `62fd230209dbf5c58aed09f0870775aa6d0d69feb4eff18aebf83f9803f28353`.
18
- - **Previous release:** `0.3.0` — GitHub Release `v0.3.0`.
15
+ - **Released:** `0.3.3` — structured draft extraction + non-blocking zh/en language following; npm `latest`/`next` and GitHub Release `v0.3.3` published 2026-11-24.
16
+ - **Published:** `0.3.2` — npm `latest`/`next`, GitHub Release `v0.3.2`; exact artifact
17
+ `dsh-charter-0.3.2.tgz`, SHA-256 `9dcb82ae34eaaeb6d266bb98f3e1f92f3a0798042ce3dc282abe9173ff79e056`.
18
+ - **Previous release:** `0.3.1` — GitHub Release `v0.3.1`.
19
+ - **Earlier release:** `0.3.0` — GitHub Release `v0.3.0`.
19
20
  - **Earlier release:** `0.2.1`.
20
21
  - **Post-release diagnostics:** real-model compaction and 512-item core performance both passed.
21
22
  - Do not manually publish or bypass the protected gates.