village-builder

VB-224: Refactor: a handover ranks only the households of its candidates’ lines

Status: done (2026-11-08) Priority: 1 Size: M Arch: yardstick Phase: implement Design ref: none (code structure). docs/roadmap.md, section 5.3 (rule 2, no pass over pairs; rule 1, cost follows activity); Kim’s answer of 8 November 2026 in the VB-202 session: fix it first. Goal: VB-202’s fresh fixtures fail tests/history.js: heir-ranking work per living pawn-day at small-y40 is 1.66 times that at small-y5 (limit 1.25; recorded excess 1.35, which may only fall). A full heirRanking outside the moving round (a holder’s death, a hand-on, a meeting’s check) asks ownFirstOf(st, hh), which ranks every other live household to learn whether a candidate is first in line for a farm of their own. The window of 30 days holds one such handover at small-y5 (88 households ranked) and three at small-y40 (173 each): a pass over handovers times households. A candidate can only be a direct heir of a farm whose line is one of its ancestors, one to four generations up (lineOf follows four generations), so ranking only those farms gives the same claims for every candidate. Acceptance criteria: