village-builder

VB-1565: A helper who goes home is let go of the task it worked: no work credited to a hand not there

Status: done (2026-11-23) Priority: 1 Size: S Design ref: design.md section 7, A leg, and its end; The cut and the call; Help between households; docs/review-agency.md, section 8 Goal: Mends a red check. node tests/oxen.js fails on the run’s branch after its merge with main (OXEN FAIL: rates 0 1.96, 1 1.01, 2 0.95, 3 0.98, 4 1.31, 5 1.04): household 4, which has no ox team, shows 1.31 hours of ploughing done a pawn-hour, above a hand’s pace (1.18). It passes on main alone and on the branch before the merge, so it is an interaction of the two: main’s day’s end (VB-1546 the afternoon allotment, VB-1547 a core task finished past the day’s end, eveningCall in sim/jobs, the day’s end in sim/clock and sim/agents) with this branch’s own time (sim/pastimes, ownTime, called from sim/clock) or VB-1554’s change in refreshJobs. Traced so far (founders, seed 7, the probe island of tests/oxen.js, game day 50): pawn 3, wife of household 1, lent as a helper (sim/hands) to household 4’s plow, is seen with a.job still that task while its phase is go, work, then home, then null: it walks home without being released from the task’s claims, and the task is credited 11.35 hours of work for 6.0 hours in phase work that day (a task’s progress is reckoned in closed form from the rate of the hands in j.claims, sim/work). Find which path sends a hand home (or leaves it free) without release (sim/agents), mend it there so that one rule lets go of work at the day’s end for a member and a helper alike, and add the invariant: no agent holds a full task (a.job) in phase home or null. A script that prints the day-by-day tally is in the notes. Acceptance criteria: