Planning: Deep Dive
validated agentic planning
The planning backend uses route-specific flows instead of one monolithic prompt. Small requests take a fast
path, complex briefs run through collaborative creative planning, and edit/chat turns bypass unnecessary
work when the user is only modifying an existing canvas.
For complex briefs, the debate phase produces a creative direction document: scene sequence, transitions,
production phases, asset dependency map, and style bible. Continuity rules are explicit - for example, a
later video scene can start from the extracted last frame of the previous scene instead of regenerating a new
frame and breaking visual continuity.
The planner receives model capability metadata, current uploads, selected context assets, and relevant
session history. Current-turn uploads are prioritized, old uploads are ignored unless referenced, and context
assets are treated as fixed references so follow-up prompts stay grounded in the canvas.
A plan is not sent to the canvas just because the LLM produced JSON. It has to pass graph validation, model
compatibility checks, field checks, media wiring checks, and continuity checks first. If validation fails,
a repair pass attempts to fix the graph before the user sees it.
Robustness
The frontend only sees a proposed plan after validation succeeds. That avoids a common
failure mode in agentic systems: showing a confident-looking plan that cannot actually execute.