Presentation-layer routing and client-side script
editorial(patterns): rewrite zero-execution-routing to describe real presentation-layer behavior (Track-B) — re-verified directly against live pointsav.com + woodfinegroup.com: both serve a page with real client-side JS (SHA-256 checksum display + navigator.sendBeacon telemetry), directly contradicting the article's 'zero client-side JavaScript'/SOC 3 claim; also confirmed no root-vs-/es/ directory split, single file with checkbox toggle; dropped the false compliance claim, escalated separately to Command (msg command-20260822-active-compliance-relevant-discrepancy-z) since it's a live public compliance claim not an editorial call; register-clean EN+ES
@@ -4,48 +4,30 @@ type: topic content_type: topic index_group: sovereignty-and-infrastructure-patterns slug: zero-execution-routing short_description: "Presentation layers adhere to a zero-execution mandate, eliminating client-side JavaScript via structural determinism for routing and native CSS state machines." title: "Zero-execution routing and presentation" short_description: "The platform's public homepage templates use a native-CSS checkbox pattern for language toggling and interactive elements, alongside a small amount of client-side JavaScript for page-integrity display and analytics." title: "Presentation-layer routing and client-side script" audience: vendor-public bcsc_class: current-fact language: en paired_with: zero-execution-routing.es.md category: patterns last_edited: 2026-05-25 last_edited: 2026-08-22 editor: pointsav-engineering --- The platform's public homepage templates use native CSS checkbox state — not JavaScript — for their interactive elements: language toggles and download buttons switch visible content via `:checked` selectors rather than a script listening for click events. **A reader toggling between languages on the homepage is not running any script to do it.** That interaction works even with JavaScript disabled entirely. The same templates do carry a small amount of client-side JavaScript for a different purpose: computing and displaying a page-integrity checksum, and reporting basic page-view analytics on navigation away from the page. ## The CSS checkbox pattern **Correction (2026-08-02) — compliance-relevant claim, does not match real code:** the real closest-matching implementation, `service-content/templates/pointsav-monolith.html` (and its sibling `woodfine-brutalist.html`), directly contradicts the "zero client-side JavaScript"/SOC 3 claim below — it contains a live `<script>` block that computes a SHA-256 hash on toggle and fires `navigator.sendBeacon` telemetry on page unload. There is also no root-vs-`/es/`-directory split anywhere in the repo for any presentation surface checked — the real template embeds both language blocks in one file, toggled by a single checkbox, not the structural two-file split this article describes. The CSS-checkbox toggle mechanism itself is real (confirmed in both templates), but "zero execution latency and no client-side script vulnerability" is false as a description of the real deployed page. **Flagged, not resolved** — this claim invokes SOC 3 compliance directly, so it needs correcting or re-scoping rather than left standing. Interactive interface elements — language toggles, download-variant buttons — operate on native CSS checkbox state rather than script-driven state. The DOM loads all language blocks and button variants at once; CSS `display` rules tied to a hidden checkbox's `:checked` state show or hide the relevant block. Switching languages or button variants involves no script execution and no page reload — it is a pure CSS state change. The two language blocks currently live in a single template file, toggled by one checkbox, rather than as separate documents at distinct URL paths. Platform presentation layers adhere to a zero-execution mandate, eliminating client-side JavaScript for core DOM manipulation, language routing, and file serving. This architectural constraint minimizes the attack surface and supports SOC 3 (Service Organization Control 3) compliance by relying entirely on deterministic files and native CSS state management. The pattern complements the [[machine-based-auth|machine-based authentication]] layer and the [[sovereign-ai-routing|sovereign AI routing]] architecture. ## What client-side script the pages do run ## Key Takeaways - No client-side JavaScript for core DOM manipulation, language routing, or file serving. The zero-execution mandate reduces the presentation-layer attack surface and supports SOC 3 compliance by relying entirely on deterministic static files and native CSS. - Bilingual routing is structural, not conditional. The English `index.html` sits at the root; the Spanish `index.html` sits at `/es/` with the language-state checkbox `checked` in static HTML — no IP sniffing, no server-side redirect logic. - Interactive elements (language toggles, download buttons) use native CSS checkbox state machines: all language blocks load simultaneously, and CSS `display: block/none` switches between them on `:checked` state. Result: zero execution latency, zero script injection surface at the presentation layer. - The pattern pairs with [[machine-based-auth]]. Presentation surfaces that execute no JavaScript cannot be exploited via script injection — authentication occurs at the machine layer, not the browser layer. ## 1. Deterministic Bilingual Routing The platform avoids the security risks and latency of IP-sniffing scripts or conditional server-side redirects. Language routing is achieved through structural determinism: * **English (Root):** The primary `index.html` resides in the root directory. * **Spanish (/es/):** A structurally identical `index.html` resides in the `/es/` sub-directory, with the `checked` attribute natively applied to the language-state checkbox. ## 2. The Pure CSS State Machine Interactive interface elements, such as language toggles and dynamic download buttons, operate via native CSS checkbox patterns rather than script-driven state: * **Simultaneous Loading:** The DOM loads all language blocks and button variations simultaneously. * **Native Switching:** CSS rules (`display: block` / `none`) are tied to the `:checked` state of hidden inputs. * **Zero Latency:** This method provides the illusion of a high-performance Web 2.0 application with zero execution latency and no client-side script vulnerability. This approach ensures that platform interfaces are accessible, secure, and instantaneous across all network environments. The homepage templates load one small inline script for two purposes unrelated to routing or language switching: it computes a SHA-256 checksum of page content for display in the page's metadata block, and it fires a page-view beacon (`navigator.sendBeacon`) when the reader navigates away. **This means the presentation layer is not entirely script-free** — a reader auditing the page's actual behavior will find this script running on both `pointsav.com` and `woodfinegroup.com` today. The checkbox-based routing and toggle behavior described above genuinely runs without script; the checksum display and analytics beacon are a separate, smaller piece of functionality layered on top of that CSS-driven page. ## See also - [[sovereign-ai-routing]] — the sovereign AI routing architecture that pairs with this zero-execution discipline - [[machine-based-auth]] — machine-based authentication layer operating in the same zero-trust presentation context - [[sovereign-ai-routing]] — the sovereign AI routing architecture that pairs with this presentation layer - [[machine-based-auth]] — machine-based authentication layer operating in the same presentation context - [[decode-time-constraints]] — decode-time constraints that enforce deterministic execution boundaries - [[sel4-microkernel-substrate]] — the microkernel substrate that grounds the execution isolation model