Files
2026-05-27 23:29:53 +01:00

30 lines
1.5 KiB
Markdown

# Tasks — Game-server enhanced infra (service-discovery + state-sync + timing)
## 0. Pre-flight
- [x] 0.1 Clean working tree confirmed at dispatch
- [x] 0.4 §0a Sync — fast-forwarded from orchestrator-supplied SHA to current `genesis` HEAD
## 1. Spec authoring
- [x] 1.1 Read `../suaveplan/packages/universal/game-server/src/enhanced/{service-discovery,state-sync,timing}` reference
- [x] 1.4 Draft `proposal.md`
- [x] 1.6 Draft `specs/game-server/spec.md` delta with three ADDED requirements (registry, bitpack-sync, vector-clock-sync)
- [x] 1.7 Every requirement carries a `**Verified by:**` line naming exact `it(...)` titles
## 2. Implementation
- [x] 2.1 `enhanced/service-discovery/game-instance-registry/` — 5 files
- [x] 2.2 `enhanced/state-sync/bitpacker-state-sync/` — 5 files
- [x] 2.3 `enhanced/timing/vector-clock-sync/` — 5 files
- [x] 2.4 Extend `errors/game-server-error.ts` with 5 new codes
- [x] 2.5 Re-export new public surface from `src/index.ts`
- [x] 2.6 Add 3 subpath exports + 2 runtime deps to `package.json`
## 3. Verification
- [x] 3.1 `bunx turbo lint typecheck test --filter=@suaveplan/game-server` green
- [x] 3.2 `bunx turbo test:coverage --filter=@suaveplan/game-server` ≥ 100/100/100/100 on touched modules
- [x] 3.3 `grep -rnE "from ['\"](vitest|bun:test)['\"]" packages/gaming/games/game-server/src/` → zero hits
- [x] 3.4 `grep -rn "biome-ignore\|TODO\|FIXME\|XXX" packages/gaming/games/game-server/src/` → zero hits in new code