roadmap BUILT

286. One enumeration of the checks that gate a pull request

script/gates is retired. script/ci-build carries one table of every check a pull request must pass, with a tier saying whether a developer waits for it. With no arguments it runs that tier, cheapest first. With names it runs exactly those, which is how .github/workflows/ci.yml fans them into parallel jobs. The tier names and what "no arguments" means are provisional pending calef: milestone 440, design/roadmap/0440-what-no-arguments-means.md, states the options, their costs and the recommendation.

The defect, and how it was already failing

The set was written down twice. script/gates ran six checks locally, serial, cheapest first; ci.yml ran its own set as parallel jobs plus everything gates deliberately omitted. Nothing compared them, and the tell that this was rung four rather than a design is that ci.yml carried three separate prose comments explaining why a given check was not in script/gates.

Six places described the local set on 2026-09-13. Four of them were wrong, and every one had been correct when it was written:

where said true since
.github/workflows/ci.yml script/icount "is not in script/test and it is not in script/gates" it had been in script/gates since milestone 62
notes/scripts.md, the gates row "script/fmt --check, script/lint, script/test, then script/test --hvf" image-permissions, icount and swish-check had joined
notes/scripts.md, the icount row "Not in test or gates" same
notes/instruction-clock.md "it does not run under script/test or script/gates" same
CONTRIBUTING.md "the five checks a PR must pass" there were six
.github/pull_request_template.md "runs all five", with a five-item checklist there were six, and the checklist omitted two

The two that were right were ci.yml's comments on stack-frame-check and image-permissions. A score of two out of six on a fact that one command prints on every run is what a hand-maintained second copy is worth.

The failure this prevents is the one script/gates was created for on 2026-08-03: the local wrapper passes and CI fails on a check the wrapper never heard of. Nothing made gates learn about a seventh required check, so the next one added to CI would have reproduced the original defect exactly.

What was built

One table in script/ci-build, name|tier|command, in cheapest-first order. Fifteen rows. Adding a check is adding a row: the no-argument path picks it up if the tier is local, --list prints it, and a CI job names it. Adding a job to ci.yml without a row here is the defect the table exists to prevent.

script/ci-build                 the local tier, in the table's order, cheapest first
script/ci-build <check>...      exactly those checks, in the order given
script/ci-build --list          the table: name, tier, command

Every job in ci.yml now names a check out of that table (script/ci-build fmt, script/ci-build lint, script/ci-build test swish-check, and so on down the file). No job name changed, which matters because branch protection matches on the display name and renaming one is a merge-queue change rather than a wording one.

script/gates is deleted rather than kept as a wrapper. The wrapper was the cheap option and it was refused on calef's ruling, 2026-09-13: "We shouldn't keep a thin wrapper to avoid making the changes." Keeping it would have been an argument from implementation cost, which this tree treats as the weakest argument available, and it would have left two names for one thing plus an unratified name on script/names --unratified that nobody intended to rule. The script/ count went 55 to 54 and the names census 207 to 206, 39 unratified to 38.

The hvf check survives as a row, with its probe, its four host conditions and its loud skip intact. It is local and has no CI job, because GitHub's hosted macOS arm64 runners are virtual machines with no nested virtualization.

Bootstrapping became explicit. script/ci-build provisions on its no-argument path only, since that is the command a person runs on a cold checkout. A named check runs exactly what it names, because the caller naming one check is a CI job whose own steps installed what it needs. Without that split, script/ci-build fmt would apt-install QEMU onto the rustfmt runner. The test job gained an explicit script/bootstrap step, which is the shape the bench and cpu matrix jobs already had.

What the three ci.yml comments became

Asked directly, because it was the point of the milestone. The membership half is now enforced by construction and the reason half is still prose, and the second half cannot be mechanized: "it builds the kernel test binary twice, which is more than a developer will wait for" is a judgment about a person, not a fact about a build.

What changed is where the prose lives. All three explanations moved into script/ci-build, in a block directly under the table, one line per ci row. A comment there cannot claim a membership the code contradicts, because the tag beside it is the membership. The icount comment could say "not in the local set" while the script ran it; its replacement cannot, because the word local in that row is what the no-argument path reads.

ci.yml keeps one sentence per affected job pointing at the table, and the icount job's comment now records that it asserted the opposite for a month.

BUGS

Follow-on

Index row

The gating set was written down twice, in script/gates and in .github/workflows/ci.yml, with nothing comparing them; ci.yml carried three prose comments explaining why a check was not in the other list. Six places described the local set and four were wrong, each having been correct when written. script/gates is retired rather than kept as a wrapper (calef: a wrapper to avoid making the changes is an argument from implementation cost, and it leaves two names for one thing). script/ci-build now carries one table of name, tier and command, cheapest first: no arguments runs the local tier, names run exactly those, and every CI job names one out of it. Tier names and the no-argument default are provisional pending calef.