Repository navigation
Fail closed when the delegated check runner changes during execution - #1381
Conversation
Architecture-Review: unchanged; the coordinator still owns receipt production and readiness still verifies the fingerprint. Co-Authored-By: Codex <noreply@openai.com>
There was a problem hiding this comment.
loopzero primary review by claude on d74665f11b4d74887e06a54c0fc1970c29819804, 18.2s: 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.
| print(f"check result discarded: checked HEAD {report.head}, current HEAD {current_head}", | ||
| file=sys.stderr) | ||
| return 1 | ||
| if report.ok and report.settings_sha256 is None: |
There was a problem hiding this comment.
suggestion: Recovery wording duplicates the receipt predicate's message
The new branch checks report.settings_sha256 is None, which is the same test as the receipt predicate in _check_report_problem (cli.py:326). That keeps check and ready consistent: a passing report with no fingerprint is now rejected by both. The problem is that the rerun instructions now live in two places with different wording: here, and the recovery string at cli.py:324. If one is edited later, operators could get conflicting advice. Smallest fix: move the instruction into a shared constant, or build this message from _check_report_problem's output. The branch also fires when the fingerprint was already None before any stage ran (the runner executable couldn't be read at start). The message covers that case because it says "stable, readable", so this is not a bug.
…eceipt-replacement
|
@Mergifyio queue |
✅ Merged into
|
|
No description provided. |
Fail closed when the delegated check runner changes during execution
Context and goal
Closes #1282
Acceptance
Notes
Supersedes #1287. This branch carries forward the reviewed fix onto current main for a fresh primary review.
Keep coordinator-owned fingerprints and the existing receipt predicate. Preserve stage exit codes so an operator can distinguish execution success from receipt verification.
The offline runner-retarget regression failed before the fix because check returned 0.
Base
Base: 72f087e
Validation
Recorded for
9ebba64bbf9duv 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