Skip to content

feat(game): persist finished games and export PGN (CV-169) - #17

Merged
Leo-Galli merged 1 commit into
mainfrom
feat/cv-169-persist-game
Nov 24, 2026
Merged

Leo-Galli merged 1 commit into
mainfrom
feat/cv-169-persist-game

Conversation

@Leo-Galli

Copy link
Copy Markdown
Contributor

Summary

  • Add reversible games / game_events migrations and once-only persist_finished_game (ADR-004).
  • Export standard tag-pair PGN whose movetext matches chess-core encode_movetext (including takeback net moves).
  • Serve GET /api/v1/games/{id} and GET /api/v1/games/{id}/pgn per PROTOCOL sketch; set GameMeta.initial_ms at match create.

Task

CV-169 — Persist finished game to Postgres (DoD: PGN export matches)

Test plan

  • cargo fmt --check
  • cargo clippy --locked --all-targets -- -D warnings
  • cargo test --locked (local; Postgres/Redis integration gated on env, exercised in CI)
  • node scripts/verify-readme.mjs
  • Secret scan clean; no fair-play thresholds/weights/models

Notes

WS finish-path wiring that calls persist on terminal ends stays Planned (same session as live RTT / GameEnd dispatch).

Flush Redis game logs into Postgres games/game_events once, and serve
tag-pair PGN whose movetext matches chess-core encode_movetext.
@Leo-Galli
Leo-Galli merged commit d7659d2 into main Nov 24, 2026
1 check passed
@Leo-Galli
Leo-Galli deleted the feat/cv-169-persist-game branch November 24, 2026 14:44
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