Skip to content

UniNet v0.20.0

Choose a tag to compare

@github-actions github-actions released this 22 Oct 12:32
· 20 commits to main since this release

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

  • UniNetTime XML 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); client Now carries a constant bias of at most the s2c one-way delay (no RTT/2 compensation — UE-style push, deliberate); monotonic via the _lastNow clamp; 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.