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 plan record); docs/plans/four-scales/README.md, 3.4, 3.9 (Replaced) and 3.10 step 4 Touches: sim/playerplan; sim/plannext; sim/controller; sim/player (playerStep); sim/plans; page/ui2plan; page/plan; tests/plan.js Goal: The played pawn’s plan is its pawn’s and its household’s plan record, with nothing kept for the player alone Acceptance criteria:
plan (any pawn on its own plan, a head on its household’s; checked by position) writes steps: a routine of job kinds, the sleeping hours, an ordered or dated task; Sim.plan’s ops and the verbs target, tile, order, project and dayOrder where they write a plan go through it (each kept as a facade or removed, listed).sim/playerplan and sim/plannext are gone (the controller’s plan of VB-1746 now steps of the plan record), with src/manifest.json, src/owners.json and docs/architecture/modules.md. FORMAT raised (sim/saves): a save of an older build is refused, as docs/architecture/modules.md (Saves) says; no migration is written.tests/plan.js drives the same routine, sleep and tasks through the verb for an unplayed pawn as for the played one, on a constructed state.node tests/smoke.js and the affected browser tests pass.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:ahead by author ‘pawn’: {routine}, {sleep}, {goal}; plan.lastTask, as the household’s plan.last is taken), read through sim/steps’ pawnPlan, plansIn, planners. The verb plan is sim/plans’ (ops: sim/controller’s PLAN_OPS, sim/plans’ target/tile/order/project, sim/day’s dayOrder by planOp); target, tile, order, project, dayOrder and Sim.plan kept as facades.