Debate Animation Data Model

Ownership

The engine turns a DebateCore and a command into scalar debate frames and an animation plan. The component package renders frames and engine-provided geometry.

Planner Contract

PlannerInput contains the pre-command DebateCore, a debate command, and optional origin and layout options. The planner applies the command, resolves opening and settled occurrence graphs, computes scoring and layout snapshots, and returns a DebateAnimationPlan.

The plan contains an occurrence-keyed opening DebateFrame and named voila, sprout, firstFill, wave, and reorient steps. Tracks describe position, structural scale, target-stack offset, shell reveal, and fluid reveal. resolveAnimationFrame resolves a step and progress value into a scalar frame; frames contain no host-specific tween values or cycle-variant state.

Animation Sequence

Scoring and Presentation

Scale and Delivery

Layout

Connector Transitions and Ordering

Rendering Layers

The renderer paints all connector and aggregator shells, then all fluids, then aggregator borders, then claims. This ordering keeps overlapping shells behind fluid.

Planner Options

PlannerOptions defines claim width and height, the claim-lane axis gap, and the fraction of a connector corridor reserved for its central straight section. resolvePlannerOptions fills omitted values from defaults declared in engine/src/animation/contracts.ts and validates the connector share.