Skip to content

feat(server): clocks with Fischer increment and flag (CV-163) - #11

Merged
Leo-Galli merged 1 commit into
mainfrom
feat/CV-163-clocks-increment-flag
Nov 24, 2026
Merged

Leo-Galli merged 1 commit into
mainfrom
feat/CV-163-clocks-increment-flag

Conversation

@Leo-Galli

Copy link
Copy Markdown
Contributor

Summary

  • Server-authoritative clocks (ms): deduct elapsed think time on apply_move, then add Fischer increment_ms; flag check beats increment (ADR-005).
  • claim_flag / check_flag verify PROTOCOL flag claims; timeout draw when opponent has no mating potential (chess-core).
  • PROTOCOL ClockSync / GameEnd helpers; GameMeta stores increment, active start, ended reason. README STATUS: Clocks Built.

Task

CV-163

Test plan

  • cargo fmt --check
  • cargo clippy --locked --all-targets -- -D warnings
  • cargo test --locked (unit/injection always-on; Redis gated in CI)
  • node scripts/verify-readme.mjs
  • Secret scan clean; no fair-play thresholds/weights/models
  • CI verify green on this PR

Verification notes

  • Engine SPRT: not applicable
  • Redis integration tests run in CI (Redis 7 service); no local Redis/Docker on this machine

Server-authoritative ms clocks tick on apply_move (deduct elapsed, then
increment; flag before increment), with claim_flag verification and
timeout draw via chess-core mating potential.
@Leo-Galli
Leo-Galli merged commit edd50d9 into main Nov 24, 2026
1 check passed
@Leo-Galli
Leo-Galli deleted the feat/CV-163-clocks-increment-flag branch November 24, 2026 10:28
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