{
  "type": "excalidraw",
  "version": 2,
  "source": "claude",
  "elements": [
    {
      "type": "text",
      "id": "title",
      "x": 160,
      "y": 20,
      "width": 600,
      "height": 70,
      "text": "Intent Routing",
      "fontSize": 28,
      "fontFamily": 1,
      "strokeColor": "#000000",
      "textAlign": "left",
      "verticalAlign": "top"
    },
    {
      "type": "text",
      "id": "subtitle",
      "x": 160,
      "y": 88,
      "width": 600,
      "height": 35,
      "text": "How the hot cache routes requests before touching L3/L4",
      "fontSize": 14,
      "fontFamily": 1,
      "strokeColor": "#000000",
      "textAlign": "left",
      "verticalAlign": "top"
    },
    {
      "type": "ellipse",
      "id": "request",
      "x": 360,
      "y": 140,
      "width": 200,
      "height": 60,
      "strokeColor": "#1864ab",
      "backgroundColor": "#a5d8ff",
      "fillStyle": "hachure",
      "strokeWidth": 2,
      "boundElements": [{ "type": "text", "id": "request-text" }]
    },
    {
      "type": "text",
      "id": "request-text",
      "x": 360,
      "y": 140,
      "width": 200,
      "height": 60,
      "text": "User Request",
      "fontSize": 15,
      "fontFamily": 1,
      "strokeColor": "#000000",
      "textAlign": "center",
      "verticalAlign": "middle",
      "containerId": "request"
    },
    {
      "type": "arrow",
      "id": "a-req-l2",
      "x": 460,
      "y": 200,
      "width": 0,
      "height": 40,
      "strokeColor": "#495057",
      "strokeWidth": 2,
      "points": [[0,0],[0,40]]
    },
    {
      "type": "rectangle",
      "id": "l2-router",
      "x": 280,
      "y": 240,
      "width": 360,
      "height": 70,
      "strokeColor": "#e67700",
      "backgroundColor": "#fff3bf",
      "fillStyle": "hachure",
      "strokeWidth": 2,
      "roundness": { "type": 3 },
      "boundElements": [{ "type": "text", "id": "l2-router-text" }]
    },
    {
      "type": "text",
      "id": "l2-router-text",
      "x": 280,
      "y": 240,
      "width": 360,
      "height": 70,
      "text": "L2 Hot Cache Router\nPattern match against memory-index catalog",
      "fontSize": 14,
      "fontFamily": 1,
      "strokeColor": "#000000",
      "textAlign": "center",
      "verticalAlign": "middle",
      "containerId": "l2-router"
    },
    {
      "type": "arrow",
      "id": "a-hit",
      "x": 340,
      "y": 310,
      "width": -200,
      "height": 70,
      "strokeColor": "#2f9e44",
      "strokeWidth": 2,
      "points": [[0,0],[-200,70]]
    },
    {
      "type": "text",
      "id": "hit-label",
      "x": 165,
      "y": 325,
      "width": 80,
      "height": 35,
      "text": "cache HIT",
      "fontSize": 12,
      "fontFamily": 1,
      "strokeColor": "#2f9e44",
      "textAlign": "center",
      "verticalAlign": "top"
    },
    {
      "type": "rectangle",
      "id": "fast-path",
      "x": 40,
      "y": 380,
      "width": 200,
      "height": 70,
      "strokeColor": "#2f9e44",
      "backgroundColor": "#b2f2bb",
      "fillStyle": "hachure",
      "strokeWidth": 2,
      "roundness": { "type": 3 },
      "boundElements": [{ "type": "text", "id": "fast-path-text" }]
    },
    {
      "type": "text",
      "id": "fast-path-text",
      "x": 40,
      "y": 380,
      "width": 200,
      "height": 70,
      "text": "Fast Path\nDirect agent + skill\nselection",
      "fontSize": 13,
      "fontFamily": 1,
      "strokeColor": "#000000",
      "textAlign": "center",
      "verticalAlign": "middle",
      "containerId": "fast-path"
    },
    {
      "type": "arrow",
      "id": "a-miss",
      "x": 580,
      "y": 310,
      "width": 200,
      "height": 70,
      "strokeColor": "#c92a2a",
      "strokeWidth": 2,
      "points": [[0,0],[200,70]]
    },
    {
      "type": "text",
      "id": "miss-label",
      "x": 670,
      "y": 325,
      "width": 80,
      "height": 35,
      "text": "cache MISS",
      "fontSize": 12,
      "fontFamily": 1,
      "strokeColor": "#c92a2a",
      "textAlign": "center",
      "verticalAlign": "top"
    },
    {
      "type": "rectangle",
      "id": "deep-path",
      "x": 680,
      "y": 380,
      "width": 200,
      "height": 70,
      "strokeColor": "#0c8599",
      "backgroundColor": "#99e9f2",
      "fillStyle": "hachure",
      "strokeWidth": 2,
      "roundness": { "type": 3 },
      "boundElements": [{ "type": "text", "id": "deep-path-text" }]
    },
    {
      "type": "text",
      "id": "deep-path-text",
      "x": 680,
      "y": 380,
      "width": 200,
      "height": 70,
      "text": "Deep Path\nQuery L3/L4\nthen route",
      "fontSize": 13,
      "fontFamily": 1,
      "strokeColor": "#000000",
      "textAlign": "center",
      "verticalAlign": "middle",
      "containerId": "deep-path"
    },
    {
      "type": "arrow",
      "id": "a-fast-exec",
      "x": 140,
      "y": 450,
      "width": 0,
      "height": 50,
      "strokeColor": "#2f9e44",
      "strokeWidth": 2,
      "points": [[0,0],[0,50]]
    },
    {
      "type": "arrow",
      "id": "a-deep-exec",
      "x": 780,
      "y": 450,
      "width": -500,
      "height": 50,
      "strokeColor": "#0c8599",
      "strokeWidth": 2,
      "points": [[0,0],[-500,50]]
    },
    {
      "type": "rectangle",
      "id": "execute",
      "x": 280,
      "y": 500,
      "width": 360,
      "height": 60,
      "strokeColor": "#862e9c",
      "backgroundColor": "#f3d9fa",
      "fillStyle": "hachure",
      "strokeWidth": 2,
      "roundness": { "type": 3 },
      "boundElements": [{ "type": "text", "id": "execute-text" }]
    },
    {
      "type": "text",
      "id": "execute-text",
      "x": 280,
      "y": 500,
      "width": 360,
      "height": 60,
      "text": "Agent Execution → Output",
      "fontSize": 15,
      "fontFamily": 1,
      "strokeColor": "#000000",
      "textAlign": "center",
      "verticalAlign": "middle",
      "containerId": "execute"
    },
    {
      "type": "text",
      "id": "promote-note",
      "x": 680,
      "y": 520,
      "width": 220,
      "height": 50,
      "text": "Miss → candidate for\nL2 promotion (3× rule)",
      "fontSize": 12,
      "fontFamily": 1,
      "strokeColor": "#0c8599",
      "textAlign": "left",
      "verticalAlign": "top"
    },
    {
      "type": "text",
      "id": "stats-note",
      "x": 40,
      "y": 590,
      "width": 360,
      "height": 35,
      "text": "Fast path handles ~80% of production requests",
      "fontSize": 13,
      "fontFamily": 1,
      "strokeColor": "#2f9e44",
      "textAlign": "left",
      "verticalAlign": "top"
    }
  ],
  "appState": { "viewBackgroundColor": "#ffffff" }
}
