Status: done (2026-11-16)
Priority: 1
Size: L
Design ref: docs/testing.md (What runs only at night); tests/suites.js
Goal: Verify takes about half a minute and holds a small constructed case of each rule the nightly-only scripts assert (Kim, 13 November)
Acceptance criteria:
Scripts: newfields, fieldswanted, weeding, soil, hay, byre, herds, herding, drying, forage, dig (second group of EXTENDED in tests/suites.js). Split from VB-409.
tests/tiny.js’s tinyWorld and tinyState, tests/lib/probe.js) by a script of INTEGRATION under 5 seconds. Where the small case holds everything the long run asserted, the long run is deleted; where the long run shows what a small state cannot (statistics over seeds, generated geography), it stays at night and says so in its first line.docs/testing.md, What runs only at night, says what verify holds again.Noted by VB-409, 16 November 2026.
Tests only; nothing under src/ changed. The eleven scripts run on the small generated islands of tests/lib/probe.js (island,
scenario; VB-853) and move from EXTENDED to INTEGRATION in tests/suites.js. One keeps a night mode, soil --extended, which says
so in its first lines.
Three were red on the run’s branch before this task (so red at night), and now assert what the branch does:
hay: its constructed barns ({ hay, haySpoilt, herds }) threw in spoilHay, which reads st.farmsteads[hh.farmstead].barn since
VB-255; they now have farmstead: null (no farmstead, so no barn building). The rules asserted are unchanged.dig: KINDS.dig.urgency(null, null, ...) threw, since VB-367 reads the job’s good (peat weighs the pile’s shortfall); it is now
asked of a clay job, and still equals the house’s upkeep (MATCH.urgency.repair).drying: founders at seed 7 on the small map built no boat in a year and a half. Since VB-393 a boat is begun only by a household
with a year’s need above its grain floor and two free hands, and since VB-255 only by one with no other project, at spring day 3;
none of founders or populous at seed 7 on the small island begins one in five years (0 boats each year). The run now counts boats and
asserts dried fish made and eaten; the boat’s beginning, timber, work, building and catch stay asserted on the constructed scene, which
calls boatYear on a fresh founders state. The shortfall is a tuning note (below).Decision (close call): the soil’s ten-year run stays at night as soil --extended rather than deleted: the farms with cattle keeping
their soil (at least 0.95) and the farm without falling below them is a balance of a decade’s crops and dung, and in four years on the
small island fresh fields (soil 1.4, above the cap 1.15) take no manure at all, so nothing tells the farms apart. What a run shows of the
mechanism is now in verify: a year on, every field’s soil set below the cap (1, 0.9, 0.8 in turn), the spring’s days 1 to 6 cart the heap
of each farm with two loads or more onto its fields, its poorest first, and no farm without a heap gains soil.
Where each assertion went:
newfields (founders 7 and 42, heirs, default island): all on the small islands, unchanged (fields after 20 days, cleared and owned,
stone gathered, the grain and fields wanted; heirs keep their fields). Long run deleted.fieldswanted: needs no island (a constructed household); moved to INTEGRATION as it was.weeding (founders 7, default island, a year twice): on the small island, each run cut to the end of autumn (36 days), when the harvest
is in: tended 700, untended 425, the same numbers as the whole year. Deleted: the winter, which asserted nothing.soil: yield in proportion to the soil and its wear, the dung of fodder, the carting’s window, poorest field, cap and heap: on populous
7 of the small island, unchanged. The ten years: night, as soil --extended (above); added: the spring carting in a run.hay: the constructed barns, unchanged (but farmstead: null); populous 3 (was 120 by 85): 95% raked by spring day 11, 100% mown and
carried by autumn day 4, every household with animals brings in hay, the frost, the meadows grass again, the older save: on the small
island; founders 7’s hay in year 1 and its log line: on the small island. Long run deleted.byre: short hay, the byre’s room, no hay, slaughter, salting, spoiling, the meal from the larder, and founders 7’s three years (no
animal dead of hunger, 4 counts with culls, invariants): on the small island, unchanged. Long run deleted.herds: founders 7’s herds, calves and lambs, no calf without a bull, passHerds, populous’s byres, bulls and rams, the shares and a
new household’s start: on the small islands, unchanged. Populous’s year is cut to the byre season past the autumn count (day 34; the
spring’s births are founders’), its invariants asserted there. Long run deleted.herding (populous 7, 120 by 85): every case on the small island, unchanged (6 of 6 herd jobs held by 10:00, 6 done by 20:00; the
holder remembers the cattle in the crop of the keeper). Long run deleted.drying (founders 7, 180 by 130): every constructed case on the small island, unchanged; the run cut from a year and a half to winter
day 6 (144 rations dried, 33 cooked), boats counted, not asserted (above); invariants and the save on it. Long run deleted.forage (founders 7, 180 by 130): every case on the small island; the run cut from a year and a half to the end of the first autumn,
the gathering season’s end. Long run deleted.dig (populous 42, 180 by 130): every case on the small island at seed 8 (at 42 it has no bog iron; 8 has clay in reach and bog
iron); the year of populous cut to half a year (4 of 6 households dug, 4 loads of clay, 9 of bog iron ore). Long run deleted.Validation: each script passes; soil --extended passes (founders 7 after 10 years: soils 1.07, 1.09, 1.07, 0.97, 1.11, as before).
CPU each, on this machine at load 28 on 4 cores (a description; wall 0.3 to 12.6 s under that load): newfields 1.8 s,
fieldswanted 0.1, weeding 1.8, soil 1.7, hay 3.0, byre 3.3, herds 4.2, herding 3.4, drying 1.6, forage 1.5,
dig 1.9. The night loses ten scripts and one shrinks (in the 245-second measure: dig 13, newfields 8, herds 8, herding 8,
hay 6, weeding 6, drying 6, byre 6, forage 5, and most of soil 6).
Notes left: a tuning row for the boat that is never begun (VB-393’s surplus).