Task
Fix the retry boundary in retry.py, then run the local tests to verify the change.
Standalone run report
Scripted demo · real local tools · no model callFollow the changes. Inspect the checks. Keep the evidence.
Source: verified.jsonl
Scripted demo · no model call
Fix the retry boundary in retry.py, then run the local tests to verify the change.
Fixed the retry boundary. All four unittest checks passed.
stderr:
F...
======================================================================
FAIL: test_exhausted_budget_is_rejected (test_retry.RetryBoundaryTests.test_exhausted_budget_is_rejected)
----------------------------------------------------------------------
Traceback (most recent call last):
File "[local path][local path]", line 14, in test_exhausted_budget_is_rejected
self.assertFalse(should_retry(3, 3))
AssertionError: True is not false
----------------------------------------------------------------------
Ran 4 tests in 0.001s
FAILED (failures=1)
returncode: 1def should_retry(attempt: int, max_attempts: int) -> bool:
"""Return whether another attempt fits within the configured limit."""
return attempt <= max_attempts
Recorded replacement arguments, not a full repository diff. Check the tool receipt to see whether the edit was applied.
--- before excerpt+++ after excerpt@@ -1 +1 @@-attempt <= max_attempts+attempt < max_attempts
已按内容替换 retry.py 的 1 处(23 -> 22 字符)。
[编辑后] 第 1-3 行(共 3 行):
1 | def should_retry(attempt: int, max_attempts: int) -> bool:
2 | """Return whether another attempt fits within the configured limit."""
> 3 | return attempt < max_attemptsstderr: .... ---------------------------------------------------------------------- Ran 4 tests in 0.000s OK returncode: 0
<finished>