roadmap BUILT

598. A nightly bump restamps the icount floors when it proves it did not move them

Built 2026-09-26. (Number provisional: minted by the lane, to be confirmed at merge.) Promoted on 2026-09-26 from the proposal a-nightly-bump-restamps-the-floors-it-proves-it-did-not-move, which the lane lane/bump-baselines filed the same day on #1336 after being briefed to stop the daily toolchain bump needing a person. calef ruled on it the same day, and this lane built it.

The ruling

calef, 2026-09-26 UTC, on #1336: "Yes" to option 4 below. The bump workflow benchmarks the old and the new nightly on one runner. If every row moved less than 0.5% and the cumulative move since the last person-made save is less than 2%, it rewrites only the # toolchain: stamp and adds a # why: line with the measured moves. The floors never change. Otherwise the branch stays red with the table in the pull request body. The stamp now means "last proven valid for". The daily cadence stays.

This overturns part of the 2026-09-21 refusal: the part that required a person on every bump. The part it keeps is that no machine writes a floor number. The records of the refusal now cite this ruling: the script/lint comment and failure text, the toolchain-bump.yml header, script/toolchain-bump, notes/benchmarks.md and notes/benchmarks/icount-drift-and-provenance.md. Milestone 542 (gates that stopped meaning what they measure) lists the refusal as it stood when 542 was built, and is left as that history.

The problem, measured

Since the stamp check landed (commit 99f13dad, 2026-09-21), every bump that built has failed script/lint until someone ran script/bench --save on three ISAs on the branch: #1112, #1250, #1308, #1335. The branch is force-pushed daily, so a day the person misses loses the work. The save itself admits what it cannot say: each # why: line on those saves reads "this mixes the compiler with drift on main since the last save, not separated".

What #1335 (nightly-2026-09-26) showed, measured on patagonia on the bump branch:

Options, as proposed

  1. Status quo. A person re-records daily. Keeps the ruling. Loses: the daily person, and the save blesses whatever drift sat on main into the floor, which is milestone 415 (sub-tripwire drift accumulates across baseline saves) happening on a schedule.
  2. The bump workflow re-saves the floors in CI (the brief's suggestion). Refused on two counts. It is exactly what the 2026-09-21 ruling refuses: the floors would track the compiler, so a slower nightly could never be seen. And a CI save would record the floors on a host that reads up to 0.6% differently from the one every other save used, so each bump would swap instruments.
  3. Restamp only when the compiler term is zero. The workflow builds the tree twice (old pin, new pin) on one runner, and when every row is identical it rewrites # toolchain: and nothing else. Within the ruling, since no number moves and none could have. Loses: it would have handled only x86_64 today, so the person is still needed daily.
  4. Recommended: restamp when the compiler term is proven small, never re-save. Same A/B as option 3. If every row's compiler term is within ε and the cumulative term since the last person-made save stays under a cap, the workflow rewrites # toolchain: and appends a # why: line with the A/B's largest moves. The numbers never change. Otherwise it leaves the branch red as today, with the A/B table in the pull request body so the person starts from the decomposition. Proposed ε 0.5% per row, cap 2% (a fifth of the 10% tripwire). Today's bump passes both.
  5. Bump weekly. Composes with any of the above; cuts the person's cost sevenfold and makes each compiler step larger. The drift workflow still reports upstream breakage daily.

Option 4 keeps what the refusal protects. A slower nightly still uses up tripwire headroom against numbers a person recorded, and the cap stops a run of small moves from being absorbed. Each restamp records the term it proved, so the file tells a reader what the compiler has cost since the last save. It also stops the bump from blessing main's drift, which options 1 and 2 both do.

The seven questions

  1. Considered: the five options above.
  2. In the tree: metrics/weekly already commits generated numbers from a bot (#1333), with a person merging. Milestone 300 did the same A/B by hand.
  3. Prior art: not researched. From memory only, rust-lang's rustc-perf compares one benchmark across two compiler builds, which is option 3's A/B.
  4. Premise: true. Four consecutive bumps needed the person.
  5. Cost: CI's bench step runs all three ISAs in about a minute (#1335, 12:47 to 12:48 UTC). Option 4 adds a second toolchain build and a second bench run to the bump job, plus one cold QEMU build on its arm runner (CI's cache is keyed per arch, 10 to 20 minutes once). Not built, so not measured.
  6. Reversible: a workflow, an xtask bench restamp mode and a lint comment. No floor number is written by the machine, so reverting leaves nothing to undo. Nobody has acted on it.
  7. Equal cost: still option 4 over option 1, because it separates the compiler from main's drift and today's saves say they cannot.

What was built

Proof

Dispatched on branches, never on main, with target set to a nightly other than the pin (nightly-2026-09-26), so each run A/Bs a real pair of compilers on the same tree:

No run restamped all three legs at once, because both available pairs of nightlies really moved one row past the bound. So every leg has restamped and refused on a real runner, but the job's all-green path (verdict restamped, then propose committing the floors) first runs whole on main.

The first run's refusal was not staged. riscv64 ipc_rtt sits in one of two modes about 0.6% apart (170436 and 171469 on the same commit, depending on the checkout path and the host), and the floor's recorded value has wandered by that much across saves since 2026-09-21. A nightly that flips it keeps the bump red for a person, which is the bound doing what calef set it to do. It is recorded below rather than tuned away.

BUGS

Follow-on

Index row

The daily nightly bump carries the icount floors across by itself when an A/B of the two compilers on one runner proves no row moved 0.5% (2% cumulative). It rewrites only the stamp and never a number, so a slower nightly still spends tripwire headroom against numbers a person read. Before this, a person re-recorded three floors on every bump.