{ "title": "Split poker-stakes' four over-250-line files", "objective": "Bring every file in poker-stakes under the shared 250-line cap by extracting cohesive units, without weakening the 100% coverage gate or changing application behaviour.", "acceptance_criteria": [ "No file under poker-stakes/ exceeds 250 lines.", "npm run check passes: typecheck, eslint --max-warnings 0, and vitest at the configured 100% thresholds for statements, branches, functions and lines.", "All 220 tests still pass; no test is deleted, skipped or weakened.", "npm run build succeeds, proving the module graph still resolves after the extractions.", "useGame.ts keeps its public API by re-exporting GameState, HandPhase, gameReducer and hasOutstandingDebt, so no importer changes.", "No coverage-exclusion entry is added to vite.config.ts." ], "out_of_scope": [ "Any change to poker-stakes application behaviour, engine logic or UI.", "The pre-existing 5s-timeout flake in invariants.test.ts under parallel coverage load.", "File-length violations outside poker-stakes/." ], "verifier": "cd poker-stakes && npm run check (exit 0, 220 tests, 100% on all four metrics) && npm run build (exit 0); bash ~/utils/scripts/check_file_length.sh --all | grep -c poker-stakes returns 0." }