Repository navigation
Description
Context
The merge gate reads the check:pr receipt in a PR body. It refuses a candidate only for a local check whose outcome is skipped, timed-out or preempted, and only when exact-head hosted proof did not cover that check's categories.
A check recorded as failed is never examined:
UNPROVENlists only the three not-run outcomes (UNPROVEN,scripts/check-receipt.ts:22).uncoveredChecksfilters onUNPROVEN(uncoveredChecks,scripts/check-receipt.ts:118-122).receiptRefusaltherefore returnsnullfor a receipt whose only problem is a failed check (receiptRefusal,scripts/check-receipt.ts:125-132).integrate.tsapplies that result atscripts/integrate.ts:207.
The decision record describes the merge gate in the same terms. It maps "each skipped, timed-out or preempted check" to hosted categories and says nothing about failed (local check receipts). The same section notes that the receipt's head "need not equal the candidate's". So a PR can carry a receipt recording a failed local check from any earlier head, and the gate accepts it. Hosted proof then decides alone.
Observed 2026-11-10 on PR #3805. Its body carried a receipt for head 775cccb07 with "affected fast invariants" "outcome":"failed". The receipt was replaced with a passing one before confirmation, so nothing merged on it. Nothing in the gate would have stopped it.
Observed at main 96ba8a7c8.
Scope
Decided 2026-11-10: option B. A failed outcome joins UNPROVEN. The options considered:
- A. Refuse. Any
failedcheck refuses the candidate, whatever hosted proof covered. The remedy is to fix the failure and reruncheck:pr. - B. Treat it as unproven.
failedjoinsUNPROVEN: it is accepted only when exact-head hosted proof ran one of its categories successfully. The existing post-merge exemption applies. An unmapped failed check can never be covered. - C. Keep it. Document that
failedis deliberately ignored and that hosted proof alone decides.
Chosen: B. It matches how the gate already treats the other non-passing outcomes and the rule that the receipt head need not match the candidate. A later commit may have fixed the failure, and B lets exact-head hosted proof show that. A, by contrast, would force a local rerun even when hosted proof already ran the category green.
Out of scope
- Comparing the receipt head with the candidate head. The decision record makes that deliberate.
- Changing what
check:prruns or how it records outcomes. - Changing the hosted proof categories or the post-merge exemption.
Acceptance criteria
scripts/check-receipt.tsaddsfailedtoUNPROVEN. A failed check is accepted only when exact-head hosted proof ran one of its categories successfully, or when all of its categories are post-merge. A failed check with no mapped category always refuses.- The refusal text in
receiptRefusalno longer says every listed check was "not run". It names a failed check as failed. - The local check receipts section of
docs/decisions/ci-utility.mdlistsfailedwith the other non-passing outcomes, in the same change. tests/check-receipt.test.tscases show: (1) a receipt whose only problem is a failed check, with no covering exact-head category, is refused; (2) the same receipt is accepted when exact-head proof covers its category; (3) a failed unmapped check is refused. Case (1) fails on the current tree first.
Verification
bun run test tests/check-receipt.test.ts tests/integration-command.test.ts and bun run check:pr --base origin/main. Also run a mutation that removes the new rule, with the named case failing.
Contract impact
None. Repository CI tooling only. No package, CLI --json or MCP surface changes.
2026-11-10: the maintainer chose option B. Scope and acceptance criteria now follow B only.
Activity
schlessera commentedon Nov 10, 2026
Decision (maintainer, 2026-11-10): option B. Treat
failedas unproven.failedjoinsUNPROVENinscripts/check-receipt.ts. A failed local check passes the merge gate only when exact-head hosted proof ran one of its categories successfully. The existing post-merge exemption applies.check:pr.ci-utility.mdlocal-check-receipts section states the rule in the same change. No separate decision record is needed, because the ruling amends that existing section.The body's acceptance criteria now follow B.