roadmap BUILT

1038. The fuzz host replays a red CI shard

Raised by lane/fuzz-setup-reconcile on 2026-11-03 (UTC), while it reconciled the fuzz setup page with what is built. Milestone 1012 (a short sharded in-guest fuzz pass in CI) names this work as a follow-on.

Reuse: the window logic of helpers/continuous-fuzz.sh, whose --ci-range SHARD gives a shard's driver and first seed. Also the follower's public reads and green rule in helpers/fuzz-follow-main.py, the held-findings store, and the filer in nifeos/fuzz-host, which files every held log as a private advisory. Nothing here writes a new transport, and the filer needs no change.

Background

The fuzz-guests job runs one short in-guest pass per shard on every merge group, on a hosted runner, as a non-required check. When a shard goes red, the job prints a pointer: the commit, the shard number and the line "the fuzz host replays this shard". It prints no seed and no guest text, because a hosted log is public.

What it builds

The host side of that pointer, in three parts, each the one milestone 1012 lists. The note continuous-host.md describes them for an operator.

  1. The host learns that a shard went red. helpers/fuzz-red-shards.py look, run by the supervisor at most every 15 minutes, lists the failed merge-queue runs of ci.yml from the public API with no credential. It keeps a run once the clone's HEAD contains its commit, and reads that run's jobs. A job named fuzz-guests (shard N, ...) that ended failure or timed_out is a red shard. The commit must also be green by the follower's rule. It never reads the job's log.
  2. The host replays the shard. The supervisor stops its slots, re-executes itself and replays the queue before any slot starts. helpers/continuous-fuzz.sh --replay COMMIT SHARD RED_AT checks the commit out in work/replay/, takes the driver and first seed from that commit's own --ci-range SHARD, and sweeps the range once with the window's own build.
  3. A reproduction becomes a held finding. Its log moves to the held directory under the name the filer reads, and its windows.tsv row carries the held class and the slot replay. The filer files a private advisory from them unchanged. The journal line holds a finding id and an age alone. A clean replay keeps no log and writes a replay-clean row.

The three questions, answered

Each answer is a two-way choice, decided by the maintainer, provisional; reversing costs one pull request. Each adds no credential, token, secret or permission anywhere.

How it is checked

helpers/fuzz-replay-selftest.sh and python3 -I helpers/fuzz-red-shards.py --selftest, run by script/lint. A replay against a stand-in guest that prints a replay: line leaves one held log and one held row, and prints a finding id and an age alone. A clean guest leaves no log. The replay refuses a commit the clone does not contain before anything builds. Against stubs of the run and job listings, none of these starts a replay: a green, skipped or cancelled shard, a red job of another name, and a red shard on another commit or on a commit main never took. End to end, the supervisor replays the queue before its first slot.

BUGS

Follow-on

Status

Built. The host runs it once its clone follows main past it. A held reproduction waits for the filer, which exists and which no one has installed yet (finishing-the-setup.md).

Index row

The fuzz host polls the public run listings, replays each red fuzz-guests shard from main with the shard's own seed range, and holds any reproduction for the filer.