VB-649: Teleport: a cart and its team are home when their carrier is not
Status: done (2026-11-17)
Priority: 3
Size: S
Arch: physical
Phase: implement
Design ref: VB-611
Goal: A cart whose carrier dies or is released on the road stays where it was, with the load lying in it, until someone fetches it; the ox team that drew it is led home
Acceptance criteria:
A cart whose carrier dies on the road, or is released where it cannot carry on (its household dissolving), is not at the farm: it stands on the tile where the carrier was, with what was loaded in it, until a hand of the household that owns it fetches it home (as VB-611’s lying load is fetched, extended rather than built beside it).
The ox team that drew it is not free at the farm either: it stands with the cart and is led home by the hand that fetches it; the household’s team tasks are re-rated without the team until then (VB-472’s retune).
Invariants for a cart or team standing out with no carrier, the save and an old save, and the stocks line; a cart nobody fetches is named in the record when it is lost, by a process, never silently.
A test on a constructed state: a carter killed on the road; the cart, its load and the team are not at the farm until a hand has gone for them.
Numbers before and after (tools/balance.js), populous small seeds 7 and 42 and founders small seed 7, 6 years, and how often the case occurred.
16 Nov 2026 (orchestrator): the criteria are written from the goal and VB-611’s notes; its note carried none.
Implementation notes (VB-649)
Built on sim/lying (VB-611), not beside it: release (sim/agents) that lays a load on the road now also calls Carts.leave(st, hh, id, {tile, x, y}),
which strands the cart the pawn had out: household.carts[].at = {tile, x, y, t} (no carrier; out() is true, so it is no free cart and
oxOut is true: the team stands with it, teamFree false) and a lying load leftCart (of.cart = {kind, built}) is left for the household.
Its fetch kind fetchLeftCart (made from Carts.KINDS.leftCart by sim/lying’s loop) is posted by the existing fetchWork; delivered at the barn it
clears at (cart and team free; deliver is followed by retune, so the team tasks are re-rated). Stranding also calls retune (release did).
Not fetched: the autumn frost drops the lying entry and cartsYear(st, true) (clock, FROST, after lying’s) removes each standing cart and names it (cartGone).
Invariants: a cart with at has no carrier and a lying leftCart of its household, and the reverse. Old saves: carts have no at; nothing to migrate.
stocks.js: the lying line covers it. Test: tests/standingcart.js (in suites).
Left out, noted as a follow-up: a pawn released at the work (dung carting, cutting firewood beside the cart) leaves its cart free at once.
Numbers (populous small, 15 years, seeds 7 and 42, run in quarter-year steps): hungry household-days 26 and 10 before, 26 and 10 after;
population 442 and 485 both. The case (a carrier released on the road with a cart out) did not occur in either run (0 carts stood),
so no ploughing or carting hours were lost or changed; balance.js on founders small seed 7 and 6-year runs not taken (identical runs, no occurrence).