VB-1758: Partial repair: an arriving task is slotted into the day’s lists, and a lost holder’s tasks go back to the pool
Status: done (2026-11-26)
Priority: 2
Size: M
Arch: plans
Phase: implement
Design ref: design.md section 7, Plans at four scales (Replanning); The day’s work; docs/plans/four-scales/README.md, 3.5, 3.8 (the saving to show), 3.10 step 5, section 4 Q6 and Q7
Touches: sim/day (slotIn, allot, daysOf, slotArrived, slotOut, lostHolder, allotDays); sim/jobs (post, sweep, refreshJobs, lookForWork); sim/fit (allotted); sim/deaths (dayOfDeath); sim/hands (settle); sim/voice (begin); sim/away (open); src/vb.js; tests/day.js
Goal: The allotment absorbs a shock in place, cheaper than allotting the day anew, before the levy takes hours away
Acceptance criteria:
A task that arrives (posted at a review, by the due-queue, by a step reaching its day) is slotted into the members’ lists as they stand (slotIn); allotChanged allots the whole day only at the morning, at 14:00 and when a slot-in finds no member with hours.
A holder ill, dead or called away has its tasks returned to the pool at once and slotted to others; no target is lowered for an absence shorter than the step’s window (a check on a constructed household with a three-day illness at the reaping).
Q6: allotments a household-day (about 3.5 today) and dayPair a day, populous small seed 7, 2 years, before and after: the predicted saving (to at most 2.4, dayPair down a fifth or more) shown, or its shortfall reported. Q7: a three-day illness costs no more vital hours than today’s allotment does, within 10%.
Cost: 200 households × about 1.5 arrivals a day × 1 task × 5 members (about 1,500 pairs) in place of about 1.5 whole allotments (about 15,000 pairs); the counters re-recorded (node tests/counters.js --update), entries listed.
The gate (docs/plans/four-scales/README.md, 3.10), by one command: npm run verify green (a test that asserted the old behaviour updated on purpose, never skipped or quarantined, and named in the PR), and node tools/gate.js --base <the last recorded result> passing (VB-1774): no settlement extinct by hunger or collapsed (VB-1774’s bound), no more tasks held over 48 hours than the base, the stocks’ unexplained no larger.
Reported in the PR from the same output, not gated: hungry household-days and deaths by hunger in the six runs, before and after, and the work counters (node tests/counters.js, --update with the entries listed); the result kept (--out) as the next task’s base.
Notes:
25 Nov 2026: Path step 5: lets the allotment absorb a shock before the levy (step 6) takes hours away.
Waits for the day’s repair (VB-1597) and the plan record (both edit what post gives the day), not for the rest of step 4 (review of 25 Nov, A11).
25 Nov 2026, after the review of the arch’s tasks: rewritten to its findings (the review’s IDs and outcomes are in the arch’s summary).
26 Nov 2026, built: a task posted at a review or a look is slotted (sim/day slotArrived); a task taken down leaves the lists (slotOut); a pawn
dead, ill, lent, on leave or away has its tasks slotted to the others (lostHolder, on ‘died’, ‘fellIll’, ‘leftDay’); the whole day only
at the morning, at 14:00 and where a slot finds no hand. Decision: an illness keeps its pawn from work (sim/fit allotted), for “a
holder ill” to mean anything (design note left). Decision: the review posts slotted, not a whole allotment (the Replanning row).
Q6 (populous, seed 7, small, 2 years): allotments 3.594 to 2.325 a household-day; dayPair 7312 to 5346 a day (-26.9%). Q7 (tests/day.js 7):
a reaper ill three days at the reaping, the reaping done in 52 hours against 51 under the whole allotment, vital hours unmet 0 and 0.
Counters: dayPair 6.79 to 4.79 a pawn-day; dayAllot (new) 0.415; dayLost (new) 0; dayTake 4.77 to 5.13; storyWeighed 0.16 to 0.47.
Tests updated on purpose: tests/day.js 6 (the village’s mending slotted, not every day allotted), tests/peas.js (seed for each field at
peas), tests/agenda.js (the plow’s work left fixed), tests/plan.js 4 (a longer clearing), tests/methods.js stage-cut probe.
The gate holds against docs/gate/base.json (84fc7b8e, the same as at 78798f9a); kept anew as the base. Hungry household-days, populous
7/11/42: 140/94/159 to 199/56/310 (393 to 565); founders 0; deaths by hunger 0 and 0; living at year 10, populous, 1188 to 1145.
Cause (populous 42, one run each): the review no longer allotting the day whole; restoring that gives 166, an ill pawn at work 362.
Follow-up: the task noted to the inbox, “The review’s new urgencies reach the day’s lists in place”.
Revision (review F1): an ill pawn keeps to bed (sim/day abed: no task, look or pastime; home, then resting); F2 follows (no look spent).
The drink’s log read its source after the trip, which one at its source had finished: read before. Gate holds; hungry household-days
90/187/406 (683; reviewed 565, before 393): not brought down, left to the follow-up. Natural illness falls at the death roll, before
work, so the in-day pool path serves leave, lending, a stay away and a death off the roll (dayLost 0 in the counters run; F3).