Repository navigation
Conversation
Co-Authored-By: Codex <noreply@openai.com>
There was a problem hiding this comment.
loopzero primary review by claude on bcf882e44c12fd8c361a4cbb96349c3265ad30ff, 31.6s: approve (0 critical, 0 important, 3 suggestion)
Settings per native call (launch configuration and CLI claims, not backend attestation):
- Call 1: requested model claude-opus-5-5 (effort medium); CLI-reported model claude-opus-5-5 (effort unknown); configured model claude-opus-5-5 (effort medium)
Native Claude output is retained in the restricted local review receipt.
| if report.head != current_head: | ||
| return current_head | ||
| saved = _load_report(wt) if checkpoint else None | ||
| if (saved is not None and saved.ok and not saved.dirty and saved.head == report.head |
There was a problem hiding this comment.
suggestion: Guard treats any same-head/same-settings pass as authoritative, even if its check list differs
The checks list is not part of settings_fingerprint; the fingerprint only covers execution settings and inputs. Suppose checks.commands changes but the settings do not, at a head that already has a clean pass under the old list. _check_report_problem rejects that old pass for readiness because the command tuple differs. Even so, every checkpoint from the new run is dropped. If the new run is interrupted, its stage progress is lost. Readiness stays correct, so the only cost is reuse. Smallest fix: also require tuple(r.command for r in saved.results) to equal the checkpoint's leading command list, for example by comparing against report.results[:len(saved.results)] commands. Alternatively, pass the configured checks into _save_report and reuse _check_report_problem, so 'what counts as a pass' is not defined in a second place.
| assert "Manual validation evidence." in draft | ||
|
|
||
|
|
||
| def test_late_checkpoint_preserves_completed_pass(wt, head): |
There was a problem hiding this comment.
suggestion: Regression drives the internal helper instead of an actual interrupted overlapping run
The test calls sandbox._checkpoint_success and _save_report by hand. That proves the guard behaves as intended, but nothing covers the cmd_check wiring (checkpoint=True at cli.py:605) or the interruption path, where the final _save_report is never reached. That path is what the acceptance criteria describe. Consider a test that stubs sandbox.run_checks and calls its checkpoint callback after a pass has been saved, then raises (for example KeyboardInterrupt). This would catch a regression where the keyword is dropped from the cmd_check lambda.
| validation. Runners cannot select stages or mint receipts. Stage admission | ||
| for reuse. A checkpoint cannot replace a clean pass for the same head and | ||
| settings or satisfy readiness before final worktree validation. Completed | ||
| failures still replace passes. Runners cannot select stages or mint receipts. Stage admission |
There was a problem hiding this comment.
suggestion: Unwrapped long line in reflowed paragraph
The edited paragraph leaves 'failures still replace passes. Runners cannot select stages or mint receipts. Stage admission' on one line, much longer than the surrounding wrap width. Reflow the paragraph to match.
Architecture-Review: unchanged; same settings and commands retain the current pass. Co-Authored-By: Codex <noreply@openai.com>
|
Superseded by #1415. The revised checkpoint guard also compares the check command list. The delta reviewer refused the change after a base merge, so the replacement can receive a fresh review while this branch retains its reviewed history. |
Closes #1368
A checkpoint from an overlapping check keeps the clean passing receipt for the same head and settings. The existing worktree lock covers the comparison and write. Checkpoints still save reusable stages when no pass exists, and completed failures still replace passes.
The offline regression fails without the guard and passes with it. The full slotted
loopzero checkpassed onbcf882e44c12fd8c361a4cbb96349c3265ad30ff.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Review