- §2 UnitDelta: note Art2dUrl/ModelUrl removed; only in UnitSnapshot
- §6 Push Decision: note spectator registry is now Redis-backed
- §9 Push Dispatch: note _fetch_state is guarded by _syncing flag
- §11 _merge_unit_delta: remove stale art2dUrl/modelUrl snippet; add note
that URLs are applied once on unitsAdded and stay on the unit dict
- §12 Fallback/Resync: update _fetch_state row (_syncing guard, session-id
validation); update arch spirit null row (is Dictionary guard)
- §14: replace "Known Issues & Planned Fixes" with "Fixes Applied" —
documents all 6 commits with root cause, resolution, and files changed
Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
- Issue 1: SpectatorRegistryService is in-memory per-process; spectators
miss updates in scaled deployments due to load-balancer routing mismatch.
Fix: move registry to Redis.
- Issue 2: get_unit_by_id null crash when arch is null (not absent) on
player disconnect. Fix: use 'is Dictionary' guard instead of .get({}).
- Issue 3: ChangedTiles must only include actually-changed tiles; fix is
server-side only.
- Issue 4: modelUrl/art2dUrl sent in every UnitDelta; strip from delta,
derive from card definition; iOS Safari: cache on first sight.
- Issue 5: iOS Safari memory crash from unbounded asset cache; layered
fix: scoped loading, lazy load, disk cache for non-iOS, evict on removal.
- Issue 6: _fetch_state() race on version gap; fix with _syncing flag.
- §12: clarified IsEmpty should never fire in practice (MP always regenerates).
Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
Documents the complete delta lifecycle from server action handler
through GameStateDiffer computation, PushStateToPlayersAsync dispatch,
Redis transport, and client-side application in Game.gd/_apply_delta.
Includes line numbers, code snippets, wire types, and design invariants.
Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>