{"type":"supplemental_research","official":false,"disclaimer":"Supplemental public-source research supplied for inquiry, not approved Eviulon doctrine. Assertions, dates, references and legal or technical conclusions may require independent verification. The fourteen books remain the official Eviulon library.","report":{"id":"evulgare/evulgare-simulation-workbench-research","group":"Evulgare","slug":"evulgare-simulation-workbench-research","title":"Evulgare Assurance Simulation Workbench: Product Architecture, Scientific Visualization, WebXR, Accessibility, and Performance","source_file":"Evulgare/Evulgare Simulation Workbench Research.md","source_sha256":"634b9943208f374d48c7796d416d9b8a55a397b0d25a6dc82eb5dfec8700ea77","parts":6,"words":8030,"summary":"The transition of Evulgare from a conventional web presence to a unified Assurance Simulation Workbench necessitates a radical architectural paradigm shift. Derived from the Latin root evulgare , meaning \u0022to make public\u0022 or \u0022divulge\u00221, the platform\u0027s core mandate is the transparent exposition of…","status":"supplemental_research_unverified","url":"/research/evulgare/evulgare-simulation-workbench-research/"},"section":2,"total_sections":6,"canonical_url":"https://library.eviulon.com/research/evulgare/evulgare-simulation-workbench-research/2/","content_text":"Responsive behavior must not turn the desktop interface into an unusable mobile dropdown maze. The mobile architecture adopts a stacked, scrollable card metaphor with a sticky bottom action bar. The central simulation viewport remains fixed at the top of the viewport at a strict 1:1 or 4:3 aspect ratio. The Timeline, Proof Inspector, and Scenario inputs are transformed into horizontal swipe-views or native bottom-sheet modals (\\\u003Cdialog\\\u003E elements) triggered from the persistent bottom bar. To respect battery and thermal limits on mobile CPUs, the graphics pipeline automatically prefers WebGL2 or 2D Canvas over high-fidelity WebGPU passes unless the device is explicitly plugged into power and operating on a modern ARM architecture12.\n\n\n### **Error and Recovery State Library**\n\n\nThe workbench must handle failure with absolute determinism, matching the seriousness of its subject matter.\n\n\n| State | Trigger Condition | UI/UX Resolution Strategy |\n| :---- | :---- | :---- |\n| **No-JavaScript** | JS disabled by user or IT policy. | The core Flask Jinja template renders a \\\u003Cnoscript\\\u003E block containing the full text-based UAI assurance log in semantic HTML, proving the visualizer is strictly optional. |\n| **Context Loss** | GPU driver crash or OS memory reclamation. | A \u0022Graphics Hardware Reset\u0022 toast appears; the UI instantly falls back to the SVG/Table view while attempting a silent WebGPU context rebuild in the background4. |\n| **API Timeout** | Python backend requires \\\u003E 15s to compute a complex variant. | A \u0022Simulation Resolving...\u0022 skeleton loader appears with a deterministic progress bar driven by backend Server-Sent Events (SSE). |\n| **Constraint Paradox** | Backend determines no safe state exists (e.g., stopping distance \\\u003E perception limit)6. | The viewport flashes a structural red border and halts playback. The Proof Inspector locks open, detailing the mathematically irreconcilable constraints. |\n| **Invalid Chunk Hash** | Network tampering or packet corruption during progressive delivery. | Execution halts immediately. An \u0022Evidence Package Corrupted\u0022 modal forces a hard refetch of the simulation file to preserve cryptographic fidelity. |\n\n\n## **Event-Index State Model**\n\n\nThe analysis dictates a single, immutable, unidirectional state model to govern the entire application. The architecture is defined by an absolute EventIndex integer.  \nWhen the user, or the automated playback loop, updates the application to EventIndex \\= 17, a vanilla JavaScript state manager (utilizing an EventDispatcher or the native CustomEvent bus) broadcasts the transition. Instantly, the visual scene translates camera and object positions to match the telemetry of frame 17\\. The selected entity updates its physical attributes (e.g., velocity, temperature). The tabular and narrative layers scroll to and highlight the text describing event 17\\. The event log and metrics update their sparklines up to, and completely stopping at, event 17\\. The Proof Inspector queries the UAI result specifically for event 17\\. If the user is comparing a variant, the variant runner is mathematically clamped to its corresponding event 17\\.  \nThis architecture explicitly identifies and eliminates anti-patterns caused by loosely synchronized UI panels. Allowing a 3D canvas to visually run ahead of the textual event log creates cognitive dissonance and destroys the platform\u0027s technical authority. Furthermore, if a user clicks an entity in the viewport, the UI must not locally mutate the entity\u0027s state. It must dispatch a selection intent, which updates the global state bus, which then trickles down to update the properties panel and the canvas highlight simultaneously.\n\n\n## **Proof Inspector Specification**\n\n\nThe Proof Inspector is Evulgare\u0027s signature interface. It demystifies the black box of autonomous behavior by mapping it directly to the Unified Assertion Interface (UAI)6. The UAI acts as the mandatory transducer between semantic space and deterministic physical space, structurally preventing the system from \u0022grading its own homework\u00226.\n\n\n### **Status Enumerations**\n\n\nEvery condition evaluated by the deterministic Python backend returns one of eight strict types, which dictate the UI styling (using the handcrafted CSS variables):\n\n\n* **PASS:** Constraint mathematically verified. (Muted green indicator).  \n* **FAIL:** Constraint violated (e.g., stopping distance exceeds perception limit6). (Red indicator).  \n* **UNKNOWN:** Insufficient evidence in the telemetry package to evaluate.  \n* **NOT EVALUATED:** Skipped due to prior topological failure via State Locking15.  \n* **NOT APPLICABLE:** The physical context firewall excludes this constraint from the current node6.  \n* **SUPPORTED WITH QUALIFICATIONS:** Passed, but operating near threshold limits. (Amber indicator).  \n* **SUSPENDED:** Temporarily deactivated by an authoritative safety intervention.  \n* **WITHDRAWN:** Constraint invalidated by newer scenario rules in a variant branch.\n\n\n### **Interface Display Architecture**\n\n\nFor any selected condition, the Inspector UI must render a rigorous data payload. The Proof ID is displayed as a monospace hash (e.g., UAI-7A9B-22). The Statement translates the YAML constraint into plain English (e.g., \u0022Target speed must be \\\u003C= 55 km/h\u00226). The Evidence block displays the exact raw telemetry at that specific EventIndex. Assumptions and Defeaters clarify what environmental variables must hold true (e.g., dry asphalt) and what physical realities invalidate the proof (e.g., sensor icing). Affected Entities and Events are rendered as hyperlinks that jump the global timeline to the specific violation. The Research Basis links outward to ISO standards or academic literature. Finally, persistent action buttons allow the user to \\[Jump to Event\\], \\[Compare Baseline\\], or \\[View Raw Evidence JSON\\].\n\n\n## **Causal Explanation Specification**\n\n\nTo answer the question \u0022Why did this happen?\u0022, the UI utilizes the structure of Recursive Atomic Decomposition (RAD)6. The system stringently avoids fabricated machine monologues, LLM-generated chain-of-thought, or anthropomorphized text.  \nThe interactive view traces the exact sequence: Input (environmental boundary conditions) → Evidence (sensor data captured) → Transformation (the mathematical matrix applied) → Uncertainty (confidence intervals) → Claim \u0026 Authority (the system\u0027s intent to act and the policy permitting it) → Constraint \u0026 Decision (the UAI physical context firewall evaluation6) → Safety Intervention (if applicable) → Outcome (final deterministic state).  \nThe explanation uses structured facts and stable reason codes (e.g., ERR\\_KINEMATICS\\_VIOLATION) exclusively. The visual representation is a node-based Directed Acyclic Graph (DAG)6, where clicking a node reveals the JSON input and output payload for that specific micro-decision.\n\n\n## **Baseline, Variant, and Branching Specification**\n\n\nEvulgare’s core utility lies in comparing a known, proven baseline against a counterfactual variant.  \nThe original .uai run is pinned as an immutable reference track. When a user modifies a bounded input (e.g., changing weather from CLEAR to HEAVY\\_RAIN), the frontend does not simulate the result. It dispatches a request to the Python backend, which computes the new variant and streams the JSON payload back to the browser.  \nOnce received, the frontend timeline mathematically diffs the two runs and drops a highly visible monospace marker at the exact millisecond the state vectors experience their first divergence. In side-by-side mode, two WebGPU viewports are instantiated. A single orbit control implementation broadcasts camera matrices to both viewports simultaneously, ensuring perfect spatial synchronization. Entities with a state delta greater than zero are rendered with a semantic teal shader overlay.  \nVariants can be saved as immutable counterfactual branches. The UI displays a branch tree representing the multiverse of the scenario, allowing branch-to-branch comparison without altering the canonical history of the baseline.\n\n\n## **Visualization-Layer Specification**\n\n\nTo manage visual complexity without overwhelming the user, the viewport supports orthogonal semantic layers. A fundamental stricture of the Assurance Simulation Workbench is that *every* layer must have an equivalent table and text representation in the DOM.\n\n\n| Semantic Layer | Visual Representation (3D/2D) | Tabular/Text Equivalent |\n| :---- | :---- | :---- |\n| **SYSTEM** | The physical bounds of the machine (e.g., chassis, actuators). | Asset inventory list with dimensional matrices. |\n| **EVIDENCE** | Raw sensor cones, LIDAR point clouds, and raw telemetry vectors. | Raw JSON feeds; timestamped sensor arrays. |\n| **ASSURANCE** | Translucent bounding boxes representing proven safe operational volumes. | Min/Max physical constraints and UAI threshold values. |\n| **AUTHORITY** | Geofences or hierarchical permission zones rendered as floor grids. | Boolean permission tables tied to spatial coordinates. |\n| **UNCERTAINTY** | Gaussian blur volumes or particle clouds representing probabilistic state variance. | Standard deviation metrics; Monte Carlo boundary lists. |\n| **EVENTS** | Spatial markers (glyphs) for discrete state transitions along trajectories. | The chronologically ordered Event Log. |\n| **METRICS** | Heads-up floating telemetry numbers (velocity, temperature). | Traditional data tables mapping time against variables. |\n| **WORLD TRUTH** | The objective physics of the simulation. | The absolute ground-truth physics coordinate array. |\n| **AUTONOMY BELIEF** | The internal world-model held by the autonomous agent (often misaligned with World Truth). | The ingested sensor matrix prior to transformation. |\n| **AUTONOMY INTENT** | The planned future trajectory of the agent (splines or vectors). | The target output coordinate matrix. |\n\n\n## **Graphics, Camera System, and XR Architecture**\n\n\nAs of early 2026, WebGPU is a baseline feature across Chrome 113+, Edge 113+, Safari 26, and Firefox 141+2. It represents a massive leap over WebGL by providing first-class compute shaders, lower JavaScript overhead, and direct mapping to native Vulkan, Metal, and Direct3D 12 APIs2. However, Evulgare must implement capability-aware fallback sequences.\n\n\n### **Graphics Fallback Architecture**\n\n\n\u003E 1. **WebGPU:** Primary target. Compute pipelines process thousands of parallel simulation states or uncertainty point clouds directly in the browser, while render pipelines draw the high-fidelity 3D output3.  \n\u003E 2. **WebGL2:** The primary fallback for Linux environments with blocked WebGPU adapters, older Android devices lacking modern ARM/Qualcomm GPUs12, or browsers operating in compatibility mode4.  \n\u003E 3. **WebGL (v1):** Maintained solely for legacy mobile device support.  \n\u003E 4. **Semantic Non-Graphics Representation:** The absolute baseline. If hardware acceleration is entirely disabled or missing, the canvas collapses, and the UI relies entirely on the tabular and textual representations of the event-index model.\n\n\n### **Camera System**\n\n\nThe camera system is strictly controlled by the EventIndex global state. While users can free-roam via mouse/touch orbit controls, clicking a critical event in the timeline triggers a deterministic camera interpolation to a pre-computed optimal viewing matrix. Crucially, the camera system honors the OS-level prefers-reduced-motion CSS media query. If detected, cinematic camera sweeps are completely disabled, replaced by instant cuts to the target event coordinates to prevent vestibular distress.\n\n\n### **Context Cleanup and Context Loss**\n\n\nGiven the massive data payloads involved in multi-branch simulation, GPU memory leakage is a critical threat. The architecture mandates the use of the vanilla JS FinalizationRegistry and explicit .destroy() calls on WebGPU buffers upon branch switching or scenario exit. Furthermore, the application listens for the gpu.device.lost event. Upon detection, it prompts a clean, seamless recreation of the graphics pipeline from the current EventIndex without requiring a destructive page reload4.\n\n\n### **WebXR Experience and Fallback Plan**","source_sha256":"634b9943208f374d48c7796d416d9b8a55a397b0d25a6dc82eb5dfec8700ea77"}