Repository navigation
Commit 92b03b9
test(governor): the signs that a hold measured the machine mean the same on every system, and the last hold is judged by the loop's shape
An independent review of 4a2f8ca found two gaps in when a hold is measured again, and nothing
that let a governor that under-holds pass.
- A runner just under the controller's line could still fail at once. The macOS CI leg of
25 Oct 2026 had a second half 0.943 busy on average, so its readings at or over 0.95 were a
coin flip, and the old rule (an idle share within the band) had been dropped. A third sign now
counts: the machine sat idle for no more than the hold fell short by, plus the band, so too little
was there to take. It takes in the old rule, and it is measured over the half.
- Two full readings meant different things: macOS published 9 to 15 readings over a half here,
Linux and Windows publish fifty, one at every sample. Full readings now count only when they
are also one in five of those published, about the share of the half the controller held its
duty for. Wakeups are counted over the samples, fifty on every system, and one full reading
and one late wakeup are a blip of each kind: the kinds are not added up.
The loop no longer relies on an attempt counter to judge the last hold: the holds that may be
measured again run first, and the last one is held to the band after the loop, whatever the
machine did. The wait for room needs room at every reading for 2 s and at three readings at the
least, on macOS's cadence and on Linux's and Windows'. A failure names only the signs it saw,
says "may have waited" of the controller's ticks, and says so when the OS published no reading.
Checked: 25 hand mutants of the signs, their thresholds, the wait, the messages and the report
field, each red and restored by SHA-256, among them a controller capped at a quarter of its duty,
which failed at its first hold on the band with the machine 0.53 idle. On this Mac: a quiet run
passed at once; under ten busy loops for the first 8 s, 2 of 2 were measured again and passed at
0.19; under ten busy loops throughout, the last hold failed on the band, naming the full readings
and the missing room.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 4a2f8ca commit 92b03b9
1 file changed
Lines changed: 313 additions & 121 deletions
0 commit comments