You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: auto-migrate pre-backfill achievement data (one-time per user)
Users whose unlocks predate the historical backfill still carried hundreds
of achievements stamped on their first init/sync day (e.g. 216 on the
multi-user first-sync date). A metadata flag (ach_backfill_v1_<userId>) now
triggers exactly one historical recompute per user:
- single-user: at startup (also covers existing distorted installs)
- multi-user: on first GET /api/achievements after deploy
- manual recompute endpoint sets the flag too
Guarded on messageCount > 0 so an empty aggregator never wipes unlocks.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
0 commit comments