Status: done (2026-11-11) Priority: 3 Size: M Design ref: Goods, Goods of place and side crafts (In the ground); World, climate and travel (World and scale: Ground) Goal: Kim, 11 Nov: build a first digging job now, before slice 6 gives the dug goods a use (VB-185’s plan), with bog iron growing back as decided (QUESTION_ARCHIVE.md, VB-357, question 3). Nothing digs today: w.depositLeft never changes (VB-357, VB-358). Acceptance criteria:
ENDLESS tile never falls.hh.clay and hh.bogOre, in loads, state with an owner (src/owners.json, @state), an invariant, and moved only
through a src/sim/stores.js operation with a good and a reason (dig); a save without them loads with 0. The farm card shows them
beside the stone heap.dig in src/sim/kinds.js (and a verb in src/sim/commands.js if a pawn or the round can choose it), DIG.hours
(3) a load, one load a trip carried home as firewood is, on a deposit tile of the household’s own land, its village’s outland or
the wilderness within DIG.reach (12) walking steps, the nearest; it lowers w.depositLeft[tile] by 1, and a tile at 0 keeps
its w.deposit kind (it is spent, not gone). The reach search is made when the want opens and kept, not each day (rule 4).DIG.stock (4) loads of each good,
since nothing uses them until slice 6: heaps must not grow without use. A household with no deposit in reach never posts the job.DIG.regrow (1) load a year, up to what the generator gave it, read in closed
form from the amount and the time it was last dug (rule 3: no yearly pass). The new world fields (the tile’s first amount, the time
of its last digging) are documented with @state, written only by their owner, and in WORLD of src/sim/saves.js with
depositLeft. Clay does not grow back.tests/dig.js, in npm test): a load dug lowers the tile and raises the store through the ledger; the stock cap stops the
want; an endless tile stays endless; bog iron regains a load a year up to its first amount and clay nothing; a save keeps all of it.tools/balance.js). The golden file
is re-recorded and its changed entries listed.
Notes:hh stock: keep the change to
src/sim/kinds.js, src/sim/stores.js and the farm card small and in its own lines, so the two merge.sim/dig (material layer, after sim/stores): reads w.deposit, w.depositLeft, st.owner, st.used (through
isOutland), the house tile, and hh.clay/hh.bogOre; writes w.depositLeft (its owner now), w.depositFull, w.dugDay and
hh.digAt (its digging ground, a cache); its job kind’s delivery calls sim/stores dug (reason dig), the one writer of hh.clay
and hh.bogOre. sim/kinds registers the kind in one line (KINDS.dig = VB['sim/dig'].KIND) and asks it at the farm after the plans
(ASK.farmAfterPlans.push): the record lives in sim/dig because sim/kinds is at its 400-line limit (the stone chain adds kinds
there too). The page reads Sim.depositLeftNow (the closed form) in the tile panel; the farm card shows the dug loads under the stone.DIG.urgency 0.5, as MATCH.urgency.repair, type upkeep), kept in
DIG so src/sim/rules.js is untouched; one job at a time a household, of the good it holds fewer loads of; the load is carried to
the door in a basket (carry: 'basket', anim: 'hoe'); a load carried home when the stock is already full is not dug. Bog iron’s
regrowth counts whole years since the last digging, and a digging restarts the count (a part-year is lost: at most 4 loads are dug
before the want closes, so it matters little). w.depositFull and w.dugDay are made at the first digging of a run (a world never
dug has neither, and an older save loads as never dug). No verb in sim/commands.js: the job is matched like firewood, not chosen.hh.digAt): made when a household is first asked with a good wanted, kept for its house, and made again only for
a new house, a new game year with a good not found, or a tile no longer to be dug (spent, or taken by another). Owner rules:
own land, its village’s outland (not in use, not the green), or wilderness.digGround, tiny probe 2.8 a pawn-day over the first 30 days, all of it the first search) plus O(1) a review (two
comparisons, and a check of the kept tile). Delivery is O(1). No pass over tiles: regrowth is read in closed form (rule 3).digstats as tools/idle.js samples):
seed 7: households that dug 0 -> 53 of 99; loads clay 0 -> 211, bog iron 0 -> 0; digging 612 work hours; idle share of work hours
47.21% -> 48.12% (860,430 -> 864,279 idle hours of 1,822,614 -> 1,795,990). seed 42: 0 -> 17 of 106 households; clay 67, bog iron 0;
193 hours; idle 48.75% -> 48.67% (939,691 -> 937,681 of 1,927,573 -> 1,926,742). Digging is under 0.1% of work hours; the idle
share moves within the runs’ divergence (seed 7 has 90 live households at the end, 100 before).tools/balance.js --scenario populous --seeds 7,42 --map small --years 15): do not move beyond the runs’
divergence; by weather made/need good 1.86 -> 1.84, ordinary 1.54 -> 1.57, poor 1.30 -> 1.29; hungry 0-1% of household-years before
and after, every household size; 2,124 -> 2,057 household-years. No household is worse fed: nothing eats or pays with the dug goods.founders and heirs entry at seeds 7 and 42 (seed: households, which gain clay and bogOre;
years 1 to 3: the lives diverge, so agents, farmsteads, households, jobs, jobSeq, pawns, record, rng, talks,
villages, wear and the page flags and caches; owner, claims, claimSeq, herds, used, headSeq, recordFold,
recordYears, regrow in some) and apiKeys / Sim (gains depositLeftNow). tests/record.js’s heirs lives re-recorded
(77 -> 67 events, hash e6f0a8020218e2f9: fewer gifts, friends and enemies in 2.5 years as the days diverge). tests/counters.json
gains digGround; no other counter re-recorded (oppAsk 9.64 -> 10.03 a pawn-day, +4%, in its target).Screenshot: docs/img/vb359-dig.jpg (populous seed 11, a pawn digging clay by the shore).
history): digGround 0 tiles in the year after small-y5 (every household there has dug its
stock or searched that year) and 606 in the year after small-y40 (new houses’ first searches), beside fishGround 811,452: the cost
is negligible. history.digGround is therefore out at +Infinity (606 / 0 per pawn-day), a ratio over a zero, caused by this change and
not a growth with history; scaling.digGround 1, in.npm test passes (105 scripts); npm run verify 123 scripts pass, 10 targets out: history.digGround (above, new) and
the nine out before (scaling.routeRefresh, scaling.roundPairs, scaling.takeInWeighed, history.routeExpand,
history.routeRefresh, history.roundPairs, history.heirRank, history.recordFold, history.occasionAsked), not moved by it.