You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: budget-stopped review items with findings are reused on resume #2087
Anthropic-compatible local stub (claude-test). The stub makes the budget stop deterministic.
Bug Description
A review group can reach its token or round budget and return a confirmed finding without completing the review. The file with the finding is written as coverage.completed and as a review_item_done checkpoint. In the single-file case the manifest becomes complete. Resuming the same input can then reuse the unfinished file. An Action that consumes this manifest can also advance its cross-push checkpoint.
Steps to Reproduce
In a temporary Git repository, create two commits with a reviewable change to one Go file, a.go. Point OCR at an Anthropic-compatible stub.
Have the stub report more than 100,000 input tokens on the first main-task response without completing the task. In the final submission round, return one code_comment for a.go without calling task_done(DONE).
Run the following command and record the session_id.
Inspect manifest.terminal_state and manifest.coverage in the JSON output, then repeat the command with --resume <session-id>. The first run reports complete and lists a.go in coverage.completed, even though the final submission never completed the task. The unfinished item can be reused on resume.
Expected Behavior
Keep the finding in the result and in ocr session comments --json <session-id>. Record the file under coverage.failed with classification budget, mark the run partial, and keep exit code 0. Resume should send a.go back to the model. A final submission that does call task_done(DONE) should remain reusable.
Additional Context
Related to the verified-checkpoint resume contract in #786. This report concerns a false completion record at a budget stop.
AI/LLM disclosure: OpenAI Codex (GPT-6) assisted with reproducing the issue and drafting this report. The reproduction used the deterministic claude-test stub described above.
Activity