From 4623c8b616e16416f90c059996f95212d34711b4 Mon Sep 17 00:00:00 2001 From: German Khokhlov Date: Fri, 16 Oct 2026 16:37:43 +0400 Subject: [PATCH] test(qa): a comparable W1 baseline from recorded feeds and a frozen clock MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Review of Task 0: the live baseline could not be compared between commits. qa-w1-baseline now records every /api response of each layer's run (--record=DIR, DIR/.json), replays them through puppeteer request interception (--replay=DIR; an /api request outside the recording answers 503) with the page clock frozen at the recording's time (evaluateOnNewDocument: Date.now and new Date(), hence JulianDate.now and the app clock), and diffs two runs (--compare=A,B: counts, known objects' positions within 1e-7° and 5 cm, screen points within 0.5 px, tracking poses within 1e-6 relative). The rules live in src/tooling/w1Baseline.js with tests. Recorded once (qa-artifacts/w1-feeds, git-ignored), replayed on d50eaa28 and on HEAD: the runs agree within the tolerances for flights, military, satellites (counts, five known objects each, tracking poses) and launches (count). Local ADS-B has no receiver and vessels no AIS key here: both stay empty. This is the reference for the extraction tasks. --- scripts/format-scope.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/format-scope.json b/scripts/format-scope.json index 6799cddf8..7b68b1841 100644 --- a/scripts/format-scope.json +++ b/scripts/format-scope.json @@ -1066,5 +1066,6 @@ "scripts/check-main-chunk.mjs", "src/tooling/mainChunkComposition.test.mjs", "scripts/qa-w1-baseline.mjs", - "src/tooling/initialChunkGuard.test.mjs" + "src/tooling/initialChunkGuard.test.mjs", + "src/tooling/w1Baseline.test.mjs" ]