VB-1913: Repair the extended tier’s invariants of 27 November: a gathering that leaves nobody home, and an heir over the sea
Status: done (2026-11-27)
Priority: 1
Size: S
Design ref: docs/gates.md (a red night is repaired by a task of its own); design.md, Who goes; VB-436
Touches: sim/gathering (pack, homeLeft); sim/heirs (heirFor); tests/going.js; tests/oversea.js
Goal: tests/invariants.js passes on main
Acceptance criteria:
populous seed 7, year 5: household 30’s other adult moved out on the day of packing and its holder lodged at the gathering with nobody home. The packing keeps an adult at home (adultStays at each goer set out), and an adult gone to another household (rehoused) turns the first lodged adult for home, as a death at home does; a case in tests/going.js
heirs seed 42, year 12: an heir’s own place (household 7, held in trust) was handed on to a pawn over the sea, whose move the move command refused (VB-436), so the farm stood empty with her as its holder. heirFor passes over an heir with no way by land to the farm; a case in tests/oversea.js
tests/invariants.js passes; npm run verify passes
Notes:
27 Nov 2026: behaviour changes, both rare: a goer who would leave no adult at home stays home at the packing; an heir with no way by land to the farm is not chosen (heirFor, so also by sim/marriage and sim/matching), the next in line by land is, else the farm goes to a claim or empties as with no heir.
Gate not run (Kim asked for the fixes straight away, in a project thread); no review.