Status: done (2026-11-23)
Priority: 2
Size: S
Design ref: docs/testing.md; AGENTS.md, Commands (No golden file)
Goal: Nothing checks the map’s pixels: tools/same.js compares the leaves of w and st, so a refactor of the bake, the marks, the rivers’ or the paths’ drawing has no proof. A tool that bakes the same chunks at a base commit and in the working tree, headless, and compares their hashes, is that proof for the terrain split (the four tasks that wait for this one).
Acceptance criteria:
tools/samepixels.js, or a --pixels mode of tools/same.js; it starts with tools/help.js and answers --help) bakes, headless, at --base REF (a worktree of that commit, as tools/same.js does) and in the working tree, and prints same or each chunk that differs, with exit 1.bakeWater; every chunk of the overview (level 2) through bakeChunk; the level 0 and level 1 chunks round each village, with the rivers, the worn paths (drawChunk and drawOver) and decorateChunk drawn on a canvas of @napi-rs/canvas (a devDependency already; no new dependency).gen/cover set) and after restore, so that a colour left stale shows.ArchGen and VB['gen/...'] today, VB['draw/...'] after VB-1503; the tasks that move them keep it working at both commits.tests/suites.js, on a small constructed world, in the tier its time allows) changes one pigment, or one mark’s place, and the hashes differ; unchanged, they agree.docs/commands.md and docs/testing.md have its line; npm run verify passes.
Notes:tools/samepixels.js, a tool of its own rather than a mode of tools/same.js: they share only the base worktree.
One adapter, drawing(VB), finds each function by name in draw/, then world/, then gen/ modules and the gen facade (rivers’ and
paths’ drawChunk told apart by key); a task that adds the paint argument changes drawing only.chunkJob’s order; drawOver’s canvas is hashed apart (.way). Sprites are flat-colour ellipses made by the tool
at the page’s sizes (landSprites is page code): a sprite’s choice and place show, the page’s tree drawing does not.stale in either tree. 206 images; about 6 s of wall time at the defaults on a shared machine.tests/tiny.js: the bake reads the generator’s cell fields. 2.5 s: verify tier.