Status: done (2026-11-26) Priority: 2 Size: M Arch: plans Phase: implement Design ref: design.md section 7, The levy and own hours (A household’s levy on a member, Position, Realistic from the first build, The day’s capacity, the custom’s table); docs/plans/four-scales/README.md, 3.3 and 3.10 step 6, section 4 Q8; docs/plans/four-scales/levy-custom.md Touches: new sim/levies; sim/customs; sim/day (allot, takeDay, dayHours, hoursLeft); sim/fit (allotted); new tests/levies.js; tests/day.js Goal: Every adult member owes its household hours by custom, below its working hours, and the head’s day is planned within them Acceptance criteria:
LEVY (@tunable, a custom’s norm read through sim/customs’ one door): design.md’s table (an adult member, whatever its position, 9.5, 10, 10.5 and 9.5 hours a day, spring to winter; a child of 7 to 13 6, 10, 7 and 3, times its hands by age; a lodger 0, and an adult-day in summer and one in autumn; an elder 0; the head pair not levied); a servant’s contract gives its own row (its free day at the term is a dated grant, VB-1763); a child under 7 is not levied and not allotted.levyOf(st, pawn, day) (a new module sim/levies, @sys, owner of the member’s levy on the household’s plan): the head’s grant if any (VB-1763), else the contract’s, else the custom’s, times the pawn’s hands (age, health); compiled per member at the season’s turn and when membership or a grant changes; read by the allotment as one array lookup; Sim.levyOf.dayHours, hoursLeft, takeDay); the head pair, not levied, are allotted up to their working hours as today; each list past the levy is kept as the order in which a member gives, not assigned; work a household lives by (vital) is inside it and slotted first; levy hours the allotment leaves unassigned fall to the member for the day, and a later call inside the levy is no breach. Until VB-1762, a member’s own hours go to its household’s open work as today (Work beats idling), so this task moves the head’s planning and not yet the hours worked.assign or a call beyond a member’s levy stays allowed as today and is not named a demand.sim/days) comes out of the household’s levy on the one sent.tools/gate.js with own hours given not at all (a local switch). If every village lives on levied hours alone, giving (VB-1762) cannot fail the gate at any value; if not, the floor the giving judgement must hold is reported in VB-1762’s notes and as a tuning note on GIVE. (Not taken: the run was wrapped up early; carried by VB-1858.)docs/tuning.md’s row for LEVY updated with it. (Not measured: carried by VB-1858.)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.node tests/counters.js, --update with the entries listed); the result kept (--out) as the next task’s base. (Gate kept at docs/gate/base.json; hungry household-days founders 0/5/1 (base 0/0/0), populous 112/129/220 (base 90/187/406), hunger deaths 0 (base 0); counters not run: VB-1858.)
Notes:GIVE.