From fd1430e46f1541a1cbf93dd43d3b61334e81d56c Mon Sep 17 00:00:00 2001 From: ruv Date: Sat, 13 Jun 2026 12:14:11 -0400 Subject: [PATCH] test(engine): update contradiction_demotes_privacy for #1031 guard thresholds The streaming-engine privacy-demotion test fed a 2 ms timestamp spread, which demoted under the old 1 ms soft guard. #1031 raised the default soft guard to 20 ms (to accommodate the real TDM slot offset), so 2 ms now fuses cleanly with no demotion. Bump the test spread to 25 ms (above the 20 ms soft guard, within the 60 ms hard guard) so it still proves the ADR-137 -> ADR-141 demotion wiring. Co-Authored-By: claude-flow --- v2/crates/wifi-densepose-engine/src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/v2/crates/wifi-densepose-engine/src/lib.rs b/v2/crates/wifi-densepose-engine/src/lib.rs index c9f965d9..bc2ac1c6 100644 --- a/v2/crates/wifi-densepose-engine/src/lib.rs +++ b/v2/crates/wifi-densepose-engine/src/lib.rs @@ -682,8 +682,9 @@ mod tests { fn contradiction_demotes_privacy() { let (mut e, room) = engine(); let cal = CalibrationId(7); - // 2 ms spread: within the 5 ms hard guard but above the 1 ms soft guard. - let frames = [node_frame(0, 1000, 56), node_frame(1, 3000, 56)]; + // 25 ms spread: within the 60 ms hard guard but above the 20 ms soft + // guard (#1031 raised both to accommodate the real TDM slot offset). + let frames = [node_frame(0, 1_000, 56), node_frame(1, 26_000, 56)]; let out = e.process_cycle(&frames, cal, room, 20_000).unwrap(); assert!(out.demoted, "loose alignment must demote");