[Phase 3.1b] Match Room Priority Rope Timer, Reconnect Resync & Spectator Fog-of-War #28

Open
opened 2026-11-17 08:14:15 +00:00 by john4064 · 0 comments
Owner

Goal

Harden headless Drome match rooms with a server-enforced 30-second priority rope timer, mid-match reconnect resync, clean forfeit resolution, and double-masked spectator projection.

Metadata

  • Phase / Step: Phase 3.1b
  • Depends On: #11
  • Unlocks: #15, #34
  • Target Crates / Paths: crates/chaotic_server/src/{rope.rs,reconnect.rs,spectate.rs}
  • Line Budget Plan: Production .rs <= 400 lines, test .rs <= 600 lines, mod.rs < 80 lines (AGENTS.md Section 2.3)

Acceptance Criteria

  • Implement authoritative 30-second priority rope countdown that auto-passes priority on expiration.
  • Implement clean disconnect grace window -> automatic match forfeit if timeout expires, or full ProjectedMatchState snapshot resync upon reconnect.
  • Implement project_match_state_for_spectator(state) stripping BOTH players' hands, unflipped decks, and unrevealed Battlegear.
## Goal Harden headless Drome match rooms with a server-enforced 30-second priority rope timer, mid-match reconnect resync, clean forfeit resolution, and double-masked spectator projection. ## Metadata - **Phase / Step:** Phase 3.1b - **Depends On:** #11 - **Unlocks:** #15, #34 - **Target Crates / Paths:** `crates/chaotic_server/src/{rope.rs,reconnect.rs,spectate.rs}` - **Line Budget Plan:** Production `.rs` <= 400 lines, test `.rs` <= 600 lines, `mod.rs` < 80 lines (`AGENTS.md` Section 2.3) ## Acceptance Criteria - [ ] Implement authoritative 30-second priority rope countdown that auto-passes priority on expiration. - [ ] Implement clean disconnect grace window -> automatic match forfeit if timeout expires, or full `ProjectedMatchState` snapshot resync upon reconnect. - [ ] Implement `project_match_state_for_spectator(state)` stripping BOTH players' hands, unflipped decks, and unrevealed Battlegear.
Sign in to join this conversation.
No description provided.