Implements the rating recovery procedure specified in plan §12.3. Running 'go run ./cmd/acb-worker -mode=recalc-ratings' will: 1. Reset all bot ratings to Glicko-2 defaults (mu=1500, phi=350, sigma=0.06) 2. Fetch all completed matches from the database in chronological order 3. Replay each match to recompute Glicko-2 ratings from scratch 4. Update the bots table with the recalculated ratings This is needed for disaster recovery when ratings are corrupted or lost. Database functions added: - ResetAllRatings: resets all bot ratings to defaults - GetAllCompletedMatches: fetches completed matches chronologically with participants - UpdateAllRatings: bulk updates all bot ratings in a single transaction Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| acb-api | ||
| acb-evolver | ||
| acb-index-builder | ||
| acb-local | ||
| acb-map-evolver | ||
| acb-mapgen | ||
| acb-matchmaker | ||
| acb-wasm | ||
| acb-worker | ||