ai-code-battle/cmd
jedarden 467b7b67ea feat(worker): add rating recovery CLI mode (-mode=recalc-ratings)
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>
2026-05-04 00:41:10 -04:00
..
acb-api feat(combat): rank matches by enemy-kill combat turns 2026-05-03 18:32:08 -04:00
acb-evolver fix(evolver): correct GROUP BY in island stats query 2026-04-24 07:04:37 -04:00
acb-index-builder feat(index-builder): add sitemap.xml generation 2026-05-04 00:09:53 -04:00
acb-local feat(evolver): complete Phase 7 LLM-driven evolution implementation 2026-04-08 16:38:48 -04:00
acb-map-evolver feat(map-evolver): bias energy toward center, carve corridors to force contact 2026-05-03 18:56:39 -04:00
acb-mapgen Fix sin/cos math bug and add cellular automata map generation 2026-03-26 01:10:46 -04:00
acb-matchmaker fix(test): replace duration-based age check with calendar-relative anchors 2026-04-30 22:14:40 -04:00
acb-wasm feat(playlists): add playlist curation and rebuild logic per §10, with series/seasons/enrichment 2026-04-21 16:11:27 -04:00
acb-worker feat(worker): add rating recovery CLI mode (-mode=recalc-ratings) 2026-05-04 00:41:10 -04:00