Status: done (2026-11-02)
Priority: 2
Size: M
Arch: core
Phase: implement
Design ref: Commands, time steps and views (Unified commands: Decided); answers to VB-076 (first verbs work(job), walkTo(tile), goHome, idle(until)).
Goal: After VB-167 the planner chooses work through commands, but it still moves pawns directly when they have nothing to do: idleAbout walks them to company, the green or the yard and sets idleUntil, and the day’s end sends them home (goHome). Make these commands too, so that every act of a pawn goes through issue. Depends on VB-167.
Acceptance criteria:
walkTo (target a tile; args the spot x, y in map units, defaulting to the tile’s centre), goHome and idle (args until, a game time) in src/sim/commands.js, each checked (a tile on land that the walking rule allows, walkable(w); an actor with a home; a time not before now).idleAbout issues walkTo and idle from source planner; going home at dark issues goHome. Outside src/sim/commands.js and src/sim/agents.js nothing calls walkTo, goHome or start, checked statically by the test of VB-167.tests/commands.js covers each verb and its refusals.tests/golden.json unchanged; npm run verify passes.walkTo, goHome and idle in src/sim/commands.js; idleAbout moves from sim/agents to the planner (sim/jobs), where it issues walkTo and idle, drawing its random numbers in the same order; the clock’s dark issues goHome. Golden file unchanged; tests/commands.js covers the verbs and five more refusals, and checks statically that only sim/commands calls start, walkTo and goHome (a step inside a job, carrying a load to the house in stepWork, stays inside sim/agents).walkTo does not refuse a tile the walking rule closes. An idle walk to company may end on a river tile (twice in a founders year at seed 7), and the walk goes ahead today; refusing it changed the golden file from year 1, so the check is only that the tile exists. VB-169’s “Walk here” should offer open tiles only.halt in src/sim/relations.js sets path, anim and idleUntil), an act outside the command verbs; a talk verb would take it in.