ADR-0008: Ratings are a Bradley–Terry fit over all games, shown on the Elo scale¶
- Status: Accepted
- Date: 2026-12-01
Context¶
v0.5 adds ratings for head-to-head games (SPEC-013). The usual choice, classic Elo, updates ratings one game at a time, so the result depends on the order the games are read in, and on a step size (K) that has no right value for the small samples AgentPlay users have (tens of games, not thousands). A report must give the same answer for the same logs, however they are listed.
Decision¶
- Fit all rated games of a world at once with the Bradley–Terry model (the model behind Elo): the chance that A beats B is r_A / (r_A + r_B). Draws count as half a win for each side.
- Add one virtual draw between every competitor and a fixed reference at 1500, so a competitor that won every game gets a high but finite rating, and few games pull ratings toward 1500.
- Show ratings on the Elo scale (400 · log10(r) + 1500), so the numbers read like chess ratings.
- Give a 95% interval from a bootstrap: refit on games resampled with a fixed seed.
- Show a Wilson interval on every score rate and pass rate.
Consequences¶
- Same logs give the same ratings in any order, and adding a game changes ratings in a way that does not depend on when it was played.
- The fit is a short iterative algorithm in the standard library; no new dependency.
- With few games the intervals are wide. The report says so instead of hiding it, and marks competitors with fewer than 10 rated games as provisional.
- Ratings from different worlds are never combined.