village-builder

VB-856: Verify’s small cases: land, geography and the tools; verify under a minute

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: land and geography (rivers, stones, geology, layout, settle, plots, names, populous) and the tools (tools, review-tools, help, bench, commands, record, regress, plaindata, --expose-gc registry, notable, manual). Split from VB-409; the last of its groups, so it also closes its time criterion. May be split again in two (land; tools) if it does not fit a session.

Noted by VB-409, 16 November 2026.

Implementation notes (VB-856)

Tests and tools only; nothing under src/ changed. The nineteen scripts move from EXTENDED to INTEGRATION in tests/suites.js, on the small generated islands of tests/lib/probe.js (island, scenario; VB-853) and, where a test needs more room, on a 60 by 44 one. Four keep a night mode, saying so in their first lines and in tests/suites.js: rivers --extended, layout --extended, populous --extended, tools --extended. One new script: tests/review-hours.js, the hours half of review-tools (apart, since the scan of the sources there takes 4 seconds by itself).

Built with it (the task’s goal, and what made the minute reachable):

Decisions:

Where each assertion went:

Validation: every script of the group passes in verify but help (above); rivers --extended, populous --extended and tools --extended pass (rivers: 39 lake tiles on courses, 154 fords, 68 crossings); layout --extended fails as it did before. npm run verify after the last merge: 171 of 172 passed (help, red from VB-461, then moved to the night), 9 targets out (advisory); 272 s at load 10 to 30, 321 s of CPU over the scripts.

Notes left: VB-887 (task, priority 1: the green laid beside fields, layout --extended red), VB-888 (task: populous seeding leaves an empty, nameless village on small islands), VB-889 (task, priority 1: help asserts VB-461’s fetched gift).