Files
datacloak/docs/architecture.svg

39 lines
3.7 KiB
XML

<svg xmlns="http://www.w3.org/2000/svg" width="940" height="300" font-family="system-ui,sans-serif">
<rect width="940" height="300" fill="#0F1117" rx="12"/>
<rect x="20" y="20" width="150" height="64" rx="10" fill="#1C2033" stroke="#2A3050"/>
<text x="95.0" y="47" text-anchor="middle" fill="#E4E8F0" font-size="14" font-weight="600">You</text>
<text x="95.0" y="67" text-anchor="middle" fill="#8B95A6" font-size="11">prompt + files</text>
<rect x="200" y="20" width="150" height="64" rx="10" fill="#1C2033" stroke="#2A3050"/>
<text x="275.0" y="47" text-anchor="middle" fill="#E4E8F0" font-size="14" font-weight="600">OpenCode plugin</text>
<text x="275.0" y="67" text-anchor="middle" fill="#8B95A6" font-size="11">hooks</text>
<rect x="200" y="110" width="150" height="64" rx="10" fill="#1C2033" stroke="#2A3050"/>
<text x="275.0" y="137" text-anchor="middle" fill="#E4E8F0" font-size="14" font-weight="600">Browser ext.</text>
<text x="275.0" y="157" text-anchor="middle" fill="#8B95A6" font-size="11">content script</text>
<rect x="200" y="200" width="150" height="64" rx="10" fill="#1C2033" stroke="#2A3050"/>
<text x="275.0" y="227" text-anchor="middle" fill="#E4E8F0" font-size="14" font-weight="600">CLI + adapters</text>
<text x="275.0" y="247" text-anchor="middle" fill="#8B95A6" font-size="11">11 harnesses</text>
<rect x="390" y="90" width="170" height="110" rx="10" fill="#1C2033" stroke="#2A3050"/>
<text x="475.0" y="117" text-anchor="middle" fill="#E4E8F0" font-size="14" font-weight="600">Detection engine</text>
<text x="475.0" y="137" text-anchor="middle" fill="#8B95A6" font-size="11">patterns · entropy · NER</text>
<rect x="600" y="90" width="150" height="110" rx="10" fill="#1C2033" stroke="#2A3050"/>
<text x="675.0" y="117" text-anchor="middle" fill="#E4E8F0" font-size="14" font-weight="600">Faker vault</text>
<text x="675.0" y="137" text-anchor="middle" fill="#8B95A6" font-size="11">synthetic ↔ original</text>
<rect x="790" y="90" width="130" height="110" rx="10" fill="#1C2033" stroke="#2A3050"/>
<text x="855.0" y="117" text-anchor="middle" fill="#E4E8F0" font-size="14" font-weight="600">AI model</text>
<text x="855.0" y="137" text-anchor="middle" fill="#8B95A6" font-size="11">sees fakes only</text>
<defs><marker id="ah" markerWidth="8" markerHeight="8" refX="7" refY="4" orient="auto"><path d="M0,0 L8,4 L0,8" fill="none" stroke="#00D4AA" stroke-width="1.5"/></marker></defs>
<line x1="170" y1="52" x2="200" y2="52" stroke="#00D4AA" stroke-width="2" marker-end="url(#ah)"/>
<line x1="170" y1="142" x2="200" y2="142" stroke="#00D4AA" stroke-width="2" marker-end="url(#ah)"/>
<line x1="170" y1="232" x2="200" y2="232" stroke="#00D4AA" stroke-width="2" marker-end="url(#ah)"/>
<line x1="350" y1="52" x2="390" y2="110" stroke="#00D4AA" stroke-width="2" marker-end="url(#ah)"/>
<line x1="350" y1="142" x2="390" y2="145" stroke="#00D4AA" stroke-width="2" marker-end="url(#ah)"/>
<line x1="350" y1="232" x2="390" y2="180" stroke="#00D4AA" stroke-width="2" marker-end="url(#ah)"/>
<line x1="560" y1="145" x2="600" y2="145" stroke="#00D4AA" stroke-width="2" marker-end="url(#ah)"/>
<text x="580.0" y="139.0" text-anchor="middle" fill="#00D4AA" font-size="10">cloak</text>
<line x1="750" y1="145" x2="790" y2="145" stroke="#00D4AA" stroke-width="2" marker-end="url(#ah)"/>
<line x1="675" y1="200" x2="675" y2="260" stroke="#00D4AA" stroke-width="2" marker-end="url(#ah)"/>
<line x1="675" y1="260" x2="95" y2="260" stroke="#00D4AA" stroke-width="2" marker-end="url(#ah)"/>
<line x1="95" y1="260" x2="95" y2="84" stroke="#00D4AA" stroke-width="2" marker-end="url(#ah)"/>
<text x="400" y="278" fill="#8B95A6" font-size="11">restore on return: responses scanned for synthetics, originals swapped back locally</text>
</svg>