Files
momentum-system/api
momentum devandClaude Opus 4.8 fbe2eff3d4 Dashboard: fix freshness-chip timezone bug + sync-aware thresholds
Live verification caught it: the data-freshness chip read ~14,477s (RED) on data
that was actually 1s fresh — exactly the EDT offset. Event timestamps are stored
NAIVE LOCAL (datetime.now()), but query_risk_state compared them against UTC now.
Compare naive-local to naive-local instead (tz-aware timestamps still use UTC).
Verified live: chip now reads ~78s. Also align the amber/red thresholds to the
~60s broker-sync cadence (amber >90s, red >180s) so a healthy feed reads green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-18 20:21:54 -04:00
..