From 248ec92df42e910c96ae357ceec86f0d68b16772 Mon Sep 17 00:00:00 2001 From: "Aaron D. Lee" Date: Fri, 10 Jul 2026 02:17:28 +0000 Subject: [PATCH] fix(sim-bench): raise drift-check floor to 10ms (stop CI flake) (#30) Co-authored-by: Aaron D. Lee Co-committed-by: Aaron D. Lee --- crates/rutster-sim/src/thresholds.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/crates/rutster-sim/src/thresholds.rs b/crates/rutster-sim/src/thresholds.rs index 01970a8..93b09a9 100644 --- a/crates/rutster-sim/src/thresholds.rs +++ b/crates/rutster-sim/src/thresholds.rs @@ -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!(