feat(rectification): server-written lines in the same warm voice (BUG-1258)
Independent Staging Quality Gate / validate (push) Successful in 13m22s
Independent Staging Quality Gate / publish (push) Successful in 3m42s

About 30 fixed rectification lines lose the receipt tone: no 「已记录。」
openings (收到 when the range holds, 好 when it moves), 麻烦 instead of 请,
时间 instead of 候选 in what the user reads, and no 「新建对话」 after
adoption. Numbers, clocks, ranges and the honesty boundaries are unchanged.
CHOICE_ACK_RE also recognises the new acknowledgements, so a model sentence
that repeats one is still dropped; the delivery guard matches the delivery
sentence by containment and does not depend on the opening.

Full suite 4973 / fail 24, identical to 61d6f248; build keeps / Static.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017eEAG8HD3mm8gsKXgk8uU8
This commit is contained in:
Jesse_Chen
2026-10-07 11:39:34 +08:00
co-authored by Claude Opus 5.5
parent 61d6f248e4
commit 6ec8efd5d2
28 changed files with 199 additions and 78 deletions
+14
View File
@@ -16837,4 +16837,18 @@
- 防复发:测试锁两版共用口吻头、开场 / 只读切片章节与长度、旧版整本发送。
- 相关记录:BUG-1255(普通对话口吻)、BUG-1256(普通对话提示词精简)、BUG-621(历史版本须可打开)。
- 未做:每轮强制第一步 `rectification-read-case`(一次额外的模型调用)——改流程,待产品给真实步耗时数据后另定;服务器写的固定文案(如「已记录。这题先不计分,换一件事问。」)口吻未改。
- 修复版本:staging `61d6f248`(2026-10-07 部署核对:health gitCommit=61d6f248;门禁 run 1756 一次通过)。真机未走,状态保持 fixed-pending-verify
## BUG-1258 | 生时校正服务器固定句口气生硬(「已记录。」回执、「请……」、内部词)
- 状态:fixed-pending-verify(分支 `codex/rectification-copy-voice-20261007`;真机前不标 resolved)
- 首次发现 / 最近更新:2026-10-07 / 2026-10-07
- 来源:BUG-1257 后产品要求把服务器写死的提示语也改成知心姐姐口吻;Claude 出 15 句样稿,产品认可后全量改。
- 影响面:`user-copy.ts`、`v9/choice-action.ts`、`v9/post-adopt-verdict.ts`、`v9/adopt-narration.ts`(及其旁白提示词里引用的同一句)、`v9/run-diagnostic.ts` 的重复文案、`rectification-chat-choice-run.ts` 兜底、`rectification-agentic-chat.tsx` 两句输入框提示。不改系统报错、写给模型的规则、题库与盘型说明、数字与诚实边界。
- 现象:选择题回执「已记录。这题先不计分,换一件事问。」「已记录你的选择。这是盘外核对,不会改候选分数。」等系统回执腔;「请再说一次」「请先到资料里改」;「候选」「交付代表性工作时间」等内部词;采用后叫人「新建对话」。
- 根因:固定句分轮加入,没有统一口吻规范;Agent 口吻改了,服务器句没跟上。
- 修复:约 30 处按 VOICE.md「生时校正服务器固定句」规则改写(收到 / 好、麻烦、时间、不提新建对话)。防重复相关:`turn-narration.ts` 的 `CHOICE_ACK_RE` 加入新回执说法(旧说法保留),模型重复服务器回执仍被丢弃;`delivery-turn-guard.ts` 是按交付句包含判断,不依赖回执开头,只改注释。「这次没有重新比较」开头保留(被检测)。
- 验证:改断言 12 个测试文件约 35 处(每处三栏注释);新增 `rectification-copy-voice-20261007.test.ts` 3 条(回执不以「已记录」开头、无「新建对话 / 请再说」、模型重复新回执被丢)。全量 4973 项 fail 24,与 `61d6f248` 逐条一致;tsc 0、lint 0 error;build `/` Static,首屏 gzip +26 B。
- 防复发:上述新测试;VOICE.md 新增本节规则与对照表。
- 相关记录:BUG-1257、BUG-1153 / BUG-1241(回执与交付句防重复,确认未受影响)、TASK-rectification-in-chat-step1-20261006 C8(同样不再叫人新建对话)。
- 修复版本:待发布