Presentation

Presentation connects runtime states to images and animation clips. The application loads those assets and advances the frames.

States and clips

Typical reference roles are primary/fallback, idle, locomotion, action-phase clips, touch/reaction, and Recovery. The package can define image or frame-sequence clips and binding relationships. Some example packages use four frames per clip. The schema does not impose that frame count or a single canvas size.

A file named wave.png does not create an action. The binding determines when the runtime uses a clip. Runtime-owned transient states such as locomotion, touch, and Recovery are not the same as authored normal, calm, or alert Presentation Behavior stances.

Lifecycle

stateDiagram-v2
  [*] --> idle
  idle --> locomotion: accepted visit / movement
  locomotion --> action: target reached and action phase begins
  action --> idle: finite action completes
  idle --> touch: touch command
  action --> recovery: owned context invalidated
  touch --> idle: finite reaction completes
  recovery --> idle: recovery terminal accepted

The runtime event and the validated bindings determine which clip plays. Recovery is finite and returns to the normal idle presentation through the existing lifecycle. The renderer reports completion through the corresponding Runtime/Presentation boundary; it must not infer behavior from an asset path.

Assets and fallback

The primary asset is the neutral render image. A fallback asset is a resilience option for missing/failed visual loading when the renderer supports the fallback path. Frame-sequence assets should share canvas size, alignment, and a consistent baseline so motion does not visually jump. See Asset Guide.

Renderer boundary

The Consumer owns image fetching, decoded image lifetime, CSS/canvas placement, frame advancement, clipping, scale, anchor use, and accessibility around interactive surfaces. CharaWeave selects semantic Presentation; it is not itself a universal DOM renderer. Runtime Playground contains an example renderer.