Skip to content

gate rollout: cf-import-contract joins the reusable quality gate#5

Merged
Antawari merged 1 commit into
mainfrom
rollout/import-contract-gate
Jun 11, 2026
Merged

gate rollout: cf-import-contract joins the reusable quality gate#5
Antawari merged 1 commit into
mainfrom
rollout/import-contract-gate

Conversation

@Antawari

Copy link
Copy Markdown
Contributor

What

Mounts the cf-import-contract step into the reusable quality-gate.yml — the consumer-facing battery — modeled exactly on the self-ci step: same command shape (cf-import-contract --root ., run from the consumer root), same battery position (after cf-exemptions, before the mypy ratchet), same typed-error semantics (exit 1 = violation verdict; exit 2 = the gate itself could not run — typed GateError on stderr, environment trouble is never a violation verdict).

This executes the fork deliberately left open in the gate's build PR (#2, "Open fork for the maintainer: mounting it into the reusable quality-gate.yml would immediately fail every consumer repo that has not yet committed a contract"). The maintainer has now ratified the rollout via ADR 0030; this PR is the execution.

test_gate_runs_full_battery_in_order re-anchors honestly: the pinned battery list now names cf-import-contract in its position. Diff is 10 lines across 2 files.

Blast radius — MERGE LAST

Merge LAST, after every mounted repo's contract PR — a consumer repo running this workflow without a committed import contract fails CONTRACT_MISSING from the moment its pin reaches this commit (and consumers that check out the kit unpinned at main are affected immediately on merge).

Known consumer defect (by description, flagged in the overnight burn's harvest): one consumer repo's caller checks out the kit at main rather than a pinned SHA, against the SHA-pin doctrine — that repo feels this gate the instant this PR merges, regardless of its own pin discipline. Heal its pin (or land its contract) before merging here.

Verification

Full self-ci battery green locally in a fresh venv (pip install -e '.[dev]'):
ruff check · ruff format --check · cf-sticky-check check . · cf-file-budget · cf-recursion-check · cf-exemptions · cf-import-contract --root . → exit 0 (the kit's own contract holds) · mypy src (0 issues) · pytest 310 passed.

Anta merges; nothing auto-merges.

🤖 Generated with Claude Code

…rge LAST)

Executes the rollout deliberately deferred in the gate's build PR ("Open
fork for the maintainer") and since ratified by the maintainer via ADR
0030: the reusable quality-gate.yml now runs cf-import-contract --root .
against the consumer tree, in the same battery position as self-ci
(after cf-exemptions, before the mypy ratchet) and with the same typed
semantics — exit 1 is a violation verdict (CONTRACT_MISSING for a repo
with no committed contract), exit 2 is the gate itself failing to run
(typed GateError; environment trouble is never a violation verdict).

test_gate_runs_full_battery_in_order re-anchors honestly: the pinned
battery now names cf-import-contract in its position.

Blast radius: a consumer repo running this workflow without a committed
import contract fails CONTRACT_MISSING from the moment its pin reaches
this commit — this change merges LAST, after every mounted repo's
contract PR.

Full self-ci battery green locally in a fresh venv (ruff check + format,
sticky, file-budget, recursion, exemptions, import-contract exit 0,
mypy 0 issues, 310 passed).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Antawari Antawari merged commit fea32bd into main Jun 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant