Status: done (2026-11-13)
Priority: 2
Size: M
Arch: year
Phase: implement
Design ref: design.md, Households short of people (Held by kin when nobody can come; Decided, Kim 13 Nov); Handover and shares (Splitting land: the old household works the sibling’s fields); QUESTIONS.md, VB-283; backlog/VB-283.md
Goal: Of the 56 household-years hungry over 0.3 of households short of people (VB-283’s replay at 38b920d), 42 had nobody to come (no free relative, no servant within reach); 28 of them had a parent’s, child’s or sibling’s household in their village and 5 more within reach, 9 had none. When VB-308 finds nobody, the household’s people move to their nearest kin household and that household holds the farm in trust until they can return. Waits for Kim’s answers to QUESTIONS.md, VB-283 (the trust, and the orphan rule).
Acceptance criteria (as proposed; rewritten from Kim’s answers):
moveTo) to its nearest kin household within walking reach, ranked as help ranks kin (kinHouseholds, src/sim/help.js: parents and children before siblings, then by id), that is not itself short of people. With none, nothing happens.st.owner, src/sim/ownership.js), the household’s holder and its line are unchanged; the trustee household works the fields as its own work (eligibility member of the trustee for the farm’s tasks: VB-250 has landed, src/sim/eligibility.js) and takes the harvest into its store; the house stands empty and decays as an empty farm’s does. One record holds the trust (the farm and its trustee), with an index of live trusts kept by its owner (cost rule 1), named in src/owners.json.comeOfAge, src/sim/heirs.js). Under Kim’s answer to question 2, an orphaned heir with no guardian is held for the same way, in place of extinct.checkState: a trust’s farm and trustee live; its people live with the trustee), golden and counters re-recorded with the entries listed; a test on a constructed village.
Cost: one move and one record per case (the replay: at most 42 household-years on 350 run-years, so a few trusts a decade a run); the trust’s end is checked at the events above, on their own steps; the trustee’s work is its ordinary work over more fields. Name it measured on small-y40.
Order: after VB-308 and Kim’s answers. VB-311 (land rights, slice 5, ready) builds own and use apart with grant of use, the relation “a farm worked by a household that does not own it”; if it lands first, the trust is a grant of use to the trustee and VB-034 reuses it too; if this task lands first, whichever of VB-309 and VB-034 comes first builds the relation, its harvest shared, and VB-311 takes it over (VB-034’s sibling and the trust differ only in the share: half against all).
Notes:member basis), and VB-311 now builds the relation this task and VB-034 share; the order note names it. Still waits for Kim (QUESTIONS.md, “VB-283”).QUESTIONS.md, VB-283): it moves a Decided point, the orphan rule.QUESTION_ARCHIVE.md, “Archived 13 November 2026 (VB-283)”). design.md,
Households short of people: the trust and the guardian rule marked Decided (Kim, 13 Nov), as the orchestrator allowed for this point.src/sim/trust.js (agency layer, after
sim/heirs), owner of st.trusts (every trust, by id, never reused: {id, household, trustee, ward, people, start, end, why}) and
st.liveTrusts (the sorted ids of the open ones, a cache: Rules for cost, 1), both in src/owners.json. sim/ownership reads them for
the modules loaded before (trustOf, trustOfHolder, heldFarms; a walk over a few live trusts, no allocation when there are none).
takeIn (sim/service), when neither kin nor a servant comes, and careForOrphans, in place of extinct, issue the new
verb goToKin (actor the holder, a ward for an orphan); its check asks trusteeFor: the first of kinHouseholds (help’s ranking)
within the service reach (SERVICE.reach steps between village centres, as reachSteps) that is not itself short of people
(shortOfPeople) nor held in trust; for an orphan with none, the household of its nearest grown kin within reach not short of
people (as kinHomeFor sends children). With none: the lone household waits, as before; the orphan’s farm stands empty, as before.
holdInTrust: the people move (moveTo, so they walk: VB-287), the grain goes with them (handingOn) and the animals (passHerds),
the household’s own tasks are dropped, the house’s condition is fixed from now as an empty farm’s.sim/jobs posts nothing for a household in trust (its due-queue entries and its review are skipped); the trustee’s review,
due-queue and look for work ask the held farm’s field kinds as its own (ASK.fieldAt, owner the trustee, so its members take them on
the member basis and the sheaves go to its own barn, its own seed sown); sim/plans’ fieldsDue walks held fields too. Farm-level
kinds (manure, byre, wood, repair) are not asked for the empty farm. Owner (st.owner), holder, line and fields are never written.houseCondition (sim/rules) returns the kept condition for a farm in trust, and the clock’s daily decay of empty farms
includes it (8% a year); at the end condAt restarts its wear. It never turns to a ruin while held (state stays occupied).goBack (the holder goes back with a spouse, its minor children and the unmarried people who came
with it, and their share of the trustee’s grain by mouths) at the holder’s marriage (wed; matchRules’ place of a holder in trust
is the held farm), at a servant at the moving round (takeServants counts a grown holder in trust as one who lives alone), at a ward’s
18th year (wardsOfAge, beside comeOfAge in dailyLife, a walk over the live trusts), and when the trustee dissolves (extinct
issues it first). At the holder’s death closeTrust, then succession on the held farm as today (killPawn). When the trustee’s new
holder (by death or retirement) is the held farm’s holder, the trust closes (‘inherited’) and the held farm is handed on (handOn).tests/trust.js (fast tier, tests/suites.js): a lone holder of 3 fields whose parent’s household keeps three grown, nobody
in st.demand: after the short ask the holder lives with the parents, the farm in trust, owner/holder/household unchanged, the trustee’s
tasks on the farm owned by it and taken as member, the empty house down by 8% a year over 60 days; then marriage (the couple back, the
trustee’s tasks taken down), a servant at the round, a save and load (the records equal), the holder’s death, the trustee’s end, and an
orphaned ward held by its parent’s kin and back at 18; checkState after each. Invariants (tests/lib/invariants.js): liveTrusts is
the open records in order; a live trust’s household and trustee live, its household empty, its holder alive and living with the
trustee, the ward its holder, no household held twice; a holder need not be a member of a household in trust. npm test passes,
npm run verify 93/93 passed (base 92/92), 10 targets out, as at the base (1df68b8). tests/counters.js: 7 out, as at the base; no counter
added or re-recorded (the trust’s search counts in takeInWeighed). Golden retired (docs/testing.md).docs/bench/lone-households.js, the ten full runs, 30 years, before at 1df68b8, after at this commit; the script with the
trusts and the year-30 farms added, run from a scratch copy). Hunger has moved since VB-308: at the base no household-year is hungry over
0.3 on any of the ten runs (0 rows; 102 at VB-308’s base), so the take-in path and the lone-household criterion are met trivially:
household-years over 0.3 of households short of people 0 before, 1 after (heirs 42, year 22: a holder of 73 alone, whose three kin
households in reach were all themselves short of people, so none could hold the farm; divergence, as heirs 42 after has 18 living to 14).
No lone household went into trust on the ten runs (on heirs 42, takeIn ran 10 times and every kin household was short of people).
All 100 trusts are of orphaned heirs (Kim’s question 2): populous 3: 30, 7: 20, 11: 25, 42: 18; founders 7 and 11: 1 each; heirs 7: 3,
heirs 42: 2. Trustee households over 0.3 in a year they held a farm: 0 (none hungry the year after the trust began, 0 of 95 checked).
How they ended by year 30: 30 the ward came of age, 12 the ward died, 7 the trustee dissolved, 51 still held; held from 0 to 17.9 years,
median 4.8. Empty farms at year 30, before/after: populous 3 30/10, 7 6/2, 11 36/26, 42 33/17; founders 1/1, 2/1, 2/2, 4/4; heirs 7 3/1,
42 4/3 (all 121/67). Fields in households’ use 1,586/1,748 (the empty farms’ 377/218); living 1,944/2,094 (populous 449/476, 625/634,
310/322, 450/548); households 476/528. Households, not only averages: the farms kept are wards’ farms that stood empty before, and no
trustee became a hungry household.node tools/sim.js --load small-y40 --years 1 --report counts, each tree’s own fixture, so the runs diverge: 710 living before,
754 after): takeInWeighed 0 to 88 a game day (the orphans’ kin search over st.living, a few a year); per living pawn-day the counters
move within run divergence but routeExpand (1.56 times) and roundPairs (1.79); route searches themselves 0.99 times per day, so the
wider expansions are longer routes (trustees walking to held fields in another village within reach, and the divergent map). One move
and one record per trust; the ends ride on their events; wardsOfAge walks the live trusts daily (populous: up to about 15 open).
The machine was shared by several agents, so no timings.members) and the harvest goes to its barn by the existing path; VB-311 or VB-034 may take
the relation over as a grant of use.handOn does); at the return they
take back their share of the trustee’s grain by mouths (a store under one roof shared by those who eat from it); the animals stay.extinct sends children to kin (kinHomeFor), else the farm stands empty as before.handOn), as one who marries onto another.