Repository navigation
boot smoke: a compute-floor breach re-measures both arms in one shared window - #112
Merged
Merged
Conversation
…d window The ratio gate's two arms ran about a minute apart — the workflow's sibling step times the on-system reference, the boot smoke times the tebako arm later — and on a contended instance a drift between the two windows reads exactly like a slow build: the reference's median-of-25 recovers its window's floor while the tebako arm's best-of-3 lands whole in a bad one. Run 45834307812's macos-arm64 3.14.7 leg red at 1.665 on the v2.8.85 publish; the same commit's sibling leg read 1.434 four hours earlier on a sibling instance, and the leg's own artifact re-measures at parity ~1.0 against the on-system reference on a quiet machine — a window-noise false red, not a build property. On a first-window breach the gate now re-times BOTH arms back-to-back in one shared window — the reference under the sibling step's own resolved, generation-asserted interpreter (handed down as COMPUTE_FLOOR_REFERENCE_PYTHON), the tebako arm re-booted with the identical probe — and gates on the re-probe's ratio: a slow BUILD breaches in every window; window noise clears. The re-probe never downgrades the gate: unavailable (the container legs cannot reach the host's interpreter) or malformed, the first-window verdict stands, named. The warn tier and the flags arm are unchanged.
ronaldtse
temporarily deployed
to
windows-signing
November 26, 2026 16:56 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 26, 2026 16:56 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 26, 2026 16:56 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 26, 2026 16:56 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 26, 2026 16:56 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 26, 2026 16:56 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 26, 2026 16:56 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 26, 2026 16:56 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 26, 2026 16:56 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 26, 2026 16:56 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 26, 2026 16:56 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 26, 2026 16:56 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 26, 2026 16:56 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 26, 2026 16:56 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 26, 2026 16:56 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 26, 2026 16:56 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 26, 2026 16:56 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 26, 2026 16:56 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 26, 2026 16:56 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 26, 2026 16:56 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 26, 2026 16:56 — with
GitHub Actions
Inactive
ronaldtse
had a problem deploying
to
windows-signing
November 26, 2026 16:56 — with
GitHub Actions
Error
ronaldtse
temporarily deployed
to
windows-signing
November 26, 2026 16:56 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 26, 2026 16:56 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 26, 2026 16:56 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 26, 2026 16:56 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 26, 2026 16:56 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 26, 2026 16:56 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 26, 2026 16:56 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 26, 2026 16:56 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 26, 2026 16:56 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 26, 2026 16:56 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 26, 2026 16:56 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 26, 2026 16:56 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 26, 2026 22:45 — with
GitHub Actions
Inactive
ronaldtse
marked this pull request as ready for review
November 26, 2026 22:45
Merged
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this is
The compute-floor ratio gate's answer to publish run 45834307812's false red (the
macos-arm64 / 3.14.7 leg, 2026-11-26): on a first-window breach, the boot smoke now
re-measures both arms back-to-back in one shared window and gates on that ratio.
A slow BUILD breaches in every window; a contended instance's window drift clears.
The re-probe never downgrades the gate — unavailable or malformed, the first-window
verdict stands, named.
The strike, and why it is a false red
Attempt 1 of the publish (leg
macos / 3.14.7 / macos-arm64, imagemacos-15-arm6420261118.0550.1):
The evidence it is window noise, not a build property:
instances. Nothing about the artifact changed; the fleet was mid-rollout
(20261118.0550.1 and 20261123.0558.1 both in rotation that afternoon) and the pool's
per-instance reference reads that day spread 0.073–0.125 s.
fib(35) best 1.106 s (four rounds, ±0.8%) against a local on-system reference
fib(30) median 0.099 s — per-call ratio 1.007. The published v0.3.5 exe reads
1.286 s on the same machine: the v2.8.85 exe is faster than what is currently
released, not slower.
leg vs 0.090 on the previous day's green leg on the same image version, identical
python.org 3.14.7 universal2 -O3 identity on every leg. The numerator moved.
time.perf_counteraround the loop):boot/mount/driver never enter the measurement, so the v2.8.83→v2.8.85 link-unit
roll is structurally incapable of taxing the loop. The ceval tail-dup arm
(
-mllvm -tail-dup-pred-size=1000, gh-158283) probed present on the red leg —and 1.551 s is not the merge-defect class (~3.2–3.6 s) anyway.
The rerun (attempt 2) never reached the gate: the leg was never acquired by a
hosted runner (GitHub's annotation: capacity constraints on macOS arm64), cancelled
after 19 minutes with zero steps and no archived log; the publish twin then correctly
refused the marker-less artifact. There is no second ratio to extract — the only gate
measurement is attempt 1's.
The gate's flaw this exposes
The two arms are measured ~a minute apart (the sibling step, then the boot smoke)
with asymmetric statistics — the reference's median-of-25 recovers its own window's
floor, while the tebako arm's best-of-3 lands whole in a bad window. On a contended,
mid-rollout pool that asymmetry manufactures a breach on a healthy exe. The probe's
own header already names the discriminating principle: a per-call gap that survives
a stable window is a build difference. This PR makes the gate test exactly that.
The change
tools/boot_smoke(compute-floor scenario): on breach, re-run the reference probe(
tools/compute_reference_probe.py, unmodified) underCOMPUTE_FLOOR_REFERENCE_PYTHON, then re-boot the tebako arm's identical probe —one shared window, verdict on the re-probe's ratio. The interpreter must be
executable and the probe output well-formed (median present,
nmatching thehanded-down
COMPUTE_FLOOR_REFERENCE_N); anything else is a named note and thefirst-window verdict stands (fail-closed preserved). Warn tier and the
flags arm unchanged.
.github/workflows/_build-platform.yml: the reference step exports its resolved,generation-asserted interpreter as
ref_python; the macOS and windows boot-smokesteps receive it as
COMPUTE_FLOOR_REFERENCE_PYTHON. The container legsdeliberately do not — the host's interpreter is not executable inside the
container, so they keep the first-window verdict.
Local verification (this machine, Apple silicon)
Rigged breach (
COMPUTE_FLOOR_REFERENCE_SECONDS=0.010, ~10x ratio) against the redleg's actual artifact:
the same-window re-probe — reference fib(30) median 0.100s … per-call ratio 1.001→the breach does not survive the same-window re-probe→green;
the first-window verdict standsnote →FAIL, exit 143 (unchanged fail-closed behavior);
COMPUTE_FLOOR_MODE=warn→ unchanged warn-tier output.ruby -c, YAML parse, and the probe'sast.parseall clean.Draft only — no merge, no publish. The red publish (v0.3.6-next roll on v2.8.85) is
safe to re-dispatch on the current fleet; this PR is what keeps the next contended
instance from re-striking it.