Status: done (2026-11-24) Priority: 2 Size: M Design ref: backlog/VB-1659.md; src/sim/ladder.js (OUTBUILDINGS); src/sim/byre.js; src/sim/herds.js; src/sim/rules.js (HERD.byre); src/sim/upgrade.js; src/sim/aims.js (barn, for the like of a making) Goal: A farm’s animals winter better under a roof, and the roof is built. Acceptance criteria:
HERD.byre, the lean, the autumn count, what a farm with a booth or a camp does with its animals): the byre is today assumed at every farm.farmstead.byre (an owner, @state, an invariant, saved; every farm that stands at seeding in every scenario has one, so that founders, heirs and populous start as today, and an older save reads as having one), an entry byre in OUTBUILDINGS (timber about 20 loads and 60 hours to begin with, tunables; places HERD.byre). A farm without a byre (a hand start; a settler’s new farm, if the sim’s rule for those farms makes none: say what you found and decided) winters its animals in the open: the stall winter’s lean comes faster by a named factor (a tunable), with the same rules otherwise.Sim.plan(st, 'add', {outbuilding: houseTile, what: 'byre'}) (if the chain outbuilding does not exist yet when you merge, add it so that the barn’s task, built beside this one, can share it), the timber at home first; Sim.farmView().outbuildings lists it with built, ok, why, planned.node tools/same.js is expected to differ only where a farm has no byre: say where. A tuning note for what is out.npm run verify passes; baselines do not rise.src/page/*) is the orchestrator’s.sim/byrehouse owns farmstead.byre ({built}), the making byre (stages byrewalls 40 h with 20 timber, byreroof 20 h: BUILD.byre) and byreWhy (cottage first, a wood, no project under way); OUTBUILDINGS.byre gives {places: HERD.byre}. Without a byre a lean day counts HERD.openLean = 2 (a whole number: lean counts days); the count’s room cap and the rest unchanged (same rules).