Status: done (2026-11-02)
Priority: 2
Size: M
Arch: core
Phase: implement
Design ref: Commands, time steps and views (Unified commands: Decided); answer 4 to VB-076 (the moving round follows as commands).
Goal: The yearly moving round (movingRound, src/sim/lifecycle.js) marries couples, moves pawns between households, sends them into service, hands farms on, lets claimants take empty farms and settlers leave, each by calling the function that does it. Make these commands with source round, so a player who controls a pawn or a household can later take part in the round on the same terms. Depends on VB-167.
Acceptance criteria:
marry (actor and target pawns, args the home household), move (a pawn to a household), serve (a pawn into service at a household), handOn (a holder to an heir, args the reason), claim (a pawn claims an empty farm) and leave (a party settles new land, args the site): each checks what its function checks today and refuses with a reason otherwise.movingRound, sim/service, sim/farmclaims and sim/settle issue them; outside src/sim/commands.js nothing calls the functions they wrap, checked statically by the test of VB-167.tests/golden.json unchanged; npm run verify passes.marry, handOn (the round’s handovers by custom), serve, claim and leave, source round. The acts became functions of their own where they were inline (wed in sim/lifecycle, enterService in sim/service); startClaim, settleFarm and found already were.found builds on settleFarm), not for moveTo and transfer, which are building blocks inside other acts (a death’s succession, a guardian’s family, a settler’s household, the debug retire). Wrapping them would turn every internal move into a command with no gain.leave takes plain arguments (the party’s ids, the house and field tiles, the village joined or the woodlot); the provisions are reckoned again inside the command (nothing changes between, and they draw no random numbers), and the round marks the new house and field in its own cache of land in use after the command, as settleFarm did inside. guardian (orphans, careForOrphans) runs outside the round and is left for a later task.tests/commands.js covers the five verbs and nine refusals.