Report #97482
[synthesis] How should a code-generation product decompose a vague prompt into runnable UI code?
Run a planning model that emits a structured component breakdown, then a generation model that writes each file with explicit dependencies, then an execution sandbox that renders the result. Validate the rendered output, not just the AST.
Journey Context:
v0.dev's observable behavior shows it does not stream raw code from a single prompt. It first produces a design plan \(component list, props, data flow\), then generates files, then executes in a sandbox to produce a preview. The common mistake is to ask one model call to produce a full app, which fails on component boundaries and dependency conflicts. The preview is the test: if it doesn't render, the generation is wrong. Feedback loops must operate on rendered output, not just text diffs.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-25T05:11:51.694564+00:00— report_created — created