village-builder

VB-277: The moving round a village a step: each village’s marriages and handovers in its own six-minute step

Status: done (2026-11-13) Priority: 2 Size: M Arch: between Phase: implement Design ref: Inheritance, expansion and other bodies (Leaving home: The moving round, A village’s round: Decided, 10 Nov). Survey and cost: backlog/VB-242.md. Goal: The round’s marriages and handovers (marriageRound, src/sim/lifecycle.js:160-255, the round’s phase 0 at noon of autumn day 11) run in one six-minute step for the whole island: every unmarried man of the island in one list, those with a place first, then the oldest. To stay near 60 ms the step keeps roundHeirs (src/sim/heirs.js:103-147), a view of heir rankings that tracks dependencies and is invalidated by reading the event record (changedSince, lifecycle.js:181-197). The view and the round’s other memos are built by matchRules (src/sim/matching.js:32-68, VB-274), which the player’s wish (matchBar) and its options (sim/opportunities) also call. Kim decided on 10 November that each village holds its own round, a village a step, in the order of village id. A village’s round matches its own unmarried men with the unmarried women of any village, by today’s score, and a lone farm is a village. VB-242’s prototype ranks heirs afresh in each village’s step: the longest step is 6 to 30 ms on the late saves. Acceptance criteria: