{
  "type": "excalidraw",
  "version": 2,
  "source": "claude",
  "elements": [
    {
      "type": "text",
      "id": "title",
      "x": 160,
      "y": 20,
      "width": 600,
      "height": 70,
      "text": "Two-Tier Shared Memory Model",
      "fontSize": 28,
      "fontFamily": 1,
      "strokeColor": "#000000",
      "textAlign": "left",
      "verticalAlign": "top"
    },
    {
      "type": "text",
      "id": "subtitle",
      "x": 160,
      "y": 88,
      "width": 600,
      "height": 35,
      "text": "Personal session memory + organizational shared knowledge",
      "fontSize": 14,
      "fontFamily": 1,
      "strokeColor": "#000000",
      "textAlign": "left",
      "verticalAlign": "top"
    },
    {
      "type": "rectangle",
      "id": "personal-container",
      "x": 40,
      "y": 140,
      "width": 420,
      "height": 380,
      "strokeColor": "#1864ab",
      "backgroundColor": "transparent",
      "fillStyle": "solid",
      "strokeWidth": 2,
      "roundness": { "type": 3 }
    },
    {
      "type": "text",
      "id": "personal-title",
      "x": 50,
      "y": 150,
      "width": 400,
      "height": 35,
      "text": "Personal Tier (per-repo, per-developer)",
      "fontSize": 16,
      "fontFamily": 1,
      "strokeColor": "#000000",
      "textAlign": "center",
      "verticalAlign": "top"
    },
    {
      "type": "rectangle",
      "id": "p-l2",
      "x": 60,
      "y": 195,
      "width": 380,
      "height": 50,
      "strokeColor": "#e67700",
      "backgroundColor": "#fff3bf",
      "fillStyle": "hachure",
      "strokeWidth": 1,
      "roundness": { "type": 3 },
      "boundElements": [{ "type": "text", "id": "p-l2-text" }]
    },
    {
      "type": "text",
      "id": "p-l2-text",
      "x": 60,
      "y": 195,
      "width": 380,
      "height": 50,
      "text": "L2 Hot Cache · memory-index.instructions.md",
      "fontSize": 13,
      "fontFamily": 1,
      "strokeColor": "#000000",
      "textAlign": "center",
      "verticalAlign": "middle",
      "containerId": "p-l2"
    },
    {
      "type": "rectangle",
      "id": "p-l3",
      "x": 60,
      "y": 260,
      "width": 380,
      "height": 50,
      "strokeColor": "#0c8599",
      "backgroundColor": "#99e9f2",
      "fillStyle": "hachure",
      "strokeWidth": 1,
      "roundness": { "type": 3 },
      "boundElements": [{ "type": "text", "id": "p-l3-text" }]
    },
    {
      "type": "text",
      "id": "p-l3-text",
      "x": 60,
      "y": 260,
      "width": 380,
      "height": 50,
      "text": "L3 Session Store · DuckDB (turns, files, refs)",
      "fontSize": 13,
      "fontFamily": 1,
      "strokeColor": "#000000",
      "textAlign": "center",
      "verticalAlign": "middle",
      "containerId": "p-l3"
    },
    {
      "type": "rectangle",
      "id": "p-l4",
      "x": 60,
      "y": 325,
      "width": 380,
      "height": 50,
      "strokeColor": "#495057",
      "backgroundColor": "#dee2e6",
      "fillStyle": "hachure",
      "strokeWidth": 1,
      "roundness": { "type": 3 },
      "boundElements": [{ "type": "text", "id": "p-l4-text" }]
    },
    {
      "type": "text",
      "id": "p-l4-text",
      "x": 60,
      "y": 325,
      "width": 380,
      "height": 50,
      "text": "L4 store_memory · persistent facts + docs/",
      "fontSize": 13,
      "fontFamily": 1,
      "strokeColor": "#000000",
      "textAlign": "center",
      "verticalAlign": "middle",
      "containerId": "p-l4"
    },
    {
      "type": "text",
      "id": "sync-label",
      "x": 60,
      "y": 390,
      "width": 380,
      "height": 120,
      "text": "sync-shared-memory.ps1\n  -Export → push to shared\n  (no flags) → pull from shared\n  -Force → bypass 24h TTL cache\n  -Status → show cache age",
      "fontSize": 13,
      "fontFamily": 3,
      "strokeColor": "#000000",
      "textAlign": "left",
      "verticalAlign": "top"
    },
    {
      "type": "rectangle",
      "id": "shared-container",
      "x": 500,
      "y": 140,
      "width": 420,
      "height": 280,
      "strokeColor": "#862e9c",
      "backgroundColor": "transparent",
      "fillStyle": "solid",
      "strokeWidth": 2,
      "roundness": { "type": 3 }
    },
    {
      "type": "text",
      "id": "shared-title",
      "x": 510,
      "y": 150,
      "width": 400,
      "height": 35,
      "text": "Shared Tier (org-wide, basecoat-memory repo)",
      "fontSize": 16,
      "fontFamily": 1,
      "strokeColor": "#000000",
      "textAlign": "center",
      "verticalAlign": "top"
    },
    {
      "type": "rectangle",
      "id": "s-l2s",
      "x": 520,
      "y": 195,
      "width": 380,
      "height": 50,
      "strokeColor": "#862e9c",
      "backgroundColor": "#f3d9fa",
      "fillStyle": "hachure",
      "strokeWidth": 1,
      "roundness": { "type": 3 },
      "boundElements": [{ "type": "text", "id": "s-l2s-text" }]
    },
    {
      "type": "text",
      "id": "s-l2s-text",
      "x": 520,
      "y": 195,
      "width": 380,
      "height": 50,
      "text": "L2s Shared Hot Index · hot-index.md",
      "fontSize": 13,
      "fontFamily": 1,
      "strokeColor": "#000000",
      "textAlign": "center",
      "verticalAlign": "middle",
      "containerId": "s-l2s"
    },
    {
      "type": "rectangle",
      "id": "s-l3s",
      "x": 520,
      "y": 260,
      "width": 380,
      "height": 50,
      "strokeColor": "#862e9c",
      "backgroundColor": "#f3d9fa",
      "fillStyle": "hachure",
      "strokeWidth": 1,
      "roundness": { "type": 3 },
      "boundElements": [{ "type": "text", "id": "s-l3s-text" }]
    },
    {
      "type": "text",
      "id": "s-l3s-text",
      "x": 520,
      "y": 260,
      "width": 380,
      "height": 50,
      "text": "L3s Domain Cache · memories/<domain>.md",
      "fontSize": 13,
      "fontFamily": 1,
      "strokeColor": "#000000",
      "textAlign": "center",
      "verticalAlign": "middle",
      "containerId": "s-l3s"
    },
    {
      "type": "text",
      "id": "domains-label",
      "x": 520,
      "y": 325,
      "width": 380,
      "height": 80,
      "text": "Domains: azure · dotnet · security\nagents · ci-cd · repo · data · llm\n\nContributed via PR review in basecoat-memory",
      "fontSize": 13,
      "fontFamily": 1,
      "strokeColor": "#000000",
      "textAlign": "left",
      "verticalAlign": "top"
    },
    {
      "type": "arrow",
      "id": "arr-export",
      "x": 460,
      "y": 250,
      "width": 40,
      "height": 0,
      "strokeColor": "#862e9c",
      "strokeWidth": 2,
      "points": [[0,0],[40,0]],
      "label": { "text": "export" }
    },
    {
      "type": "arrow",
      "id": "arr-pull",
      "x": 500,
      "y": 290,
      "width": -40,
      "height": 0,
      "strokeColor": "#1864ab",
      "strokeWidth": 2,
      "points": [[0,0],[-40,0]],
      "label": { "text": "pull" }
    },
    {
      "type": "text",
      "id": "arr-export-label",
      "x": 466,
      "y": 235,
      "width": 28,
      "height": 35,
      "text": "push",
      "fontSize": 11,
      "fontFamily": 1,
      "strokeColor": "#862e9c",
      "textAlign": "center",
      "verticalAlign": "top"
    },
    {
      "type": "text",
      "id": "arr-pull-label",
      "x": 466,
      "y": 295,
      "width": 28,
      "height": 35,
      "text": "pull",
      "fontSize": 11,
      "fontFamily": 1,
      "strokeColor": "#1864ab",
      "textAlign": "center",
      "verticalAlign": "top"
    }
  ],
  "appState": { "viewBackgroundColor": "#ffffff" }
}
