{
  "schema_version": 2,
  "diagram_type": "workflow",
  "meta": {
    "title": "CLM làm giám khảo code",
    "quality_profile": "showcase",
    "legend": { "mode": "hidden" },
    "views": [
      { "id": "pick", "label": "Chọn bản tốt nhất", "focus": ["task", "gen", "cands", "clm", "best"], "note": "Model viết code sinh 4–5 lời giải; head CLM đã tinh chỉnh chấm điểm từng bản và chọn bản cao nhất." }
    ]
  },
  "lanes": [
    { "id": "g", "label": "Sinh lời giải" },
    { "id": "v", "label": "Chấm và chọn" }
  ],
  "phases": [
    { "id": "p1", "label": "Best-of-N", "fromCol": 0, "toCol": 2 },
    { "id": "p2", "label": "Verifier", "fromCol": 3, "toCol": 4, "variant": "emphasis" }
  ],
  "mainPath": ["task", "gen", "cands", "clm", "best"],
  "nodes": [
    { "id": "task", "lane": "g", "col": 0, "type": "frontend", "label": "Bài code", "sublabel": "held-out", "width": 140 },
    { "id": "gen", "lane": "g", "col": 1, "type": "cloud", "label": "Opus 5 / Fable 5", "sublabel": "model viết code", "width": 170 },
    { "id": "cands", "lane": "g", "col": 2, "type": "database", "label": "4–5 lời giải", "sublabel": "ứng viên", "width": 150 },
    { "id": "clm", "lane": "v", "col": 3, "type": "backend", "label": "CLM tinh chỉnh", "sublabel": "chấm từng bản", "width": 170 },
    { "id": "best", "lane": "v", "col": 4, "type": "frontend", "label": "Bản tốt nhất", "sublabel": "điểm cao nhất", "width": 150 }
  ],
  "edges": [
    { "id": "e1", "from": "task", "to": "gen", "variant": "emphasis" },
    { "id": "e2", "from": "gen", "to": "cands", "variant": "emphasis" },
    { "id": "e3", "from": "cands", "to": "clm", "variant": "emphasis" },
    { "id": "e4", "from": "clm", "to": "best", "variant": "emphasis" }
  ],
  "cards": [
    { "dot": "cyan", "title": "DeepSWE (38 bài, 4 bản)", "items": ["Chọn bừa 73.7%, CLM 81.6%", "Jev 71.1%"] },
    { "dot": "rose", "title": "Terminal-Bench 2.1 (30 bài, 5 bản)", "items": ["Chọn bừa 84.0%, CLM 87.6%", "Jev 83.1%"] }
  ]
}
