Status: done (2026-11-21) Priority: 2 Size: M Design ref: none (code structure). design.md, Between villages (A journey; The suitor’s visit); docs/architecture/target-v2.md section 2; backlog/VB-422.md Goal: A journey’s kind is its stay’s why (move, carry, fetch, haul, visit), and sim/away asks it in a dozen places: endJourney is a chain of four tests, legDue, dropStay and the change of home (retarget) each test it again, and sim/agents’ describe and sim/visits and sim/gifts read it too. As sim/kinds does for job kinds, one table in sim/away says for each kind what its arrival, its morning on the road, its bearer’s death and its household’s move do; the functions that carry a journey ask the table. This is the journeys’ part of VB-422’s split, done first so that the split moves one concern. Acceptance criteria:
sim/away declares the journey kinds once, as code (never saved state: a stay keeps only its why, a string): for each of move, carry, fetch, haul and visit, what it does on arrival (today’s chain in endJourney), on the morning its rest ends (legDue: the guest’s days), when its pawn dies away (dropStay: the gift laid down) and when its pawn’s household changes under way (retarget); a kind with nothing of its own for one of these names none and gets the common course.endJourney, legDue, dropStay and retarget ask the table and hold no test of j.why against a kind’s name; the sub-conditions that are state, not kind (j.back, j.gift, j.stay), stay in the kind’s own function. What remains outside the table is listed in the task file with its reason (the reads in sim/agents describe, sim/visits and sim/gifts may stay reads of the string, or go through a small read sim/away exports, whichever the layers allow: say which).st.away and may carry the same word (why: 'visit' is both the suitor’s journey and a lodger’s caller’s word, sim/away’s @state): how the two are told apart today is found and kept, and said in a line where the table is declared.endJourney is part of the behaviour (a carrier who has delivered ends as a move does): the table gives the same course for every state a stay can be in; the @state st.away comment names the table as where a kind’s course is read.lodge, comeHome, visit, sendVisit, to provisions or to legs in sim/agents; the split of sim/agents and of journeys out of it stays VB-422’s; no new module unless sim/away would cross the lint’s line (then the split task AGENTS.md asks for).node tools/same.js --base REF prints same at --scenario founders,heirs --seeds 7,42 --map small --years 3 and at a run in which every kind is seen (a move between villages, a gift carried, a gift fetched and hauled, a suitor’s visit, a death on the road if one can be found: count them with a scratch watcher on personEvent kinds or st.away, and say which run shows which; the kinds no run shows are covered by the focused check). The lines are in the result; no save leaf changes.tests/suites.js; npm run format and npm run verify pass; the lint, width and ownership baselines do not rise.
Notes / questions:JOURNEYS in sim/away (hooks arrive, morning, fall, rehome; fetch and haul share fetching); named so, not KINDS, so as not to read as a job kinds’ record for sim/kinds.j.jobs.j.village tells the journey) and sim/gifts fetcherOf (the fetcher of a household); setOut and visit still write the word. A shared read was not worth its export (away’s width).