Status: done (2026-11-27) Priority: 2 Size: M Arch: plans Phase: implement Design ref: design.md section 9, Outer levies (One record, Terms, Who names the day, Worked); docs/plans/four-scales/README.md, 3.3 (How levies relate to sim/obligations; the OuterLevy type), 3.10 step 7, section 4 Q10 Touches: sim/days; sim/levies; sim/obligations (create, KINDS, setCalled, due, fulfil, lapse); sim/keep; sim/followers; sim/eligibility; tests/days.js; tests/levies.js; tests/obligations.js; sim/seasonal Goal: One record and one module carry every claim on a household’s days, and a levier’s power shows in the terms, not in a rule Acceptance criteria:
sim/days’ work (the days called, the day’s duty, the basis owed) moves into sim/levies (a move commit, then the change); the obligation of kind days gains its terms (names, notice, substitute, commute, carry, onBreach), its window, its named days and the days worked; debt, keep (sim/keep) and patron (sim/followers) get the terms of design.md’s table (Outer levies, The terms, the ladder and the breach: the levied names, in the season the levier asks; substitute; commute at OUTER.worth; the keep and a patron’s days lapse, a debt’s go to the meeting), each asked by season by the levier’s default author (the keep: the days its season plan falls short of its labour budget, at summer’s turn what is still owed; a debt: a quarter a season; DAYS becomes OUTER); routine and due are accepted (routine laid by VB-1768; due tested on a constructed levy, since no estate exists yet).name; a day still unnamed when the window has only the days unnamed plus the notice left is named by its default author. The verb levy (a levier’s agent lays a levy with its terms) replaces callDays.owed; each hour is booked owed (VB-1761) and comes out of its household’s levy on it; a met, lapsed or breached levy leaves the live index and is pruned with its events (Rules for cost 1 and 9).Sim.levies(st, body) gives the levies a body lays and bears, with their terms, through the actor view.due laid on a village adds to its households’ routine lots rather than replacing them.st.daysCalls and st.daysToday go, or become the levies’ compiled index (derived, DERIVED in sim/saves); FORMAT raised (sim/saves): a save of an older build is refused, as docs/architecture/modules.md (Saves) says; no migration is written. the cases of tests/days.js move to tests/levies.js.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.
Notes:debt) lays days with the source debt: whichever lands second carries the other’s source over.OUTER in place of DAYS) and naming rule.npm run verify green; tests/commands.js updated on purpose (Sim.levies listed among the facade’s reads). The gate holds against the base (stuck 0, unexplained 0, no settlement extinct or collapsed). Hungry household-days, before -> after: founders 7, 11, 42: 0 -> 0, 5 -> 5, 0 -> 0; populous 7: 145 -> 391; populous 11: 76 -> 58; populous 42: 153 -> 88; deaths by hunger 0 throughout. Counters: daysCalled became daysNamed; leviesLaid, leviesAsked, leviesLooked, leviesWeighed new; fitRow 0.189 -> 0.236 a pawn-day. The result kept as docs/gate/base.json.