{
  "type": "excalidraw",
  "version": 2,
  "source": "claude",
  "elements": [
    {
      "type": "text",
      "id": "title",
      "x": 160,
      "y": 20,
      "width": 600,
      "height": 70,
      "text": "Execution Hierarchy",
      "fontSize": 28,
      "fontFamily": 1,
      "strokeColor": "#000000",
      "textAlign": "left",
      "verticalAlign": "top"
    },
    {
      "type": "text",
      "id": "subtitle",
      "x": 160,
      "y": 88,
      "width": 600,
      "height": 35,
      "text": "5-layer stack: how a request routes from user intent to output",
      "fontSize": 14,
      "fontFamily": 1,
      "strokeColor": "#000000",
      "textAlign": "left",
      "verticalAlign": "top"
    },
    {
      "type": "rectangle",
      "id": "l5",
      "x": 80,
      "y": 140,
      "width": 760,
      "height": 70,
      "strokeColor": "#1864ab",
      "backgroundColor": "#a5d8ff",
      "fillStyle": "hachure",
      "strokeWidth": 2,
      "roundness": { "type": 3 },
      "boundElements": [{ "type": "text", "id": "l5-text" }]
    },
    {
      "type": "text",
      "id": "l5-text",
      "x": 80,
      "y": 140,
      "width": 760,
      "height": 70,
      "text": "Layer 5 — User Intent\nNatural language request · slash command · agent invocation",
      "fontSize": 14,
      "fontFamily": 1,
      "strokeColor": "#000000",
      "textAlign": "center",
      "verticalAlign": "middle",
      "containerId": "l5"
    },
    {
      "type": "arrow",
      "id": "a1",
      "x": 460,
      "y": 210,
      "width": 0,
      "height": 25,
      "strokeColor": "#495057",
      "strokeWidth": 2,
      "points": [[0,0],[0,25]]
    },
    {
      "type": "rectangle",
      "id": "l4",
      "x": 80,
      "y": 235,
      "width": 760,
      "height": 70,
      "strokeColor": "#e67700",
      "backgroundColor": "#fff3bf",
      "fillStyle": "hachure",
      "strokeWidth": 2,
      "roundness": { "type": 3 },
      "boundElements": [{ "type": "text", "id": "l4-text" }]
    },
    {
      "type": "text",
      "id": "l4-text",
      "x": 80,
      "y": 235,
      "width": 760,
      "height": 70,
      "text": "Layer 4 — Intent Router (L2 Hot Cache)\nFast-path pattern matching · skill cluster selection · turn budget check",
      "fontSize": 14,
      "fontFamily": 1,
      "strokeColor": "#000000",
      "textAlign": "center",
      "verticalAlign": "middle",
      "containerId": "l4"
    },
    {
      "type": "arrow",
      "id": "a2",
      "x": 460,
      "y": 305,
      "width": 0,
      "height": 25,
      "strokeColor": "#495057",
      "strokeWidth": 2,
      "points": [[0,0],[0,25]]
    },
    {
      "type": "rectangle",
      "id": "l3",
      "x": 80,
      "y": 330,
      "width": 760,
      "height": 70,
      "strokeColor": "#2f9e44",
      "backgroundColor": "#b2f2bb",
      "fillStyle": "hachure",
      "strokeWidth": 2,
      "roundness": { "type": 3 },
      "boundElements": [{ "type": "text", "id": "l3-text" }]
    },
    {
      "type": "text",
      "id": "l3-text",
      "x": 80,
      "y": 330,
      "width": 760,
      "height": 70,
      "text": "Layer 3 — Agent Execution\nSelected agent runs · skills composed · tools called · memory queried",
      "fontSize": 14,
      "fontFamily": 1,
      "strokeColor": "#000000",
      "textAlign": "center",
      "verticalAlign": "middle",
      "containerId": "l3"
    },
    {
      "type": "arrow",
      "id": "a3",
      "x": 460,
      "y": 400,
      "width": 0,
      "height": 25,
      "strokeColor": "#495057",
      "strokeWidth": 2,
      "points": [[0,0],[0,25]]
    },
    {
      "type": "rectangle",
      "id": "l2",
      "x": 80,
      "y": 425,
      "width": 760,
      "height": 70,
      "strokeColor": "#862e9c",
      "backgroundColor": "#f3d9fa",
      "fillStyle": "hachure",
      "strokeWidth": 2,
      "roundness": { "type": 3 },
      "boundElements": [{ "type": "text", "id": "l2-text" }]
    },
    {
      "type": "text",
      "id": "l2-text",
      "x": 80,
      "y": 425,
      "width": 760,
      "height": 70,
      "text": "Layer 2 — Safe Output Buffer\nThreat detection · output sanitization · write gate (comments/labels only)",
      "fontSize": 14,
      "fontFamily": 1,
      "strokeColor": "#000000",
      "textAlign": "center",
      "verticalAlign": "middle",
      "containerId": "l2"
    },
    {
      "type": "arrow",
      "id": "a4",
      "x": 460,
      "y": 495,
      "width": 0,
      "height": 25,
      "strokeColor": "#495057",
      "strokeWidth": 2,
      "points": [[0,0],[0,25]]
    },
    {
      "type": "rectangle",
      "id": "l1",
      "x": 80,
      "y": 520,
      "width": 760,
      "height": 70,
      "strokeColor": "#0c8599",
      "backgroundColor": "#99e9f2",
      "fillStyle": "hachure",
      "strokeWidth": 2,
      "roundness": { "type": 3 },
      "boundElements": [{ "type": "text", "id": "l1-text" }]
    },
    {
      "type": "text",
      "id": "l1-text",
      "x": 80,
      "y": 520,
      "width": 760,
      "height": 70,
      "text": "Layer 1 — Output Delivery\nPR comment · file edit · issue update · task_complete",
      "fontSize": 14,
      "fontFamily": 1,
      "strokeColor": "#000000",
      "textAlign": "center",
      "verticalAlign": "middle",
      "containerId": "l1"
    },
    {
      "type": "text",
      "id": "fast-path-label",
      "x": 860,
      "y": 250,
      "width": 180,
      "height": 60,
      "text": "Fast path:\nL4 resolves\n80% of requests",
      "fontSize": 12,
      "fontFamily": 1,
      "strokeColor": "#e67700",
      "textAlign": "left",
      "verticalAlign": "top"
    },
    {
      "type": "text",
      "id": "deep-label",
      "x": 860,
      "y": 345,
      "width": 180,
      "height": 60,
      "text": "Deep reasoning:\nL3 for cache miss\nor complex tasks",
      "fontSize": 12,
      "fontFamily": 1,
      "strokeColor": "#2f9e44",
      "textAlign": "left",
      "verticalAlign": "top"
    }
  ],
  "appState": { "viewBackgroundColor": "#ffffff" }
}
