VB-080: A food balance that feeds a family before animals
Status: done (2026-10-30, b86e394)
Priority: 1
Size: S
Arch: food
Phase: implement
Design ref: Goods and the farming year (Food, Seed); Systems overview (Food balance; finding 2); Known gaps.
Goal: A household of 6 eats 192 rations a year with four young children and 288 when all are over 14. A meadow field gives about 78 in an ordinary year, less 20 of seed, so three fields give about 170 and four about 230. In the populous scenario a quarter of household-days in year 2 are hungry, and 9 people die of hunger in 4 years. Animals (VB-048) are the last arch to start; every task until then is measured on a hungry baseline.
Acceptance criteria:
ECON.fieldYield 100 and ECON.seedPerField 25 (4:1 kept), so a meadow field gives about 72 rations after seed.
Health drain: HEALTH.drain falls from 9 to 4, so hunger h drains 4 × h² a day and a starving adult dies in about 25 days, a small child in about 17 (Kim, 30 Oct; it was 427 starvation deaths of 820 in year 2 of populous at seed 7, and 7 with both changes).
The populous generator gives households of 7 or more a fourth field, joining the farm’s other fields as one contiguous block within 4 steps of the house (VB-109’s placement if it is done; else on a free farmable tile touching one of the farm’s fields, within 4 steps).
Report, before and after: hungry household-days, hunger and starvation deaths per year for founders at seeds 7 and 42 over 5 years and for populous tiny and medium at seed 7 over 4 years. After: no hunger deaths in an ordinary year (weather 0.9 to 1.1) in either scenario.
Re-record the golden file and list the changed entries in the PR.
Notes / questions:
VB-010’s field demand reads fieldYield, so it asks for fewer fields after this; check that its formula still reaches 4 for a grown family.
Kim, 30 Oct 2026: yield 100 and seed 25; the health drain falls to 4 a day; the fourth field joins a contiguous block within 4 steps of the house; the yield is retuned when animals arrive (VB-048).
Done: yield 100, seed 25, HEALTH.drain 4; addField in the settlement generator gives populous households of 7 or more a fourth field touching one of their fields, within 4 steps of the house. Populous start grain is now a year of rations plus seed for the farm’s fields (it was a flat 180, which starved big households in year 1). fieldsWanted still reaches 4 for a grown family. Tests health.js and hunger.js updated to the new numbers (adult starves on day 25, child or old on day 17; seed reserve 75).
Before / after (hungry household-days summed over the run; deaths by starvation per year; harvest weather per year in brackets):
Remaining starvation follows a poor harvest (weather 0.76 to 0.85 the year before) or the founders’ first year, before any field is made; there is none in an ordinary year (0.9 to 1.1). Buffers for poor years are a design question for Kim (grain stock, kin help VB-039).