Give the merge gate something that compiles the code (#134)
56064c8b2bf501880e290d1edb4a20802d608aab
Oliver Jan Krylow <oliver@bugabinga.net> ·
SSH signature · not checked
- Parent 1: 86589ba37e2a
## What forced this `merge-gate` reads labels and nothing else, and the ruleset requires only `merge-gate`. A PR carrying `reviewed` + `security-cleared` merges whether or not the workspace builds — both labels are LLM judgements on a diff. #17 calls this critical and has been unfixable since it was filed, because there was no CI check to require. #131 landing real product code makes it live rather than theoretical. ## The call Publish the stable check-run context #17 needs. The job holds no build logic: PROJECT-INVARIANTS §1 makes cargo the sole build system and xtask its only extension point, so CI installs toolchains and calls `cargo run -p xtask -- check` — the same command a developer runs. Whatever that command gates, CI gates, and the two cannot drift because there is one definition. ## What we deliberately didn't do Did not touch `.github/rulesets/main.json`. Requiring the new context is #17's step and the ruleset is applied from repository settings, so a file edit here would look like the fix without being it. Did not skip `pup` to save the pinned-nightly install. A job that quietly dropped it would report the §2.2 architecture rules as enforced while they were not — the same class of failure as the label-only gate this PR exists to close, one level up. Did not add a `cargo deny` gate either: §2.3 names it, but there is no `deny.toml`, and writing one means deciding acceptable licences and advisories, which is a policy call rather than CI wiring. Its absence is recorded in the workflow header rather than left silent. ## Evidence `cargo run -p xtask -- check` is six gates — fmt, clippy, arch, pup, test, doc (`xtask/src/main.rs`, `CHECK_GATES`). Five pass locally on the current tree; `pup` fails here only because `cargo-pup` is not installed in this container, which is exactly what the workflow's pinned-nightly step provides. The cargo-pup recipe — `nightly-2026-01-22` with `rust-src`, `rustc-dev`, `llvm-tools-preview` — is the combination p34 established in `.github/workflows/ci-prototype.yml`, not a guess. YAML parses; the workflow itself is unexercised until this merges, since a workflow only runs from the default branch. ## Surface touched `.github/workflows/ci.yml`, new — one job, six steps. Nothing else. ## If this ages badly Delete the file; nothing references it and the gate returns to labels-only. If the cold-run cost proves too high, the tool cache is keyed on the lockfile and the pinned-nightly date, so loosening that key is the first lever — dropping a gate is not. Closes #91