village-builder

VB-409: Verify’s page check and the nightly-only rule checks, rebuilt on small constructed states

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:

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.

Split (VB-409, 16 November)

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:

Implementation (the page)

Where smoke’s assertions went

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).

Validation