{
  "schema_version": 2,
  "diagram_type": "workflow",
  "meta": {
    "title": "Tấn công rồi vá",
    "quality_profile": "showcase",
    "legend": { "mode": "hidden" },
    "views": [
      { "id": "write", "label": "Viết", "focus": ["drafts", "synth"], "note": "3 bản nháp song song theo 3 góc nhìn, rồi một synthesizer gộp thành báo cáo." },
      { "id": "attack", "label": "Tấn công + vá", "focus": ["critics", "gap", "patch"], "note": "4 critic tìm lỗi song song; tải bổ sung chỗ thiếu; patcher chỉ được Read + Edit từng đoạn nhỏ." }
    ]
  },
  "lanes": [
    { "id": "write", "label": "Viết" },
    { "id": "attack", "label": "Phản biện" },
    { "id": "fix", "label": "Vá (Read + Edit)" }
  ],
  "phases": [
    { "id": "p1", "label": "Bước 10–11", "fromCol": 0, "toCol": 1 },
    { "id": "p2", "label": "Bước 12–14", "fromCol": 2, "toCol": 4, "variant": "emphasis" }
  ],
  "mainPath": ["drafts", "synth", "critics", "gap", "patch"],
  "nodes": [
    { "id": "drafts", "lane": "write", "col": 0, "type": "backend", "label": "3 bản nháp", "sublabel": "3 góc nhìn song song", "width": 160 },
    { "id": "synth", "lane": "write", "col": 1, "type": "backend", "label": "Tổng hợp", "sublabel": "final_report.md", "width": 150 },
    { "id": "critics", "lane": "attack", "col": 2, "type": "security", "label": "4 critic", "sublabel": "dialectic, depth, width, instruction", "width": 220 },
    { "id": "gap", "lane": "attack", "col": 3, "type": "cloud", "label": "Tải bổ sung", "sublabel": "lấp lỗ critic chỉ ra", "width": 160 },
    { "id": "patch", "lane": "fix", "col": 4, "type": "backend", "label": "Patcher", "sublabel": "sửa nhỏ, không viết lại", "width": 180 }
  ],
  "edges": [
    { "id": "e1", "from": "drafts", "to": "synth", "variant": "emphasis" },
    { "id": "e2", "from": "synth", "to": "critics", "variant": "emphasis" },
    { "id": "e3", "from": "critics", "to": "gap", "variant": "emphasis" },
    { "id": "e4", "from": "gap", "to": "patch", "variant": "emphasis" }
  ],
  "cards": [
    { "dot": "rose", "title": "Khoá công cụ", "items": ["Claude Code: allowlist chỉ [Read, Edit]", "Codex: chỉ là lời dặn, không ép"] }
  ]
}
