Status: done (2026-11-21) Priority: 2 Size: M Design ref: none (code structure). docs/architecture/target-v2.md sections 2 and 4.3 (Facility); backlog/VB-361.md; backlog/VB-328.md Goal: Whether a building site has its timber is asked three ways (short of sim/building, waitsForTimber of sim/expansion, supplied of sim/projects), the timber trips are posted by four branches with a hard-coded list of step kinds (timberWork, boothWork), a plot’s walls are reached as plot.steps[2], and the line that keeps a stage’s hours while its job is posted again is written three times (sim/expansion twice, sim/farmclaims). One read of what a site lacks, one rule that posts the trips for every site that lacks timber, a name for the walls, and one helper for the kept hours; the sites keep their records and owners. Acceptance criteria:
src/layers.json; short, waitsForTimber and supplied are that read or one-line uses of it, with no default that turns a step without timber into one that needs the cottage’s (today’s site.timber ?? BUILD.timber): each site says its need.timberWork (boat, cart, barnwalls) is gone: a step that carries timber is enough. The jobs posted, their keys, their order and their owners are as before (a job’s id is its posting order).plot.steps[2], in every module that reads it (grep steps\[2\] and steps\[1\]).doneOf, sim/progress, or where the layers allow), used by the plot’s cottage, the booth’s cottage and the restoration.f.booth, st.booths, plan.build, the claim): bringing them to one encoding is a later task, after Kim’s decision on site records (the review’s batch 5). finishCottageStage and finishBoothStage are left.node tools/same.js --base REF prints same at --scenario founders,heirs --seeds 7,42 --map small --years 3 and at a run that builds from booths and a boat (settlers: find the scenario and years at which tools/sim.js shows a booth’s cottage, a plot, a barn or cart and a boat built, and say which); the lines are in the result. node tests/counters.js unchanged; no save leaf changes.tests/tiny.js, tests/lib/probe.js), in tests/suites.js; @sys lines updated where a responsibility moved; npm run format and npm run verify pass; the lint, width and ownership baselines do not rise.
Notes / questions:lacks(site, need) in sim/projects (material, imported by sim/expansion, sim/building, sim/cottage, sim/saves); the need is the site’s module’s (a step’s timber; a cottage’s timberNeed(i), BUILD.timber until the walls stand, in sim/expansion; BOOTH.wood for a staked booth), so no default. The walls are stepOf(plan, 'walls') (by kind) in sim/projects, not an export of sim/expansion, which would have taken that module over 15 exports (it is at 15 after dropping COTTAGE, no longer read outside).fetchTimber of sim/building; sites are named by plotTimber, boothTimber (sim/expansion), timberOf (sim/projects), stakedTimber (sim/building), asked in the old order. A staked booth now goes through the same at-most-two-trips count: one trip while BOOTH.wood <= ECON.woodPerTrip (today 2 <= 3), so unchanged.keptDone(st, key, hours, done) in sim/progress returns the hours and the caller writes them (a write in sim/progress could not be placed by the ownership scan); tools/writes.js gains the hint walls: plan.steps[] for sim/expansion and sim/building.