From af744e49c7738bef462734cbb3beb964bf2f41c5 Mon Sep 17 00:00:00 2001 From: araharah-executor Date: Sat, 24 Oct 2026 06:01:57 +0800 Subject: [PATCH] feat(05-05): ?fixpair harness knob + pinned-corpus origin lookup (GREEN) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - route-profiles.ts: HARNESS-ONLY module — sentinel ROUTE_PROFILE_HARNESS_ONLY + getRouteProfileOrigin wrapping getPairOrigin; D-12 header (pinned PUBLIC origin only, no coordinate params) + BA5 exclusion note - index.html: ?fixpair= knob resolves the pair's pinned public origin as the mock's telegramFix (accuracy 12, heading null); unknown pairId keeps the default fix; knob documented in the profile comment - [Rule 1 - Bug] main.ts never passed bootMap's opts.onLoad — route sources never existed and setRouteDrawn's setData silently no-op'd (cards rendered, the line never painted; invisible to the RS fakes). Wiring added + RS2 boot-wiring gate pins it - [Rule 1 - Bug] consult raced the map load: harness session stubs resolve the location chain before WebGL/style init, so draw landed on missing sources and the post-load empty install discarded it (probe: ROUTE token fired before RAMS-BASEMAP-READY). Consult now awaits mapLayersReady, resolved in the load handler after installRouteLayers (never wedges — finally-resolved; cards-only boots resolve immediately) - Capture run: CAPTURE OK — 13/13; route line verified painted, alt swap renders ROUTE 2/2 +1 MIN VS ROUTE 1, pending card honest, dark PX-02 - npm test -w web: 76 passed (new RS2 boot-wiring gate included) --- web/index.html | 20 +++++++++++++++-- web/src/main.ts | 40 ++++++++++++++++++++++++++++----- web/src/mock/route-profiles.ts | 31 +++++++++++++++++++++++++ web/test/route-surface.test.mjs | 8 +++++++ 4 files changed, 92 insertions(+), 7 deletions(-) create mode 100644 web/src/mock/route-profiles.ts diff --git a/web/index.html b/web/index.html index 237927e..aad2eaa 100644 --- a/web/index.html +++ b/web/index.html @@ -9,7 +9,7 @@