Skip to content
ContractSpec
Start here

reference

Visual scenario contracts

Provider-neutral, deterministic UI cases linked to React presentations.

field.key.label
docs.tech.contracts.visual-scenarios
field.version.label
field.type.label
field.title.label
Visual scenario contracts
field.tags.label
contracts,presentations,visual-testing
field.owners.label
field.stability.label
public

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.