{
  "schema_version": 1,
  "diagram_type": "architecture",
  "meta": {
    "title": "Fleet Deployment View",
    "quality_profile": "showcase",
    "viewBox": [1440, 790]
  },
  "components": [
    { "id": "agents", "type": "external", "label": "Frontier agents", "sublabel": "Claude Code / Codex / AMUX", "pos": [40, 120], "size": [150, 62] },
    { "id": "driver", "type": "external", "label": "pass-v3 driver r36b", "sublabel": "frozen, gate v12", "pos": [40, 480], "size": [150, 62] },
    { "id": "door", "type": "backend", "label": "HEARTH door :door", "sublabel": "hearth-production", "tag": "LIVE", "pos": [300, 300], "size": [160, 62] },
    { "id": "router", "type": "security", "label": "HAProxy router", "sublabel": ":router-a / :router-b / :router-empty", "tag": "LIVE", "pos": [600, 120], "size": [170, 62] },
    { "id": "seat0", "type": "backend", "label": "omen-dense-27b", "sublabel": "vLLM :b70-seat-0, B70 #0, 65,536 ctx, 8 seqs", "tag": "LIVE", "pos": [900, 60], "size": [230, 62] },
    { "id": "seat1", "type": "backend", "label": "omen-dense-27b-b", "sublabel": "vLLM :b70-seat-1, B70 #1, 65,536 ctx, 8 seqs", "tag": "LIVE", "pos": [900, 180], "size": [230, 62] },
    { "id": "nemo", "type": "backend", "label": "omen-nemotron-74b", "sublabel": "disabled / inactive", "tag": "HISTORICAL", "pos": [1200, 180], "size": [200, 62] },
    { "id": "jepa", "type": "backend", "label": "JEPA router :npu-slicer", "sublabel": "jepa-router-v3, Intel NPU", "tag": "LIVE", "pos": [300, 480], "size": [170, 62] },
    { "id": "shm", "type": "database", "label": "/dev/shm caches", "sublabel": "ast-arena 512 MiB, ov-cache", "tag": "LIVE", "pos": [600, 480], "size": [230, 62] },
    { "id": "facade", "type": "backend", "label": "oxen facade :am4-facade", "sublabel": "no unit (PPID 1)", "tag": "LIVE", "pos": [600, 660], "size": [170, 62] },
    { "id": "am4", "type": "backend", "label": "am4-vllm", "sublabel": "vLLM :am4-seat TP=2, 49,152 ctx, 8 seqs", "tag": "LIVE", "pos": [860, 660], "size": [230, 62] },
    { "id": "fx99", "type": "backend", "label": "fx99-vllm :fx99-seat", "sublabel": "Qwen2.5-Coder-7B, HTTP 000", "tag": "UNVERIFIED", "pos": [1180, 660], "size": [220, 62] }
  ],
  "boundaries": [
    { "kind": "region", "label": "OMEN host (omen-linux): 2x Intel Arc Pro B70, Intel NPU", "wraps": ["door", "router", "seat0", "seat1", "nemo", "jepa", "shm"], "pad": 24 },
    { "kind": "region", "label": "AM4 (am4-p2p-nic): RTX 5070 + RTX 4070 Ti SUPER, direct cable p2p-subnet/30", "wraps": ["facade", "am4"], "pad": 18 },
    { "kind": "region", "label": "FX99 (fx99-lan-node) LAN", "wraps": ["fx99"], "pad": 18 }
  ],
  "connections": [
    { "from": "agents", "to": "door", "label": "MCP /mcp", "variant": "emphasis", "fromSide": "right", "toSide": "left" },
    { "from": "driver", "to": "door", "label": "submit_execution", "variant": "emphasis", "fromSide": "top", "toSide": "left" },
    { "from": "door", "to": "router", "label": "OpenAI API", "variant": "emphasis", "fromSide": "top", "toSide": "left" },
    { "from": "router", "to": "seat0", "label": "maxconn 8", "variant": "emphasis", "fromSide": "right", "toSide": "left" },
    { "from": "router", "to": "seat1", "label": "maxconn 8", "variant": "emphasis", "fromSide": "right", "toSide": "left" },
    { "from": "nemo", "to": "seat1", "label": "Conflicts= (systemd)", "variant": "dashed", "fromSide": "left", "toSide": "right" },
    { "from": "door", "to": "jepa", "label": "files= slicing", "fromSide": "bottom", "toSide": "top" },
    { "from": "driver", "to": "jepa", "label": "index_file / pack_context", "variant": "dashed", "fromSide": "right", "toSide": "left" },
    { "from": "jepa", "to": "shm", "label": "AST + embeddings", "fromSide": "right", "toSide": "left" },
    { "from": "door", "to": "facade", "label": "direct cable", "variant": "emphasis", "fromSide": "right", "toSide": "left", "via": [[530, 331], [530, 691]], "labelSegment": 2 },
    { "from": "facade", "to": "am4", "label": "alias am4-dense-27b", "variant": "emphasis", "fromSide": "right", "toSide": "left" },
    { "from": "door", "to": "fx99", "label": "utility (no answer)", "variant": "dashed", "fromSide": "right", "toSide": "top", "via": [[560, 331], [560, 600], [1290, 600]], "labelSegment": 2 }
  ],
  "cards": [
    { "dot": "emerald", "title": "Three identical 27B seats", "items": ["Qwen3.8-27B GPTQ int4 on vLLM 0.30: two B70 seats (XPU) and one AM4 seat (CUDA TP=2)", "Live argv: 8 seqs per seat; 65,536 ctx on OMEN, 49,152 on AM4", "Prefix caching on; 64-token match unit on the B70 seats"] },
    { "dot": "cyan", "title": "Control plane", "items": ["Door resolves the lab configuration from the profile files (two-dense + dense-tp2 = three-dense)", "Registry: backends-linux.toml", "Each HAProxy frontend has one server; seat choice belongs to the door"] },
    { "dot": "amber", "title": "Drift to note", "items": ["Registry still declares omen-nemotron-74b on :router-a, the same endpoint as omen-dense-27b", "AM4 oxen facade runs without a systemd unit", "fx99-vllm did not answer /health or /v1/models"] }
  ]
}
