Status: done
Priority: 1
Size: S
Arch: claims
Phase: implement
Design ref: Claims, ownership and territory (Fields and meadows: Decided; Stakes: Decided 1 Nov). Review: docs/review-claims.md.
Goal: A field or meadow project owns its tile from its first hour, so nothing is ever contested between households. Make it a stake that the work turns into ownership. Depends on VB-042 and VB-156.
Acceptance criteria:
why field or meadow) on its tile instead of owning it; every work hour on it renews the claim; breaking the ground (or finishing the meadow) realises it as the household’s.CLAIMS.contestBelow = 0.5; the village’s Disputed claims custom settles it at once. Under first the stake stands. The loser’s holder remembers the winner’s (“Took our claim”, −0.15, cap −0.45, fading over 3 years), and the log tells it.tests/stakes.js on a tiny world: a stake becomes owned land when broken; a stake lapses; a contest under each dispute option.src/sim/stakes.js. A project stakes its tile (startProject, startMeadow, and the settlers’ first field in src/sim/settle.js); each step of work renews it (the kinds’ new worked hook); finishBreak and finishMeadow realise it; a lapse ends the project (lapsedStakes, after lapseClaims each day); extinct drops a dissolved household’s claims, and farmToVillage no longer hands the village a project’s tile. A household with no free tile within reach contests the best stake of another household of its village below CLAIMS.contestBelow; the contest goes ahead only when the custom gives the tile to the newcomer, so under first and kin (a fresh tile has no last holder, so kin falls back to the first claim, as for borders) nothing happens and nothing is logged. When it is taken: the loser’s project ends and its job is dropped with its hands freed (the kinds’ new project flag, src/sim/jobs.js), its holder remembers the winner’s (claim, “Took our claim”, −0.15, cap −0.45, 3 years), its household leans to the rules that would have kept the tile (aggrieve), and the log tells it. New invariants: a project is staked by its household and not owned by it; every stake is its household’s project. tests/stakes.js covers all of it on a tiny world, with a 40-day run in play.claimSeq and the claims’ seq numbers changed (founders and heirs, seeds 7 and 42, years 1–3), as the stakes take sequence numbers; no project stands at a yearly checkpoint.