[ Hardware Capability Preflight ] | +-- Supports WebGPU? ------(YES)---> [ WEBGPU PIPELINE ]
| (Compute shaders, optimal instancing) | (NO) | +-- Supports WebGL2? ------(YES)---> [ WEBGL2 PIPELINE ]
| (Transform feedback, UBOs) | (NO) | +-- Supports WebGL1? ------(YES)---> [ WEBGL1 PIPELINE ]
| (Attribute batching, no volumetrics) | (NO) | +-- [ SEMANTIC NON-GRAPHICS REPRESENTATION ] (HTML tabular data, screen-reader native, Canvas 2D topology)
The rendering architecture relies heavily on OffscreenCanvas running inside a Web Worker when available, completely decoupling rendering tasks from the main thread.
- Context-Loss Recovery: The JavaScript adapter constantly listens for the webglcontextlost event. Upon detection, it automatically drops one tier in the fallback chain and triggers a hydration sequence from the stored JSON envelope in memory. This occurs without requiring a page reload, ensuring uninterrupted analytical capability.
- Reduced Motion: Standard media queries (@media (prefers-reduced-motion: reduce)) dictate rendering behavior. If active, the system disables camera Slerp transitions (defaulting to instant cuts) and disables all particle drift within uncertainty fields.
10. Progressive Delivery and Performance Budgets
The system ensures minimal time-to-interactivity (TTI) through extremely strict payload sequencing and computational budgets.
10.1 Delivery Sequence and Millisecond Budgets
Diagram 7: Progressive Delivery Sequence
TIME (ms) | ACTION
0 | Network Request Initiated
50 | Initial HTML payload received. Flask renders semantic shell. 100 | CSS applied (< 30KB gzipped). JSON Envelope parsed from DOM. 200 | Vanilla ES modules load and attach event listeners. 300 | First Analytical State complete. Tables and timeline interactive. 800 | WebGPU/WebGL context initializes asynchronously. 1200 | First 3D Frame rendered. Full operational capability achieved.
10.2 Strict Performance Constraints
- DOM Interaction Limits: Any user interaction (click, keyboard press) must resolve in < 16ms, ensuring the main thread remains entirely unblocked.
- Steady-State FPS: The renderer must maintain 60 FPS on baseline hardware (defined as an Intel UHD Graphics integrated equivalent) at 1080p resolution.
- Long Tasks: There must be zero JavaScript execution tasks exceeding 50ms during playback. JSON envelope parsing must utilize web workers if the payload exceeds 5 Megabytes.
- Mobile Memory Management: The application implements a strict cap of 200MB for heap usage on mobile devices. GPU buffers must execute aggressive garbage collection routines on any route change or branch deletion.
- Repeated-Run Leakage: The memory usage delta must be < 1MB after 50 consecutive counterfactual branch generations, completely preventing memory leaks during long-running analytical sessions.
11. Accessibility Task Matrix
Compliance with WCAG 2.2 AA and NASA HSI guidelines is mandatory1. The interface provides task-based equivalencies for all 3D interactions.
| Accessibility Vector | Validation Plan and Task Support |
|---|---|
| Keyboard Navigation | Full tabindex mapping. Arrow keys drive timeline scrubbing. The Space bar toggles play/pause. F focuses the camera. |
| Screen Readers | System dispatches aria-live="polite" announcements of narrative text upon event changes. Entity selection reads deterministic properties natively8. |
| Zoom Constraints | Layout remains fully fluid and readable at 200% and 400% zoom (WCAG Reflow standard). The Command Deck collapses into nested menus seamlessly. |
| Forced Colors | CSS media query @media (forced-colors: active) strips background gradients and enforces high-contrast boundaries for authority regions. |
| Switch / Voice Control | All primary commands map to discrete, unique DOM IDs, allowing Voice Control systems (e.g., iOS Voice Control, Dragon) to target elements by name or number. |
| No-JavaScript Support | If JavaScript fails or is disabled, the Flask backend server-renders the final output state as a static HTML report, replacing graphics with a disclaimer3. |
12. Engineering Artifacts and Server Integration
12.1 Error and Recovery State Library
The frontend must handle domain engine limitations and hardware failures gracefully without crashing the browser tab.
| Error Code | Visual State | Recovery Action |
|---|---|---|
| ENGINE_TIMEOUT | Amber banner: "Deterministic evaluation exceeded bounds." | Renders partial timeline up to the point of timeout. |
| WEBGL_UNSUPPORTED | Gray banner: "GRAPHICS UNAVAILABLE"3. | Surfaces tabular view. Disables camera controls. |
| DIGEST_MISMATCH | Red critical banner: "STATE TAMPERING DETECTED". | Halts rendering completely. Prompts for hard refresh. |
| DEVICE_MEMORY_LIMIT | Amber badge on HUD. | Pauses background playback. Replaces high-resolution meshes with wireframe bounding boxes. |
12.2 Component Inventory
All interactive elements are constructed as standard HTML Custom Elements (Web Components) managed by Vanilla JS factories. No shadow DOM is utilized to simplify global CSS styling.
- ev-timeline: Renders the <canvas> horizontal scrubber and diverging branch nodes.
- ev-scene: Manages the WebGL/WebGPU context lifecycle and handles window resizing.
- ev-hud: Typography grid mapping deterministic state variables.
- ev-proof-card: Expandable <details> element rendering invariant status and defeaters.
- ev-branch-tree: SVG representation of the counterfactual scenario lineage.
12.3 JSON Presentation Schema
The strict contract between the Python domain engine and the vanilla JavaScript adapter dictates the structure of the JSON envelope.
JSON
{
"runId": "EVRUN-25BB5294BB0B43C3",
"digest": "1e55eb33d81f81...",
"metadata": {
"schema": "2.0.0",
"scenario": "governance-lifecycle",
"timestamp": "2026-08-08T14:00:00Z"
},
"frames": [
{
"eventIndex": 0,
"timestamp": 0.000,
"eventName": "Scenario ready",
"eventCode": "SCENARIO_READY",
"entities": [
{
"id": "phase1",
"type": "lifecycle",
"state": "supported",
"position": [-3.0, 0.0, 0.0],
"semanticLayer": "ASSURANCE"
}
],
"proofs": [
{ "id": "INV-01", "status": "NOT_EVALUATED" }
],
"metrics": { "reactionMargin": null }
}
]
}
12.4 Flask/Jinja Integration Plan
Diagram 8: Flask/Jinja Hydration Model
[ Client Request ] -> [ Flask Route (/simulations/governance) ] | [ Python Domain Engine ] (Evaluates defaults) | [ Jinja2 Macro Expansion ] | { JSON } | [ Browser Receives HTML ] -> [ Vanilla JS Clones Templates ] | [ Binds JSON data to DOM clones ] | [ Interactive Workbench Ready ]
- Route Families: /simulations (Explorer catalog), /simulations/<scenario_id> (Workbench Shell), and /api/v2/evaluate (POST endpoint for generating counterfactual branches).
- Progressive Hydration: Jinja macros output standard HTML <template> tags for repeating UI components (e.g., table rows). Vanilla JS clones these templates, populating them with JSON frame data.
- Security Headers: To prevent cross-site scripting and unauthorized data exfiltration, Flask enforces strict headers: Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline'; worker-src 'self' blob:;5.
13. Demonstration Catalog (12 Scenarios)
To ensure Evulgare establishes absolute market dominance in technical answerability, twelve explicit demonstration scenarios must be architected, each proving a distinct capability of the unified workbench.
- Autonomous Drone Mission Control: Evaluates the kinetic interception limits of uncrewed aerial systems in high-density civilian airspace, visually demonstrating the boundary between permissible targets and restricted zones.
- Maritime Safety and Continuity: Simulates uncrewed surface vessel navigational governance during hostile GPS spoofing and jamming, utilizing the uncertainty field to visualize probabilistic positioning.
- Satellite Health and Recovery: Demonstrates automated collision avoidance and orbital reprovisioning proofs, highlighting the mathematical latency of ground-station command loops versus onboard sovereignty.
- Machine-Sovereign Command: Traces authority chains when human-in-the-loop (HITL) communication is severed, proving the agent's adherence to prior cryptographic mandates.
- Authority under Partition: Analyzes the deterministic execution of pre-authorized rules of engagement during absolute network isolation, isolating the logic that dictates weapon safing.
- Evidence Poisoning Detection: Identifies and visually isolates spoofed telemetry within the 3D scene, rendering poisoned data clusters in the magenta uncertainty layer to highlight discrepancies.
- Software Attestation: Visualizes the cryptographic bill of materials (SBOM) locking a deployed model's state, mathematically linking visual entity behavior to specific software commits.
- Compartment Breach: Models the cascade failure and automated containment protocols of an internal subsystem compromise, showing isolation bulkheads dropping in logical topology space.
- Recovery Baseline Registry: Evaluates automated failover procedures returning an agent to the last known cryptographically clean state following an aggressive memory-corruption simulation.
- Continuity Drill Orchestrator: A simulated wargame comparing baseline human reaction times against bounded machine responses, generating statistical proofs of required automation thresholds.
- Campaign Review Board: Post-mission reconstruction that aggregates multi-agent, decentralized behavior into a single causal timeline for institutional audit.
- Decision Reconstruction: Slow-motion, variable-by-variable deconstruction of a lethal-force authorization gate, utilizing the FOCUS command to instantly align all proof states with the triggering event.