Status: done (2026-11-21) Priority: 2 Size: M Design ref: none (code structure). docs/architecture/target-v2.md sections 2 and 4.5 (Plans); backlog/VB-678.md; backlog/VB-123.md Goal: tarYear (sim/tar), boatYear (sim/drying) and cartsYear (sim/carts) walk the same households with the same guards before they emit projectBegun, and have drifted (cartsYear does not ask whether the head holds off projects); pitDug, boatBuilt, cartBuilt and barnStage each repeat ‘is this job still its holder’s open step, then the effect, then stepDone’, and have drifted too (cartBuilt does not compare the place); onProject is written in sim/projects and again in sim/jobs. One read of who may begin a project, one way a step’s job ends, one onProject; each domain keeps what its project is and what its being built does. This prepares VB-678, which moves the beginnings behind the head’s verb. Acceptance criteria:
sim/projects, of whether a household may begin a project of its own now (it lives, it is not dissolved, its farm has no booth, it has no project plan under way, its head does not hold off projects), used by tarYear, boatYear and cartsYear; a starter that today asks less asks less by a named option, so that nothing changes here: cartsYear still does not ask heldOff, and a line in backlog/VB-678.md’s notes (through the inbox: a decision note naming VB-678) says that VB-678 is to close that gap.sim/projects: it finds the holder’s open step, checks it is this job’s (its kind and, where today’s finisher checks it, its place), runs the domain’s effect and emits stepDone; pitDug, boatBuilt, cartBuilt and barnStage are its uses, each keeping only its effect. Where one of them checks less today (the cart’s place), it goes on checking less unless the check can be shown always true (say which, with the reason, in the task file).onProject is defined once (sim/projects); sim/jobs reads it.projectBegun is emitted, in what order, or with what record.project verb); sim/aims, the land step of sim/plans, the plot, the green and the commons are left; no new verb.node tools/same.js --base REF prints same at --scenario founders,heirs --seeds 7,42 --map small --years 3 and at --scenario populous --seeds 7 --map small --years 5 (VB-1407 found that this run builds barns, carts and a boat; say whether it digs a tar pit, and if not add a run that does); the lines are in the result. node tests/counters.js as at REF; no save leaf changes.tests/suites.js; @sys lines updated; npm run format and npm run verify pass; the lint, width and ownership baselines do not rise (sim/projects is at its export count in tests/width-baseline.json, or under 15: check before adding an export, and open the split task AGENTS.md asks for if it would cross).
Notes / questions:mayBegin(st, hh, f, ask) and stepEnds(st, j, hh, effect, ask) in sim/projects; the cart asks less by { heldOff: false } and { place: false } (constants BEGIN, END in sim/carts), kept as today; VB-678 closes the heldOff gap.j.kind, not a literal: done is always KINDS[j.kind].done (sim/agents), so it is the same; tests/carts.js and tests/drying.js built jobs without kind and now give it.openStep (read only by the old finishers and tests) and supplied (read only inside it and by a test) left the interface; the tests read plan.steps[plan.open] and lacks(s, s.timber). No split task needed.