Status: done (2026-11-24)
Priority: 2
Size: M
Design ref: design.md section 7, The day’s work (the slotting, 23 Nov); docs/cost.md; backlog/VB-1554.md (the measure)
Goal: VB-1554 measured the day’s allotment as the largest part of the jobs line (31%): a household’s day is allotted 4.4 times a day, and half of the pairs weighed are for a task the due-queue has just opened (the milking 18%, the morning with the water 18%, the cooking 15%). Kim, 23 November: a task newly due may be slotted in. When the due-queue opens a task for a household (refreshJobs, the due-queue’s part), weigh each member for that task alone and put it into the day’s lists as they stand (plan.day.lists), by its fit among the tasks already there and within the member’s hours left (plan.day.free); a task with a deadline today (late) goes first in its hand’s list and calls it, as allot does. The whole day is weighed anew only at the morning, at the head’s review, when a member looks for work (lookForWork, takeDay’s missed member) and when a task of the household or its village is posted or taken down otherwise.
Acceptance criteria:
dayPair a pawn-day at populous small, seed 7, falls by at least a quarter from its value at the task’s start (node tests/counters.js, before and after, --update for the intended change); seeds 3, 11 and 19 reported. Unticked: it falls by 18%, 21.10 to 17.32 (seed 7); 19.56 to 16.03 (3), 20.50 to 17.06 (11), 24.55 to 20.37 (19); on the probe 9.39 to 7.67 (recorded). The due-queue’s openings no longer allot a day at all; what is left are the allotments the rule keeps: the morning 27% of the pairs, 14:00 23% (VB-1546, added after VB-1554’s measure), a member’s look 21%, the reviews about 20%.allot share the fit, the join factor, the hands’ cap: no second copy of the rule (a test on a constructed household holds that a task slotted lands where the morning’s allotment would have put it when nothing else changed).npm run format and npm run verify pass; sim/jobs over 700 formatted lines names or opens its split task.
Notes:MATCH.day.afternoon) and its tests/afternoon.js holds that; the slot must leave that allotment and the morning’s whole, and take over only the due-queue’s openings (the milking, the cooking, fodder, the water). tests/afternoon.js and tests/day.js show how a test posts a task and allots. The measure to beat is in backlog/VB-1554.md.slotIn (sim/day) weighs the members for the one task and runs the allotment’s own pass (man, with weigh and call, factored out of allot): fit, join, hands’ cap and the head’s estimate are one copy. Each list keeps beside it its entries’ fits and hours (plan.day.fits, plan.day.hours), so a task slotted goes among the tasks by its fit.sim/jobs is 258 formatted lines, sim/day 443: no split task.