village-builder

VB-1813: The trips as methods, the review’s rest: goods by what they are, one predicate for the hours, the owed day tested

Status: done (2026-11-27) Priority: 2 Size: S Arch: plans Phase: implement Design ref: design.md section 7, Plans at four scales (A stray pile, A load in hand, The cut and the call); backlog/VB-1749.md Touches: sim/doing (goodOf); sim/lying (WHAT); sim/agents (tripHome, onward, dayGiven); tests/days.js; tests/kinds.js Goal: A trip’s pile is found by any goal that uses its good, and the end of a pawn’s hours is one rule, tested Acceptance criteria:

Noted by VB-1749, 26 November 2026.

Decisions (VB-1813): trip goods are named stone (pick, quarry), fish (fish, rackfish), game, wild, earth, salt; sim/doing goodOf marks any good with no GOODS row a trip’s (trip: true), delivered by the kind of the task that carries it. tripHome now makes the load and calls onward (no walk of its own). mayWork in sim/agents is the one rule of the hours (reads sim/days given). tests/lib/invariants.js: a pile’s kind is a kind with methods or a good some plan uses. tests/days.js uses gather and wood (pick is not an accrues kind: a pick cut at the day’s end is only released).