Status: done (2026-11-11)
Priority: 2
Size: M
Arch: year
Phase: implement
Design ref: Inheritance and expansion, Leaving home (Service: a landless adult may take service where labour is short; Agreed); People, households and family records (Household and family: servants live in households not their own; Agreed).
Goal: Only the founders’ and populous servants, and the members of a farm that dies out (extinct, src/sim/heirs.js), ever live as servants. A landless adult otherwise stays at home for life, however many hands the farm already has, while a farm of an old couple with four fields has too few. Let landless adults move into service where labour is short, so work and mouths spread across a village.
Acceptance criteria:
st.demand is counted: each unmarried pawn in st.demand whose household has hands to spare, and would still have at least 1 hand per field without them, may move. Oldest first, they go as a servant (p.servant = true, role farmhand or maid) to the household of their own village with the fewest hands per field, if it is short; otherwise to the shortest household of the nearest village within 15 steps by hexSteps between centres; otherwise they stay. Each household takes at most one new servant per moving round.moved).QUESTION_ARCHIVE.md).st.demand, so a later claim (VB-033), plot (VB-031) or marriage takes them out of service as it would at home.docs/roadmap.md, section 3.3; the slices Decided by Kim): moved to slice 3, arch year (from expansion). blocked until the slice’s plan (VB-164) confirms, rewrites or closes it.servant basis of VB-250 (the lone holder’s labour wanted as an opportunity); waits for VB-250. Read its criteria’s mayTake as Eligibility.eligible.SERVICE.hours), and a servant who moves to another village walks there (VB-287). Whichever of VB-090 and VB-290 lands second reads the other’s reach. One at a time with VB-290.serveWhereShort (src/sim/service.js) runs in the moving round’s service phase (phase 3, after
handovers in phase 0 and countDemand in phase 1), right after takeServants, which now returns the households that took a servant and
the servants it moved, so each household takes at most one new servant a round and nobody moves twice. Hands per field: hands (members
14 to 59, not retired) over the farm’s fields, at least 1 (handsPerField); short below SERVICE.short 1, to spare above SERVICE.spare
1.5 (src/sim/rules.js). Those who would serve (willServe: in st.demand, unfit null, so unmarried, free and 18 to 50, and not
declining by the player’s serve wish), oldest first, whose household is over 1.5 and keeps at least 1 hand per field without them, go
through the serve command (source round) to the short household with fields that ranks first by [steps between village centres,
hands per field, id], within SERVICE.reach, never to a household where a living parent lives. The placement is one helper,
reachSteps, now used by servantFor (lone holders and VB-308’s take-in), takeIn’s kin search and this rule. The servant becomes a
member with servant set (role farmhand or maid by refreshRoles), eats from the household’s store and takes its jobs on the servant
basis of sim/eligibility (VB-250), unchanged. A servant at a later round is weighed by the same rule from the household it serves.
New work counter labourWeighed (short households weighed per candidate); tests/counters.js and tests/scaling.js exempt it from
“must be exercised”, as takeInWeighed; tests/labour.js exercises it. No new state field; docs/architecture/modules.md names the rule.tests/labour.js (in npm test), on populous seed 7, tiny map: an old couple (66 and 63) with 4 fields beside a household
with 4 grown unmarried children (19 to 26) and 2 fields: after the service phase exactly one child, the oldest of those in st.demand,
serves at the couple’s farm as farmhand or maid and still wants land, with a service event naming the farm; the others who went serve
at other short farms of the village; the home keeps 1 hand per field; at the next round the servant stays while the farm is short, and,
with the farm no longer short, goes on to a short farm but never home; a household at 1.5 hands per field keeps its children; and
Sim.movingRound runs the rule. Invariants hold. npm test: all pass but tests/counters.js (the new key labourWeighed, expected;
the orchestrator re-records it: one entry added, no other counter should move, since its fixture’s round may now move servants: check
matchBid, lookUpJob and the round counters too when re-recording). node tests/golden.js: matches (no golden entry moves: the golden
runs never have a household over 1.5 hands per field at a round). tests/record.js’s anchor unchanged (founders 7).48a4fb4, after at this commit; servants = service events a year, which also counts the lone
holders’ servants and an extinct farm’s people; hands per field over live households with fields at the end of the run):
service, “goes into service with … at takeServants, unchanged) come first in the round and count toward “one new servant a household a round”.st.demand who would serve by the existing service rule (unfit null: 18 to 50, free, unmarried; the player’s
serve wish), so a pawn over 50 does not go into service, as for the lone holders.SERVICE.reach 15 hex steps: VB-290 (walking hours) has not landed; it reads reachSteps, the one helper.