Status: done (2026-11-13)
Priority: 3
Size: S
Arch: mill
Phase: implement
Design ref: Goods, production and animals (The mill and the loom, the kiln and the quarry); backlog/VB-185.md
Goal: A household short of wood near a peat bog cuts peat in summer; dried, two loads burn as one of wood. Slice 6’s plan (VB-185, 11 Nov), from Kim’s answers in the session.
Acceptance criteria:
dig (VB-359) takes peat too: 3 hours a load, in summer only, into hh.peat; a load cut in one season burns from the next (it dries).PEAT.worth 0.5). A household cuts peat when its nearest wood is more than PEAT.far (8) steps off or its pile is under the winter goal at summer’s end, up to the shortfall.npm run verify passes its hard checks.
Notes:Implementation (13 Nov):
sim/dig takes peat: DEPOSIT.PEAT among its goods; wants(st, hh, good); the want (peatTrips) is summer only, the pile’s shortfall
(wood less reserved plus PEAT.worth of the peat held, wet or dry) against the plan’s winter goal, in trips; peat is chosen when the village’s
wood lies over PEAT.far steps from the house (digAt.far, read at the yearly search) or from day PEAT.late (6) of summer. PEAT is in
sim/rules beside WOOD.ECON.woodPerTrip (3) units of peat, as a firewood trip brings 3 of wood, so a unit
burns as 0.5 of wood and a 3-hour trip is worth 1.5 loads of wood. The tile falls by 1 a trip. Peat never grows back (left() only regrows bog iron).hh.peat holds all peat, hh.peatCut {key, n} the units cut in the season keyed year*4+season; Stores.peatDry is what is
held less what was cut this season: no pass dries it. The stores’ dug writes both, with the ledger’s good peat, reason dig.warmHouse burns wood, then dry peat for what the day lacks, PEAT.worth of wood a unit, reason burn (routine). The firewood job
counts peat held in its pile (fuelFree in sim/kinds) so that a household with peat cuts less wood; urgency of the peat job is the
pile’s shortfall of its goal, at least the upkeep’s.hh.peat defaults to 0 in old saves; owners, invariants (peat a store, the totals’ goods, deposits dug), tools/stocks.js
line, the farm card shows peat; tests/peat.js (in verify). tests/review-tools.js used household.peat as its made-up field: now household.lime.digGround), the burn adds one
comparison on a cold-pile day.
Validation (populous, small map, 30 years, scratchpad/vb367/measure.js; base is the branch tip before the change; runs diverge, so
households differ: 151/143 at seed 7 base/new, 149/143 at seed 42):
| | seed 7 base | seed 7 new | seed 42 base | seed 42 new |
|—|—|—|—|—|
| forest tiles lost (trees > 0 to none) | 0 | 0 | 0 | 0 |
| trees felled a household-year | 11.14 | 11.15 | 11.38 | 11.05 |
| peat units cut / burnt | 0 | 489 / 96 | 0 | 2199 / 1056 |
| cold household-days / share | 5197 / 3.5% | 4224 / 2.9% | 2039 / 1.3% | 4855 / 3.1% |docs/tuning.md.