Acceptance tests: GIVEN an observer WHEN the observer attempts to modify a scenario or annotation THEN authorization denies the action on the server, not only in the UI.
GIVEN a user from tenant A knows an object ID in tenant B WHEN the user requests it THEN the response reveals no tenant-B content or metadata.
GIVEN a collaboration client disconnects and reconnects THEN it restores the correct room, run version, presenter state, and permission scope.
EPIC: PLUGIN SDK
Plugin categories:
- renderer extension;
- scene adapter;
- importer;
- exporter;
- metric view;
- proof view;
- integration connector;
- educational module;
- simulation-engine adapter.
Manifest fields:
- plugin ID and version;
- publisher;
- license;
- compatible platform and schema versions;
- declared permissions;
- entry points;
- integrity digest;
- signature;
- network domains if any;
- data-access scope;
- accessibility declaration;
- test status;
- revocation status.
Security:
- sandbox by default;
- no network by default;
- no direct database access;
- no unrestricted DOM access;
- no secret access;
- no dynamic native code in public hosting;
- message-based APIs;
- rate and resource limits;
- signed package verification;
- kill switch and revocation.
Acceptance tests: GIVEN an unsigned plugin THEN production installation is denied.
GIVEN a plugin without network permission WHEN it attempts a network request THEN the sandbox blocks the request and records a security event.
GIVEN a plugin is revoked THEN new loads are blocked and administrators can identify affected workspaces.
EPIC: WEBGPU AND RENDERING QUALITY
Implement:
- WebGPU enhancement path;
- WebGL2 functional fallback;
- dynamic resolution;
- quality tiers;
- instancing;
- progressive asset loading;
- KTX2 textures;
- compressed meshes;
- level of detail;
- GPU timing where available;
- frame-time monitoring;
- render suspension for hidden or static scenes;
- explicit resource disposal.
Renderer behavior must never alter authoritative simulation output.
Acceptance tests: GIVEN WebGPU and WebGL2 runs of the same scenario THEN canonical engine output and digest are identical.
GIVEN average frame time exceeds the selected budget THEN optional effects or resolution reduce progressively without removing required labels, status, or accessible information.
GIVEN a user leaves a simulation route THEN scene resources, event listeners, animation loops, workers, and GPU allocations are released.
EPIC: ACCESSIBILITY
Target WCAG 2.2 AA and establish evidence rather than making an unsupported claim.
Required:
- semantic HTML;
- keyboard operation;
- visible focus;
- logical focus order;
- screen-reader labels and announcements;
- skip links;
- landmarks;
- reduced motion;
- forced-colors support where practical;
- 200% and 400% zoom/reflow;
- no color-only information;
- text and table parity;
- accessible errors;
- touch-target sizing;
- captions/transcripts for instructional media;
- non-XR task parity.
Supported manual matrix:
- NVDA with Firefox
- JAWS with Chrome
- VoiceOver with Safari on macOS and iOS
- TalkBack with Chrome on Android
- keyboard only
- reduced motion
- zoom/reflow
- forced colors or high-contrast evaluation
Acceptance tests: GIVEN JavaScript is disabled THEN simulation purpose, baseline inputs, authoritative table/text state, proof summary, research links, and limitations remain available.
GIVEN a user operates only by keyboard THEN the user can select a preset, edit values, execute a run, step through events, inspect proof, compare runs, and export evidence.
GIVEN reduced motion THEN nonessential animation, camera travel, particles, and auto-playing previews stop.
GIVEN a proof state is represented visually by color THEN an icon, text label, and programmatic state convey the same meaning.
EPIC: PERFORMANCE
Public field targets:
- LCP <= 2.5 seconds at p75
- INP <= 200 milliseconds at p75
- CLS <= 0.1 at p75
Product budgets:
- gallery shell <= 250 KB gzip, excluding lazy simulation runtime;
- no full 3D engine on explorer route;
- accessible shell interactive <= 2 seconds on target desktop;
- first meaningful 3D frame <= 4 seconds target desktop;
- first meaningful 3D frame <= 7 seconds representative mid-tier mobile;
- sustained 60 FPS target desktop;
- minimum 30 FPS supported mobile;
- no routine main-thread task over 50 ms during interaction;
- initial common-scene payload target <= 5 MB;
- memory target <= 500 MB desktop and <= 250 MB mobile;
- deterministic lightweight API p95 <= 300 ms in primary region;
- collaboration event p95 <= 150 ms in-region.
Implement real-user monitoring using privacy-preserving buckets. Do not log raw scenario inputs by default.
Acceptance tests:
- CI fails when public bundles exceed their budgets.
- CI fails when a representative scene exceeds frame-time budgets on the benchmark runner.
- Lighthouse CI fails on agreed threshold regression.
- A scheduled test detects unbounded memory growth across repeated route changes.
- A load test demonstrates forecast peak capacity plus an agreed safety margin.
EPIC: SECURITY
Base verification on an application security standard such as OWASP ASVS.
Implement:
- secure cookies;
- CSRF defenses where cookie authentication applies;
- strict input schemas;
- size and depth limits;
- WAF and rate limiting;
- OIDC-compatible authentication;
- MFA support;
- tenant-scoped RBAC;
- encrypted transport and managed encryption at rest;
- secrets manager;
- restrictive Content Security Policy;
- Permissions Policy;
- frame restrictions;
- signed uploads and plugins;
- malware scanning;
- immutable or append-oriented audit records;
- API-key hashing and rotation;
- HMAC webhooks with replay protection;
- SBOM;
- dependency and container scanning;
- static analysis;
- dynamic security testing;
- tenant-isolation tests;
- threat models for each major epic.
Acceptance tests:
- A cross-tenant object reference cannot disclose existence, metadata, or content.
- Malformed and deeply nested JSON is rejected before expensive processing.
- Replayed webhook deliveries are identifiable and safe.
- A plugin cannot exceed declared permissions.
- Logs and traces do not contain scenario payloads, credentials, tokens, or annotation text under default configuration.
- Public authoring cannot create external side effects.
- Critical and high exploitable findings block production release.
EPIC: ANALYTICS
Use a versioned event taxonomy.
Initial events:
- explorer_viewed
- explorer_filter_applied
- capability_checked
- simulation_launched
- scene_shell_ready
- first_3d_frame
- renderer_fallback_used
- preset_selected
- run_started
- run_completed
- guided_step_completed
- timeline_used
- proof_opened
- invariant_inspected
- comparison_created
- counterfactual_created
- export_created
- share_created
- collaboration_started
- annotation_created
- authoring_draft_created
- api_key_created
- plugin_installed
- accessibility_mode_selected
- simulation_error
Do not include scenario values in these events. Provide a diagnostics screen that shows the user which telemetry category is active.
EPIC: COMMERCIAL CAPABILITIES
Free:
- public labs;
- guided modes;
- limited exports;
- public documentation.
Professional:
- saved private scenarios;
- advanced comparison;
- richer exports;
- higher API quota;
- individual authoring.
Team:
- shared workspaces;
- annotations;
- live review;
- role controls;
- embeds;
- team templates.
Enterprise:
- SSO and SCIM;
- tenant audit export;
- private plugin registry;
- configurable retention;
- private cloud or on-premises deployment;
- support and service objectives;
- optional data-residency commitments.
Usage:
- batch runs;
- parameter sweeps;
- high-volume API;
- GPU-streamed sessions.
Implement entitlements in a centralized service or policy layer. Do not scatter plan checks across visual components.
EPIC: COMMUNITY
Build:
- public scenario gallery;
- contributor profiles;
- reproducibility badges;
- licenses;
- version history;
- forks;
- moderation;
- reporting;
- plugin registry;
- educational learning paths;
- bounded weekly challenges;
- expert walkthroughs.
Leaderboards may reward:
- proof-inspection completion;
- identification of assumptions and defeaters;
- justified abstention;
- high-quality explanations;
- reproducible scenario creation;
- peer-review contributions;
- plugin quality.
Leaderboards must not reward:
- unsafe reduction of margins;
- increased authority;
- aggressive operational performance;
- bypassing proof conditions;
- speed where speed compromises comprehension.
MILESTONE PLAN
Milestone A: Foundation and baseline, weeks 0–6 Deliver:
- architecture decision records;
- current-behavior inventory;
- golden proof and API tests;
- schema v2 draft;
- design tokens and workbench prototype;
- analytics and privacy specification;
- performance baseline;
- accessibility test plan;
- threat model;
- Simulation Explorer beta.
Exit criteria:
- all existing proof vectors run in CI;
- no-JavaScript behavior is captured;
- schema design is approved;
- explorer prototype passes keyboard and performance checks;
- one representative simulation is selected for migration.
Milestone B: Unified workbench, weeks 7–16 Deliver:
- TypeScript application shell;
- Babylon.js scene adapter;
- capability preflight;
- guided/explore/expert modes;
- shared timeline;
- proof inspector;
- baseline-versus-variant comparison;
- evidence export;
- first two or three migrated simulations;
- FastAPI sidecar and initial OpenAPI.
Exit criteria:
- migrated scenes have authoritative parity;
- all representations synchronize at every event index;
- performance budgets pass;
- required screen-reader journeys pass;
- legacy route can be restored with a feature flag;
- no critical/high security issue remains.
Milestone C: Platform and collaboration, months 5–9 Deliver:
- all ten simulations in the shared workbench;
- public API and SDKs;
- user identity and workspaces;
- annotations;
- presenter-led collaboration;
- embed kit;
- authoring beta;
- batch execution foundation;
- product analytics dashboards.
Exit criteria:
- anonymous public runs remain ephemeral;
- tenant-isolation suite passes;
- WebSocket soak test passes;
- API documentation and generated SDKs are complete;
- all ten simulations meet shared accessibility and performance gates;
- workspace audit export is available.
Milestone D: Ecosystem and enterprise, months 10–18 Deliver:
- signed plugin SDK and registry;
- community gallery;
- authoring general availability;
- parameter sweeps;
- marketplace billing;
- SSO/SCIM;
- private deployment;
- assurance copilot beta;
- optional GPU-streamed laboratory pilot.
Exit criteria:
- plugin sandbox and revocation have passed external security review;
- marketplace moderation and licensing workflows operate;
- enterprise recovery and deployment runbooks are tested;
- copilot outputs are grounded, cited, labeled, and non-authoritative;
- GPU-streaming unit economics and accessibility alternatives are documented.
REQUIRED ENGINEERING ARTIFACTS
For each epic, produce:
- architecture decision record;
- threat model;
- data-flow diagram;
- API and schema changes;
- user stories;
- acceptance tests;
- accessibility considerations;
- performance budget;
- observability plan;
- rollout and rollback strategy;
- migration plan;
- operational runbook;
- documentation and changelog;
- product analytics events;
- privacy review.
REQUIRED CI PIPELINE
Fast pull-request checks:
- formatting;
- linting;
- type checking;
- unit tests;
- schema tests;
- contract tests;
- key component accessibility tests;
- bundle budget;
- software-composition analysis.
Protected-branch checks:
- full domain proof vectors;
- API integration tests;
- Playwright critical journeys;
- no-JavaScript tests;
- visual regression;
- WebGL renderer tests;
- WebGPU tests where runners support them;
- security scanning;
- infrastructure validation.
Scheduled tests:
- multi-browser suite;
- manual-accessibility rotation;
- performance benchmarks;
- memory and GPU-resource leak tests;
- WebSocket soak;
- API load;
- batch saturation;
- dependency failure and chaos tests;
- backup restoration;
- plugin sandbox tests;
- DAST and fuzzing.
DEFINITION OF DONE
A feature is done only when: