Status: done (2026-11-28)
Priority: 3
Size: M
Arch: debt
Phase: implement
Touches: sim/heirs (transfer, extinct); new sim/heirland; sim/ownership (code, farmTo); sim/expansion (splitSite, startPlot); sim/allotment (reallot); sim/cottage (finishCottage); sim/fields (passField); sim/fieldwork (KINDS); sim/agents (fieldPassing); sim/membership (foundHousehold); sim/obligations (KINDS); sim/stores (KINDS); sim/records (HISTORY); sim/round; tests/lib/invariants.js; tests/suites.js; new tests/heirsplit.js
Design ref: Inheritance, Handover and shares (Splitting land: designed as a custom, behaves like a buy-out until splitting exists); Land, ecology and rights, Land and rights (Splitting between heirs)
Goal: The heirCount option split today pays shares like buyout and says “splitting land comes in a later batch”. Make it divide the farm’s fields between heirs, so a second heir can found a household (VB-032) without clearing new land. The split is split and transfer of VB-311’s land rights.
Acceptance criteria (Kim answered on 2026-10-30; rewritten by VB-184, 11 Nov 2026):
split, the fields are divided between the heir and the siblings who want land, weighted by daughterShare; a farm keeps at least 1 field, and no split leaves a part with less than 1 field.own passes to the sibling (VB-311, basis inherited); a sibling who receives fields gets a building site next to them (VB-032) and becomes holder of a new household when it is built, which then takes their use. Until then the old household keeps the use, works the fields and gives the sibling half their harvest, as an obligation of kind rent (VB-310) with a half share in place of a tenancy’s quarter.split set by tests/lib/tiny.js’s setPractice or a scenario option): households founded on split land, fields per household, landless adults over 25.
Measured 28 Nov 2026 (small map, setPractice heirCount split held every year; before = night-base, after = this branch): split plots / households / fields per household / landless over 25 / population. heirs 7: 0/12/3.75/1/17 -> 0 (3 inherited titles open)/11/3.00/0/20; heirs 42: 0/7/2.86/0/9 -> 0/8/3.88/0/10; populous 7: 0/147/3.76/18/530 -> 1 (1 title)/144/3.70/24/552; populous 42: 0/148/4.22/29/605 -> 0/143/4.22/27/623. Splits are rare: few heirs have a grown sibling in the village with no farm or plot and a house site by its fields.
Notes:setOwner in src/sim/ownership.js, not src/sim/farmclaims.js.ready when VB-032 is done.ready. Since this was written, ownership and claims are separate (st.owner and st.claims); a restored farm changes hands with setOwner (src/sim/ownership.js) over its tiles, when moveIn (src/sim/farmclaims.js) founds its household (foundHousehold, src/sim/membership.js), the pattern for the split.docs/slices.md, section 3.5; the slices Decided by Kim): moved to slice 5, arch debt (from expansion). blocked until the slice’s plan (VB-184) confirms, rewrites or closes it.sim/heirland (divide, the rent, settle). Decisions: only grown siblings in the farm’s village with no farm or plot want land (a child founds no household); parts by largest remainder, the heir first, kept together (furthest field, then its nearest); a sibling with no house site by its fields (sim/expansion splitSite) takes its share in goods; fields count SHARES.perField against the share.{type: 'pawn'}, code 0) until its household; the rent is the obligation rent, a load at a time as the sheaves come in (sheavesIn), paid at the moving round above the reserve, as shares. The relation is built here on VB-311’s titles (rent 0.5); VB-316 reuses it with 0.25. VB-309’s trust (done first) is not this relation, so it is not reused (review, 28 Nov): a trust moves no own and no use of any field (owner, holder and line stay the same, st.trusts), the trustee takes a whole farm’s work, people and harvest while the owning household cannot work it, and nothing is shared back; the split is a title on single fields, owned by one party and used by another household, the harvest shared. A trust that should share its harvest with the ward would be the title with a rent, a change to VB-309.plot.split), its alone; built, the fields pass to the new farm (sim/fields passField) and the titles end. An heir who dies first: its fields go back to the farm (design.md does not say; noted). farmToVillage became farmTo (also used by foundHousehold), which carries the use of fields split off.