Status: done (2026-10-30, 5dc533a)
Priority: 2
Size: S
Arch: tooling
Phase: implement
Design ref: none (code structure)
Goal: AGENTS.md says the page script only reads st, writing through the Sim API and a few flags. Nothing checks it. Today the page writes visualDirty, naturalDeaths and driftMul, and clears rigDirty, treeDirty and biomeDirty; AGENTS.md lists only the first three and rigDirty.
Acceptance criteria:
tests/lint.js scans the page script (src/body.html, or src/page/*.js once VB-053 is done) for writes to st: assignment or compound assignment to st.<field> or anything below it, ++/--, and calls of mutating methods (push, pop, shift, unshift, splice, set, add, delete, clear, sort) on st.<field>. Allowed: st.visualDirty, st.naturalDeaths, st.driftMul, and clear() of st.rigDirty, st.treeDirty, st.biomeDirty.file:line and the write; the rule passes on today’s code.