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:
feedHousehold (src/sim/hunger.js), as the last step of a day whose meal falls short: grain below the seed reservation (Stores.reserved(st, hh, 'grain'), VB-248) is taken for the meal, through sim/stores with its own reason; a household with enough never touches it. The fields left unsown are logged once a season at most (atFarm, an event kind tests/record.js knows), not every day.design.md is not edited here: the orchestrator brings the Seed row in line (“keeps back seed before it eats, unless it would go hungry”; Decided, Kim, 10 Nov).hungry-households (tests/lib/bands.js) reads the share of household-years after year 3 (a household present 12 days or more in the year) hungry on over 0.3 of its days, target at most 0.05; the worst household stays in the report beside it. This is Kim’s change of a target (10 Nov), named as such in the PR. The reduced run (tests/bands.js) follows.docs/bench/hunger-causes.js (reserve-blocked deaths and household-years), and populous small at seeds 3, 7, 11, 42 for 15 years: hunger deaths’ share, the new band’s share, fields sown a household the next spring, living and households at the end; and whether households, not only averages, are better off (the households that ate seed: how many recover, how many dissolve). node tools/bands.js once after, its record appended.tests/golden.json and tests/counters.json re-recorded, the changed entries listed. Invariants as needed. The hard checks pass; targets reported with their residuals.
Cost: one comparison a household on a short day; no new loop.feedHousehold (src/sim/hunger.js): after the larder and the grain above the reservation, a day that still lacks takes min(lack, grain - spare) of the grain below
the reservation through Stores.take(..., 'seedMeal') (a new reason in KINDS and ROUTINE of sim/stores, so a daily meal folds into the yearly total and
writes no ledger entry). If even that cannot cover the day, the household still eats all it has and is hungry as before. A day that is covered never touches
the seed, and a day with grain above the reservation is as it was. The order: larder, meals, spare grain, rest of the larder, seed.eatSeed: event kind seedEaten (atFarm; HISTORY in sim/records, kept a generation), once a season at most per
household. The one new field is household.seedSeason (the season index last told, -1 at the start; an older save has none and tells at once; @state in
sim/scenarios). The count told is the fields the grain now left cannot sow.reserved(), floorOf, the allowance’s slack, help, claims, the means to marry). A household that ate its seed
holds less than its reservation, so kin help and the deals treat it as short of seed exactly as they treated a household that held less than the reservation
before: its floor is above its grain, so it gives nothing, and what it asks and receives is as today. Nothing was added to treat it better.PROBES.hungryHouseholdShare in tests/lib/bands.js (household-years after year 3, present 12 days or more, hungry on over 0.3 of their days; target
at most 0.05) replaces the worst household in hungry-households; worst-household is a new watched band (0..1, never out) that keeps the worst share in the report.
The reduced run (tests/bands.js) follows, and reads 0 on the four tiny seeds.docs/bench/hunger-causes.js as before; new docs/bench/seed-eaten.js (shares, deaths on a day the stores covered the need or the seed was
eaten, fields in the ground after the spring’s sowing, and the cohort). Its cohort is, before, households hungry on a day their stores covered the need
(reserve-blocked) and, after, households that ate seed in the year; they are not the same households, so read the cohort as what became of a household with
such a day. Tests: tests/hunger.js (the seed test now asserts eating one ration of seed, the one told event, and hunger when nothing is left), tests/record.js
(heirs 7’s lives: 75 to 77 events and a new hash, behaviour changed).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.
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.
tests/counters.json raised the route counters (routeRefresh 1.61 to 1.95), which hid a residual; the baseline was restored to its state before the task (AGENTS.md: a change never re-records a ceiling to make a residual vanish). Proposed follow-up, not created: a household that ate seed sows from its next harvest before it stores or gives.