# Working on Beacon These rules add to the platform guide at /AGENTS.md; they can tighten it, never loosen it. - Keep the game dependency-free: plain JavaScript modules that run straight from `dist/`. - Keep the rules in `src/game.js` pure and seeded. Anything random goes through `game.random`, never `Math.random`, or the screenshots and the autopilot's scores stop being comparable. - Keep the screenshot routes deterministic: with `?shot=` the page draws one frame and sets `window.atelierReady = true`. - Run `node --test test/game.test.mjs` and `node test/autopilot.mjs` before you push; the pipeline runs both. - In your contribution's note, say how the screenshots and the autopilot's metrics changed, and why that's right.