Experience templates (Engine C)
Define slots and JSON Schemas, then render generated, approved content safely.
An experience template binds a slot name (e.g. home.hero, daily_mission) to a JSON Schema. Built-in presets: daily mission, adaptive difficulty, onboarding flow, landing hero, personalized quest and procedural level parameters — or bring your own schema.
Lifecycle
- Generate variants (local LLM if available, otherwise schema-driven procedural generation) or write one by hand.
- Each variant is validated against the schema and linted for dark patterns, unsafe content, links and personal data. Invalid variants are rejected.
- Difficulty and mission variants get an offline simulation (directional only).
- A developer approves, then sets it live with an optional rollout percentage.
- Rollback restores the previous approved version.
Rendering
const mission = aop.getExperience<{ title: string; target: number }>("daily_mission");
if (mission) showMission(mission.content); else showDefaultMission();Always keep a default experience in your app; content is optional by design.