191. Whether the job mix reports the spread rather than the best, and whether REPEATS varies by sweep point
Raised 2026-09-19 by milestone 435 (forty-five milestones are gated on a decision nobody wrote down)'s slice-c lane, which found milestone 419 (tasks=4 needs more repeats, not more power cycles)'s
DECISION gate naming no section. Filed 2026-09-16 by the maintainer from the five-boot job-mix
session on radon, where the fourth and fifth boots each landed outside the range the first three had
established. (Section number provisional until the merge queue lands it.)
The ruling
calef, 2026-09-26 (about 01:30 UTC): "Yes, ratify §191 as shipped." What shipped is options 1
and 3 together. REPEATS is 21, one count for every sweep point. Each point's job-mix: line
reports ticks_min, ticks_median, ticks_max and jpm_median, and the median is the result.
Option 2, a per-point table of repeat counts, is refused, on the measured board time milestone 168
(a multi-tasking workload benchmark)'s lane gave: at 21 repeats the timed windows are about eleven seconds of a boot that takes minutes. The
code is crates/job_mix/src/lib.rs (REPEATS at line 465, the point line's doc at 246), built in
commit ab6ff0fa0 on 2026-09-19. Recorded 2026-09-26 by the decisions-hygiene lane.
The paragraph below, and the rest of this file, are the section as it stood before the ruling.
The tree now implements one of the options, and this section is still open. On 2026-09-19,
hours after this was written and in a different session, milestone 168's lane built options 1 and
3 together, a uniform REPEATS of 21 with the median reported between the minimum and the
maximum. It refused option 2 (a per-point table) on measured board time. That lane had the
change assigned in its brief and recorded it in milestone 168 rather than implying it, which is the
right thing to have done from inside a lane. It does not make this DECIDED. What is asked of
calef has changed shape rather than gone away: ratify what shipped, or overrule it, on a line
format two programs read and on how long every bench evening takes on every board. Milestone 419 is
BUILT and carries the same sentence.
What is being decided
Milestone 168's sweep reports the best of three repeats per sweep point. At tasks=4 the
underlying distribution is wide enough that the best of three is itself a coin flip. The decision is
what the instrument reports and how many samples it takes, and it is not a patch because the
job-mix: line is output two programs read.
Is the premise true
Checked 2026-09-19 in this worktree:
crates/job_mix/src/lib.rs:271still readspub const REPEATS: usize = 3;, one constant for the whole sweep, and line 276 still readspub const ECHO_SERVERS: usize = 2;.kernel/src/job_mix.rs:214printsjob-mix-repeat: tasks={tasks} repeat={repeat} ticks={ticks}, andxtask/src/main.rs:9061and9067parse thejob-mixfamily by prefix.- Milestone 168 is still
PARTIAL, and its status says in its own words that it does not turnBUILTuntiltasks=4has a number. It still does not have one.
(Dated note, 2026-09-26, decisions-hygiene lane.) The first bullet above is the tree before
commit ab6ff0fa0 (2026-09-19, "job_mix: every point is the median of 21"), the change this
section's opening paragraph already reports. crates/job_mix/src/lib.rs:465 now reads pub const REPEATS: usize = 21; with a compile-time assertion that it stays odd, and ECHO_SERVERS is at line
521. The bullets are kept as the premise the options were priced against, not as the current tree.
The measurement
Across five boots of an identical image the reported figure at tasks=4 ranged from 766,361 to
991,671 jobs per minute, a 29.4% spread. Boot 3's three repeats on their own spanned 132,148 to
181,408 ticks, which contains the whole boot-to-boot range.
The variance is within a boot, so power cycling does not reduce it. That is the finding that decides the shape of the fix: more boots buy nothing, more samples might.
tasks=4 is where ECHO_SERVERS = 2 first produces contention (2:1) with too few samples to
average it. That contention is deliberate and correct; what is missing is enough samples at the
point it bites.
Why the obvious fix is not the cheap one
The cost is not symmetric across sweep points. tasks=32 already takes about 930,000 ticks per
repeat and is stable at 2.7%; tripling its repeats buys nothing and lengthens every board session
noticeably. tasks=4 takes about 150,000 ticks and is the one that needs them.
So "raise REPEATS" is the wrong shape and "vary repeats by sweep point" is the right one, and that
turns one constant into a table, which is a different thing for a reader to hold and for the
transcript recognizer to parse.
What this tree already does in the analogous case, and where it does not apply
REPEATS' own doc states the rule this tree uses: the minimum is the least host-contended
sample and everything above it is somebody else's load. That reasoning is sound for a
micro-benchmark on a busy host, which is what §25's icount work and script/bench are.
It is questionable for a workload whose whole subject is contention between its own tasks. There, the spread is the signal rather than noise to be minimized away, and reporting only the best discards it. This tree's standing posture on benchmarks is that an honest tie or loss recorded plainly is worth more than an overclaimed win, and a best-of-three on a 29.4% distribution is neither honest nor a win.
The options
| what | cost | |
|---|---|---|
| 1 | raise REPEATS uniformly, to 5 or 7 |
simplest, one constant, no format change. Costs the most board time and spends it mostly where it is not needed |
| 2 | a per-sweep-point repeat table | cheap in board time and targets the problem. Costs a constant becoming a table, and the recognizer has to stop assuming a fixed count |
| 3 | keep three repeats and report the spread rather than the best: min, max and median on the line | no extra board time at all, and it makes the instability visible rather than averaged away. Costs a wire-format change to the job-mix: line |
| 4 | do nothing and record tasks=4 as a range |
free, honest, and leaves milestone 168 PARTIAL for a reason nobody can close without one of the above |
Recommendation
3, with 4 as the interim, and the reason is the one this section opened with. The job mix exists to measure what contention costs, and a report that keeps only the least-contended sample is answering a different question than the one §96 asked.
Option 3 is the most expensive on AGENTS.md's own test and that is why it is here rather than in a commit. It changes a line two programs read, which is the category that cannot be un-shipped, so it is calef's rather than a lane's. Until it is decided the honest thing is option 4, which is what milestone 168's block now does.
Option 2 should be refused if 3 is taken, rather than stacked on it. Reporting the spread makes the sample count legible in the output, so varying it per sweep point stops being a hidden fact and becomes one more column. That is a second format change for the same problem.
Would we still choose 3 if all four cost the same
Yes, and more clearly. 3 is the most expensive option on this list and is still the recommendation, so the argument does not rest on effort at any point.
How reversible, and who has acted on it
The REPEATS constant is reversible; the line is not. script/job-mix's rehearsal and
xtask/src/main.rs's parser both read the job-mix family by prefix, and board transcripts already
captured on radon and xenon carry the current spelling, so a format change re-means every transcript
in bench/ that a later reader compares against.
What is blocked until this is answered
Milestone 168 turning BUILT. Its own status line says it does not until a number exists, and
tasks=4 does not yet have one.