{
  "schema_version": 1,
  "diagram_type": "sequence",
  "meta": {
    "title": "Request Path Sequence",
    "quality_profile": "showcase",
    "column_fit": "spread",
    "viewBox": [1200, 860]
  },
  "participants": [
    { "id": "caller", "type": "external", "label": "Caller", "sublabel": "frontier agent or r36b driver" },
    { "id": "door", "type": "backend", "label": "HEARTH door", "sublabel": ":door MCP" },
    { "id": "registry", "type": "security", "label": "Family routing", "sublabel": "backends + families TOML" },
    { "id": "jepa", "type": "backend", "label": "JEPA :npu-slicer", "sublabel": "NPU slicer" },
    { "id": "router", "type": "backend", "label": "HAProxy", "sublabel": ":router-a omen_dense" },
    { "id": "seat", "type": "backend", "label": "vLLM seat", "sublabel": ":b70-seat-0 B70 #0" },
    { "id": "cache", "type": "database", "label": "Prefix cache", "sublabel": "radix KV, 64-tok unit" }
  ],
  "segments": [
    { "from": 160, "to": 400, "label": "Admission" },
    { "from": 420, "to": 650, "label": "Serving" },
    { "from": 670, "to": 820, "label": "Return" }
  ],
  "messages": [
    { "id": "submit", "from": "caller", "to": "door", "y": 195, "label": "submit_execution inference.generate (files= or prompt)", "variant": "emphasis" },
    { "id": "resolve", "from": "door", "to": "registry", "y": 240, "label": "resolve lab configuration + task_family -> backend; lease slot (8)", "variant": "security" },
    { "id": "backend", "from": "registry", "to": "door", "y": 280, "label": "backend omen-dense-27b (pin overrides family)", "variant": "return" },
    { "id": "slice", "from": "door", "to": "jepa", "y": 325, "label": "files= slicing (HEARTH_JEPA_PACK=auto)", "variant": "dashed" },
    { "id": "pack", "from": "jepa", "to": "door", "y": 365, "label": "sliced pack (arena hit or miss)", "variant": "return" },
    { "id": "post", "from": "door", "to": "router", "y": 440, "label": "POST /v1/chat/completions, thinking off", "variant": "emphasis" },
    { "id": "forward", "from": "router", "to": "seat", "y": 485, "label": "forward: 1 server, maxconn 8, httpchk /health", "variant": "emphasis" },
    { "id": "lookup", "from": "seat", "to": "cache", "y": 530, "label": "radix lookup, 64-token units; GDN state at 832 blocks", "variant": "default" },
    { "id": "hit", "from": "cache", "to": "seat", "y": 570, "label": "hit or miss (MEASURED 2.96% / 4.88% on 10-28)", "variant": "return" },
    { "id": "stream", "from": "seat", "to": "router", "y": 625, "label": "tokens (MTP k=2)", "variant": "return" },
    { "id": "response", "from": "router", "to": "door", "y": 705, "label": "response", "variant": "return" },
    { "id": "result", "from": "door", "to": "caller", "y": 760, "label": "result {ok, backend, routed_by}; artifacts in ledger", "variant": "return" }
  ],
  "activations": [
    { "participant": "door", "from": 195, "to": 770, "type": "backend" },
    { "participant": "registry", "from": 235, "to": 288, "type": "security" },
    { "participant": "jepa", "from": 320, "to": 372, "type": "backend" },
    { "participant": "router", "from": 440, "to": 712, "type": "backend" },
    { "participant": "seat", "from": 485, "to": 632, "type": "backend" },
    { "participant": "cache", "from": 525, "to": 577, "type": "database" }
  ],
  "cards": [
    { "dot": "cyan", "title": "Where caching applies", "items": ["NPU arena hit on index_file (/dev/shm/mechsuit-ast-arena, content-addressed)", "Radix prefix cache on the seat, 64-token match unit", "GDN hybrid state cached at 832-token aligned blocks"] },
    { "dot": "rose", "title": "Seat identity", "items": ["The door selects a seat by name and port; HAProxy does not balance across cards", "The N=1 gate checks backend name, not the served model", "0 hits on 17 queries per B70 seat since the 00:14Z restart"] },
    { "dot": "amber", "title": "Pinning", "items": ["r36b passes backend=PILOT_PATCH_SEAT on every call", "A pin overrides the family regime and is recorded", "Thinking is off on this path; deliberate turns go through inference.deliberate"] }
  ]
}
