742. Every test is falsified as routine
Asked for by calef on 2026-10-04 (UTC), for fatal risk 3 (the tests do not test anything). (Number provisional until the merge queue lands it; title and slug are drafts.)
In brief: Recent escapes were tests and gates that could not fail: a confinement test that
passed vacuously on two cores (#1547, #1551), and timetable's ten falsification records gone
stale when d0b1ff821 dropped mod proofs; (#1554). The aim is that a test which cannot fail is
caught by a mechanism, not by somebody remembering to check.
What the measurement found
The census, per kind of test, is notes/falsification-coverage.md. The finding that decided what to build: the replays existed and their verdicts went nowhere.
- The per-pull-request replay in verify.yml was not a required check. 4 of the last 60 merged pull
requests merged with it red, all four from the one real
timetabledefect, none a flake. - The weekly sweep was
continue-on-error. Its 2026-09-28 run found a stale record and reported success. - A swish-check record could not be replayed at all (row 31, from milestone 673 (the confinement table lists the unvouched child)).
Built
verify (Kani proofs)now requiresre-falsify the harnesses this change can reachto succeed or skip. Rung 2. No ruleset change, following milestones 587 and 589. Measured over 10 merge-group runs, it lengthened the critical path once, by about four minutes.- The weekly sweep's run fails when the sweep has a survivor, a stale record or no verdict, after the summary publishes.
script/falsificationssweeps a record above a function inxtask/src/swish_check.rswithscript/swish-check --arch <a>, red only when swish-check's FAILED report names the patch'sLine:(field name provisional). The one existing record, row 31's, carriesLine: installed/unvouchedand a block aboveswish_check_boot. In CI (run 37171273807) it went red on aarch64 in 35.3 s on that line, and the sweep's other 187 records stayed clean.- A host
#[test]carrying a block is swept bycargo test -p <pkg> --test <file> <name> --exact(or--lib), weekly and per pull request, since a replay is seconds. #1596's fourpagingrecords replayed red this way, 3.6 s for the four.
BUGS
- A kernel or swish-check record is replayed weekly only, so it can rot between Mondays. Recorded in
script/falsifications' header. - One swish-check record at most, until ยง134 (a harness carries a machine-replayable falsification record)'s path can spell a line: proposal
a-swish-check-line-has-a-falsification-path(an architect's call). - New kernel tests owed no record; milestone 749 (a new confinement test carries a falsification
record) closed that for
system_tests/src/user/. - Host unit tests are opt-in: a record is swept, and nothing asks a test to carry one. Mutation testing stays their main mechanism, and notes/falsification-coverage.md says what that misses.
Follow-on
- Milestone 775. Milestone 775 (a swish-check line has a falsification path).
design/roadmap/0775-a-swish-check-line-has-a-falsification-path.md. - Milestone 749. A new confinement test carries a falsification record, approved by calef 2026-10-04.
- Recorded. The weekly-only replay of kernel and swish-check records, in
script/falsifications' BUGS and notes/falsification-coverage.md's.
Index row
The falsification replays existed and reported into nothing: the per-PR replay was not required (4 of
60 merged pull requests merged red) and the weekly sweep reported success over a stale record. Made
the per-PR replay part of verify (Kani proofs), made the weekly run go red on a finding, and made a
swish-check record replayable by the sweep.