The app reports cache freshness but never its own code version #12
Labels
No labels
architecture
cleanup
dependencies
performance
priority: high
priority: medium
reliability
security
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
solvreven/FPL#12
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This cost a live debugging session on 2026-08-27.
A fix to
/api/matcheswas verified against the cache file and against stubbeddeps, and the tab still showed the old gameweek. Cause: the server process had
been running since 23 August. It had hot-reloaded the rebuilt cache
(
built_at 2026-08-27T18:07) while running four-day-old code.That state is invisible from the UI.
/api/statusreportsbuilt_atand drivesa staleness banner for the cache; nothing reports the server's own version.
So a process running stale logic against fresh data looks completely healthy —
green banner, numbers moving on every rebuild — and the only symptom is that a
fix you know landed does not appear.
The cache already carries
built_from_sha. The running process should reportits own git SHA and start time beside it, so the two can be seen to
disagree. CLAUDE.md's rule — "stamp artefacts with their build time and git
SHA, and print both in every report" — applied to the one artefact nobody
stamped: the server itself.
Suggested fix. Add
server_shaandserver_started_atto/api/status,and surface a warning when
server_sha != cache.built_from_sha.