Status: done (2026-11-12)
Priority: 2
Size: S
Design ref: Goods, production and animals (Goods and the farming year: Field work, Tilling power). QUESTION_ARCHIVE.md, Field work (11 Nov)
Goal: A field’s stooks come home in one job of 0.7 hours and one carry, whatever the field bore (KINDS.haul, deliver puts all of fd.held in the barn): up to 100 rations in one armful, where the design’s load is 30 rations on the back and 90 on a cart with two oxen (Exchange, Deals between strangers; Between villages, Kin help). Kim, 11 Nov: yes, the harvest is carried by the load.
Acceptance criteria:
TRAVEL.load rations on the back (30; VB-291’s tunable, defined here if this lands first), taken from fd.held, which falls by it; the field stays in stooks, and its haul job stays open, until fd.held is 0. The kind keeps hands: Infinity: each hand that joins carries its own load, so a household of three brings a field in in one or two trips each.hasTeam, src/sim/herds.js) carts: its first hand on the job carries TRAVEL.cart (90) a trip, as the first hand at the hoe drives the team (withOxen); the team is in one place at a time, the same rule. The page draws the cart if it has the art, else the load as today.Stores.sheaf takes the load, not the field: hh.unthreshed holds one entry a field as today (the loads of one field add to its entry), so threshing and the ledgers are unchanged. The harvest log line is written when the last load of the farm’s last field is in.KINDS.hay carries a meadow’s 30 units in one job of 4 hours; say in the task’s report what a load of hay should be, as a question for Kim.walkStep, routeSearch and the step time in autumn at small-y40 before and after.tools/balance.js at seeds 3, 7, 11, 42): pawn-hours by field job and their share of the hands’ year, the days from ripe to reaped, to the barn and to threshed, crops lost to frost, fields left unsown, hungry household-days and deaths, idle hours; whether households, not only averages, are worse off, and which (the short-handed, the lone holder). The golden file and the work counters are re-recorded and their changed entries listed; the bands of tests/lib/bands.js reported, none re-set.
Notes:src/sim/kinds.js, agents.js, stores.js: after VB-333, one at a time with VB-334 and VB-336. It gives the team a second use, which VB-336 counts.38b920d; main has moved some lines since (in src/sim/kinds.js, jobs.js, records.js), and every function and field named still stands: find them by name.TRAVEL = {load: 30, cart: 90} in sim/rules.js (VB-291 had not defined it). KINDS.haul gets load(st, a, j, cap) and again(j): in
stepWork (sim/agents), when a hand’s share of the 0.7 hours is done, it takes a load from the field (fields.carried: fd.held falls, the
field is hauled, stubble, when it reaches 0) and walks it to the barn; the job’s progress goes back to 0 and the other hands go on loading, so
each hand that joins carries its own load. The cart: cartFree (agents): the household has a team (hasTeam) and no member has it out, at the
plough (withOxen) or on the road with more than TRAVEL.load; then the load is TRAVEL.cart. A carrier stays among j.claims (the invariant),
and freeHands leaves a hand on the road alone. dropJob drops only the job it was given (it deleted a re-posted job of the same key).Stores.sheaf(st, hh, n, seq = -1) returns the entry’s number; fd.bin holds it, hh.threshed (lazy, set by thresh, so no seed entry moves)
counts entries threshed, so a field’s loads add to one entry of hh.unthreshed and threshing is unchanged. The ledger’s first ‘harvest’ entry of
a field carries first: true, for tools/balance.js to subtract the seed once a field (it subtracted it from each entry, which read as no grain).fd.held was taken at the pickup); the page draws the load as before (no cart art; src/page/ unchanged).tests/crops.js (the delivery takes a load, KINDS.haul.load), tests/record.js (heirs 7 at 2.5 years: 55 events became 59, hash
re-recorded: the lives changed with the harvest’s days, not how they are read), tests/lib/invariants.js (a load only on the road; threshed),
tools/stocks.js (household.threshed covered by the sheaves). Golden file re-recorded once: no */seed entry moves; from year 1 (the first
autumn) households (the ledger’s first) and everything the changed days touch (agents, jobs, pawns, record, rng, villages and more).
tests/counters.json unchanged (the counters test passes; 7 counters out, as on the base).tools/balance.js (populous small, seeds 3, 7, 11, 42, years 2 to 15, 4664 and 4677 household-years): made/need by size 1: 1.61 to 1.51
(hungry 1 to 3%), 3: 1.30 to 1.28, 4: 1.49 to 1.33, 5: 1.48 to 1.40, 6: 1.31 to 1.30, 8: 1.10 to 1.06, 9: 1.02 to 0.73 (45 household-years).walkStep per living pawn-day 111.3 to 112.7 and 112.7 to 114.6 (+1.3%, +1.7%),
routeSearch per pawn-day 0.484 to 0.462 and 0.477 to 0.463 (falls), step time 77 to 92 and 85 to 90 ms a day (shared machine, noisy). The
small-y40 fixture was not made (the machine is shared); small-y40’s step time is not measured. The cart and the loads add no loop.npm test: 117 scripts passed, 10 targets out, as on the base (7 counters, 3 scaling). tests/golden.js, saves, plaindata, invariants pass.
npm run verify and the browser tests not run (as asked; src/page/ unchanged).docs/patches/VB-335.patch removed. The golden file and the record anchor are re-recorded on the tree that also holds VB-119.release, src/sim/agents.js, from moveTo). Fixed: a released pawn on its way home puts its load in its farm’s barn first (deposit, with the job’s farm). tests/invariants.js passes its 5 runs; the golden file and the record anchor (heirs 7 at 2.5 years: 68 events) are re-recorded on the tree with VB-119 and this fix, so they are neither task’s own run.