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 (Kim, 13 November: a task’s tests are quick; verify is small targeted scenarios, heavily constructed on the super small size; nightly runs the longer tests). The scripts that took over 5 seconds moved to the extended tier as they are, so a task no longer runs the page at all, nor the rules those scripts hold. Each gets a constructed case in verify; the long run stays at night. Acceptance criteria:
tests/smoke.js and the Chromium scripts stay at night.EXTENDED in tests/suites.js (generated islands and runs of years: 47 scripts), the rules it asserts are asserted on a constructed state (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.--extended variants of clock, spread, paths, indexes; the household’s rules (meals, stores, hunger, heirs, guardian, kinship, kinlimit, owners, plans, offers, exchange, occasions); the farming year (newfields, weeding, soil, hay, byre, herds, herding, drying, forage, dig); land and geography (rivers, stones, geology, layout, settle, plots, names); tools (tools, review-tools, help, bench, commands, record, regress, plaindata, registry, notable, manual).npm run verify stays under a minute here and names no script over 5 seconds (tests/lint.js, 6 to 7 seconds, is split or sped up); the times before and after are in docs/testing.md.Notes (VB-408’s second pass, 13 November): the times of every script are in docs/testing.md. A generated default island costs 1.8 s
to make and a founders year on it 0.3 s; a 30 by 22 island 0.03 s and 0.13 s. The slow scripts are slow from runs of years and
several islands, not from one generation, so there is no single switch: each needs its cases constructed.
Waits for no decision; a group is one task’s worth, so split this file by group when the first is taken.
This task keeps the first group, the page. The other groups are tasks of their own, each with this task’s criteria for its scripts:
--extended variants of clock, spread, paths, indexes.meals, stores, hunger, heirs, guardian, kinship, kinlimit, owners, plans, offers,
exchange, occasions).newfields, fieldswanted, weeding, soil, hay, byre, herds, herding, drying, forage, dig).rivers, stones, geology, layout, settle, plots, names, populous) and the tools (tools,
review-tools, help, bench, commands, record, regress, plaindata, registry, notable, manual), with the criterion on
verify’s time and tests/lint.js.
Decision: the two groups that close the list share one task, since the run reserved four IDs for the five groups left; land and the
tools are both the last in the order, so nothing is taken out of turn. populous and fieldswanted, in EXTENDED’s second group but
in no group of the list, went to land (a whole island’s population bands) and the farming year (the fields a household wants).tests/lib/dompage.js: the jsdom harness, taken out of tests/smoke.js (the PixiJS stand-ins, the canvases, the hand-driven frame
loop, the chunks painted in full or left blank, the state the page runs), with three additions: patch changes the page’s text
before it runs, painted may give a count for each level of detail, and a jsdomError (an error the page throws in a handler or a
timer, which jsdom reported and went on from) fails the test. tests/smoke.js now loads the page through it and is otherwise as it was.tests/page.js, in INTEGRATION: the page on a 36 by 26 island. The page’s own sizes start at 120 by 85 (3.4 s to build in jsdom),
so the test adds a size x: [36, 26] to SIZES and to the hash’s pattern in the page’s text, and opens #sx18 (founders, seed 18:
two villages, ten people). It checks: whom to play opens and Watch only closes it; some days run as fast as it goes, then at 30x,
where the shown clock is no more than 5 minutes behind the simulation; the Land, Ground and Reach overlays on and off, with their keys; the
People sheet lists the farms, not a household in folds; a lived-in farm’s card has its food meter and the Stores, Land and Animals tabs with icons; a pawn’s card has
its twelve trait icons and no household tabs, and its History tab dated lines; a village’s Customs tab has a charter whose phrase
opens its ways; the Culture pane is titled by its culture with a row a village; Debug’s moving round runs, its kill reports a death
and raises the toast; the family tree draws and its line and descendants views show their person; played as a holder, the action bar
opens and each group lists its acts. Any error the page logs or throws fails it.smoke’s tiny populous map at night.smoke and the Chromium scripts paint the rest.Nothing is deleted: tests/smoke.js stays at night whole. In verify now, on the small island (tests/page.js): no console error and
no frame error; whom to play opens and Watch only closes it; the clock at speed; the overlays and their keys; the People sheet’s farms; the farm card’s meter and three tabs with icons; the pawn card’s twelve traits and no household tabs;
a History tab’s dated lines; the Customs charter and an opened phrase’s ways; the Culture pane’s title and rows; Debug’s moving round
and kill, and the kill’s toast; the family tree and its views’ focus. At night only (the tiny map): the main menu’s links, carts and a
led cow drawn, the clock at each of five speeds, the tile’s
numbers hidden, the Culture pane’s charter and meetings and its links to a village’s customs, the tree’s chips, path and dead person’s
card, Skip a year, regenerating (destroyed objects, the last choices kept), the goodwill rows, the History filters and links, the
Customs voices and notes, the village log, the toasts (merging, turning off, 6 seconds), and the action bar’s acts queued (Go home, the
Agenda, a gift, Walk here).
node tests/page.js: passes, 3.8 s wall and 3.1 s of CPU here at a load average of 12 (other agents on the machine); built in about
2 s. Its first version, populous 56 by 40, took 6.3 to 6.9 s of CPU.renderTree) fails it with page error: Error: mutant and the family tree is
empty; reverted.node tests/smoke.js, on the shared harness: passes, as before (35 s).