Skip to content

feat(rating): Glicko-2 once-only rated finish (CV-168) - #16

Merged
Leo-Galli merged 1 commit into
mainfrom
feat/cv-168-glicko2-rated-finish
Nov 24, 2026
Merged

Leo-Galli merged 1 commit into
mainfrom
feat/cv-168-glicko2-rated-finish

Conversation

@Leo-Galli

Copy link
Copy Markdown
Contributor

Summary

  • Add pure Glicko-2 (ADR-007: 1500/350/0.06, tau=0.75) and Postgres ratings / rating_updates
  • apply_rated_finish updates both seats once per game_id (FOR UPDATE lock order); skips casual and abort
  • GameMeta.rated set from matchmaking; PROTOCOL rating_diff {w,b} helper

Test plan

  • cargo fmt --check
  • cargo clippy --locked --all-targets -- -D warnings
  • cargo test --locked (local; Postgres integration gated on DATABASE_URL — CI Postgres 16)
  • node scripts/verify-readme.mjs
  • Glickman paper example (tau=0.5) unit test
  • CI verify green on this PR

Task

CV-168

Persist per-time-class ratings and apply updates exactly once per game_id; skip casual and abort.
@Leo-Galli
Leo-Galli merged commit d918574 into main Nov 24, 2026
1 check passed
@Leo-Galli
Leo-Galli deleted the feat/cv-168-glicko2-rated-finish branch November 24, 2026 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant