Diagrams
Write a fenced block with the language mermaid. It renders client-side, themed with the design system’s neutral surfaces and borders. The diagram shows as plain text until it has rendered.
Flowchart
Section titled “Flowchart”```mermaidflowchart TD Start([Start a run]) --> Draft[agent: draft] Draft --> Gate{{gate: pick one}} Gate -->|choose| Assemble[code: assemble] Gate -->|send back with a note| Draft Assemble --> Done([completed])```flowchart TD
Start([Start a run]) --> Draft[agent: draft]
Draft --> Gate{{gate: pick one}}
Gate -->|choose| Assemble[code: assemble]
Gate -->|send back with a note| Draft
Assemble --> Done([completed])
Sequence diagram
Section titled “Sequence diagram”sequenceDiagram participant P as Person participant D as Dashboard participant S as Server P->>D: Press Use this option D->>S: POST /api/runs/:id/gate S-->>D: 202 ok S-->>D: SSE run event (gate.decided) D->>S: GET /api/runs/:id S-->>D: run, now running
State diagram
Section titled “State diagram”stateDiagram-v2 [*] --> running running --> awaiting_gate: gate opens awaiting_gate --> running: decided running --> blocked: connector unusable blocked --> running: connection fixed running --> completed running --> failed awaiting_gate --> rejected: reject completed --> [*] failed --> [*] rejected --> [*]