
CodexandClaude Opus 4.7
398133bbb0
refactor(reservation): 抽 process_reservation_attend_window 中"if ok 整段后处理"块到 process_seek_success
将 188 行的"seek 成功后整段后处理"块抽到 helper:
- 写"回退操作成功"日志
- 检查 reservation_back_verify_enabled,启用时:
- wait_after_seek_and_verify 等待
- 调用 validate_back_to_reservation
- 校验失败 → handle_verify_failure_retry_via_mapping
- 校验通过 → 写日志
- setup_lock_period_and_log_success
返回值约定:
- True:处理成功(含校验通过 OR 校验失败重试成功)
- False:校验失败且重试失败
attend_window.py: 574 → 405 行 (-169)
attend_window_helpers.py: 804 → 994 行
attend_window.py 跌破 500 行(1437 → 405,本会话累计削减 1032 行 = -72%)
process_reservation_attend_window 函数从 1218 → 376 行
验证:
- pytest 1013 passed
- compile OK
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-22 13:05:49 +08:00
..
2026-05-21 12:13:31 +08:00
2026-05-21 18:21:40 +08:00
2026-05-22 13:05:49 +08:00
2026-01-02 23:57:03 +08:00
2026-05-21 18:21:40 +08:00
2026-05-21 17:03:55 +08:00
2026-01-16 16:16:22 +08:00
2026-05-21 11:52:28 +08:00