{
  "schema_version": 2,
  "diagram_type": "workflow",
  "meta": {
    "title": "Phân cấp agent (slide 7)",
    "quality_profile": "showcase",
    "legend": {
      "mode": "hidden"
    },
    "views": [
      {
        "id": "roles",
        "label": "Bốn vai",
        "focus": [
          "arch",
          "plan",
          "impl",
          "verify"
        ],
        "note": "Architect khám phá, dẫn tới planner và implementer; cả hai dồn về verifier. 4–6 agent chạy song song."
      }
    ]
  },
  "lanes": [
    {
      "id": "a",
      "label": "Khám phá, lập kế hoạch"
    },
    {
      "id": "c",
      "label": "Viết code"
    },
    {
      "id": "d",
      "label": "Kiểm"
    }
  ],
  "phases": [
    {
      "id": "p1",
      "label": "Hiểu codebase",
      "fromCol": 0,
      "toCol": 0
    },
    {
      "id": "p2",
      "label": "Làm",
      "fromCol": 1,
      "toCol": 1,
      "variant": "emphasis"
    },
    {
      "id": "p3",
      "label": "Xanh mới xong",
      "fromCol": 2,
      "toCol": 2,
      "variant": "dashed"
    }
  ],
  "mainPath": [
    "arch",
    "impl",
    "verify"
  ],
  "nodes": [
    {
      "id": "arch",
      "lane": "a",
      "col": 0,
      "type": "database",
      "label": "Architect",
      "sublabel": "khám phá, semantic search",
      "width": 190
    },
    {
      "id": "plan",
      "lane": "a",
      "col": 1,
      "type": "backend",
      "label": "Planner",
      "sublabel": "lập danh sách task",
      "width": 170
    },
    {
      "id": "impl",
      "lane": "c",
      "col": 1,
      "type": "backend",
      "label": "Implementer",
      "sublabel": "agent viết code",
      "width": 170
    },
    {
      "id": "verify",
      "lane": "d",
      "col": 2,
      "type": "security",
      "label": "Verifier",
      "sublabel": "test, linter, xanh",
      "width": 170
    }
  ],
  "edges": [
    {
      "id": "e1",
      "from": "arch",
      "to": "plan"
    },
    {
      "id": "e2",
      "from": "arch",
      "to": "impl",
      "variant": "emphasis"
    },
    {
      "id": "e3",
      "from": "plan",
      "to": "verify"
    },
    {
      "id": "e4",
      "from": "impl",
      "to": "verify",
      "variant": "emphasis"
    }
  ]
}
