- schemaVersion
- simulationId
- simulationVersion
- engineVersion
- normalized bounded inputs
- deterministic event history
- explicit outputs and metrics
- named invariant results
- invariant status: pass, fail, or unknown
- invariant evidence and rationale
- canonical digest
- representation metadata
- provenance and branch metadata
- research references
- generation timestamp as metadata, not as an input to deterministic computation
- clear statement of limitations
Specify canonical serialization:
- field ordering or a recognized canonical JSON method;
- number precision and rounding;
- handling of integers versus floating-point numbers;
- Unicode normalization;
- null versus omitted fields;
- arrays and event ordering;
- inclusion of schema and engine versions;
- binary asset references;
- digest algorithm and version.
The same normalized input, schema version, simulation version, and engine version must produce the same authoritative output, event history, invariant results, and digest.
VISUAL PRODUCT DIRECTION
Create a sophisticated technical-instrument visual language:
- clear information hierarchy;
- dark or neutral workspace with strong contrast;
- restrained glow, particles, edge animation, volumetric fields, and post-processing;
- semantic status chips;
- camera animation driven by meaningful events;
- readable labels and overlays;
- optional cinematic mode;
- reduced-motion mode;
- no information conveyed by color alone;
- no decorative motion that obscures proof state;
- no military or operational aesthetic that contradicts the synthetic assurance purpose.
The experience must look exciting because causal structure becomes visible, not because unrelated effects are added.
EPIC: SIMULATION EXPLORER
Replace the static catalog experience with a visual explorer.
Required capabilities:
- card or grid representation for all simulations;
- static preview or lightweight paused/muted animation;
- title, summary, topic, audience, difficulty, estimated duration, proof count, research-source count, and supported modes;
- filters for topic, audience, difficulty, duration, interaction type, WebXR, guided mode, comparison, export, and authoring compatibility;
- sorting by recommended, newest, duration, complexity, and popularity;
- recommended paths such as Learn, Evaluate, Build, and Govern;
- recently viewed and favorited simulations for consenting users;
- shareable filter URLs;
- full keyboard operation;
- no loading of the full 3D engine before a simulation is opened.
Acceptance tests: GIVEN the explorer is loaded WHEN no simulation is opened THEN the Babylon.js runtime and large scene assets are not downloaded.
GIVEN a keyboard-only user WHEN the user applies a topic filter and opens a simulation THEN focus order is logical, filter state is announced, and the selected simulation opens without pointer interaction.
GIVEN a URL containing valid explorer filters WHEN the page loads THEN matching filters and results are restored.
GIVEN reduced motion WHEN previews are visible THEN animated previews are paused or replaced with still images.
EPIC: CAPABILITY PREFLIGHT
Detect:
- WebGPU availability;
- WebGL2 availability;
- WebXR availability;
- reduced-motion preference;
- high-contrast or forced-colors behavior where observable;
- pointer and touch capabilities;
- approximate memory or performance tier using privacy-respecting signals;
- network constraints;
- renderer initialization errors.
Offer:
- Recommended mode
- High-fidelity mode
- Low-power mode
- Accessible table and narrative mode
- XR mode only when supported
Acceptance tests: GIVEN WebGPU is unavailable and WebGL2 is available WHEN the user opens a scene THEN the scene operates through WebGL2 with identical authoritative outputs.
GIVEN neither renderer initializes WHEN the scene route loads THEN controls, run execution, table, narrative, timeline, and proof remain usable.
GIVEN XR is unavailable WHEN the user opens capability information THEN the interface explains that XR is optional and does not imply reduced analytical functionality.
EPIC: UNIFIED WORKBENCH
Desktop layout:
- top command and status bar;
- left scenario and controls panel;
- central scene;
- right proof and evidence inspector;
- bottom event timeline;
- representation tabs for Visual, Table, Narrative, Metrics, Event Log, and Raw Evidence.
Mobile layout:
- scene-first or summary-first view;
- ordered tabs or drawers;
- persistent run status;
- no tiny multi-column desktop reproduction;
- touch targets meeting accessibility requirements;
- tables that can be transformed into cards or narrowed to selected columns.
All panels must be:
- resizable where useful;
- collapsible;
- keyboard reachable;
- restorable to defaults;
- represented in URL or workspace preferences only where appropriate;
- capable of announcing important state changes without excessive screen-reader verbosity.
Acceptance tests: GIVEN a user switches from Visual to Table at event 12 THEN the table reflects event 12 and the selected entity.
GIVEN a user changes viewport from desktop to mobile THEN no run, event index, selection, or valid unsaved scenario input is lost.
GIVEN the proof panel is collapsed WHEN an invariant changes to failed THEN a non-color status indicator appears and the user can navigate directly to the failure.
EPIC: GUIDED, EXPLORE, AND EXPERT MODES
Guided:
- state a learning objective;
- introduce concepts incrementally;
- provide a glossary;
- explain why each important transition occurred;
- provide skip, back, restart, and exit controls;
- complete a representative baseline in about three minutes;
- use the real engine, not a prerecorded imitation.
Explore:
- present curated presets;
- expose commonly understood bounded controls;
- provide compare, replay, and contextual explanation.
Expert:
- expose all public allowlisted inputs;
- raw event and proof records;
- API request example;
- engine and schema versions;
- export options;
- advanced camera, overlay, and diagnostics controls.
Acceptance tests: GIVEN a new user starts Guided mode WHEN the user completes the baseline THEN the user receives a summary of inputs, decisive events, proof results, limitations, and recommended next exploration.
GIVEN a user switches from Guided to Expert THEN the valid scenario and completed run remain available.
GIVEN a glossary term appears THEN it is accessible by keyboard, touch, and screen reader without forcing a navigation away.
EPIC: REPLAY AND TIMELINE
Standard controls:
- play;
- pause;
- previous event;
- next event;
- scrub;
- speed;
- jump to beginning or end;
- jump to proof change;
- bookmarks;
- event categories;
- search;
- selected-entity filtering.
The canonical run history is immutable. Replay is a view over history. A counterfactual creates a new run with parentRunId and branchEventIndex. It never modifies the parent history.
Acceptance tests: GIVEN a completed run WHEN the user scrubs from event 20 to event 5 THEN visual, table, narrative, metrics, proof, and selection all reflect event 5.
GIVEN a counterfactual is created at event 8 THEN the original run remains byte-for-byte unchanged and the new run identifies its parent and branch event.
GIVEN two users observe the same hosted replay WHEN the presenter changes event index THEN observers receive the new position within the collaboration latency objective, while retaining the ability to detach locally.
EPIC: BASELINE AND VARIANT COMPARISON
Compare:
- normalized input differences;
- event-sequence differences;
- output and metric differences;
- proof status differences;
- evidence and rationale differences;
- digest and version differences;
- branch provenance;
- visual split view;
- optional synchronized cameras;
- overlay mode only where it remains comprehensible.
Do not display a single aggregate “better” score. Do not hide failed or unknown invariants behind a favorable average.
Acceptance tests: GIVEN two runs with one changed input WHEN comparison opens THEN the changed input, first divergent event, resulting output differences, and proof differences are identifiable.
GIVEN one run has a failed invariant THEN the comparison cannot collapse the failure into an aggregate score.
GIVEN the two runs use different engine versions THEN the comparison displays a version warning and explains that differences may not be attributable only to scenario inputs.
EPIC: EVIDENCE EXPORT AND SHARE
Support:
- canonical JSON package;
- human-readable HTML or PDF report;
- optional CSV extracts for tables and metrics;
- signed share links;
- privacy-safe anonymous share mode;
- workspace-scoped share mode;
- import and validation;
- deterministic replay where the required engine version is available.
The evidence package includes:
- schema and engine versions;
- normalized inputs;
- event history;
- outputs;
- proof results;
- digest;
- narrative;
- research references;
- limitations;
- provenance;
- verification result after import.
Acceptance tests: GIVEN a valid exported package WHEN it is imported into a compatible environment THEN its digest validates and the replay reaches identical authoritative states.
GIVEN a package has been modified WHEN it is imported THEN validation fails clearly and no claim of equivalence is shown.
GIVEN an anonymous user creates a share link THEN the link contains or references only the intended run package and no browser fingerprint, account data, or unrelated session information.
EPIC: VERSIONED API AND SDK
Build FastAPI endpoints for:
- list simulations;
- retrieve simulation schema;
- validate scenario;
- execute run;
- retrieve run;
- retrieve event slice;
- retrieve proof;
- compare runs;
- export package;
- submit batch;
- retrieve batch status;
- create webhook;
- verify package;
- health and readiness.
Requirements:
- OpenAPI 3 documentation;
- generated TypeScript and Python clients;
- idempotency keys for run and batch creation;
- structured error codes;
- request IDs;
- schema version negotiation;
- explicit deprecation policy;
- pagination where required;
- quotas and rate-limit headers;
- HMAC-signed webhooks;
- no silent coercion of illegal input.
Acceptance tests: GIVEN an out-of-range scalar WHEN a run request is submitted THEN the API rejects it with a structured validation error and does not clamp silently unless the schema explicitly defines clamping.
GIVEN the same idempotency key and identical body WHEN a request is retried THEN the same run result or run identifier is returned.
GIVEN the same idempotency key and a different body THEN the request is rejected as an idempotency conflict.
GIVEN a generated SDK WHEN contract tests run THEN all supported endpoints serialize and deserialize against the published schema.
EPIC: BOUNDED AUTHORING STUDIO
Allow qualified users to create synthetic scenarios using:
- approved entity templates;
- abstract relationships;
- event sequences;
- bounded parameters;
- allowlisted metrics;
- display rules;
- narrative templates;
- references;
- explicit limitations;
- proof-view configuration.
Do not initially allow arbitrary code execution. Do not permit public authors to introduce external network calls, actuator commands, unrestricted files, or prohibited operational fields.
Provide:
- live schema validation;
- preview;
- accessibility preview;
- proof-coverage checklist;
- versioning;
- draft and publish workflow;
- license selection;
- moderation status;
- fork provenance.
Acceptance tests: GIVEN an author attempts to create an unsupported operational-coordinate field THEN the schema rejects it and identifies the policy category.
GIVEN a scenario lacks an accessible narrative for a visual state THEN publication is blocked.
GIVEN a published scenario is forked THEN parent version, author, license, and modifications remain visible.
EPIC: WORKSPACES AND COLLABORATION
Roles:
- owner;
- administrator;
- author;
- analyst;
- reviewer;
- observer.
Capabilities:
- saved scenarios;
- saved runs;
- comments and annotations;
- event-targeted and proof-targeted annotations;
- assignments and resolution states;
- presenter-led replay;
- presence;
- audit history;
- export;
- configurable retention.
Public runs remain ephemeral unless explicitly saved.