Status: done (2026-11-24) Priority: 2 Size: S Design ref: backlog/VB-1655.md; src/sim/building.js (BOOTH, buildStep, barnSteps); src/sim/cottageplan.js; src/sim/camp.js; src/sim/makings.js; src/sim/aims.js (barn); src/sim/house.js; src/sim/rules.js (BOOTH, BUILD) Goal: The page can show, at the farmstead’s tile, what stands and what it could become, from one table the later rungs are added to. Acceptance criteria:
{from (the rung it is built from), needs {timber, stone, hours}, gives (in the terms the sim already has: roof, sleeps, wear, standing)}, with today’s numbers read from where they are defined (BOOTH, BUILD, COTTAGE_HOURS, HOUSE), not copied.rungOf(st, f): the rung a farm’s main building stands at, derived from the state as it is (f.camp, f.booth, st.booths, the cottage plan’s stage, f.grade); no new state. Right for every farm of founders, solo (with and without hand) and populous at seeding and after a year (a test).Sim.farmView(st, farmId), plain data, writing nothing: {rung, building (null, or what is being built now: {what, step, hours left}), next: [{what, needs {timber, stone, hours}, ok, why}], outbuildings: [{what, built, ok, why}]}: next the rungs that can follow the one standing, why the reason one cannot be begun now in the head’s own checks’ words (the cottage’s, buildStep’s, barnWhy).node tools/same.js --base REF --scenario founders,solo; npm run verify passes; baselines do not rise.sim/byre reckons the animals at the farm). They wait for Kim’s answers (what a timber house and a byre give) and are added to these tables by later tasks, as are the plan tasks that build each rung.src/page/*) is the orchestrator’s.src/sim/ladder.js (RUNGS, OUTBUILDINGS, rungOf, farmView), a new module so sim/building does not widen; COTTAGE_HOURS exported by sim/cottageplan; tests/ladder.js (two lines of INTEGRATION, each under its 5 s).gives.roof is sim/hunger’s roof words (‘none’, ‘booth’, ‘house’); sleeps null for a house (its household); the barn gives {store, loss}.why has no verb behind it yet: no farm under a hand plan can begin one, so a hand booth farm shows the cottage next with ok true; the plan task that builds it brings its check. The stone’s why mirrors buildStep’s conditions in the barn’s words (buildStep returns no reason).building is one: the main building first (booth, cottage, stone), then a barn; hours left from the live job where its key is known, else the step’s done.