Repository navigation
UniNet v0.20.0
Server-time synchronization contract documented + measurement tests (TIM-001 — zero logic change). The time-sync behavior (offset EMA, monotonic clamp, no half-RTT compensation) was undocumented; the audit could not tell a real defect from a bounded nuisance.
Added
UniNetTimeXML now states the contract: forward progress is always 1 (the offset is frozen between syncs); an offset decrease stalls progress for at most 0.25·|Δoffset| (one EMA step, bounded); clientNowcarries a constant bias of at most the s2c one-way delay (no RTT/2 compensation — UE-style push, deliberate); monotonic via the_lastNowclamp; not thread-safe (QueueOnMain precondition). Execution code is byte-identical.- Tests T1-T5 (deterministic fake clocks): decrease monotonicity + stall bound, repeated-decrease Σ bound, EMA convergence, server-ignore, and a hit-bias measurement (
bias=50ms -> rewind error 50ms) that gates any future half-RTT compensation work.