Status: done (2026-11-17) Priority: 2 Size: S Design ref: src/sim/expansion.js livePlots, plotNumber; tests/lib/invariants.js, the villages’ plots Goal: tests/lib/invariants.js numbers a village’s plots as sim/expansion’s plotNumber does, so a household’s plot for its heir under way no longer reads as a gap Acceptance criteria:
checkState’s villages’ plots read the plots under way as livePlots does (the village’s projects and the households’ heir plots of that village), so the numbers 0, 1, … hold with a household’s plot among them.checkState is clean.Noted by VB-692, 17 November 2026.
The invariant now adds the heirPlots of the village to the live plots (inline, not through livePlots, so no plotWalk count). Test in tests/plots.js (fails without the fix).