Status: done (2026-11-11)
Priority: 3
Size: S
Design ref: Inheritance, expansion and other bodies (Clearing a new plot); Land, ecology and rights (Land and ecology: Timber). QUESTION_ARCHIVE.md, Consistency review (10 Nov)
Goal: Wood appears and vanishes at three places. Felling a plot’s tile sets its 60 to 80 trees to 0 and yields nothing (finishStep, src/sim/expansion.js:158), though the design says the felling yields firewood and timber and the cottage uses the timber (Clearing a new plot, Agreed 30 Oct). A cottage or a booth on open ground is built of no timber at all. And every new household starts with 16 loads of firewood from nowhere (ECON.startWood, makeHousehold, src/sim/records.js:154), settlers at a bare booth included.
Acceptance criteria:
plot.wood in loads (3 a tree, woodPerTrip). The cottage’s walls take BUILD.timber loads of it (18: six trees); what is left goes, when the plot is given, to the woodpile of the new household up to its winter goal (40) and then to the households that worked the plot, by hours, each up to its winter goal; the rest is burnt where it lies (the log says how much).BUILD.timber / 3 trees in the village’s wood, as firewood trips whose load goes to the site (a job kind timber, type wood, 3 hours and the carry, on VB-326’s drawn tile); the walls step waits for them. No fence, well or green takes timber yet.ECON.startWood (16) in all and never leaving a pile under woodLow (8); a cottage’s household counts its plot’s wood first. Settlers carry none (their loads are food, VB-287) and cut on arrival: with VB-327 their first winter needs 7 trips. The scenarios’ first households keep their 16.plot, timber, start), as food does through src/sim/stores.js, so the ledger shows where a pile came from.QUESTIONS.md, “Consistency review: wood”, questions 8 and 9.timber job and count; VB-301’s barrel takes a load of pine wood, one tree on a pine tile of the allotment.QUESTION_ARCHIVE.md, “Consistency review”, archived 10 November): the numbers above are Agreed. Waits for VB-326 only.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.sim/building (layer material, before sim/kinds): the cottage’s three stages moved out of
sim/kinds as kinds (sim/kinds was at its 400-line limit), with boothWork, and the new timber kind and its island rule timberWork,
and shareWood. It reads sim/stores, sim/forest (drawWood, fellTree) and sim/expansion (building, boothJob); sim/cottage
calls its shareWood. New state: plot.wood and f.booth.wood (loads at the site; invariants), BUILD.timber (18) in sim/rules.
household.wood is now owned by sim/stores (src/owners.json): the firewood trip (firewood), the day’s fire (burn, in
sim/clock; both routine, folded into yearly totals), a plot’s wood (plot), timber left over (timber) and the first wood (start) go
through put, take and move; a timber trip writes a timber entry (good timber) on the ledger of the village or household building.
A kind may carry to site (j.dest, sim/agents): the timber goes to the building site, not home.fell step makes its trees the plot’s wood (3 loads a tree, whole trees). A plot’s or booth’s walls wait until
18 loads lie at the site (waitsForTimber, sim/expansion); while short and before the walls stand, timberWork posts a trip for each
3 loads lacking, at most two at a time, owned by the village (plot) or the household (booth), its tile drawn in the village’s wood (VB-326’s
draw); the walls take 18 loads when they are done. At the roof: a plot’s remaining wood goes to the new household up to 40 (foundHousehold’s
wood), then to the households that worked the plot, most hours first, each up to 40, and the rest is burnt (the cottage’s log line says how
many loads); a booth’s leftover timber goes to its household’s pile. foundHousehold zeroes the constructor’s 16 (Stores.start), then
takes from the piles of the members’ old homes up to 16 in all, never leaving one under woodLow (8); settlers (carry: false) bring none.
The scenarios’ first households keep their 16. Page: the timber kind has the axe icon; no other page change, so no screenshot.plot.hours (only the plot’s own steps are); a trip whose site was given meanwhile leaves its load there unused.a88b8fc):
| seed | plots started, built | days from start to roof (median, mean) | cottage events (plots and booths) | timber trips (trees) | households at y30 |
| — | — | — | — | — | — |
| 7 before | 35, 35 | 4.7, 4.9 | 82 | 0 | 135 |
| 7 after | 34, 33 | 6.7, 7.0 | 82 | 508 | 131 |
| 42 before | 51, 51 | 4.7, 5.1 | 88 | 0 | 142 |
| 42 after | 44, 41 | 6.7, 6.9 | 80 | 496 | 136 |
First year of new households, mean woodpile by day of life (0, 6, 12, 24, 36, 47) and share of days with an empty pile (VB-327 not built:
no cold days yet): seed 7 cottages and restored farms before 14.7, 16.3, 18.7, 23.3, 30.0, 32.2 (5.0% empty), after 14.3, 16.7, 18.6,
23.3, 30.1, 29.2 (5.3%); settlers before 15.5, 8.8, 8.2, 10.5, 18.2, 31.6 (0%), after 0.3, 6.7, 7.9, 10.2, 12.0, 20.0 (2.1%). Seed 42:
cottages before 14.6 to 29.0 (3% empty), after 14.7 to 31.4 (0%); settlers before 15.6 to 33.0 (0%), after 0.1, 6.8, 7.6, 10.7, 13.9, 21.0
(2.2%). Plots on felled ground were few (nearly every cottage felled its six trees), so the plot’s leftover wood was small (3 loads lay
unclaimed at year 30 at seed 42). Households: settlers start with nothing and cut on arrival, as designed; their pile is lower all year.tests/record.js’ anchor: 69 events on heirs 7’s
pawns at 2.5 years (67 before).npm test passes (104 scripts; tests/timber.js new; tests/cottage.js, tests/kinds.js, tests/farmclaims.js follow the
timber, the site carry and the first wood). npm run verify (at 5412705 with the golden file re-recorded): 122 scripts passed; 7
targets out (scaling.routeRefresh +0.53, scaling.roundPairs +0.85, scaling.takeInWeighed +0.435, history.routeRefresh +0.61,
history.roundPairs +10.41, history.recordFold +0.14, history.occasionAsked +0.25); main had 11 out. The history ratios compare saves made
anew for the changed sources: chance, not cost this change adds.