{
  "schema_version": 2,
  "diagram_type": "workflow",
  "meta": {
    "title": "AppWorld: trưởng nhóm và nhân viên",
    "quality_profile": "showcase",
    "legend": { "mode": "hidden" },
    "views": [
      { "id": "loop", "label": "Vòng học", "focus": ["meta", "solver", "report", "fix"], "note": "Trưởng nhóm giao task theo lô, nhân viên trả kèm __history__, trưởng nhóm đọc lần sai rồi sửa prompt và skill." }
    ]
  },
  "lanes": [
    { "id": "m", "label": "Trưởng nhóm (GPT-5.4)" },
    { "id": "s", "label": "Nhân viên (GPT-5.4 nano)" }
  ],
  "phases": [
    { "id": "p1", "label": "Làm", "fromCol": 0, "toCol": 1 },
    { "id": "p2", "label": "Học", "fromCol": 2, "toCol": 3, "variant": "emphasis" }
  ],
  "mainPath": ["meta", "solver", "report", "fix"],
  "nodes": [
    { "id": "meta", "lane": "m", "col": 0, "type": "backend", "label": "Giao task theo lô", "sublabel": "tự chỉnh cỡ lô", "width": 180 },
    { "id": "solver", "lane": "s", "col": 1, "type": "frontend", "label": "Giải task", "sublabel": "không gọi agent con", "width": 170 },
    { "id": "report", "lane": "s", "col": 2, "type": "database", "label": "Kết quả + __history__", "sublabel": "trả về meta-agent", "width": 200 },
    { "id": "fix", "lane": "m", "col": 3, "type": "backend", "label": "Sửa prompt, skill", "sublabel": "đọc các lần sai", "width": 180 }
  ],
  "edges": [
    { "id": "e1", "from": "meta", "to": "solver", "variant": "emphasis" },
    { "id": "e2", "from": "solver", "to": "report", "variant": "emphasis" },
    { "id": "e3", "from": "report", "to": "fix", "variant": "emphasis" },
    { "id": "e4", "from": "fix", "to": "meta", "label": "lô tiếp", "variant": "dashed", "role": "return" }
  ],
  "cards": [
    { "dot": "rose", "title": "So với ACE", "items": ["ACE nhìn lại sau mỗi task: ~10 lần tốn hơn mỗi task", "ACE chỉ sửa prompt; JAZ sửa cả skill"] }
  ]
}
