Repository navigation
Conversation
Co-Authored-By: Codex <noreply@openai.com>
Co-Authored-By: Codex <noreply@openai.com>
Architecture-Review: unchanged; this clean base update preserves both the receipt-first behavior and the current review rules.
Co-Authored-By: Codex <noreply@openai.com>
Architecture-Review: unchanged; the readiness short circuit retains branch detail, pushed head, and merge-authority verification. Co-Authored-By: Codex <noreply@openai.com>
Co-Authored-By: Codex <noreply@openai.com>
Architecture-Review: unchanged; this base update preserves bounded PR discovery, receipt validation and merge cleanup.
Co-Authored-By: Codex <noreply@openai.com>
There was a problem hiding this comment.
loopzero primary review by codex on bff5500dc1a4a4aa169de70ce395eff3fdc5fee5, 55.9s: request_changes (0 critical, 2 important, 1 suggestion)
Same-family fallback: independent reviewers failed: claude: not authenticated. Cross-family review is preferred.
Settings per native call (launch configuration and CLI claims, not backend attestation):
- Call 1: requested model gpt-6.2-astra (effort medium); CLI-reported model gpt-6.2-astra (effort medium); configured model gpt-6.2-astra (effort medium)
Raw reviewer output
Native Codex transcript retained in the restricted local review receipt; public evidence is publisher-derived, not backend attestation. Exact raw SHA256: f6cff728542e646c0894fba80748992cf1d4ef406c47e3a5275433c659b5641c
| return github.Readiness(False, (hold,)) | ||
| if reviews is None: | ||
| reviews = _pr_reviews(config.repo, pr.number) | ||
| report = _load_report(wt) |
There was a problem hiding this comment.
important: Revalidate the receipt before acting on passing remote gates
If another loopzero check replaces a passing receipt with a failed or incomplete one while review and CI reads are in flight, _readiness still returns success using the earlier receipt. ready can mark the PR ready, and merge --wait can merge or request Mergify admission. The poll precheck also misses this when the gates turn green on that same poll. Keep the early rejection and revalidate the current receipt before accepting readiness or performing a gated write. Add a replay that invalidates the receipt during a remote gate read.
| readiness = initial | ||
| initial = None | ||
| readiness, initial = initial, None | ||
| elif problem := _check_report_problem(_load_report(wt), wt, config, pr.head_sha): |
There was a problem hiding this comment.
important: Check the current workflow before diagnosing a receipt during a wait
The poll precheck compares the receipt with the configuration captured when the wait started. If the workflow changes and a fresh check passes under the new plan during the sleep, both ready --wait and merge --wait reject that valid receipt and tell the user to run checks again. The early return bypasses _verify_wait_snapshot, which already distinguishes a needed check from a needed command retry. Reload and compare the workflow before the local receipt precheck, while keeping both local checks ahead of the next PR read.
| reviews = _pr_reviews(config.repo, pr.number) | ||
| report = _load_report(wt) | ||
| receipt_problem = _check_report_problem(report, wt, config, head) | ||
| if receipt_problem and reviews is None: |
There was a problem hiding this comment.
suggestion: Make full status diagnostics an explicit choice
Supplying preloaded reviews now also disables the receipt short-circuit. A readiness caller that starts caching reviews would silently resume CI and Mergify lookups for invalid receipts. Give status an explicit diagnostics option so review caching can change independently of gate behavior.
Check the local receipt before fetching remote readiness evidence
Context and goal
Closes #1405
Acceptance
Notes
Base
main @ 40fab65
Base: 40fab65
Validation
Recorded for
bff5500dc1a4uv 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 1Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Review