ai-code-battle/cmd/acb-matchmaker
jedarden 1796f2a27e feat(matchmaker): add series game result propagation to scheduler
The series scheduler was scheduling games and creating series_games rows,
but never updated winner_id or incremented a_wins/b_wins when individual
matches completed. This left series in perpetual "active" state since
finalizeCompletedSeries checks win counts that were never incremented.

Add updateSeriesGameResults step that:
- Finds series_games with completed matches but NULL winner_id
- Updates winner_id from match_participants
- Increments a_wins or b_wins on the series table

Called as step 0 in tickSeriesScheduler, before finalization checks.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-21 15:31:33 -04:00
..
alerts.go Extract matchmaker into separate deployment (acb-matchmaker) 2026-03-29 00:55:46 -04:00
config.go feat(web,cmd): enhance evolution dashboard, series/seasons pages, and matchmaker 2026-04-21 13:42:20 -04:00
crypto.go Extract matchmaker into separate deployment (acb-matchmaker) 2026-03-29 00:55:46 -04:00
Dockerfile fix: update Dockerfiles to golang:1.25-alpine (go.mod requires go 1.25.0) 2026-04-14 13:43:39 -04:00
main.go feat(web,cmd): enhance evolution dashboard, series/seasons pages, and matchmaker 2026-04-21 13:42:20 -04:00
series_season.go feat(matchmaker): add series game result propagation to scheduler 2026-04-21 15:31:33 -04:00
series_season_test.go feat(matchmaker): add series game result propagation to scheduler 2026-04-21 15:31:33 -04:00
tickers.go feat(web,cmd): enhance evolution dashboard, series/seasons pages, and matchmaker 2026-04-21 13:42:20 -04:00