Status: done (2026-11-13) Priority: 1 Size: L Design ref: User-approved test suite review, 12 November 2026; docs/testing.md Goal: Implement the user-approved test suite review without gameplay or tuning changes. Acceptance criteria:
Decision: Kim explicitly requested this PR, including retirement of golden gates. No design or tuning change. Impact: tests, runner, CI and development documentation; one simulation comment changes, no executable gameplay code.
Implementation: 43 fast, 94 integration and 8 extended commands. Only the standalone golden script is removed; record’s embedded historical story hash is replaced by event-index consistency. Generated scenarios remain in integration. Runner handles signals/spawn failures, process-group timeout cleanup and worker validation; browsers share one lane. CI runs fast and integration once each; nightly owns long fixtures and measurements. No gameplay or tuning changes.
Validation: fast suite passed 43/43 in 16.5 seconds versus the review’s 293.9-second old default (about 94% less). Full verification started: short contracts, generated scheduling, event history, and browser/base, speed and mobile passed. User requested immediate PR submission because usage was running out; remaining integration is delegated to PR CI. Extended/nightly scenarios were not run locally. Build and whitespace checks passed; main’s documentation changes merged cleanly. Targets: seven counter targets remain out as before; three scaling targets reported out. No targets or baselines changed.
Finished 13 November (second session). Every tier was run to its end here (4 cores, Node 22):
npm test: 44/44 in 9 s. npm run verify: 139/139 in 245 s. node tests/run.js extended: 9 scripts, 8 passed and
tests/hunger.js failed; after its repair it passes (it then moved to integration, so verify above includes it).tests/hunger.js failed on main (fa732b7) too: its amounts predate VB-119’s uncooked grain (ECON.rawGrain, 1.25 of grain a
ration). The test now states them in rations times rawGrain; no rule changed. Decision (mine): a stale test’s unit is a fix.start.js --people (150 s), listed last, ran on alone;
integration took 372 s. The slowest are now listed first, and start.js --people (a table of the page against 108 seedings)
moved to extended; hunger and health (9 and 4 s, rule checks) moved back from extended to integration. Decision (mine):
a cheap rule check belongs before a merge, a long table comparison in the night.tools/same.js (new, with tests/same-tool.js in the fast tier): the procedure that replaces the golden file for refactors, as a
command: the same runs from a base commit (a temporary worktree) and from the working tree, the world and the state compared
leaf by leaf, nothing recorded, no --update. Decision (mine): 97 open tasks name the golden file, and a procedure of several
manual steps would be skipped. Against main: same: ... founders, heirs at seeds 7, 42, tiny, 2 years, against fa732b7, which
is this task’s evidence that it changes no behaviour. A changed tunable is reported (pawns[26].rel<18>.mem.bull.v: 0.05 → 0.06).AGENTS.md (Taking a task, Commands, Working rules), BACKLOG.md (refactor rules), docs/testing.md (measured
times, what moved, what bounds verify now), the vb-task agent, and the help of tools/fixtures.js.npm run nightly whole (the medium fixtures, the bench and the bands’ full runs), and both workflows on GitHub.docs/testing.md: verify is bounded by the browser lane (six Chromium scripts in turn, about 220 s).
Targets: 10 out in verify (7 counters, 3 scaling) and 5 in history, none moved by this task; no target or baseline changed.Second pass, 13 November, after Kim: “The tests that are run for each task must be quick. Running 5 minute job is not workable.
npm verify should be based on small targeted scenarios (heavily constructed on the super small size), nightly can run the longer
tests.” Verify is cut to the scripts under 5 seconds: 86 scripts in 35 s (was 139 in 245 s); the 53 over it (every generated
island and run of years, jsdom’s smoke, the six Chromium scripts) moved as they are to the extended tier, which the nightly
workflow runs with Chromium. The runner names a verify script over 5 seconds, without failing. AGENTS.md now asks for verify at
the end of every task, and for the page’s scripts by name on a change under src/page/. What a task no longer runs is listed in
docs/testing.md (What runs only at night); VB-409 rebuilds each on a small constructed state, the page first.