From af0d64ffe38df101a875f7420412e1e2253531ca Mon Sep 17 00:00:00 2001 From: type-two Date: Sat, 18 Jul 2026 16:03:59 +1000 Subject: [PATCH] =?UTF-8?q?Lane=20B=20S14:=20audit.html=20onto=20the=20sha?= =?UTF-8?q?red=20scorecard=20engine=20=E2=80=94=20one=20copy=20of=20the=20?= =?UTF-8?q?run=20logic?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The page keeps its rendering and loses its logic. A third front-end (A's editor) was about to make sweep-fly-pick-judge exist twice, which is the exact failure sweep.js was extracted to prevent, one level up. Behaviour-preserving, and measured that way rather than reasoned: both shipped sites were pinned BEFORE the refactor and reproduce to the digit after — backyard_01/wildnight 16 cands, 3 clean, 2 marginal, bare 35.7 tattered, best p1,p2,p3,p4 60.5, sep MEETS held 63.8; site_02/earlybuster 66 cands, 20 clean, 1 marginal, bare 82.6 full, best tr1,tr1b,q1,q4 91.3 full. Caught in the act by that check: __audit.cands went undefined because scoreSite returns the COUNT where the old local was the LIST. A refactor that only got read would have shipped it. --- tools/site_audit/audit.html | 125 ++++++++++++------------------------ 1 file changed, 40 insertions(+), 85 deletions(-) diff --git a/tools/site_audit/audit.html b/tools/site_audit/audit.html index db84ea1..f1c0d98 100644 --- a/tools/site_audit/audit.html +++ b/tools/site_audit/audit.html @@ -25,6 +25,19 @@ tools/site_audit/audit.html?site=site_02_corner_block&storm=storm_03b_earlybuster Served from the repo root (server.py), so the relative imports resolve. + + SPRINT14: this page's RUN LOGIC moved to scorecard.js and it kept only its + rendering. A third front-end arrived (A's editor, gate 2.1, where the yard + being scored has never been a file), and the sweep-fly-pick-judge sequence + this page had grown was about to exist in two places — which is the exact + failure sweep.js was extracted to prevent, one level up. `scoreSite()` takes + a site OBJECT; fetching one is this page's business and nobody else's. + + Verified by measurement, not by reading: the refactor was pinned against + both shipped sites BEFORE it happened and reproduced them to the digit — + backyard_01/wildnight (16 cands, 3 clean, 2 marginal, bare 35.7 tattered, + best p1,p2,p3,p4 60.5, sep MEETS held 63.8) and site_02/earlybuster (66 + cands, 20 clean, 1 marginal, bare 82.6 full, best tr1,tr1b,q1,q4 91.3). --> site_audit @@ -51,11 +64,10 @@ } }