Status: done (2026-11-15) Priority: 1 Size: M Design ref: design.md section 7; docs/review-jobs.md section 6 B Goal: The player and the reader can see who does what today and why, and the per-step auction over household work goes (Kim, 15 November: B first). Acceptance criteria:
design.md section 7 says how the day is allotted (Matching, Several hands, More urgent work and the cook’s call rewritten; the noise and the poor-fit wait gone), as Kim agreed on 15 November.npm run verify.docs/review-jobs.md: “Do B first. C is in scope.” The Agreed points of section 7 that B rewrites may move.Implementation notes (15 Nov 2026):
src/sim/jobs.js: allot (the head’s day), allotChanged, takeDay, helpers; planRound, lookUp, callCooks and the poor-fit wait are gone, and the calendar’s two hourly rows with them. refreshJobs and lookForWork note the holders whose tasks were posted or taken down and allot their days at their end; each morning every household’s.plan.day = {made, lists: {pawn id: [job keys]}} on a household’s standing plan, owner sim/jobs (src/owners.json), written whole by allot; saved with the plans; its invariant in tests/lib/invariants.js. A plan without a day (an old save, a new household) is allotted when a member first looks for work.MATCH.day.horizon (working days in which a task’s hands should finish it). Counters dayPair, dayTake replace matchBid, lookUpJob, cookFarm.src/sim/stores.js: a woodpile falling under MATCH.urgency.woodLow wakes the head, as grain crossing its reserve does: without the hourly look up nothing else told the head.src/sim/occasions.js: one who cannot set out because it carries a load is looked at again at the next step, not in an hour. Found by tests/routines.js: a hauler whose trips took the hour was carrying at every hourly look, and a village of one voice had no quorum. On main the same could happen; the timing hid it.tests/lib/invariants.js: a load in phase work is allowed for a kind that stacks (firewood beside a cart). main has the state too (963 agent-steps in 40 days of heirs, seed 7); the check passed only by when it was run.Decisions (Deciding without Kim):
tests/head.js lost its hay; the factor is what spreads hands over tasks that can be worked at once. A close call: the review proposed dropping it.refreshJobs an act with side effects on every caller. A close call.late: the meal) goes first in its hand’s list whatever its fit, and calls the hand: the general rule in place of the cooks’ own.Parameter runs (principle 3; populous small seeds 7 and 42, 4 years; founders small seed 7, 8 years):
horizon 1, before the join factor: tests/head.js out (1.94 winters of hay for 2).horizon 0.5 and 0.25, before the join factor: the head’s raised hay target had no effect (the raking missed).horizon 1 with the join factor: hungry household-days 50 (seed 7), 6 (seed 42); founders’ grain 483 at year 8.horizon 0.5 with the join factor: 42, 5, and 508. Kept.Validation (15 Nov 2026): npm run verify 109 of 109, 7 targets out as before the change. Before 05195dd, after this commit:
| Run | Measure | Before | After |
|---|---|---|---|
| populous small, seed 7, 4 years | living at the end | 379 | 379 |
| hungry household-days, years 1 to 4 | 8, 31, 0, 1 | 6, 23, 0, 0 | |
| mean grain, year 4 | 579.5 | 579.7 | |
| ms a game day; the jobs line | 93.4; 38.6 | 98.8; 40.9 | |
| populous small, seed 42, 4 years | living at the end | 372 | 375 |
| hungry household-days | 0, 3, 1, 0 | 0, 0, 0, 0 | |
| mean grain, year 4 | 515.8 | 519.6 | |
| founders small, seed 7, 8 years | living at the end | 18 | 18 |
| hungry household-days | 1 (year 3) | 0 | |
| mean grain, year 8 | 528.6 | 526.2 | |
| populous small, seed 7, year 3 | farmers idle, spring to winter (%) | 20.2, 17.1, 14.5, 53.1 | 20.8, 20.4, 16.1, 47.7 |
Households: fewer went hungry at every seed run; a household-year of three fields works the same hours by kind within a tenth (--report hours), wood less (77 to 63 h) and mowing more (42 to 47 h).
Cost: not cheaper. The pairs weighed are as many (21 a pawn-day against 15 bids and 9 looks up), and the routes a task’s start pays for are the same. What B bought is the readable day and the code: the saving waits for scheduled blocks (docs/review-jobs.md, option C).