sim/records, and one act that founds a householdStatus: done
Priority: 2
Size: M
Arch: ownership
Phase: implement
Design ref: none (code structure). VB-172’s map, sections 4, 5.4 and 7.2; Kim’s answers of 3 November (QUESTION_ARCHIVE.md, “VB-172: the ownership map”, questions 1 and 6).
Goal: Household membership has five writer modules: births, the cottage and a death write past moveTo. A household is founded in three places with copies of the same steps (farmclaims.moveIn, cottage.finishCottage, settle.settleFarm), and two of them make dependency cycles through lookups into later modules (farmclaims.js:181, expansion.js:172). Give membership one owner, and founding one act. Depends on VB-174, which edits the same founding lines for the grain.
Acceptance criteria:
sim/records owns pawn.household, household.members and pawn.servant, through joinHousehold (as now) and a new leaveHousehold. moveTo (sim/heirs) stays the act that also releases the agent and places it at home, and calls them. Births (births.js:27), the cottage (cottage.js:45) and a death (lifecycle.js:36) use them.node tools/writes.js --field household.members (and pawn.household, pawn.servant) lists only sim/records, apart from seeding and the save codec.farmclaims.moveIn, cottage.finishCottage and settle.settleFarm keep their own steps (the claim, the plot, the booth) and call it.issue (Kim’s answer 6), for example through a verb in sim/commands; the lookups at farmclaims.js:181 and expansion.js:172 are gone, and tools/writes.js lists two cycles fewer. A new verb is covered by tests/commands.js.BACKLOG.md: behaviour unchanged, tests/golden.json unchanged, npm run verify passes; no renames. The PR says what fell (the three copies, two cycles).
Notes:Membership.found, and the co-moving now copied in farmclaims, cottage and settle is Membership.reside (section 4.4). docs/roadmap.md places this task in slice 5 (debt and land), beside the bodies decision.Implementation notes (6 November 2026):
sim/records.
sim/membership.foundHousehold reads farm fields/meadows and party members; it writes the new household through records,
supplies through stores, land through ownership, and agents through the existing move act. One new coordination module, no new state.issue adds one permitted command cycle (five total witnesses before, four after).
The strongly connected component loses heirs and cottage. VB-176 retains the plot-or-farm filter lookup.tools/writes.js --field household.members, pawn.household and pawn.servant now list only records.
Ownership allowances fall from 20 to 7; the seven remaining allowances concern roles, outside this task.CLAUDE.md moved to AGENTS.md, with Markdown references updated as requested.sim/membership is the one new module: the shared founding act belongs to Membership in target-v2 section 4.4,
while heirs was already near the enforced 400-line limit. Its existing consumers import it after heirs; the restoration verb
reaches it through commands. It owns no new fields. Cottage’s special treatment of unhoused members is retained explicitly.VB_TEST_JOBS=4 VB_SOFTWARE_RENDER=1 npm run verify passes all 84 scripts in 258.6 s,
including three real Chromium checks, all four late-game fixtures, five invariant runs and exact save/load continuity.
Golden states, work counters and cost-growth baselines are unchanged. Build freshness, lint and git diff --check pass.
tests/tools.js now asserts the single membership owner and absence of the two direct founding lookups; its old assertions
deliberately expected the pre-refactor writers and cycle. Membership tests preserve death’s historical address and service,
and command refusals remain mutation-free. No presentation behavior changed, so screenshots do not apply.