roadmap BUILT

924. A survivor on a pull request's own lines cannot merge untriaged

This is the rule milestone 479 (a blocking --in-diff mutation gate) refused. calef ruled on 2026-10-15 (UTC), asked whether 479 reopens as this rule: "Reopen, build it." The number 924 is provisional until the merge queue lands it.

calef raised it on 2026-10-15 (UTC), after the census of 2026-10-14 found 43 untriaged survivors on lines that pull requests merged in the two days since the previous census: "Nobody will read an advisory check. Maybe survivors can't merge untriaged."

The rule

A pull request fails a required check when cargo mutants --in-diff finds a surviving mutant on a line the pull request changed and notes/project-metrics/mutation-triage.csv has no equivalent or gap row for it. The author clears the check in the same pull request, with a test that kills the mutant or a row that says why it cannot be killed.

A killed row never clears a survivor. The gate has just run the mutant and seen it live, so a killed row for it is false, and the gate says so. That makes the commonest wrong verdict unrepresentable: notes/mutation-testing.md records that a verdict reached by reading is wrong about one time in ten, and a verdict reached by running is not.

What answers 479's objections

479 rests on two objections from milestone 438 (would a diff-scoped mutation check have caught the 55, and what would it cost). Its evidence condition is met.

Design

Reuse: cargo mutants --in-diff, which finds the mutants on a diff's lines, and helpers/mutation_inflow.py's key and ledger match, both taken. What is written is the glue between them and the required check.

What it does not catch

The repository split, and why it does not replace this

Splitting crates into their own repositories does not change what is caught. Each mutant runs only its own package's tests: every one of the 2,333 tested mutants in shard 0 of the 2026-10-14 census ran cargo test with exactly one --package. A crate's survivors are the same in any repository.

What the split changes is cost. The census grows with the whole tree, about 12 runner-hours across eight shards today. Split, each repository runs a census of its own code, on its own runners, only when that code changes. That is horizontal scaling of the census. The per-pull-request gate already scales with the change rather than the tree, so it needs no split to scale.

The split does not come soon for these crates. notes/the-first-split.md puts the contract crates last, because they churn most. The 43 survivors include filesystem_protocol, abi and socket_protocol. The first cut, milestone 756 (process-tools, core-tools and disk-tools are the first code to leave this repository), moves programs in components, which generate no mutants at all. So the gate is needed here first, and building it as a reusable piece is what lets each repository the split creates start with it.

Done means

The worth, 2026-10-15 (UTC): built

.github/workflows/mutation-gate.yml runs on every pull request and on the merge queue's entries; helpers/mutation_diff_gate.py holds the verdict, and its selftest runs in script/lint beside the inflow check's. The run goes through script/mutation, so the pinned tool, -j 2 and the per-mutant memory ceiling carry over. The diff is the checkout's first parent on both events, which is the pull request's own changes: the block refuses the queue's base_sha range, which changes as other pull requests land. A required check that never reports on merge_group stalls the queue, so the gate runs there and takes the diff the block means. The cap and the timeout rule each have a selftest case, an incomplete run is exit 2 rather than a pass, and the kill of it: a killed row never clears a survivor the gate has watched live. The gate is reusable; a repository split out of this one inherits it with one uses: line and its own ledger.

The key and the ledger reader are imported from helpers/mutation_inflow.py, so the gate and the weekly census cannot disagree about what a row covers, and the rename chain applies to both sides.

The key and the ledger reader are imported from helpers/mutation_inflow.py, so the gate and the weekly census cannot disagree about what a row covers, and the rename chain applies to both sides.

Follow-on

Index row

The mutation gate on the diff, switched on. A surviving mutant on a line a pull request changed blocks the merge until a test kills it or a ledger row says why it cannot be killed, so new code stops arriving less tested than the census allows. It covers the host crates only; the kernel and components generate no mutants.