village-builder

VB-1751: Refactor: the phases go: the kinds’ control fields, the fetch kinds and the inline cases of a job’s end

Status: done (2026-11-26) Priority: 2 Size: M Arch: plans Phase: implement Design ref: design.md section 7, Plans at four scales (The task as a plan); docs/plans/four-scales/README.md, 3.2 (What it removes and keeps) and 3.9 (Removed); BACKLOG.md, How this backlog works (Refactor rules) Touches: sim/agents (start, release, complete, deposit, arrived, ended, freeHands, stopWorkFor, sideEnded); sim/kinds (KINDS, carriedOn); sim/lying (fetchKey, fetchKind, fetchWork); sim/clock; sim/jobs (lookForWork); sim/fit; tests/lib/invariants.js Goal: One way a task goes on, the method, with nothing left of the phase machine Acceptance criteria: