roadmap BUILT

238. Two scheduled checks have never once succeeded, and one of them is a fatal risk's refresh

Minted the same day by calef, from milestone 232's (audit every check against two questions: does anything run it, and does it block) findings, on the argument that fixing the mechanism beats rewording the risk it holds up. (Number provisional until the merge queue lands it.)

It was minted with no gate and needed none: both symptoms were already recorded and both repairs live in this tree.

In brief. Milestone 232's audit found two scheduled workflows that have never produced a result, and their consequences are not the same size.

The mutation workflow, which is holding up a fatal risk

Four scheduled runs, four failures, zero reports: 2026-08-10, -17, -24 and -31, verified against the API rather than inferred.

design/fatal-risks/README.md risk 3 (the tests do not test anything, and the quality is illusory) reads MEASURED, green, on 92.4% of viable mutants killed, and closes:

The remaining experiment is cheap: re-run it and compare against .cargo/mutants-baseline.txt. No new milestone; milestone 85 already owns it and the weekly workflow already publishes the report.

That last clause is false and has been since the workflow was written. It is also what makes a stale number acceptable, because it says a refresh is arriving on its own. The 92.4% is from 2026-08-03 and 2,529 commits have landed since.

The symptom is described and deliberately not diagnosed by the lane that found it, because the step logs have aged out of gh. On the most recent run all four shards died together about fourteen minutes in with The runner has received a shutdown signal, which is the shape of a run being reclaimed rather than a defect in a shard. On the three before it, shard 4 died in about twenty seconds every time while its siblings ran for half an hour. Whether that is a memory kill, an eviction, or something in script/mutation --shard 4/4 is the first thing to find out, and the workflow's own comment already says so.

The Miri check, which has been red for three weeks on nothing

every_character_survives in crates/documentation/tests/render.rs reads CARGO_MANIFEST_DIR at run time and Miri does not forward the environment, so the test fails there and passes under cargo test. It is not undefined behaviour and never was. The fix is one flag. Milestone 232's lane did not apply it because an audit repairs nothing.

Why they belong together

Both are the same defect one level up from the code: a check that runs on a schedule, fails, and tells nobody. Nothing in script/gates or CI turns red when a scheduled workflow has been failing for a month, so the only thing standing between a dead cadence and a stale claim is somebody happening to look. Milestone 232 was that somebody, once.

What it needs

BUGS

What was found and built, 2026-09-03

The shard-4 question had a boring answer and an interesting corollary. cargo mutants --shard k/n requires k < n, so --shard 4/4 was rejected as an invalid argument in zero seconds on every run: not a memory kill, not an eviction, an off-by-one in the matrix. The corollary is the part worth keeping: shards are zero-indexed, so --shard 0/4 was never run, and with the default slice sharding that quarter was an alphabetical block (dtb, calendar, compositor, cred, elf, capability). script/mutation had reported the failure correctly and loudly the whole time, to a scheduled job nothing reads.

The other deaths are a single mutant exhausting the machine's memory in twenty seconds, and getting there took one wrong answer worth recording. A resource sampler was added to the job, because a shutdown signal kills the runner agent and every if: always() step with it, so no autopsy can run afterwards. At a 60-second interval it said, unambiguously, that memory was not the problem: shard 0 died 57 seconds after a sample showing 14.7 GB available of 16 and 107 GB of disk, and two siblings looked the same. That was written up as runner eviction. At a 10-second interval the same failure is a straight line into the wall:

20:35:31  mem_used_mb=1352   mem_avail_mb=14595
20:35:41  mem_used_mb=6335   mem_avail_mb=9611
20:35:51  mem_used_mb=15763  mem_avail_mb=183
20:36:16  The runner has received a shutdown signal

A mutant turns a bound into an unbounded allocation, the machine goes, and the runner agent goes with it. The per-mutant timeout cannot catch this. It is auto-derived at 28 to 51 seconds on this tree, and 16 GB is gone well inside that, so a mutant that allocates rather than spins is a hang the clock never gets to name. A sampler whose interval is longer than the event it watches for reports innocence, which is worse than reporting nothing.

So -j 2 is not the constraint, since one runaway takes 14 GB by itself. The workflow now shards eight ways with --sharding round-robin, and that is damage control rather than a repair. It does not stop a shard dying, it makes a lost shard cost an eighth of every crate instead of all of a few, so a partial report is still a report about every crate. Nothing is measured less: the same 9,857 mutants are attempted. The repair is a bound on what one mutant may allocate, and it is handed off rather than guessed at, below.

A number came back, the workflow published its first report ever, and the number is lower. The eight-way round-robin run had one shard survive, and because round-robin samples every crate rather than an alphabetical block, that one shard is a uniform one-eighth of the whole corpus across all 60 crates. 83.4% of viable mutants killed, against the baseline's 92.4% from 2026-08-03. (The earlier four-way run's surviving shard read 74.4%, but it was an alphabetical slice of mostly post-baseline crates and is not comparable to anything; both are tabulated in notes/mutation-testing.md.)

The baseline-era crates are broadly stable or better (gpt 55/1, elf 12/0, calendar 46/0, grant_plan 67/2). Three crates added since carry nearly all of the loss: system_initializer at 0 caught and 25 missed in the sample and 0 of 191 in the slice run, uefi_loader at 15%, and manual at 52%.

The Miri fix was not one flag, and each layer hid the next because cargo miri test stops at the first failure. -Zmiri-env-forward=CARGO_MANIFEST_DIR works and lands on a second wall, read_dir against Miri's isolation; behind that sat five board_console tests doing host I/O, invisible until the first two were cleared. Clearing all of it needs -Zmiri-disable-isolation for the whole workspace run, and the corpus test costs 0.74 seconds natively against more than 12 minutes under Miri, unfinished when killed. Both crates have no dependencies and no unsafe, so there is nothing there for Miri to judge. The tests gate themselves out under cfg(miri), which is the convention gpt, glob, calendar, cred and ntp_proto already use, with the reasoning at each test.

And a fourth defect, found only because the third was fixed. The report against the baseline job failed even when a shard survived: download-artifact gives each artifact its own subdirectory when it fetches several and unpacks a lone artifact flat, so shards/mutants-shard-* matched nothing exactly in the case the job's if: always() exists to serve. It cost the one real report this milestone's first run produced.

Something to notice next time: script/cadence-check. It reports any scheduled workflow whose last successful scheduled run is more than 15 days old, and a workflow too young to have fired is excused by its own creation date. It is deliberately not a scheduled workflow, which is the whole design and the reason milestone 232 declined to build it: a cron that watches crons dies the way its subjects die. Delivery is helpers/trunk-health.sh, which already runs under launchd and could not have caught this on its own, structurally: its trunk check filters runs to main's current tip, and a weekly run matches that tip only until the next merge. It is not in script/lint or script/gates, for script/audits' recorded reason.

BUGS, after the work

Handoff: the exhaustive sweeps in compositor under Miri

Proposed milestone (provisional, number is the integrator's). Sample compositor's per-pixel sweeps under cfg(miri), the way glob, ntp_proto, calendar and gpt already sample theirs.

Clearing the three reported failures exposed a fifth layer that no report had ever mentioned, because a job that dies in two minutes never reaches the code that takes an hour. compositor has six full-screen sweeps, each 317,856 pixels, several doing per-pixel work heavy enough to matter (a Vec allocated per pixel in every_screen_pixel_distinguishes_its_owner, a call into expected_screen_pixel in others). One of them, a_damaged_composite_leaves_the_rest_of_the_screen_alone, was measured at over 44 minutes without finishing; it is strided here, with a pinned sample, and dropped to 57 seconds. The other five are not, and they are why the run still does not fit its budget. With that one fixed, a later run sat in the_checksum_catches_a_wrong_surface alone for more than 40 minutes, and the whole rest of the workspace outside this crate takes well under a minute to reach. compositor is the entire remaining cost of script/undefined-behavior-check.

Each needs its own judgment rather than one blanket stride, which is why this is a lane and not a line in this milestone. the_scene_exercises_overlap_clipping_and_background asserts counts of visible pixels per window, so a stride changes the numbers it checks, and every_screen_pixel_distinguishes_its_owner is making a completeness claim that a naive sample weakens. The strided one shows the shape to copy: never skip the rows that carry the claim, and pin the sample size so a stride that stopped covering the screen cannot pass quietly.

Do not answer this by excluding the crate. That was considered and refused. compositor has no unsafe today, which is the argument that retired xtask and board_console from the run, but it is central system logic under active development, and an excluded crate is one where a future unsafe block is silently uncovered. A bench tool and the build system can carry that; the compositor should not.

Handoff: bound what one mutant may allocate

Proposed milestone (provisional, number is the integrator's). A mutant that allocates without bound should be a killed mutant, not a killed machine.

The mechanism is small and the choice between three shapes is the work:

Whichever wins, more gets measured, not less: a runaway mutant that today destroys a shard's entire remaining run would instead be recorded as one caught mutant, and the other 1,200 in that shard would finish.

This was not built here because each attempt costs a twenty-minute CI round trip and the failure mode of a bad cap is a build that breaks confusingly rather than loudly. That is the wrong thing to ship under a feedback loop that slow.

Follow-on

Index row

four mutation runs, four failures, zero reports, while fatal risk 3 rests partly on the claim that the weekly workflow publishes one