Goal
Design the smallest durable feedback loop that turns a generated diagram and a user's approved edit into useful versioned evidence for generation and evaluation improvements.
Current v2 foundation
- The canonical runtime persists generated artifacts and provenance.
- Studio has stable project and diagram records plus an embedded editing route.
- Editor changes are currently downloaded locally rather than persisted as a new diagram version.
- There is no approval state, durable edit delta, or path from approved edits into maintained eval evidence.
Questions to answer
Product workflow
- What action records satisfaction: save, explicit approval, publish, or a version label?
- Is the first useful unit a diagram version, an approved artifact pair, or an eval example?
- Which metadata must remain visible to users and operators?
Version and provenance model
- How does an edited artifact retain its generated source artifact, prompt, typed IR, model/settings, and renderer version?
- Should the durable record store full immutable before/after artifacts, a derived semantic diff, or both?
- How are concurrent or branched edits represented without introducing collaborative event sourcing prematurely?
Learning loop
- How are approved pairs promoted into maintained scenarios or prompt examples?
- Which changes can be aggregated safely into renderer/layout improvements?
- What regression gates prevent one user's edit style from degrading general output?
Privacy and retention
- What diagram/prompt content may be retained for product improvement?
- What explicit consent, deletion, and access controls are required before reuse?
Deliverables
- A short design document describing the end-to-end workflow.
- A storage-neutral version/provenance model that fits the current Cloudflare artifact boundary.
- A recommendation for the first implementation slice.
- Explicit privacy, retention, and evaluation safeguards.
Recommended first slice
- Persist an editor save as a derived immutable artifact.
- Record source artifact, typed IR, generation metadata, and content hash.
- Add explicit user approval to a version.
- Export approved before/after pairs into a reviewable eval-candidate format.
- Keep automated optimization and community templates out of the critical path.
Out of scope
- Convex-specific tables or assumptions.
- Automated model or prompt optimization.
- A community template marketplace.
- Full collaborative editing/event sourcing.
Current touchpoints
apps/studio/src/lib/studio-projects-contract.ts
apps/studio/src/lib/studio-projects.server.ts
apps/studio/src/routes/diagrams_/$diagramId/edit.tsx
packages/diagram-agent/
packages/diagram-scenarios/
docs/mcp-first-generation.md
Rewritten after the Sketchi v2 replacement in #217. The feedback-loop question remains useful; the Convex and marketplace assumptions do not.
Goal
Design the smallest durable feedback loop that turns a generated diagram and a user's approved edit into useful versioned evidence for generation and evaluation improvements.
Current v2 foundation
Questions to answer
Product workflow
Version and provenance model
Learning loop
Privacy and retention
Deliverables
Recommended first slice
Out of scope
Current touchpoints
apps/studio/src/lib/studio-projects-contract.tsapps/studio/src/lib/studio-projects.server.tsapps/studio/src/routes/diagrams_/$diagramId/edit.tsxpackages/diagram-agent/packages/diagram-scenarios/docs/mcp-first-generation.mdRewritten after the Sketchi v2 replacement in #217. The feedback-loop question remains useful; the Convex and marketplace assumptions do not.