VB-1763: Grant and ask: a lighter levy and leave granted by the head, asked by the member; st.leaves goes
Status: done (2026-11-27)
Priority: 2
Size: M
Arch: plans
Phase: implement
Design ref: design.md section 7, The levy and own hours (Grant and ask, Demand and take, What a breach costs, A breach is a judgement); A member’s voice; docs/plans/four-scales/README.md, 3.3 (Grant, ask and breach, on both sides) and 3.6 (Verbs: assign, call, grant, ask, answer, breach)
Touches: sim/levies (grant); sim/voice (VOICE, ask, morning, hour, leaveOf, wanted); sim/service; tests/voice.js; tests/levies.js
Goal: The levy can be lowered by the one who holds it and asked to be lowered by the one who owes it, through verbs any controller has
Acceptance criteria:
Verbs, each checked by position: grant (a head on a member: a standing grant by season, or a dated one, leave), and ask / answer with the bases leave and lighter (a member to its head; answered once by the head’s need and its opinion; a no is a memory, as today); a grant is goodwill and opinion to the granter’s credit, the worth of the hours granted (3 rations for 8 hours); leave may be a whole day or, for a stay away of the pawn’s own, several (design.md, Leave, and a stay away); a lighter levy is asked at a season’s turn by a member that took levy hours the season before, and answered no when the labour budget less the hours asked would not fit (design.md, A member’s voice).
A servant’s contract writes its free game day at the term, a dated grant of the moving round’s whole day, onto its household’s plan when sim/service makes or renews it (design.md, Children, lodgers, elders and servants).
sim/voice’s leave by rule (st.leaves) becomes its default author’s ask (VB-1756) answered by a dated grant on the household’s plan; st.leaves goes. FORMAT raised (sim/saves): a save of an older build is refused, as docs/architecture/modules.md (Saves) says; no migration is written.
Decision points added to VB-1757’s list: an ask to answer (leave, a lighter levy).
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 6, the second half of a split (review of 25 Nov, B10 and B14): demand and take are VB-1779, before giving.
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).
25 Nov 2026, VB-1759 (design.md, The levy and own hours): the lighter levy’s ask and answer, the grant’s goodwill, leave of whole days and the servant’s free day at its term (moved from VB-1760) added; Touches gains sim/service.
27 Nov 2026, implemented: plan.grants (season, dated) written by sim/voice’s verb grant, read through the new sim/grants (which also holds VOICE, so sim/levies reads it without a later lookup); the levy in force is the row less the grants in force, day by day.
A lighter levy asks VOICE.lighter = 1 clock hour a day for the rest of the season whose first review it is; asked by a member that took levy hours the season before.
A grant’s goodwill: the levy hours given (the levy in force capped by the hours granted, times the hands, a day) times GOODWILL.hour, to the head’s credit.
A servant’s free day books no goodwill: the contract gives it, not the head’s grace. Only its renewal path is tested (tests/voice.js); serve() writes it the same way.
tools/events.js finds subscribers by on(: sim/voice no longer aliases on as listen.
27 Nov 2026, gate holds (tools/gate.js, kept as docs/gate/base.json): hunger deaths 0 everywhere, before and after; hungry household-days founders 0/5/0 (unchanged), populous 7 158>145, 11 106>76, 42 180>153; stuck 0, unexplained 0. Counters: grantGiven, grantLook, budgetDay, lighterLook, lighterAsked, lighterGiven new; none other moved.
27 Nov 2026, revision after review: a standing grant is not overwritten by one of the next season while it is in force (F1); the lighter ask is answered by sim/levies fitsLess, fit’s own weekly comparison against the budget reckoned from today (F2; fit and fitsLess share shortOf and weeksOf; the unused export owedToday gave its place); the budget’s sig keys on the grants’ content (F3). F4, F6-F8 are in VB-1908. F9: the gate’s hungry household-days fell, not rose (before 158/106/180, after 145/76/153); the gate rerun after the revision gives the same numbers, kept as docs/gate/base.json. sim/levies is 725 lines: collected into VB-1737.