village-builder

VB-403: Balance accounts: a report of where the food and the people go

Status: done (2026-11-22) Priority: 2 Size: M Arch: yardstick Phase: implement Design ref: Balance loops and targets (The balance review, 12 November); docs/balance/cards.md; docs/balance/findings.md Goal: The balance review needed numbers the game cannot report in one place, and found by hand-written scripts that about 15% of a year’s gross produce has no outlet in the measured split (it is neither eaten, brewed, given nor counted as rotted). Give the game one report, node tools/sim.js --report accounts [--json] (from a run or --load), that closes the yearly accounts and prints what is left unexplained, so that the balance map’s properties are read from the game and not from documents. It reads only: no new state, nothing saved, nothing the simulation reads. Acceptance criteria:

Numbers (populous small, 5-year windows ending at the year; founders small at year 50; beside the review’s, docs/balance/findings.md):

  review (50 y) populous 3 / 7 / 11, years 6-10 26-30 46-50
unexplained, food and grain 15% (the review’s scripts) 0.0 / 0.0 / 0.0 0.0 0.0
living (end) about 1,000 394 / 381 / 396 443 / 471 / 523 457 / 353 / 245
growth, % a year 1.2 to 2.2 1.8 / 0.2 / 1.5 -0.6 / 0.8 / 1.7 0.0 / -2.9 / -4.8
births a woman 6.1 to 6.9 6.9 / 6.3 / 6.4 5.1 / 5.7 / 7.4 6.1 / 7.2 / 7.6
dying before 1 / before 15 0.20 / 0.34 0.14-0.20 / 0.33-0.46 0.19-0.23 / 0.37-0.49 0.17-0.28 / 0.49-0.76
first marriage, women / men 20-21 / 22-23 19.1-20.6 / 20.5-20.9 18.9-22.8 / 20.7-23.2 18.8-19.2 / 20.8-21.1
never married at 45+ almost none 0 0.00-0.02 0.02-0.04
food produced over need, all 1.64 to 1.86 2.85 / 2.72 / 2.85 2.62 / 2.66 / 2.69 2.69 / 3.29 / 3.15
households under 1.0 18 to 28% 3-5% 4-5% 3-4%
hungry over 30 days 0 to 0.8% 0 0 0
grain: seed / eaten / rot in households 33-35 / 26-30 / 14-16% 23 / 21-23 / 29-32% 26-27 / 23-27 / 23-33% 25-30 / 19-23 / 27-30%
grain: to the store / brewed / given 10-11 / 8 / 8% 1-2 / 7-8 / 4-5% 3 / 8-9 / 6-8% 2-3 / 7-8 / 9-12%
Gini of fields / of grain 0.29 / 0.31 0.23-0.25 / 0.28-0.36 0.22-0.27 / 0.38-0.41 0.23-0.27 / 0.42-0.59
idle: summer / autumn / winter 16-33 / 16-33 / 59-70% 24-29 / 27-30 / 68-69% 24-36 / 23-32 / 69% 17-33 / 16-29 / 61-69%
goodwill outstanding a household; gifts a year 88; 65 to 163 74-95; 107-130 93-133; 164-206 87-110; 214-255

Founders small, seeds 3 / 5 / 7 / 11 / 42, year 50: 3 / 6 / 12 / 9 / 14 living from 10 (the review: 19 to 69 in 80 years); 60-100% of households single-person; food over need 3.1 to 5.0; starvation the first cause of death in four of five; marriages 2 to 6 in 50 years.

The differences: food over need is gross of seed here (seed an outlet) and counts the common fields; the review’s was net of seed, which also explains most of the households under 1.0. Grain rots more in households and less goes to the store: the store’s target (VB-457, after the review) stops the filling, so the grain stays home and rots there. Growth and the late child deaths: starvation is the largest cause of death late (73 / 140 / 206 in years 41-50), while no household is hungry 30 days and food is 2.7 to 3.3 times need: a row in docs/tuning.md (with VB-1374’s fall in growth); it is the game’s, not the review’s counting.

The 15% (review’s lines against our grain account, years 26-30): the review counted seed, grain cooked and raw, grain rotted in households, to the store, brewed and given, 76 / 88 / 90% of the grain produced. The rest is the review’s scripts’ counting: flour into the pot 14 / 14 / 5% (the quern grinds most grain before it is cooked, VB-009; the scripts read only grain cooked), the growth of stores 10 / 0.5 / 9%, stakes of those who died 4 / 1 / 1% (VB-1476), grain rotted in the store 5% (not an outlet of the households, counted nowhere); less the gifts between households, which the scripts counted as an outlet only (6 to 8%: on the island a gift is both given and received). No movement without a reason was found but the stake at death.