Status: done (2026-11-12) Priority: 2 Size: M Design ref: Balance loops and targets; AGENTS.md, Commands. Reviews of 10 and 11 November (VB-326 to VB-336) Goal: The consistency reviews of 10 and 11 November answered their questions with scratch probes that were written, run and thrown away: one sampled every pawn each six-minute step to find that three fields cost a household 215 pawn-hours a year and its water 121; another listed by hand, quantity by quantity, what reads the woodpile, the water and the stone heap, and found that nothing does. Kim, 11 Nov: make the first two of these measurements tools, since every later change to balance asks the same questions. Acceptance criteria:
node tools/sim.js --report hours [--json] (a module tools/hours.js, as tools/idle.js is for --report idle, starting with tools/help.js): over the run’s years, pawn-hours by job kind, split into work and walking or carrying (an agent with a job whose phase is not work), for each household and season, and idle working hours beside them. Printed: the mean and the spread by household for each kind, as hours and as a share of the working hours of the household’s hands (members of 14 to 59, not retired) and of all its workers (children from 7 at their rate); --household N prints one household’s table; --fields N keeps the households with N fields, and --team splits those with an ox team from those without.tools/idle.js does, outside the simulation: it steps the run and reads st.agents, writes nothing to st, and adds no counter to the modules; the same seed gives the same run with or without the report (a test asserts the state hash is equal). Its cost is the tool’s own: said in its help (about a minute a year of populous small when it samples each step; a sample an hour is the default if the numbers agree within 2%).node tools/stocks.js [--json], built on the writes map (tools/writes.js --json): for each stored quantity of a household, a farm, a village and a tile (a table in the tool names them: grain, meals, sheaves, the larder, wood, stone, hay, manure, the day’s water, fence and house condition, a village’s grain, a tile’s trees and stones), the modules that add to it, those that take from it, and those that read it without writing it; a quantity with no reader in the simulation but its own job kind’s available and urgency is marked read by nothing, and one read only by the page shown only. Today it must mark the woodpile, the day’s water and stone (until VB-327, VB-331 and VB-332 land), which is its first test.npm test that fails when a quantity of the @state lines of households, farms and villages has no line; a new stored quantity then cannot be added without saying what its lack costs.AGENTS.md, Commands, names both; docs/architecture/modules.md lists the two tools. A new state field’s checklist (Working rules: “A new state field or record gets its invariants”) gains: and, if it is a stored quantity, its line in tools/stocks.js.npm test passes; nothing under src/ changes, so the golden file is unchanged.
Notes:tools/sim.js’s yearly line or a --report land column (forest tiles, standing trees, fields, meadows, tiles cut bare); (3) a table in design.md of what the game’s units stand for (a field tile, a work hour, a load, a tree), without which “is 20 hours of hoeing reasonable” has no reference; (4) the intended shares of a household’s year (grain, hay, fuel, chores, idle) as targets a review can measure against; (5) sources for labour a field, firewood a hearth and forest yield, as docs/review-claims.md and docs/review-markets.md have for theirs; (6) one index of known inconsistencies and their tasks; (7) the areas no review has yet walked: carrying hay, goods that move within a village without a pawn, animals and hay, the settlers’ first winter, death and burial, the meetings (nobody attends), work in the dark, and p.age between rounds.tools/idle.js is the nearest thing in the repository and samples by role, not by household or job kind.38b920d; main has moved some lines since (in src/sim/kinds.js, jobs.js, records.js), and every function and field named still stands: find them by name.tools/hours.js (--report hours of tools/sim.js, with --from Y, --every step|hour, --fields N,
--team, --household N), tools/stocks.js, and tests/review-tools.js in npm test (every field of the @state lines of households,
farms, villages and tiles is in a line of QUANTITIES or in NOT_STOCKS, and a made-up household.peat is caught; the woodpile and the
day’s water are read by nothing, the stone heap is used; a founders year on the tiny map with the hours report has the state hash of the
same year without it). AGENTS.md (Commands; the new-state-field rule) and docs/architecture/modules.md (the tools; Adding things) name
them. Nothing under src/ changed: tests/golden.json and the counters cannot move.--years 3 --from 3 --fields 3 --team; households
of three fields; pawn-hours a household-year, work + walking and carrying; the two seeds pooled by household-years; the review’s figure in
brackets). Without a team (37 household-years): hoeing 60 + 13 (61 + 13), sowing 6 + 6 (6 + 6), weeding 31 + 31 (30 + 28), reaping 17 + 9
(17 + 9), sheaves 3 + 10 (3 + 10), threshing 18 + 5 (19 + 4), manure 6 + 3 (6 + 2); the fields in all 141 + 76 (142 + 72); water 119
(121), cooking 86 (120), mowing 61 (111), firewood 134 (103). With an ox team (6): hoeing 28 + 5 (31 + 9). The hands’ working hours
1,224 a household (the review’s 1,152 of two hands). The field work matches; cooking, mowing and firewood do not, and this task did not
find the cause: the probe kept households of 2 hands and 5 to 7 members (cooking follows the mouths, mowing the animals) where this tool
keeps every household of three fields; and since the review the village’s wood became an area with a tree felled a trip (VB-326) and the
weather landed (VB-342), which may lengthen the firewood walk. The farming year, without a team: hoed by spring 4 to 5 (median; latest
spring 7 to 10), sown spring 5 (latest 8 to 9), ripe autumn 6, reaped autumn 7, in the barn autumn 8, threshed autumn 9 to 10 (latest
autumn 12); 1 field of 111 never sown (seed 7), none lost to frost (the review: hoed by spring day 4 to 7, sown by day 8, ripe about
autumn day 6 and reaped the day after).node tools/stocks.js): read by nothing: the woodpile (only its own kind’s urgency and available read it; the day’s burn
takes it as a loss), the day’s water (only its own kind) and fence condition (only the mending job); shown only: clay and bog iron ore
(nothing uses them until slice 6). The stone heap is no longer read by nothing: VB-332 landed (the foundation takes it, stoneWork
reads it). Fence condition is a finding the reviews’ three did not list: a broken fence costs nothing.w.graze, for one): a line in QUANTITIES of tools/stocks.js (fields, the
job kinds that fill it, and none: what its lack costs); a field of an @state line that is not a stored quantity goes into
NOT_STOCKS under its reason. tests/review-tools.js fails until one or the other is there.workRate (60 and over count fully while not retired); the spread is the 10th, 50th and 90th percentile
of the household-years’ hours; the shares are of the group’s summed hands’ and workers’ hours. --from Y added to sample year Y on.losses (hay spoiling).
read by nothing wins over shown only when its own kind reads it; shown only is for a quantity nothing in the simulation reads,
its own kinds included, that the page reads.page mark counts the page’s direct reads of the field; what it shows through a Sim function (the larder) is not seen.