HardYards/tools/site_audit
m3ultra 6f2990c76a site_audit: browser front-end — audit any site off the real dressed world
Gate 2's actual deliverable. The node tool cannot dress, so it can only audit
the built-in snapshot or a resolved export and REFUSES A's dress-source site
JSON. This is the honest audit: audit.html builds the site the way the game does
— createWorld(await loadSite(name)) then dress() — and reads world.anchors, the
single source of DRESSED positions (GLB fascia + branch anchors, 8°-raked posts,
all of it), then runs the SAME sweep. It is the only way to audit a site with a
carport (site_02) before it ships.

    tools/site_audit/audit.html?site=backyard_01
    tools/site_audit/audit.html?site=site_02_corner_block&storm=storm_03_southerly

The winnability math now lives in ONE place, sweep.js, imported by both
front-ends — a tool built to catch reimplemented-formula drift doesn't get to
keep two copies of its own sweep. audit.mjs is refactored onto it (output
byte-identical); the node refusal message now hands you the exact audit.html URL.

Validated in-browser against backyard_01: dressed 12/12 anchors (GLBs loaded),
PASS, best line p1,p2,p3,p4 $65+$15 spare — identical to the node snapshot
verdict and to balance.test, off A's real data with no snapshot. That
cross-agreement also re-proves A's extraction is byte-identical.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-17 16:06:36 +10:00
..
audit.html site_audit: browser front-end — audit any site off the real dressed world 2026-07-17 16:06:36 +10:00
audit.mjs site_audit: browser front-end — audit any site off the real dressed world 2026-07-17 16:06:36 +10:00
sweep.js site_audit: browser front-end — audit any site off the real dressed world 2026-07-17 16:06:36 +10:00