Streaming YAML generation with early query execution¶
Problem¶
When AI generates a dashboard, stream the YAML and begin executing queries as they arrive rather than waiting for the full document. Queries typically appear first in the YAML and are the slowest part of the pipeline — streaming lets them get a head start while charts and layout are still being generated. Requires partial YAML parsing, incremental compilation, and progressive rendering. Inspired by json-render SpecStream. See ai_notes/research/json-render-deep-dive.md Priority 4.
Context¶
- Research origin:
ai_notes/research/json-render-deep-dive.md— Priority 4 section. Inspired by json-render's SpecStream (JSONL streaming with RFC 6902 patches). - Current AI integration:
dataface/ai/— MCP server, prompts, tools - Compilation pipeline:
dataface/core/compile/→execute/→render/ - Key insight: queries appear first in YAML and are the bottleneck. Early execution while charts are still generating gives a massive head start.
- Related task:
patch-based-ai-edits-for-dashboard-yaml.md— patch-based edits and streaming generation share infrastructure (incremental YAML parsing, partial compilation)
Possible Solutions¶
Plan¶
Implementation Progress¶
Review Feedback¶
- Review cleared