← Connection and sync — never pretend to be online · all tasks

The client connection state machine — freeze rather than fake, reconnect visibly, give up honestly

done priority 1 estimate L

connection-and-sync/002 · created 2026-08-18 · updated 2026-08-18

What to do

Definition of done

test_runner.gd drives every transition of the table; vitest with the fake director/Area (from 001) covers: silence, unacked-only stall (pongs and updates flow, intents refused), close-without-frame, portal hop then drop, director dead during rejoin, resume probes, first-frame-late connects. The Godot-backed suites and the client harness still pass; 012’s rule holds (a drop during a pending portal defers to the portal fallback, never rejoins the origin).

Where the work lands

land-of-lor/game/world/client/, game/director/test/.

What was done (2026-08-18, laptop session)

View source in repository · also available as raw markdown.