Status: done (2026-11-26) Priority: 2 Size: M Arch: plans Phase: implement Design ref: design.md section 7, Plans at four scales (A step at risk, and the take-back; Authors); docs/plans/four-scales/README.md, 3.4 (the three conditions), section 4 Q12 and Q16, section 6 answer 17 Touches: sim/controller (vitalJob, givenTo, nextOf, PLAN_OPS); sim/steps (atRisk, takeBack, dropTaken, plannersIn, stepOfKey, keepTask, dateTask, shown); sim/reasons (reasonOf, reasonLine); sim/kinds (dailyNow); sim/chores (KINDS); sim/byre (KINDS); sim/authored (new); tests/authored.js; tests/plan.js; tests/farmtasks.js Goal: A controller’s plan never crowds out the meal or the water, and a step it cannot finish in time is not lost silently Acceptance criteria:
plan verb’s check reserves the expected hours of each day’s due and vital kinds (the water, the meal, the fire, milking, fodder) before an authored step; a check on a household with 30% of its steps authored at random: no vital hour crowded out (Q12’s second half).by; at the body’s review, when the planner’s estimate says it will not be done by then, it is at-risk and its author’s controller is to be asked (this task sets the state; VB-1757 lists it as a decision point); unanswered by its deadline, the default author takes it over (adds hands, moves it), the step’s author becomes custom and the card says so (Reasons shown).kept through the plan verb is never taken over; the card warns of the risk while it lasts.docs/plans/four-scales/README.md, 3.10), by one command: npm run verify green (a test that asserted the old behaviour updated on purpose, never skipped or quarantined, and named in the PR), and node tools/gate.js --base <the last recorded result> passing (VB-1774): no settlement extinct by hunger or collapsed (VB-1774’s bound), no more tasks held over 48 hours than the base, the stocks’ unexplained no larger. (Gate held, 26 Nov: the six runs as the base, stuck 0, unexplained 0, none extinct; npm run verify 328/329, tests/renumber.js red only while VB-1842 and VB-1843, named here, wait for their files from the inbox’s apply.)node tests/counters.js, --update with the entries listed); the result kept (--out) as the next task’s base. (Hungry household-days 0, 0, 0, 134, 94, 145 and hunger deaths 0 in all six, before and after alike: no pawn plans for itself in them; counters: riskCheck and vitalAsk new, 0 in the counters run; kept as docs/gate/base.json.)
Notes:sim/authored (sim/day would pass 700 lines; its own concern). The daily kinds carry daily (water, cook, firewood, milk, fodder); daily work goes first only while its vital rule holds (the woodpile’s stocking would eat the walls’ timber, tests/upgrade.js).by, not kept. A task at a tile (a chain) has no task to estimate: undated, never at risk (VB-1842).