HardYards/tools/site_audit
m3ultra 3c313f593f site_audit: createWorld needs a site now — feed verifyPosts the shipped JSON
A's gate-1 merge made createWorld REQUIRE a site (throws without one), which
crashed this tool's post cross-check: it called createWorld(scene, {wind}) with
no site. Fixed by reading the shipped data/sites/backyard_01.json and passing it
(loadSite fetch()es, so it can't run in node — read the file directly). The
cross-check is now BETTER: it verifies the dressed-snapshot posts against the
actual shipped site data, raked in createWorld, rather than against code.

Built-in audit green again; dress-source refusal (exit 2) and resolved-export
(exit 0) paths unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-17 15:59:58 +10:00
..
audit.mjs site_audit: createWorld needs a site now — feed verifyPosts the shipped JSON 2026-07-17 15:59:58 +10:00