Status: done (2026-11-02, 11c8676)
Priority: 2
Size: S
Arch: tooling
Phase: implement
Design ref: Systems overview (Across systems: food balance).
Goal: Populous medium at seed 7 in year 6 (at 243d9dd) has a median household grain of 324 and still 32 of 120 households (239 people) hungry for over 30 days, and 35 deaths from starvation; the mean hides a wide spread (10th percentile 137, 90th 662). VB-039 (food help) and later tuning need to see who is short and why, in one command, instead of a scratch script each time.
Acceptance criteria:
node tools/sim.js --report hunger (text and --json) lists, for the year reached (or --at Y), the households with more than 30 hungry days: id, village, members by age band, fields (and how many were sown), grain at the harvest and now, hungry days by season, and the deaths from starvation or hunger in it.
It ends with a summary: share of households and of people hungry, and the grain quartiles of all households, so a tuning change is compared by numbers.
The report is listed in the tools/sim.js header comment and in AGENTS.md.
A line in tests/tools.js runs the report and checks that it prints the summary.
Notes / questions:
Raised by the review of 31 October 2026. The likely fix is VB-039 (kin and village help), which is ready.
Renumbered from VB-116 when the review was rebased onto main (31 October 2026): main had since used VB-116 to VB-118. The numbers in the goal were measured at 243d9dd.
Review 1 Nov 2026: a second reason to do this soon. Populous medium at seed 7 has hungry household-days 0, 33, 61, 59, 246 and 132 in years 1-6 although mean grain is 260-350 per household; the report should say whether the year-5 spike is lean households, spoilt or unmilled grain, or animals taking hay and grain.
Done 2 Nov 2026: the report steps the clock a season at a time, so its run differs in detail from a plain run (as the idle report). On populous seed 7 (small year 3, medium year 5) no household was hungry for over 30 days: the table is empty and the summary shows it.