Status: done (2026-11-11)
Priority: 2
Size: S
Arch: year
Phase: implement
Design ref: Economy and jobs (Goods and the farming year: Food from the wild, Mixed meals). Job review, second pass, 30 Oct 2026.
Goal: The woods give only firewood, and women and children are idle most of late summer. Gathering is light work for them that adds a little food and, with VB-119, makes a meal go further.
Acceptance criteria (numbers decided by Kim, 10 November; QUESTION_ARCHIVE.md, “VB-117 and VB-118”):
gather kind, type foraging, 1 hand, 3 work hours, carried home in baskets, at a forest or heath tile within 5 steps of the house, the nearest with something left.foraging ranks as in VB-117; gathering is an exception at 3 for son and farmhand.gather animation, with a basket.docs/roadmap.md, section 3.3; the slices Decided by Kim): moved to slice 3, arch year (from food). blocked until the slice’s plan (VB-164) confirms, rewrites or closes it; its questions in QUESTIONS.md wait for that plan, which may reframe them.QUESTIONS.md (VB-117 to VB-119).tests/counters.json and the anchor of tests/record.js are left for the orchestrator to
re-record after the merge (night-run rules); the golden criterion stays open until then. Expected to move: golden entries that run through a
summer or autumn, the counters (new forageGround), and the record anchor (heirs 7 at 2.5 years: 72 events became 73, and its hash).Implementation notes (11 Nov 2026):
src/sim/forage.js (after sim/fish; layer in src/layers.json beside fish): w.forage (stock 0..1) and w.forageYear (the game
year it was set) per tile; stock reads full once the year has turned (spring), so no pass (Rules for cost, 3); gather (2.5 rations x stock,
stock - 0.2); ground(st, house): the nearest forest, pine or heath tile (not under a field or yard) within 5 walking steps, in breadth-first
order, with at least 0.2 left. initForage at seeding and at the load of an older save; both fields join WORLD in sim/saves. Tunables
FORAGE in sim/rules.gather in src/sim/kinds.js: type foraging, 1 hand, 3 hours, carried home in baskets to the door, anim forage; asked last in
ASK.farmAfterPlans, after fish, and listed after fish in the summer and autumn ROUTINES of sim/plans. Posted from summer day 6 to the
end of autumn; one job, two under FISH.secondDays (12) days of spare food. Urgency is fishing’s: the line moved into one helper,
spareUrgency, that both kinds use. The baskets go into hh.meals through Stores.put(..., 'gathering'), a new routine reason beside catch,
so fish and gathered food are counted apart in the yearly totals.foraging ranks as before, gather: 3 for farmhand and son (their foraging is 6 and 7): farmer 3, wife 4, farmhand 3, maid 5, son 3,
daughter 6, retired 3, child 5.forage pose (the gather stoop with a basket on the arm) and a basket carried home (src/page/rigs.js). tools/shot.js gets
--follow KIND (looks at the first pawn at work on a job of that kind). Screenshot: docs/img/vb118-gathering-follow.jpg (populous 7, tiny
map, summer day 6, 07:10; the gatherer in the forest at the centre).w.forage in [0, 1] and w.forageYear not after this year. New test tests/forage.js (in npm test); tests/children.js knows a
child’s gather 5.forageGround (tiles searched for a ground): one breadth-first search of up to about 90 tiles per ask, like fishGround; not
measured on a late save.Validation notes (11 Nov 2026): weather held at 1.0, 3 years (stopped a day before the end), medium map, before (gathering off: FORAGE.reach 0)
-> after. Idle share of adults’ (14 and over) work hours with no job; hungry household-days over the run; food gathered per household (rations);
mean food held at the end (grain and meals); wild tiles gathered in the last year, and their mean stock left.
| run | idle share | hungry household-days | gathered per household | mean store | tiles gathered, mean stock left |
| — | — | — | — | — | — |
| founders 7 | 0.333 -> 0.277 | 0 -> 0 | 0 -> 54.2 | 386 -> 424 | 17 tiles, 0.14 |
| founders 42 | 0.364 -> 0.313 | 0 -> 0 | 0 -> 50.7 | 266 -> 306 | 12 tiles, 0.08 |
| populous 7 | 0.493 -> 0.463 | 25 -> 0 | 0.3 -> 42.3 | 332 -> 357 | 346 tiles, 0.07 |
| populous 42 | 0.500 -> 0.475 | 1 -> 0 | 0.5 -> 41.1 | 323 -> 339 | 381 tiles, 0.07 |
(In the “before” runs the few gathered are houses that stand on a wood or heath tile.) Households are better off, not only the average: hungry
household-days fall to none where there were 25, and the mean food held rises in all four runs (4 to 15 percent). The woods and heath within
reach of a village are picked nearly bare by autumn’s end (0.07 to 0.14 left on the tiles used); they are full again each spring.
medium-ref and the late saves were not run (night-run rules; the change adds no loop over history). The measurement script was not committed.
Orchestrator’s decisions for Kim to overturn:
w.dev) are not grounds.FISH.secondDays and MATCH.urgency.gathering, apart from catch, so the report can tell them apart.