将 process_reservation_attend_window 中"锁定期内:优先处理锁定的预约" 独立块(51 行)抽到 process_lock_period helper。逻辑: - 在 reservations 中找与 focus_until 对应的预约(误差 ≤5 秒) - 找不到 → 视为锁定失效,清除 focus_until_ts_ref,返回 0.0 - 找到但不在队头 → 移到队头,返回原 focus_until - 已在队头 → 不动,返回原 focus_until attend_window.py: 1352 → 1314 行 (-38) attend_window_helpers.py: 143 → 213 行 验证: - pytest 1013 passed - compile OK Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>