Files
Jyotisha/docs/tasks/FIX-reading-timeout-1.md
T
ClaudeandClaude Opus 5.5 7a1987d572
Independent Staging Quality Gate / validate-python (pull_request) Successful in 7m34s
Independent Staging Quality Gate / validate-frontend (pull_request) Successful in 7m38s
Independent Staging Quality Gate / publish (pull_request) Skipped
docs(tasks): #240 fix brief 1 — keep first draft when retry is skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXozsiu43ob7B8UZCmDM
2026-11-13 13:36:48 +08:00

22 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# #240 验收退回:跳过重试时不能把第一稿丢掉(2026-11-13,Claude)
验收对象 `a56bf391`。其余部分都通过,不要改动:240 秒超时、租期预算、日志、验收工具共用同一个常量。
## 问题
`writeReportReading` 判断剩余时间不够、跳过第二次时,执行了 `best = null; break;`。如果第一次已经写出一稿,只是有节被拦,这一稿也会被扔掉,报告最后没有解读。原意只是「不再重试」,不是「放弃已有的一稿」。
## 改法
- 跳过重试时**保留 `best`**。只有第一次本身失败(超时、模型失败),才按无解读流程走。
- `reading_retry_skipped_deadline` 照旧写进日志和 attempts 记录,作为「为什么没有第二次」的说明。如果最终有一稿可用,它不能覆盖 `unavailable` 的含义;在 PROGRESS 里写明最终返回的字段。
## 验收
新增单测(假时钟):
- 第一次写出一稿,有 1 节被拦,剩余时间不够 → 返回第一稿,attempts 里有 skip 记录;
- 第一次超时,剩余时间不够 → 无解读,原因为 `model_timeout`,同时记录 skip。
原有测试全部通过。