<?xml version="1.0" encoding="UTF-8"?>
<mxfile host="eli.ai" agent="eli.ai diagram exporter" version="1">
  <diagram id="agent-surface-simplified-data-flow-8a333f42" name="Agent surface — simplified data flow">
    <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="Agent surface — simplified data flow" schemaVersion="1" diagramId="agent-surface-simplified-data-flow-8a333f42" canonicalAppearanceKey="md:docs/architecture/workspace/05-agent-surface.md#3" sourceSha256="8a333f429f753d7721bec3cb6478ebd91a928cf09f27b6594fcdd89e2245c6bd" metadataPayloadSha256="8b9658cb245bf45cd50839537d7bee875dcae04f1617d4f9a46e1234aad4e117" generationKey="c13deef188d9b5ae574a452bcdcf290e78487455fdf5ed7e947526a40374be79" concepts="[&quot;Agent surface&quot;]" keywords="[&quot;stdio MCP server&quot;,&quot;SSE note:updated&quot;,&quot;atomic .md write&quot;,&quot;tools/call edit_artifact&quot;,&quot;Claude Code&quot;,&quot;spawn node&quot;,&quot;tmp + rename&quot;,&quot;to open browser tabs&quot;,&quot;attributed to the agent&quot;,&quot;or pnpm embed:backfill)&quot;,&quot;NOT triggered&quot;,&quot;LocalAdapter pinned at boot&quot;,&quot;SQLite TX: notes + tags + links&quot;,&quot;agent-attributed version row (FTS via triggers)&quot;,&quot;debounced git auto-commit&quot;,&quot;embed queue (gap - needs UI save&quot;,&quot;bin/eli-mcp.mjs&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:36:28.795Z" mermaidSource="flowchart LR&#10;    classDef ext fill:#dbeafe,stroke:#3b82f6,color:#1e3a5f&#10;    classDef core fill:#dcfce7,stroke:#22c55e,color:#14532d&#10;    classDef fx fill:#fff7cd,stroke:#d6b656,color:#5c4b00&#10;    classDef gap fill:#fee2e2,stroke:#ef4444,color:#7f1d1d&#10;&#10;    cc[&quot;Claude Code&quot;]:::ext --&gt;|&quot;spawn node bin/eli-mcp.mjs&quot;| srv[&quot;stdio MCP server&lt;br/&gt;LocalAdapter pinned at boot&quot;]:::core&#10;    cc --&gt;|&quot;tools/call edit_artifact&quot;| srv&#10;    srv --&gt; upd[&quot;storage.updateNote&lt;br/&gt;authorKind &apos;agent&apos; + agentName&quot;]:::core&#10;    upd --&gt; fsw[&quot;atomic .md write&lt;br/&gt;tmp + rename&quot;]:::fx&#10;    upd --&gt; tx[&quot;SQLite TX: notes + tags + links&lt;br/&gt;+ agent-attributed version row (FTS via triggers)&quot;]:::fx&#10;    tx --&gt; sse[&quot;SSE note:updated&lt;br/&gt;to open browser tabs&quot;]:::fx&#10;    tx --&gt; gitq[&quot;debounced git auto-commit&lt;br/&gt;attributed to the agent&quot;]:::fx&#10;    tx -.-&gt;|&quot;NOT triggered&quot;| embq[&quot;embed queue (gap - needs UI save&lt;br/&gt;or pnpm embed:backfill)&quot;]:::gap">
          <mxCell parent="0"/>
        </object>
        <object id="n:cc" label="Claude Code" mermaidId="cc" mermaidShape="rectangle">
          <mxCell parent="1" vertex="1" style="fillColor=#dbeafe !important;fontColor=#333333;html=1;rounded=0;strokeColor=#3b82f6 !important;whiteSpace=wrap;">
            <mxGeometry x="8" y="89" width="154.046875" height="52" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:srv" label="stdio MCP serverLocalAdapter pinned at boot" mermaidId="srv" mermaidShape="rectangle">
          <mxCell parent="1" vertex="1" style="fillColor=#dcfce7 !important;fontColor=#333333;html=1;rounded=0;strokeColor=#22c55e !important;whiteSpace=wrap;">
            <mxGeometry x="412.046875" y="65" width="256" height="100" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:upd" label="storage.updateNoteauthorKind &apos;agent&apos; + agentName" mermaidId="upd" mermaidShape="rectangle">
          <mxCell parent="1" vertex="1" style="fillColor=#dcfce7 !important;fontColor=#333333;html=1;rounded=0;strokeColor=#22c55e !important;whiteSpace=wrap;">
            <mxGeometry x="718.046875" y="65" width="256" height="100" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:fsw" label="atomic .md writetmp + rename" mermaidId="fsw" mermaidShape="rectangle">
          <mxCell parent="1" vertex="1" style="fillColor=#fff7cd !important;fontColor=#333333;html=1;rounded=0;strokeColor=#d6b656 !important;whiteSpace=wrap;">
            <mxGeometry x="1061.210938" y="8" width="181.671875" height="76" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:tx" label="SQLite TX: notes + tags + links+ agent-attributed version row (FTS via triggers)" mermaidId="tx" mermaidShape="rectangle">
          <mxCell parent="1" vertex="1" style="fillColor=#fff7cd !important;fontColor=#333333;html=1;rounded=0;strokeColor=#d6b656 !important;whiteSpace=wrap;">
            <mxGeometry x="1024.046875" y="134" width="256" height="148" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:sse" label="SSE note:updatedto open browser tabs" mermaidId="sse" mermaidShape="rectangle">
          <mxCell parent="1" vertex="1" style="fillColor=#fff7cd !important;fontColor=#333333;html=1;rounded=0;strokeColor=#d6b656 !important;whiteSpace=wrap;">
            <mxGeometry x="1457.492188" y="20" width="216.640625" height="76" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:gitq" label="debounced git auto-commitattributed to the agent" mermaidId="gitq" mermaidShape="rectangle">
          <mxCell parent="1" vertex="1" style="fillColor=#fff7cd !important;fontColor=#333333;html=1;rounded=0;strokeColor=#d6b656 !important;whiteSpace=wrap;">
            <mxGeometry x="1437.8125" y="146" width="256" height="100" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:embq" label="embed queue (gap - needs UI saveor pnpm embed:backfill)" mermaidId="embq" mermaidShape="rectangle">
          <mxCell parent="1" vertex="1" style="fillColor=#fee2e2 !important;fontColor=#333333;html=1;rounded=0;strokeColor=#ef4444 !important;whiteSpace=wrap;">
            <mxGeometry x="1437.8125" y="296" width="256" height="100" as="geometry"/>
          </mxCell>
        </object>
        <object id="e:L_cc_srv_0" label="spawn node bin/eli-mcp.mjs" mermaidId="L_cc_srv_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:cc" target="n:srv" 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="162.046875" y="104.324723" as="sourcePoint"/>
              <mxPoint x="412.046875" y="100.833992" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="287.046875" y="87"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_cc_srv_2" label="tools/call edit_artifact" mermaidId="L_cc_srv_2" mermaidKind="relationship">
          <mxCell parent="1" source="n:cc" target="n:srv" 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="162.046875" y="125.675277" as="sourcePoint"/>
              <mxPoint x="412.046875" y="129.166008" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="287.046875" y="143"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_srv_upd_0" label="" mermaidId="L_srv_upd_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:srv" target="n:upd" 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="668.046875" y="115" as="sourcePoint"/>
              <mxPoint x="718.046875" y="115" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="693.046875" y="115"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_upd_fsw_0" label="" mermaidId="L_upd_fsw_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:upd" target="n:fsw" 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="956.91644" y="65" as="sourcePoint"/>
              <mxPoint x="1061.210938" y="46" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="999.046875" y="46"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_upd_tx_0" label="" mermaidId="L_upd_tx_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:upd" target="n:tx" 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="928.30494" y="165" as="sourcePoint"/>
              <mxPoint x="1024.046875" y="208" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="999.046875" y="208"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_tx_sse_0" label="" mermaidId="L_tx_sse_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:tx" target="n:sse" 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="1254.109063" y="134" as="sourcePoint"/>
              <mxPoint x="1457.492188" y="58" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="1358.929688" y="58"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_tx_gitq_0" label="" mermaidId="L_tx_gitq_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:tx" target="n:gitq" 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="1280.046875" y="200.575507" as="sourcePoint"/>
              <mxPoint x="1437.8125" y="196" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="1358.929688" y="196"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_tx_embq_0" label="NOT triggered" mermaidId="L_tx_embq_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:tx" target="n:embq" 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="1262.984035" y="282" as="sourcePoint"/>
              <mxPoint x="1437.8125" y="346" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="1358.929688" y="346"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
      </root>
    </mxGraphModel>
  </diagram>
</mxfile>
