Repository navigation
Persist observed check failures before final validation - #1426
Conversation
Architecture-Review: document which completed receipts a checkpoint may replace. Co-Authored-By: Codex <noreply@openai.com>
Co-Authored-By: Codex <noreply@openai.com>
Co-Authored-By: Codex <noreply@openai.com>
Keep the passing checkpoint guard for the intermediate marker, and publish a failed stage early only when replacing an existing receipt. Architecture-Review: unchanged in scope; the merged guide documents failure checkpoint replacement and final validation for a pass. Co-Authored-By: Codex <noreply@openai.com>
There was a problem hiding this comment.
loopzero primary review by claude on 6f4151ae4d97e52de74dee1218c7f7d7986a4739, 28.8s: approve (0 critical, 0 important, 2 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.
| payload["settings_sha256"] = report.settings_sha256 | ||
| def preserve_pass() -> bool: | ||
| def preserve_checkpoint() -> bool: | ||
| if report.results[-1] is not sandbox.INCOMPLETE_CHECK: |
There was a problem hiding this comment.
suggestion: Checkpoint kind is detected by object identity with the INCOMPLETE_CHECK sentinel
preserve_checkpoint tells a success checkpoint from a failure checkpoint with report.results[-1] is not sandbox.INCOMPLETE_CHECK. This works today because _checkpoint_stage and the updated test both pass the module-level singleton. It breaks if any caller builds an equal CheckResult(INCOMPLETE_CHECK_COMMAND, 1, 0.0, ""), which is exactly how the pre-change test built it. That checkpoint would then be treated as negative evidence and overwrite a matching completed pass, which reintroduces the #1368 regression without any visible error. Smallest fix: compare report.results[-1].command == sandbox.INCOMPLETE_CHECK_COMMAND, matching what _check_report_problem already does at cli.py:385.
| def preserve_pass() -> bool: | ||
| def preserve_checkpoint() -> bool: | ||
| if report.results[-1] is not sandbox.INCOMPLETE_CHECK: | ||
| return not worktree.local_state_files(wt, CHECKS_FILE.name)[0] |
There was a problem hiding this comment.
suggestion: A failure checkpoint is skipped when no receipt exists; this rule is implicit
For a failed stage, preserve_checkpoint returns not local_state_files(...)[0], so the early write only happens when a receipt already exists. Without a receipt, ready refuses anyway, so this is safe. Still, the condition is non-obvious, and the ARCHITECTURE.md wording ("replaces an existing receipt immediately") is the only explanation. A short comment at this branch, or a mention in the docstring, would stop a future reader from treating it as a bug and 'fixing' it to always write or never write.
|
Parked after the full slotted check and Claude primary approval on |
Co-Authored-By: Codex <noreply@openai.com>
…ted-check-failure
There was a problem hiding this comment.
loopzero delta review by claude on c886a60681f9b7779e6720a9a9ec8bfc4b922c4f, 24.7s: approve (0 critical, 0 important, 1 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.
| @@ -545,10 +545,11 @@ the authoritative `checks.json` receipt. Checks lock the task state directory | |||
| through execution and receipt publication. A waiter can reuse a newly published | |||
| passing receipt when HEAD, settings and declared inputs match. Writers recheck | |||
There was a problem hiding this comment.
suggestion: Docs no longer say a checkpoint cannot satisfy readiness
The resolved paragraph drops main's sentence that a checkpoint cannot "satisfy readiness before final worktree validation". It keeps "Final worktree validation is required before publishing a pass." The behaviour has not changed: _checkpoint_stage (sandbox.py:183) still appends INCOMPLETE_CHECK, and _check_report_problem (cli.py:384) rejects that marker. But a reader now has to infer that an intermediate checkpoint never satisfies readiness. Optional fix: add a short clause such as "An intermediate checkpoint is never a pass."
|
@Mergifyio queue |
✅ Merged into
|
|
No description provided. |
Preserve an observed check failure on interruption
Context and goal
ready.Closes #1416
Acceptance
readyrefuses the receipt.Notes
Base
main @ 8761b03
Base: 8761b03
Validation
Recorded for
c886a60681f9uv run --group dev ruff check src tests: exit 0uv run --group dev tach check: exit 0uv run --python 3.14 python scripts/check_architecture_docs.py: exit 0scripts/size_budget.sh: exit 0uv run --group dev pytest -q: exit 0Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Review