# Teaching model only. The target state is not an observed production system.
# Arrows show the forward job-work path; responses and result reads are omitted.
# Keep stable component IDs when comparing the baseline and proposal.
canvas: { projection: iso, aspectRatio: 1, background: "#F7F8F5", padding: 32 }
nodes:
  scene:
    shape: composite
    parts:
      - id: client
        shape: rectangle
        label: "Client"
        geom: { w: 120, d: 70, h: 24 }
        offset: { wx: 0, wy: 0 }
        style:
          palette: { top: "#FFFFFF", left: "#E2E8F0", right: "#E2E8F0" }
          stroke: { color: "#0F766E", width: 2 }
      - id: api
        shape: rectangle
        label: "API"
        geom: { w: 120, d: 70, h: 24 }
        offset: { wx: 180, wy: 0 }
        style:
          palette: { top: "#FFFFFF", left: "#E2E8F0", right: "#E2E8F0" }
          stroke: { color: "#0F766E", width: 2 }
      - id: queue
        shape: rectangle
        label: "Queue"
        geom: { w: 120, d: 70, h: 24 }
        offset: { wx: 180, wy: 140 }
        style:
          palette: { top: "#FFFFFF", left: "#E2E8F0", right: "#E2E8F0" }
          stroke: { color: "#6D28D9", width: 2 }
      - id: worker
        shape: rectangle
        label: "Worker"
        geom: { w: 120, d: 70, h: 24 }
        offset: { wx: 360, wy: 140 }
        style:
          palette: { top: "#FFFFFF", left: "#E2E8F0", right: "#E2E8F0" }
          stroke: { color: "#6D28D9", width: 2 }
      - id: results
        shape: cylinder
        label: "Results"
        geom: { w: 120, d: 70, h: 24 }
        offset: { wx: 360, wy: 280 }
        style:
          palette: { top: "#FFFFFF", left: "#E2E8F0", right: "#E2E8F0" }
          stroke: { color: "#0F766E", width: 2 }
    connectors:
      - { from: client, to: api, routing: orthogonal, arrow: triangle, stroke: { color: "#0F766E", width: 2.5 } }
      - { from: api, to: queue, routing: orthogonal, arrow: triangle, stroke: { color: "#0F766E", width: 2.5 } }
      - { from: queue, to: worker, routing: orthogonal, arrow: triangle, stroke: { color: "#0F766E", width: 2.5 } }
      - { from: worker, to: results, routing: orthogonal, arrow: triangle, stroke: { color: "#0F766E", width: 2.5 } }
annotations:
  - anchor: client
    side: top
    distance: 40
    text: "Proposed target\nNot deployed"
    fontSize: 18
    bg: "#FFFFFF"
    border: "#475569"
    color: "#17251F"
