
xcsandClaude Opus 5
1c6978818c
fix(w05): S2 测试的 stepOf 类型保护改用泛型 Extract,补 {} 兜底的第二个坑
评审判定 PlanStep 标注太松:.fields 落在契约的开放索引签名上,拼写保护回来了但
14 处方括号取值(含 S1 既有三条)全部失去编译期拼写检查。换成泛型 Extract 版
(case-model.ts 四处 item 补 as const 配合),按查的 item 精确narrow 到那一步自己的形状。
Extract 单独应用后 tsc 仍报 13 个错——根因是 brief 给的 7 处测试断言用 `: {}` 兜底,
而"有形对象类型 | {}"在 TS 里恒被吸收成裸 {}(与 stepOf 精不精确无关,5 个隔离复现验证过),
S1 既有断言用的是 `: undefined` 从未踩过。补齐 `: {}` → `: undefined` + `?.` 与两处
for-of 数组补 as const 后,拼错实验复现 TS2551 + "Did you mean" 建议,改回后零错误。
debt.md 补一条:analyze 出参靠 requiredWhen 兜底的字段漏填时,全 auto 步没有就近恢复点
(ADR-014 通用特性,不是 W05 的病)。
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LKMZDwMbyKzjw6Hembwvet
2026-08-29 16:18:46 +08:00
..
2026-08-29 07:42:27 +08:00
2026-08-02 13:41:44 +08:00
2026-08-03 12:28:31 +08:00
2026-08-27 11:44:35 +08:00
2026-08-27 23:20:15 +08:00
2026-08-29 02:56:39 +08:00
2026-08-24 10:26:45 +08:00
2026-08-27 23:20:15 +08:00
2026-08-29 16:15:10 +08:00
2026-08-28 12:38:26 +08:00
2026-08-26 13:29:36 +08:00
2026-08-28 10:50:16 +08:00
2026-08-26 03:47:48 +08:00
2026-08-27 23:20:15 +08:00
2026-08-29 16:18:46 +08:00
2026-08-26 13:29:36 +08:00
2026-08-29 06:21:26 +08:00
2026-08-26 14:34:19 +08:00
2026-07-27 22:36:58 +08:00
2026-08-26 10:55:58 +08:00
2026-08-26 02:38:12 +08:00
2026-08-26 14:34:19 +08:00
2026-08-27 00:10:28 +08:00
2026-08-26 13:29:36 +08:00
2026-08-03 12:28:31 +08:00
2026-08-29 08:42:06 +08:00
2026-08-28 10:47:33 +08:00
2026-08-26 13:29:36 +08:00
2026-08-28 01:13:07 +08:00
2026-08-26 14:34:19 +08:00