VB-1545: A lone holder takes the ranks of the roles its household lacks
Status: done (2026-11-23)
Priority: 1
Size: M
Design ref: backlog/VB-1542.md; src/sim/roles.js (the roles’ ranks); design.md, Who may take a job
Goal: a household of one does the household’s whole round, and solo’s dry days fall to the couples’ 2 to 5%
Acceptance criteria:
A general rule, not a case for water: for each kind of work, a household’s holder ranks it as the highest-ranking role would that the household has no working member of (no mistress: her household 9), and at its own rank where the role is filled. Which roles count as absent (none of that role alive, of age and at home) is stated in the code and in design.md beside the roles.
The rule is read where the ranks are read, once, with no branch for solo or for a kind; a household of two or more with every role filled is unchanged (node tools/same.js --base REF on founders and populous, or the differences listed and explained: widowers and widows are expected to change).
A check on a small constructed state (tests/tiny.js): a holder alone ranks water as a mistress does; with a mistress added, as a farmer.
Measured before and after on solo small, seeds 7 and 42, 4 years, and on founders and populous small seed 7: dry days, hungry days, health, grain at each year’s end, and hours by job kind. VB-1542’s counterfactual (rank 9 for water alone): 129 to 8 and 115 to 16 dry days, health 100.
Report whether households were better off, and what the lone holder gave up to do the round (field and hay hours): two of VB-1542’s counterfactuals that brought the water forward by other means cost 31 and 71 hungry days, untraced. If hunger rises, say why before the task is closed.
Notes
Kim, 23 November: the general rule, a lone holder gains the absent roles’ ranks; not the narrow one for water.
Cause found by VB-1542: the lone settler is farmer (household 2); a mistress ranks it 9. In a couple the second person brings the rank, not the hours.
Expect cooking, grinding and the mistress’s other work to move with it: that is the point, and the cost in field hours is the solo trade-off to report.
Feeds VB-1543: a walked fetch lowers the job’s score, so the rank must hold for whoever is there.
Built (VB-1545): sim/roles STAND {wife: [wife, maid, daughter]} and absentMask; sim/kinds ranks[mask] at load; read once in sim/jobs prioOf. Absent: no member the head allots the day to (living, 7+, not away, not on a day owed, not commanded) holds a role that fills the place; ill and nursing count. Only the holder stands in (Kim’s words; the holder is always farmer). Mask made once an allotment from allot’s own list: no new state, no allocation per read.
Close calls: a maid or daughter fills the mistress’s place (both rank household work 9-10); a wife away for the day or on a day owed leaves it absent; a female holder’s husband (role farmer) does not fill it, so she takes the mistress’s ranks.
Measured (small, at a9daed8 -> 70cb1f5): solo 7 dry 115 -> 42 of 191, solo 42 129 of 140 (dies) -> 32 of 191 (lives, health 100); no hunger in either; founders 7 dry 114 -> 42, hungry 16 -> 3, the starvation death gone; populous 7 (3 y) dry 241 -> 59, hungry 8 -> 8.
Goal not reached: solo’s residual (17-22%) falls on haymaking and harvest days, where mow or reap leads the list by a hair and runs to 18:00: VB-1546 and VB-1547, not a number (docs/tuning.md).
same.js against a9daed8 with the mask forced to 0: same (founders, populous, seed 7, small, 2 y); every difference comes through the mask: lone holders, widowers, a female holder’s household, a mistress or maid away or on a day owed.