<?xml version="1.0" encoding="UTF-8"?>
<mxfile host="eli.ai" agent="eli.ai diagram exporter" version="1">
  <diagram id="governed-query-generation-e9760512" name="Governed query generation">
    <mxGraphModel dx="1600" dy="1200" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1600" pageHeight="1200" math="0" shadow="0">
      <root>
        <mxCell id="0"/>
        <object id="1" label="Governed query generation" schemaVersion="1" diagramId="governed-query-generation-e9760512" canonicalAppearanceKey="tsx:src/app/(docs)/docs/capabilities/data-connectors/page.tsx:generationChart#1" sourceSha256="e9760512a217b88a2c564828e352e89692710a6ee40779fa1aecb63f501071a0" metadataPayloadSha256="7f11c8ad3bc54af39ff2805d909e8631170089720dfcd6ae5ff76ddc9723ac4c" generationKey="b54f1e2e950ccede922f3d66dc1fab183f77a969e075d47bfc79b5bdeafd2dfd" concepts="[&quot;Data connectors&quot;,&quot;Capabilities&quot;,&quot;Generation&quot;]" keywords="[&quot;kb_data · · MCP&quot;,&quot;LLM drafts SQL&quot;,&quot;information_schema snapshot&quot;,&quot;discover schema&quot;,&quot;browse tables &amp; columns&quot;,&quot;safe previews&quot;,&quot;human reviews &amp; edits&quot;,&quot;read-only validation&quot;,&quot;from snapshot + your description&quot;,&quot;save as domain component&quot;,&quot;governed, named, parameterized&quot;,&quot;/api/v1/query&quot;]" application="{&quot;name&quot;:&quot;eli-ai&quot;,&quot;version&quot;:&quot;0.1.0&quot;}" packages="{&quot;mermaid&quot;:&quot;11.16.0&quot;,&quot;mermaidCli&quot;:&quot;11.16.0&quot;,&quot;playwright&quot;:&quot;1.62.1&quot;,&quot;playwrightCore&quot;:&quot;1.62.1&quot;,&quot;puppeteer&quot;:&quot;25.6.0&quot;,&quot;puppeteerCore&quot;:&quot;25.6.0&quot;}" environment="{&quot;architecture&quot;:&quot;x64&quot;,&quot;containerImage&quot;:&quot;playwright:v1.62.1-noble@sha256:c091b21d9fae78c76e85cd4356431e9b018402f172a214fc7d7a5e9a7e29d8ac+node:26.3.1-bookworm-slim@sha256:209558c3e5e40e8adff68959d3c2ba7cd73723e716d89196878a0c362fa1e109&quot;,&quot;node&quot;:&quot;v26.3.1&quot;,&quot;platform&quot;:&quot;linux&quot;,&quot;yarn&quot;:&quot;4.17.1&quot;}" renderer="{&quot;browser&quot;:{&quot;executableSha256&quot;:&quot;0b20b130e7edd9dd51873be867761295fe0cfad490c2b9a64f95bd3cfc08fa71&quot;,&quot;name&quot;:&quot;chromium&quot;,&quot;revision&quot;:&quot;1234&quot;,&quot;version&quot;:&quot;151.0.7922.34&quot;},&quot;font&quot;:{&quot;family&quot;:&quot;Eli Diagram Inter Variable&quot;,&quot;fileSha256&quot;:&quot;3100e775e8616cd2611beecfa23a4263d7037586789b43f035236a2e6fbd4c62&quot;,&quot;licenseSha256&quot;:&quot;3b0a5fca3d17942cde889069889dedbbbd075e9b599968c82a95f4d944e9b345&quot;},&quot;mermaidConfigSha256&quot;:&quot;68c10966fe84406ee626034d58bfabd555df9f65f691204b7c46db24038da101&quot;,&quot;themeCssSha256&quot;:&quot;c80287a78d80ad63d27bd5ca348b2ef9a7e2f44da289e436be6484ea28a1b033&quot;}" adapterVersions="{&quot;diagramGenerator&quot;:&quot;2&quot;,&quot;drawioFlowchart&quot;:&quot;1&quot;,&quot;drawioGantt&quot;:&quot;1&quot;,&quot;drawioSequence&quot;:&quot;1&quot;,&quot;drawioState&quot;:&quot;1&quot;}" mermaidType="flowchart" direction="LR" generatedAt="2026-08-12T23:39:03.155Z" mermaidSource="flowchart LR&#10;  Disc[&quot;discover schema&lt;br/&gt;(information_schema snapshot)&quot;] --&gt; Browse[&quot;browse tables &amp; columns&lt;br/&gt;+ safe previews&quot;]&#10;  Browse --&gt; Gen[&quot;LLM drafts SQL&lt;br/&gt;from snapshot + your description&quot;]&#10;  Gen --&gt; Review[&quot;human reviews &amp; edits&lt;br/&gt;read-only validation&quot;]&#10;  Review --&gt; Save[&quot;save as domain component&lt;br/&gt;(governed, named, parameterized)&quot;]&#10;  Save --&gt; Consume[&quot;kb_data · /api/v1/query · MCP&quot;]">
          <mxCell parent="0"/>
        </object>
        <object id="n:Disc" label="discover schema(information_schema snapshot)" mermaidId="Disc" mermaidShape="rectangle">
          <mxCell parent="1" vertex="1" style="fillColor=#ECECFF;fontColor=#333333;html=1;rounded=0;strokeColor=#9370DB;whiteSpace=wrap;">
            <mxGeometry x="8" y="20" width="256" height="100" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:Browse" label="browse tables &amp; columns+ safe previews" mermaidId="Browse" mermaidShape="rectangle">
          <mxCell parent="1" vertex="1" style="fillColor=#ECECFF;fontColor=#333333;html=1;rounded=0;strokeColor=#9370DB;whiteSpace=wrap;">
            <mxGeometry x="314" y="32" width="245.265625" height="76" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:Gen" label="LLM drafts SQLfrom snapshot + your description" mermaidId="Gen" mermaidShape="rectangle">
          <mxCell parent="1" vertex="1" style="fillColor=#ECECFF;fontColor=#333333;html=1;rounded=0;strokeColor=#9370DB;whiteSpace=wrap;">
            <mxGeometry x="609.265625" y="20" width="256" height="100" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:Review" label="human reviews &amp; editsread-only validation" mermaidId="Review" mermaidShape="rectangle">
          <mxCell parent="1" vertex="1" style="fillColor=#ECECFF;fontColor=#333333;html=1;rounded=0;strokeColor=#9370DB;whiteSpace=wrap;">
            <mxGeometry x="915.265625" y="32" width="225.921875" height="76" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:Save" label="save as domain component(governed, named, parameterized)" mermaidId="Save" mermaidShape="rectangle">
          <mxCell parent="1" vertex="1" style="fillColor=#ECECFF;fontColor=#333333;html=1;rounded=0;strokeColor=#9370DB;whiteSpace=wrap;">
            <mxGeometry x="1191.1875" y="8" width="256" height="124" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:Consume" label="kb_data · /api/v1/query · MCP" mermaidId="Consume" mermaidShape="rectangle">
          <mxCell parent="1" vertex="1" style="fillColor=#ECECFF;fontColor=#333333;html=1;rounded=0;strokeColor=#9370DB;whiteSpace=wrap;">
            <mxGeometry x="1497.1875" y="32" width="256" height="76" as="geometry"/>
          </mxCell>
        </object>
        <object id="e:L_Disc_Browse_0" label="" mermaidId="L_Disc_Browse_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:Disc" target="n:Browse" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="264" y="70" as="sourcePoint"/>
              <mxPoint x="314" y="70" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="289" y="70"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_Browse_Gen_0" label="" mermaidId="L_Browse_Gen_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:Browse" target="n:Gen" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="559.265625" y="70" as="sourcePoint"/>
              <mxPoint x="609.265625" y="70" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="584.265625" y="70"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_Gen_Review_0" label="" mermaidId="L_Gen_Review_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:Gen" target="n:Review" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="865.265625" y="70" as="sourcePoint"/>
              <mxPoint x="915.265625" y="70" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="890.265625" y="70"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_Review_Save_0" label="" mermaidId="L_Review_Save_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:Review" target="n:Save" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="1141.1875" y="70" as="sourcePoint"/>
              <mxPoint x="1191.1875" y="70" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="1166.1875" y="70"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_Save_Consume_0" label="" mermaidId="L_Save_Consume_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:Save" target="n:Consume" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="1447.1875" y="70" as="sourcePoint"/>
              <mxPoint x="1497.1875" y="70" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="1472.1875" y="70"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
      </root>
    </mxGraphModel>
  </diagram>
</mxfile>
