Status: done (2026-11-26) Priority: 2 Size: M Arch: plans Phase: implement Design ref: design.md section 7, Plans at four scales (The player’s plan, The task as a plan); docs/plans/four-scales/README.md, 3.2, 3.4, 3.9 (Replaced) and 3.10 step 4 Touches: sim/planchains; sim/plans; sim/methods; sim/camp (moveTrips, moveCost); page/ui2build; page/ui2land; tests/handplan.js; tests/move.js; tests/cottageplan.js; tests/chain-tool.js Goal: A multi-step task at a tile is one goal for any pawn, with nothing kept for the player alone Acceptance criteria:
plan (VB-1754) writes a task at a tile carried through several steps (plant, hay, harvest, fell, firewood, the first shelter, the move) as a goal its kind’s methods carry; CHAINS as a structure of the player’s goes, and counts such as moveTrips move to the kinds or sim/camp (one count behind Sim.moveCost).sim/planchains is gone, with src/manifest.json, src/owners.json and docs/architecture/modules.md.tests/handplan.js, move.js, cottageplan.js and chain-tool.js drive the same chains through the verb for an unplayed pawn as for the played one, on constructed states; a played head’s move, cottage and first field still come about (what those tests hold updated on purpose where the path moves it).node tests/smoke.js and the affected browser tests pass.FORMAT raised (sim/saves): a save of an older build is refused, as docs/architecture/modules.md (Saves) says; no migration is written.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.node tests/counters.js, --update with the entries listed); the result kept (--out) as the next task’s base.
Notes:GOALS by sim/kinds with the generic readers (goalOf, goalWhy, goalSteps, goalGone, headCmd); taskAt moved to sim/steps. Reason: sim/kinds is the registry of the kinds the goals’ steps are jobs of; the readers hold no domain rule.hold (HOLDS), due (the raising at the next ask), ask (the plan asks its head: firewood, farmstead) and whole (MOVE_KINDS: kinds not left for the sleeping hours).[chain]: tile), its plan mark {goal, site}, a gap {tile, goal}: FORMAT 11. The verb’s args keep {<goal kind>: tile} so its callers (page, tests, Sim.plan) are unchanged.