reference
Visual scenario contracts
Provider-neutral, deterministic UI cases linked to React presentations.
Visual scenarios describe named, deterministic UI cases independently of Storybook or any visual-diff provider. Each scenario references a React presentation and a stable product surface. Args, globals, and parameters remain JSON-compatible and may contain nested { $binding: string } references resolved by a host-owned binding registry. Non-serializable components, decorators, setup hooks, and interactions are referenced by package-owned binding names.
Every scenario classifies captured data as synthetic or sanitized. A snapshot policy with publish: true is valid only when capture.external is explicitly true; omission always fails closed. Modes and render bindings are references and must resolve when their registries are supplied to validation.