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: meals, stores, hunger, heirs, guardian, kinship, kinlimit, owners, plans, offers, exchange, occasions (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. Each of the twelve scripts now runs on the small generated islands of tests/lib/probe.js
(scenario, island; VB-853), and moves from EXTENDED to INTEGRATION in tests/suites.js. What took years is constructed.
Two keep a night mode, heirs --extended and hunger --extended, which say so in their first lines.
A rule found red: stores failed on the run’s branch before this task (its first lines asserted grain + meals unchanged by cooking,
but since VB-009 grain cooked unground gives 1 / ECON.unground a ration). The assertions now read the foods table: 4 grain cooked
give 4 * FOODS.grain.worth meals, and the yearly total of cooking is -10 * (1 - worth). The rule (cooking converts at the food’s
worth) is what meals asserts too.
Decision: scenes found on the 120 by 85 or default island are found again on the small island at another seed, as VB-853 did, rather
than built on a tinyWorld: offers seed 42 (was 54: a son of the house whose bride speaks for herself) and, for its scene 11,
seed 13, three villages, men 23 and 6 and woman 17 (was seed 61, four villages, men 32 and 8, woman 24); occasions seed 11 (was 3; at
3 and 7 the small island’s first round marries one couple, and the scene needs two).
Where each assertion went:
meals (founders and the three scenarios’ two days of meals on the default island): all on the small islands, unchanged. Long run deleted.stores: the arithmetic and errors on tinyState as before; the yearly reconciliation of every holder’s food, founders 3 years and
populous 3 years on 120 by 85, now founders 2 years (a household dissolves in the second, and its emptied ledger is now asserted to
happen) and populous 1. Deleted: the third year and the second and third of populous (2 s more each); the pruning window is checked on
the constructed state (moveClock four years, prune). Long run deleted.hunger: every rule (feed orders, seed corn, hunger level, deaths by age, work rate, no marriage at h >= 0.5, no conception,
parents’ feed order) on the small islands, unchanged. Stays at night as hunger --extended: the three-year report of founders at
seeds 7 and 42 (hungry days, deaths, marriages), which asserts nothing.heirs: the three named rankings (B3 sons first and any child, A2 sons only), the first year, the two deaths: on the small heirs
island (48 by 34), where the names and rankings come out as on the default one. The rankings by line against the full list
(VB-224), asserted after ten years, are now asserted at the start, after the deaths and a day on (another farm’s claim mattered in 5,
then 8; on the default island ten years on, 12); added: each dead holder’s farm passes to a living holder. Stays at night as heirs
--extended: the default island ten years on (reported, and the rankings by line asserted), and the lone holder at B3 with a head of
skill 0.5 bringing in a crop in years 1 to 3 at seeds 3, 7, 11 and 42 (a statistic over seeds; 3/4/4 3/3/3 3/3/3 3/3/3 tonight).guardian: Signe the guardian of Olof after Håkan’s death, on the small heirs island; kept 10 days on, and kept the day before his
eighteenth birthday, cleared the day after it (his birth date moved to bring it three days on, where the long run advanced 14
years); added: a ward who holds the farm has “Came of age” in his life. Long run deleted.kinship: the degrees and kinOk on the constructed pedigree, as before. The scarcity pull (8 years of heirs under the strictest
custom, waiting for some adult to be blocked) is now one moving round of heirs under “first” with a pedigree laid over the single
adults (every single man a son of A, every single woman a daughter of B, A and B siblings, so each match is of first cousins): none
marry, 5 are pulled towards “close” by scarcePush, the meeting log counts them. Added: under “close” the same cousins marry and none
is pulled looser; strangers married under “close” pull towards “first” by plentyPush (the plenty half, which the long run did not
assert). The drift of attitudes under the pulls: on the small heirs island, unchanged. Long run deleted.kinlimit: the starting custom of founders 7 and 42, heirs and populous: on the small islands, unchanged. Deleted.owners: the seeded ownership map of every tile, outland, fences, the one-farm village of founders, transfer and extinction, for
founders 7 and 42, heirs and populous: on the small islands, unchanged. Deleted.plans: every case (targets, reservations, the land step, herd count, the due-queue, planning days, fields due, the seasonal
plan from the template): on the small islands, unchanged, populous’s season included. Deleted.offers: scenes 1 to 11 on the small populous island (seeds 42 and 13 above), every assertion unchanged. Deleted.exchange: the gift’s floor, allowance, the player’s gift and its warning, the village store: founders on the small island; the
allowance equal to help’s surplus on every household after a year of populous on it (half a year was tried: no household then has
anything to give). Deleted.occasions: weddings, the save mid-wedding, the funeral ale, the meetings on the greens: on the small populous island at seed 11
(2 weddings, 14 there at 20:00, 4 meetings). Deleted.Validation: each script passes; heirs --extended and hunger --extended pass. CPU each, on this machine at load 15 to 19 on 4 cores
(a description; wall 1.5 to 14 s under that load): meals 1.5 s, stores 4.1, hunger 3.3, heirs 2.0, guardian 0.9, kinship
2.0, kinlimit 1.1, owners 1.1, plans 3.1, offers 4.9, exchange 3.3, occasions 2.9. offers is near the line: most of it is
generating the island again for each of its 20 scenes (a world cannot be cloned, it holds functions). The night loses ten scripts and
two shrink (about 120 s in the 245-second measure: plans 14, offers 12, owners 10, kinlimit 10, meals 10, stores 9,
guardian 9, kinship 8, exchange 6, occasions 5, and most of hunger 10 and heirs 8).
Follow-up noted: VB-872, a small island generated once per seed in tests/lib/probe.js (most of offers’ time is the island made again).
npm run verify after merging the run’s branch (VB-690 in): 137/137 passed, 8 targets out (advisory), 152 s at load 18.