{
  "schema_version": 2,
  "diagram_type": "workflow",
  "meta": {
    "title": "CLM: ba giai đoạn huấn luyện",
    "quality_profile": "showcase",
    "legend": { "mode": "hidden" },
    "views": [
      { "id": "order", "label": "Từ dễ tới khó", "focus": ["pre", "mid", "post", "model"], "note": "Học rộng → đáp án bẫy → lịch sử agent. Bẫy để sau tốt hơn 7 điểm so với học bẫy từ đầu (theo README)." },
      { "id": "replay", "label": "Ôn bài cũ", "focus": ["pre", "post"], "note": "Giai đoạn 3 trộn 40% Q&A cũ: chọn đúng giữa đáp án bẫy 69% → 68.5%; không ôn thì tụt còn 56.2%." }
    ]
  },
  "lanes": [
    { "id": "t", "label": "Huấn luyện head (encoder giữ nguyên)" }
  ],
  "phases": [
    { "id": "p1", "label": "Học rộng", "fromCol": 0, "toCol": 0 },
    { "id": "p2", "label": "Mài giũa", "fromCol": 1, "toCol": 1, "variant": "emphasis" },
    { "id": "p3", "label": "Học việc agent", "fromCol": 2, "toCol": 3, "variant": "dashed" }
  ],
  "mainPath": ["pre", "mid", "post", "model"],
  "nodes": [
    { "id": "pre", "lane": "t", "col": 0, "type": "database", "label": "~60M cặp Q&A", "sublabel": "Nemotron DQA", "width": 170 },
    { "id": "mid", "lane": "t", "col": 1, "type": "database", "label": "~30M đáp án bẫy", "sublabel": "Gemini 2.5 Flash-Lite", "width": 190 },
    { "id": "post", "lane": "t", "col": 2, "type": "database", "label": "~1M trajectory", "sublabel": "+ 40% ôn Q&A cũ", "width": 170 },
    { "id": "model", "lane": "t", "col": 3, "type": "backend", "label": "CLM-8B", "sublabel": "head 20M mỗi phía", "width": 170 }
  ],
  "edges": [
    { "id": "e1", "from": "pre", "to": "mid", "variant": "emphasis" },
    { "id": "e2", "from": "mid", "to": "post", "variant": "emphasis" },
    { "id": "e3", "from": "post", "to": "model", "variant": "emphasis" }
  ],
  "cards": [
    { "dot": "cyan", "title": "Thử 1 đúng + 10 bẫy (~100K câu)", "items": ["Chỉ học rộng: 52.1%", "Học rộng rồi bẫy: 69.2%; bẫy từ đầu: đỉnh 62.4%"] }
  ]
}
