@@ -10,19 +10,6 @@ Current direction is good. This plan is aimed at removing the
1010main correctness and coordination risks found in the latest
1111project review without rewriting working systems.
1212
13- ### Phase 1. Consolidate protocol validation
14-
15- - Move C2S/S2C runtime schema ownership next to the shared
16- protocol message definitions instead of maintaining a large
17- hand-written parser island in ` src/server/protocol.ts ` .
18- - Keep room-code, token, and seat-assignment helpers separate if
19- they stay generic; focus schema consolidation on message
20- payloads first.
21- - Use the shared schema layer for both runtime validation and
22- compile-time TypeScript inference where practical.
23- - Target outcome: one source of truth for protocol shape, smaller
24- validator surface area, and cheaper message evolution.
25-
2613### Phase 2. Finish consolidating client state ownership
2714
2815- Extract ` ClientContext ` and ` PlanningState ` mutation behind a
@@ -50,9 +37,8 @@ project review without rewriting working systems.
5037
5138### Suggested order
5239
53- 1 . Phase 1: protocol schema consolidation.
54- 2 . Phase 2: client store/transition consolidation.
55- 3 . Phase 3: direct shared-type imports and boundary enforcement.
40+ 1 . Phase 2: client store/transition consolidation.
41+ 2 . Phase 3: direct shared-type imports and boundary enforcement.
5642
5743---
5844
0 commit comments