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

Server truth — every intent answered, every kick delivered, no Area shut down under a player

done priority 1 estimate L

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

What to do

Area server (game/world/area_server.gd):

Director (game/director/src/areaInstance.ts, server.ts):

Definition of done

area-server.test.ts: three intents in one tick → three answers; put_packet failure drops the peer and keeps the body; an unbound peer is told; TAKEN_OVER reaches a Godot client before the close. Director tests: peer-count-based shutdown; portal-arrival presence; resume_portal idempotence; control-close handling; every portal failure branch replies; area_closing reaches peers. All existing suites and verifiers green.

Where the work lands

land-of-lor/game/world/area_server.gd, game/director/src/, game/director/test/.

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

View source in repository · also available as raw markdown.