fix(sim-bench): raise drift-check floor to 10ms (stop CI flake) (#30)
Some checks failed
CI / test (1.85) (push) Has been cancelled
CI / test (stable) (push) Has been cancelled
CI / deny (push) Has been cancelled
CI / fmt (push) Has been cancelled
CI / sim-bench (stable) (push) Has been cancelled
CI / clippy (push) Has been cancelled
CI / twilio-live (manual only) (push) Has been cancelled
CI / image-build (4 images) (push) Has been cancelled
CI / smoke (all-in-one TLS sim call) (push) Has been cancelled
CI / smoke (T2 compose four-service) (push) Has been cancelled
CI / smoke (caddy reload during live call, zero drops) (push) Has been cancelled

Co-authored-by: Aaron D. Lee <himself@adlee.work>
Co-committed-by: Aaron D. Lee <himself@adlee.work>
This commit was merged in pull request #30.
This commit is contained in:
2026-07-10 02:17:28 +00:00
committed by A.D.Lee
parent 754614bd56
commit 248ec92df4

View File

@@ -226,8 +226,14 @@ mod bench_assertions {
// — meaningless. The drift check becomes meaningful once
// MockRealtimeBrain composition lands (post-spearhead
// refinement; spec §8.6 + §1.2 deferral) and produces
// ~60ms kills uniformly. Floor at 1ms; skip below.
const DRIFT_CHECK_MIN_KILL_SECS: f64 = 0.001;
// ~60ms kills uniformly. Floor at 10ms — safely above the
// standalone-wiring first-kill noise (sub-ms on dev,
// ~1.24ms observed on a loaded Gitea Actions runner —
// flake run #122, 2026-07-06), safely below the ~60ms
// meaningful regime. The pre-fix 1ms floor let CI timing
// variance push `first` above the gate, firing the
// meaningless 16× drift ratio (third ≈ 20ms / first ≈ 1.24ms).
const DRIFT_CHECK_MIN_KILL_SECS: f64 = 0.010;
if first > DRIFT_CHECK_MIN_KILL_SECS {
let drift = third / first;
assert!(