village-builder

VB-282: A hungry household may eat its seed, and the hunger band reads household-years

Status: done (2026-11-10) Priority: 2 Size: S Arch: animals Phase: implement Design ref: Goods and the farming year (Seed); Kim, 10 Nov 2026 (QUESTION_ARCHIVE.md, VB-270: what the diagnosis found); backlog/VB-270.md; docs/bench/closure.md (The hunger floors) Goal: VB-270 found 91 of 141 hunger deaths in households that still held grain behind the seed reserve. Kim decided on 10 November that a household that would go hungry eats its seed as a last step, and that the hungry-households band reads the share of household-years, not the worst household. Acceptance criteria:

Implementation notes

Validation notes (numbers; base 0a8ef2c, after = this branch)

Populous small, 15 years (hunger deaths after year 3 over all deaths; band = household-years hungry over 0.3 after year 3; blocked deaths = hunger deaths of a household with a day its stores covered the need, before, or that ate seed, after; fields in the ground a household has after the spring sowing, mean of years 4 to 15; living and households at the end):

seed hunger deaths share band blocked deaths fields in ground living / households
3 4/116 (0.034) -> 0/115 (0) 0.006 -> 0 3 -> 0 3.28 -> 3.17 464/114 -> 463/118
7 1/118 (0.008) -> 0/118 (0) 0.002 -> 0 1 -> 0 3.32 -> 3.31 431/95 -> 418/95
11 0 -> 0 0 -> 0 0 -> 0 3.39 -> 3.33 474/112 -> 466/109
42 0 -> 0 0.001 -> 0 0 -> 0 3.46 -> 3.51 459/104 -> 473/109

Fifteen years is before most of the hunger (it comes after year 18), so the same on 30 years for the two seeds with the most (populous 3 and 11):

seed hunger deaths share band reserve-blocked deaths fields in ground (mean) living / households
3 43/367 (0.117) -> 38/381 (0.100) 0.039 -> 0.042 29 -> 10 (deaths of households that ate seed and still died) 3.2 -> 3.07 502/147 -> 506/149
11 36/403 (0.089) -> 12/376 (0.032) 0.018 -> 0.017 34 -> 2 3.3 -> 3.34 569/144 -> 575/150

The replay’s reserve-blocked household-years at 15 years: populous 3 7 rows, 5 with blocked days (110 days), 3 blocked deaths; populous 7 2 rows (47 days), 1 death; 11 none; 42 1 row (15 days); after: 0 rows, 0 days and 0 deaths on all four.

Households, not only averages. The cohort over 30 years (households with a blocked day, before; that ate seed, after; and what became of each the next year): populous 3: 497 -> 558; dissolved 86 -> 77, hungry over 0.3 56 -> 68, fine 355 -> 413. Populous 11: 440 -> 393; dissolved 88 -> 52, hungry 21 -> 23, fine 331 -> 318. Where the shortage is only the reserve (seed 11) the household recovers: far fewer dissolve and die of hunger. Where it is real shortage (seed 3; cause 2 of the diagnosis) eating the seed buys days and the household is hungry again the year after (68 against 56), with fewer fields in the ground (3.07 against 3.2 a household over 30 years): the fields it cannot sow cost its next harvest. No second rule was added (the orchestrator’s instruction). Proposed fix, a follow-up for Kim: the household that ate seed sows first from its next harvest before it stores or gives; and the real shortage stays with VB-270-c (food balance) and the lone survivor with VB-270-b.

Full bands (node tools/bands.js, record appended at this commit; before, the record at 756c693, 28 of 50 in): 49 of 60 in (the ten runs of the new watched band included, always in). Out: hunger-deaths on populous 3 (0.100), 11 (0.032), 42 (0.023), founders 7 (0.071), 42 (0.219), heirs 7 (0.412), 42 (0.143); population on heirs 7 (0.889) and 42 (0.833); villages on heirs 42; hungry-households on founders 42 (0.096; 0.085 on the same measure before: a household short for real, VB-270-c). The other nine runs of hungry-households are in (populous 0.020 overall, founders 0.029, heirs 0.015). Population and villages as before. Hunger-deaths: populous 3 0.106 -> 0.100, 11 0.160 -> 0.032, 42 0.029 -> 0.023, 7 0.029 -> in.

Targets

Hard checks: npm test 90 scripts passed; npm run verify 105 scripts passed. Targets out at verify: 6 (the base’s 8). bands/hungry-households/seed42 (+0.1375) is in (the band and its measure are changed; the reduced runs read 0). counters/routeRefresh is in (the counters re-recorded, below). Still out: scaling.routeRefresh +0.1732 (was +0.1472), scaling.roundPairs +0.85 (as before), history.routeExpand +0.4545 (+0.4203), history.routeRefresh +0.8978 (+0.9222), history.roundPairs +2.126 and history.recordFold +1.509 (both out at the base). The change does not touch their loops; they move with the changed lives.

Golden entries changed (founders/7, heirs/7, founders/42, heirs/42): seed (households: the new seedSeason), year1 to year3 (the lives from the first short day on: agents, jobs, pawns, record, rng, talks, wear and what follows). Counters re-recorded (tests/counters.json): routeSearch .38 -> .383, routeExpand 1.73 -> 1.772, routeHit 5.271 -> 5.28, routeRefresh 1.611 -> 1.947, and talkWeighed, walkStep, idleStroll, companyWeighed, walkPoint, walkTies, tiePairs, matchBid, lookUpJob within about 2 percent; no new counter, no new loop.