Skip to content

feat(game): atomic apply_move via Redis Lua CAS (CV-171) - #21

Merged
Leo-Galli merged 1 commit into
mainfrom
feat/cv-171-atomic-apply-move
Nov 25, 2026
Merged

Leo-Galli merged 1 commit into
mainfrom
feat/cv-171-atomic-apply-move

Conversation

@Leo-Galli

Copy link
Copy Markdown
Contributor

Summary

  • Redis Lua CAS commits meta + Move (+ optional AutoDraw) only when event list length still matches the observed length
  • Concurrent identical or racing white UCIs leave exactly one ply; flag termination uses meta-only length-CAS
  • Always-on CAS reply parsing tests; Redis-gated concurrency tests; README STATUS Atomic apply Built

Task

CV-171

Test plan

  • cargo fmt --check
  • cargo clippy --locked --all-targets -- -D warnings
  • cargo test --locked (always-on; Redis concurrent tests run in CI)
  • node scripts/verify-readme.mjs
  • CI verify green with Redis service concurrent tests

Concurrent apply cannot append two plies on the same position.
Flag meta writes use length-CAS so they cannot overwrite a winning ply.
@Leo-Galli
Leo-Galli merged commit a1a65a4 into main Nov 25, 2026
1 check passed
@Leo-Galli
Leo-Galli deleted the feat/cv-171-atomic-apply-move branch November 25, 2026 16:29
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