{
  "schema_version": 2,
  "diagram_type": "workflow",
  "meta": {
    "title": "Tiến hoá Person Profile",
    "quality_profile": "showcase",
    "legend": {
      "mode": "hidden"
    },
    "views": [
      {
        "id": "append",
        "label": "Thêm file",
        "focus": [
          "newfile",
          "delta",
          "backup",
          "writer"
        ],
        "note": "Phân tích phần mới, gộp vào đúng mục, không ghi đè kết luận cũ."
      },
      {
        "id": "correct",
        "label": "Sửa bằng lời",
        "focus": [
          "say",
          "correction",
          "writer"
        ],
        "note": "\"Họ không làm thế\": sửa tính cách vào lớp Correction, có hiệu lực ngay; sửa công việc vào Work."
      }
    ]
  },
  "lanes": [
    {
      "id": "file",
      "label": "Thêm file"
    },
    {
      "id": "talk",
      "label": "Sửa bằng lời"
    },
    {
      "id": "save",
      "label": "Ghi an toàn"
    }
  ],
  "phases": [
    {
      "id": "p1",
      "label": "Đầu vào mới",
      "fromCol": 0,
      "toCol": 1
    },
    {
      "id": "p2",
      "label": "Ghi qua skill_writer",
      "fromCol": 2,
      "toCol": 3,
      "variant": "emphasis"
    }
  ],
  "mainPath": [
    "newfile",
    "delta",
    "backup",
    "writer"
  ],
  "nodes": [
    {
      "id": "newfile",
      "lane": "file",
      "col": 0,
      "type": "frontend",
      "label": "File mới",
      "sublabel": "chat, tài liệu",
      "width": 140
    },
    {
      "id": "delta",
      "lane": "file",
      "col": 1,
      "type": "backend",
      "label": "Phân tích phần mới",
      "sublabel": "gộp, không ghi đè",
      "width": 170
    },
    {
      "id": "say",
      "lane": "talk",
      "col": 0,
      "type": "frontend",
      "label": "\"Họ không làm thế\"",
      "sublabel": "người dùng sửa",
      "width": 170
    },
    {
      "id": "correction",
      "lane": "talk",
      "col": 1,
      "type": "backend",
      "label": "Phân loại lời sửa",
      "sublabel": "tính cách → Correction, việc → Work",
      "width": 170
    },
    {
      "id": "backup",
      "lane": "save",
      "col": 2,
      "type": "database",
      "label": "Backup phiên bản",
      "sublabel": "khi thêm file; rollback được",
      "width": 170
    },
    {
      "id": "writer",
      "lane": "save",
      "col": 3,
      "type": "backend",
      "label": "skill_writer.py",
      "sublabel": "không sửa tay",
      "width": 160
    }
  ],
  "edges": [
    {
      "id": "e1",
      "from": "newfile",
      "to": "delta",
      "variant": "emphasis"
    },
    {
      "id": "e2",
      "from": "say",
      "to": "correction"
    },
    {
      "id": "e3",
      "from": "delta",
      "to": "backup",
      "variant": "emphasis"
    },
    {
      "id": "e4",
      "from": "correction",
      "to": "writer",
      "label": "ghi thẳng"
    },
    {
      "id": "e5",
      "from": "backup",
      "to": "writer",
      "variant": "emphasis"
    }
  ]
}