move: one act for every change of household, with its reasonStatus: done (2026-11-17)
Priority: 2
Size: M
Arch: acts
Phase: implement
Design ref: design.md, Inheritance, expansion and other bodies (The round as offers); docs/plans/VB-682.md, section 5
Goal: Every change of household goes through one verb, move, with a reason and the minors who follow, so that the journey, the event and (from VB-692) whose yes it needs are written once; the acts that also change a right keep their verbs and issue it.
Acceptance criteria:
move(actor, target, {reason, with}) in src/sim/commands.js: the actor changes to household target; reason is one of marriage, heir, service, guardian, care, home, settle, found; with lists the minors who follow. Its check says why not: not living, no such live household, lives there already, an unknown reason, a minor in with whom the actor does not keep (its child, its ward, or a child of the household it moves with). Whose yes it needs is moveWhy, added by VB-692; here the check holds only what makes the move possible.move is the only caller of moveTo (sim/heirs), which tests/commands.js checks. The ten call sites go through it: wed (sim/lifecycle), transfer and handOn and extinct (sim/heirs), enterService, careForOrphans and takeIn (sim/service), holdInTrust and endTrust (sim/trust), foundHousehold (sim/membership).move for its people: marry (a union), handOn (a holding), goToKin and goBack (a trust), leave, foundHousehold and finishCottage (a household founded). The verb serve is removed: reason service sets the servant flag (and servedSince, if VB-634 has landed) and writes the service event. The guardian’s coming, kin taken in and the placing of a dissolved household’s people thereby gain a verb and an actor (three acts found with no verb; who chooses them is VB-695’s).moved event carries its reason; the log lines and life events are unchanged in text.node tools/same.js --base REF prints same (the seeds and maps it runs by default). The PR says what fell: the call sites, the two copies of setsOut, the verbs.tests/commands.js covers move (each refusal, each reason, the minors who follow); tests/record.js passes; one at a time with VB-681 and VB-690 in src/sim/commands.js.Noted by VB-682, 16 November 2026.
move in src/sim/commands.js replaces serve. Check: not living, no such live household, lives there already, there is no reason X
to move, with not a list, a follower not living or not a minor whom N keeps. Its run calls moveTo (sim/heirs) for the actor and
then each follower; reason settle walks on its stakes (carry false, as sim/settle’s foundings did); reason service sets the
servant flag and writes the service event and log line, with the issuer’s words (args.event, args.line, args.other) or the plain
ones a dissolved household’s people had; the one setsOut is there.moveTo takes the reason and puts it on the joined record entry (reason added to the record’s FIELDS in sim/records).wed (now sim/marriage) marriage; transfer heir (heir, then the spouse with the minors, or the heir with them);
handOn marriage (the giver with its minor children); extinct care or service, each its own; careForOrphans guardian and
takeIn care (one moveFamily: the lead, then the spouse with the children); enterService is gone, its words built by serving
and issued by serve in sim/service (three callers); holdInTrust care, endTrust home; foundHousehold found, or settle
for settlers. opportunities checks the service item with move; its item keeps the name serve (an opportunity, read by the page).moveTo calls; the two copies of setsOut (sim/heirs, sim/service); the verb serve and enterService;
sim/heirs no longer imports setServant or journeyOf, sim/service no longer setServant or moveTo.tests/commands.js: moveTo is called only by the verb (statically, sim/heirs included); each refusal, each of the eight reasons, the
minors who follow, the reason on the record, the servant made only by service.node tools/same.js --base b2dea9f before the reason went on the record: same at the defaults (founders, heirs; seeds 7, 42; tiny;
2 years) and at small, 10 years (refused moves made to throw while measuring: none was refused). With the reason: the only differing
leaves at small, 10 years are record[i].reason on joined entries (found 97, marriage 53, heir 21, care 11 over the years’ snapshots);
no other leaf moves, so no target moves.