Skip to content

boot smoke: a compute-floor breach re-measures both arms in one shared window - #112

Merged
ronaldtse merged 1 commit into
mainfrom
boot-smoke/compute-floor-same-window-reprobe
Nov 26, 2026
Merged

ronaldtse merged 1 commit into
mainfrom
boot-smoke/compute-floor-same-window-reprobe

Conversation

@ronaldtse

Copy link
Copy Markdown
Contributor

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, image macos-15-arm64
20261118.0550.1):

compute-floor: fib(35) 1.551 1.790 1.714
compute-floor: reference fib(30) median 0.084s on-system — per-call ratio 1.665 (limit 1.5x)

The evidence it is window noise, not a build property:

leg / run link unit runner image reference fib(30) median tebako fib(35) best ratio
2026-11-25 push 4f1672f (green) v2.8.83 20261118.0550.1 0.090 1.332 1.335
2026-11-26 PR #111 (green), same commit as the red leg v2.8.85 20261123.0558.1 0.073 1.161 1.434
2026-11-26 publish attempt 1 (red) v2.8.85 20261118.0550.1 0.084 1.551 1.665
  • The same commit measured 1.161 s and 1.551 s four hours apart on two runner
    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.
  • The red leg's own artifact, re-run off-fleet on a quiet Apple-silicon machine:
    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.
  • The reference (the gate's denominator) did not move: 0.084 median on the red
    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.
  • The gate times fib inside the interpreter (time.perf_counter around 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) under
    COMPUTE_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, n matching the
    handed-down COMPUTE_FLOOR_REFERENCE_N); anything else is a named note and the
    first-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-smoke
    steps receive it as COMPUTE_FLOOR_REFERENCE_PYTHON. The container legs
    deliberately do not — the host's interpreter is not executable inside the
    container, so they keep the first-window verdict.
  • Header comments in all three files name the false-red class and cite the run.

Local verification (this machine, Apple silicon)

Rigged breach (COMPUTE_FLOOR_REFERENCE_SECONDS=0.010, ~10x ratio) against the red
leg's actual artifact:

  • re-probe armed → 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;
  • re-probe unavailable (env unset) → named the first-window verdict stands note →
    FAIL, exit 143 (unchanged fail-closed behavior);
  • COMPUTE_FLOOR_MODE=warn → unchanged warn-tier output.

ruby -c, YAML parse, and the probe's ast.parse all 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.

…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
ronaldtse marked this pull request as ready for review November 26, 2026 22:45
@ronaldtse
ronaldtse merged commit 05c513f into main Nov 26, 2026
71 of 73 checks passed
@ronaldtse ronaldtse mentioned this pull request Nov 27, 2026

This branch was previously deployed

1 inactive deployment
windows-signing — bf49c1e4 Deployed Nov 26, 2026 by ronaldtse via macos / 3.13.15 / macos-arm64 #268
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants