Status: done (2026-11-16) Priority: 3 Size: M Arch: physical Phase: implement Design ref: VB-581 Goal: A load whose carrier dies or whose household dissolves lies where it was and is fetched, not booked at the barn from the road Acceptance criteria:
stillAtDeath), or whose household dissolves (stopWorkFor), lies where the carrier fell or stood, as a lying load with its good, amount and tile (and owner), and the haul’s or hay’s next hand fetches it from that tile and carries it home; it is not booked at the barn from the road.tests/lib/invariants.js, its place in the saved world (WORLD in src/sim/saves.js), and a line in tools/stocks.js. (16 Nov: in the saved state, st.lying, not WORLD: WORLD holds the per-tile arrays, encoded apart from the state, and a lying load names its field or meadow, whose sharing only the state’s encoding keeps; see decisions.)Noted by VB-581, 16 November 2026.
sim/lying (material layer; owner of st.lying, st.lyingSeq, and job.left of its fetch tasks). release in sim/agents
(reached by stillAtDeath and stopWorkFor) puts a load on its way home down where the hand is (placeOf, the tile under it): in its
own field or meadow back with the stooks or the mown hay, as VB-581 built; anywhere else as a lying load {id, kind, n, tile, x, y, t,
owner, of} (lay), of holding what the kind’s delivery reads of its task (field or meadow, farm, village, common, dest, step, from, and
src, the task’s tile). The old deposit(st, a, a.job.farm) from the road is gone, and deposit lost its farm argument. A task with no
more loads to give (again false: the field’s last load, firewood, the well’s stone) is taken down there, as the delivery took it down.carry and load or stack): fetchHaul, fetchHay, fetchWood,
fetchWellstone (Lying.fetchKind, registered in sim/kinds). Site: the tile the load lies on; 1 hand; LIFT 0.5 h to take the load up;
its load is what lies, up to the cart or back the fetcher has (take; the task stays open while some is left, job.left); carried home
as the kind carries (its to, carry, back) and delivered by the kind’s own deliver with the task’s tile as it was (a felled tree’s).
Posted by one rule (Lying.fetchWork) at the owner’s review, in ASK.farmAfterPlans (a household’s loads) and ASK.village (a common
field’s sheaves, the well’s stone); a role ranks it as the kind it fetches for (r.except[K.fetch], so a child fetches sheaves at 4).CALENDAR entry beside the meadows’ frost, owner sim/lying) rots every load still lying, as it rots the
stooks and the mown hay, and tells it (frost event, at the household or village that owned it). So the list holds at most a year’s loads
put down on the road, and an entry leaves it with its last load taken. No new loop over a growing collection: the rule walks the list
only when it is present (absent when empty), and it is tiny (0 in all six-year runs below).st.lying is no load lying (absent until the first); tested in tests/setdown.js.tests/lib/invariants.js): absent or a non-empty list; ids distinct, rising, within lyingSeq; times in order and within the
last year; a kind that has a fetch kind; a load above 0; a tile of the map; an owner that exists; a task tile.tools/stocks.js: a line lying (tile), with what happens at none. docs/architecture/modules.md: the module.tests/setdown.js (case 3 rewritten: a hand of the household killed by killPawn mid-haul on the road; the load lies at the tile it
fell on with its amount, kind and owner; the household’s rule posts fetchHaul there; another hand walks there, takes it up and carries
it home, stepped by the simulation; the barn rises by the load only as it arrives, and the list is empty; invariants hold. Case 4: the
household dissolving (stopWorkFor): the load lies; saved and loaded with its field shared; an older save without the field loads;
case 5: the frost rots it and tells it). tests/service.js (a dissolving household’s loads lie, not booked), tests/children.js and
tests/kinds.js (the fetch kinds’ rank).setDown and the side tasks’ reach read it). One generic fetch kind a carrying kind covers haul and
hay as the criterion asks, and firewood and the well’s stone as well, which the same release booked from the road. Close call.WORLD: WORLD is the per-tile arrays, encoded apart; the load names its field or meadow (object sharing,
kept by the state’s encoding). The criterion’s point, that it is saved, is met. Close call.Stores.close). Before,
the load was booked at the barn just before the barn was closed, so the grain was lost then too. Close call; principle candidate noted.LIFT 0.5 h to take up a load already bundled: a named guess, under the haul’s 0.7 h of loading from the stooks. Not tuned: no load was
laid in the measured runs.Carts.leave), and the ox team with it: a teleport left, noted as a task.tools/balance.js (years 2 to 6) and tools/sim.js --report hunger; a scratch counter of loads laid, fetched and rotted:
| Run | Grain made a household-year (before / after) | Need (rations) | Hungry days a household-year | Loads laid on the road |
|---|---|---|---|---|
| populous 7 and 42 (714 household-years) | 364.9 / 364.9 | 187.5 | 0.04 / 0.04 | 0 and 0 |
| founders 7 (26 household-years) | 353.3 / 353.3 | 106.2 | 0 / 0 | 0 |
Every table of balance.js is identical before and after, at both scenarios, and the hunger report of populous 7 (households 67, people
398, hungry households 0, median grain 777 at year 6) likewise: in these runs no carrier died on the road with a load and no household
dissolved with one on its way, so the change never fired. Households are neither better nor worse off; the load that used to be booked
from the road was rare. A longer look, populous 7 small over 20 years: still no load laid (a death on the road in a carrier’s
few hours home, or a household dying out while a load is on its way, did not happen there). The path is shown by the constructed tests.
No counter re-recorded; no target moved.
npm test 55/55; npm run verify 114/114 (10 targets out, advisory; tests/counters.js: the three
known out on the run’s branch, heirRank, roundRank, pastureTiles, none moved by this change); node tests/setdown.js,
tests/service.js, tests/children.js, tests/kinds.js pass. No page change (the fetch kinds take the default icon), so no screenshot.wellstone.load returned its stone without putting it in hand (a.load stayed 0), so a stone carrier’s stone still
vanished at its death. It now sets a.load (1); nothing else reads a stone carrier’s load as sheaves or hay (the hay’s and the harvest’s
last-load checks read carry or only delay a log line; carts: 1 is a back load). tests/setdown.js case 6: a stone carrier killed on
the way; the stone lies, is fetched by a villager and reaches the well.frost, farm and village).of.crop, of.bin): the field may be sown anew (rye in autumn)
before it is fetched. Case 7.sim/lying).