village-builder

VB-177: Refactor: a pawn’s movement only through sim/agents

Status: done Priority: 2 Size: S Arch: ownership Phase: implement Design ref: none (code structure). VB-172’s map, sections 5.6 and 7.3; Kim’s answer 1 of 3 November (QUESTION_ARCHIVE.md, “VB-172: the ownership map”). Goal: sim/agents writes 21 of the 26 sites of a pawn’s movement; four other modules write past it. A talk stops an idle pawn by setting its path, animation and idle time directly (relations.js:162), past the idle verb; the dawn places pawns indoors by their door (clock.js:37); a death stops the pawn (lifecycle.js:28); and the verbs goHome and idle set fields themselves (commands.js:40, 45). A pawn the player holds (VB-169) should change only by its commands and the rules every pawn has, through one module. Acceptance criteria:

Implementation review (6 November 2026):