Status: done
Priority: 1
Size: M
Arch: expansion
Phase: implement
Design ref: Inheritance and expansion, Empty farms (Claims: Agreed, next batch); Customs (Claims on empty farms); Claims, ownership and territory (claims on empty farms as tile claims; Birthright: Decided 1 Nov). Review: docs/review-claims.md.
Goal: Empty farms (derelict or ruin) are owned by their village once VB-003 is done, but nobody can take them. Let landless adults claim one, ordered by the village’s “Claims on empty farms” custom (claims), which today has no effect, and restore it before they move in. Depends on VB-003, VB-030 and VB-042.
Acceptance criteria (Kim answered the VB-030 questions on restoration and the meeting on 2026-10-30):
st.demand may claim an empty farm of their own village, or of another village if the custom allows. Married couples come before singles.claims: kin kin of the old family first (by f.line, closest degree first), then others; villagers members of the farm’s village first; anyone any landless adult, by age; assembly the meeting assigns it to the claimant with most voice-weighted support among those with a voice, through their ties (by age until that is built).setOwner), and f.state becomes occupied.claims option on a constructed village.claimableFarm(st, pawnId), the stub VB-031 left returning null, returns the farm this pawn may claim under the custom, so a village clears a plot only when nothing is claimable.why birthright, by the last holder as a pawn) on the farm’s house for CLAIMS.birthrightYears = 20 years (until); under kin, the claimants of that family (kin of the last holder, closest first) come before all others while it stands, and after it lapses the farm is open to the rest in the custom’s order. The claim shows on the Land overlay and in the tile panel.why farm), renewed by the restoration work; it becomes the household’s with the farm.QUESTION_ARCHIVE.md): the claimants’ new household starts as a new plot’s household (VB-032): their stakes as grain, made up from their old households’ grain above their buffer and seed to seed for the farm’s fields and 60 days of food, and firewood and rations as a founders household; ruins (below 15%) are left out of claims until the full rebuild exists; the claimants live and eat in their old household until they move in, take the restoration at priority 9, and their old households’ members may help at 5; under assembly, the oldest claimant first.ruin) needs “the full rebuild of VB-032”, which is blocked and not built. May claimants claim a ruin before VB-032 exists, and if so what does the job cost; or are ruins left out until then?assembly “most voice-weighted support through their ties (by age until that is built)”: is plain age order, oldest first, the intended fallback for assembly, or youngest first as for landless adults?QUESTIONS.md under “VB-033” (priority 1), with proposed answers. Status needs-review until Kim answers; VB-031 no longer waits for this task.ready. The questions moved to QUESTION_ARCHIVE.md.src/sim/farmclaims.js (commits “VB-033 (1 of 2)” and “(2 of 2)”). When a farm empties (extinct), its last holder keeps a realised birthright on its house for 20 years; the heirs scenario’s A3 and B2 get theirs from when they emptied. At the moving round, after st.demand is counted, claimFarms gives each derelict farm (ruins are left out) to its first claimant (claimants): kin puts kin of the birthright’s holder first (closest civil degree, any village within reach) while it stands, then the farm’s villagers; villagers the farm’s villagers, then villages within reach; anyone all within reach; assembly the farm’s villagers by voice-weighted support through ties (support, VB-042, now built), the oldest on a tie. Then couples before singles, then the oldest. Claimants from another village must live within CLAIMS.farmReach = 15 steps between village centres (as SERVICE.reach); this number is new and Proposed. The claimant’s unrealised claim (why farm, by the pawn) stands on the house and is renewed by the work; the restoration job is owned by the claimant’s household, at priority 9 for the couple and 5 for grown housemates (CLAIMS.claimantPrio, helperPrio), and its hours done are kept on f.claim, also across a change of household. A claimant leaves st.demand (wantsOut counts a claim under way as a prospect of a farm), so they neither get a plot nor leave as settlers. The farm stops decaying while claimed. When the roof is mended, moveIn makes the new household as a plot’s: stakes, made up from the old households’ grain above their seed and the holder’s buffer to seed for the farm’s fields and 60 days of food (CLAIMS.farmFood), as far as it goes; the founders’ firewood and two days of rations. House, fields and meadows become the household’s, and the claim and birthright are spent. Fields gone to grass or scrub are cleared by the new household after moving in (job reclaim, 10 or 20 hours), not as part of the claim. A claim ends when the claimant dies or takes land, or lapses after 3 years unworked. A last holder who claims their own farm takes up the birthright as the claim.claimableFarm is wired into startPlots (late-bound, since sim/farmclaims loads after sim/expansion); as the claims are made first, it finds a farm only for pawns nobody chose.QUESTIONS.md (“VB-158 and VB-033”).claim: null of each farm; heirs at seeds 7 and 42 change throughout from year 1, as A3 is claimed and restored.