Files
ruvnet--RuView/v2
ruv bea7edee1f test(adr-110): lock the 9-second staleness gate on mesh_aligned_us_for_csi_frame
Iter 33 — closes a real test-coverage gap. The iter 17 staleness gate
(returns None when latest_sync_at is older than 9 s = 3 × the firmware's
VALID_WINDOW_MS) was shipped but never directly tested. A future
careless edit changing `from_secs(9)` to e.g. `from_secs(90)` would
silently break ADR-029/030 multistatic fusion freshness guarantees.

Test (3 assertions, no sleep — uses `Instant::checked_sub` to set
latest_sync_at to past values directly):

  * 1  s old   → Some (fresh)
  * 8  s old   → Some (just inside the gate)
  * 10 s old   → None (just outside the gate)

If anyone widens or narrows the gate, exactly one of these assertions
fires and points at the off-by-one. Total time for the test < 1 ms.

sync_snapshot_helper_tests: 6/6 green.

Branch-coord clean — main.rs only.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-05-23 14:48:22 -04:00
..