{
  "schema_version": 2,
  "diagram_type": "workflow",
  "meta": {
    "title": "Phiếu Coach phải qua ai? — thiết kế đề xuất",
    "locale": "vi",
    "output": "docs/ssa-miniapp/archify/report.html",
    "quality_profile": "showcase",
    "repository": {
      "url": "git@github.com:skan2026/ssa.git",
      "revision": "05bb7ca2dfe249d1bfb325b901ee8d7d2958d19e",
      "link_mode": "local-only"
    }
  },
  "lanes": [
    {
      "id": "main",
      "label": "Coach, người duyệt và phụ huynh"
    },
    {
      "id": "exception",
      "label": "Điểm kiểm soát / ngoại lệ",
      "variant": "exception"
    }
  ],
  "mainPath": [
    "n0",
    "n1",
    "n2",
    "n3",
    "n4",
    "n5"
  ],
  "nodes": [
    {
      "id": "n0",
      "lane": "main",
      "col": 0,
      "type": "external",
      "label": "Coach nộp",
      "sublabel": "Kỳ / rubric / 6 kỹ năng",
      "sources": [
        {
          "path": "docs/ssa-miniapp/PLAN.md",
          "line": 376,
          "end_line": 392,
          "label": "Thiết kế đề xuất SSA"
        }
      ]
    },
    {
      "id": "n1",
      "lane": "main",
      "col": 1,
      "type": "database",
      "label": "Draft / revision",
      "sublabel": "Giữ nguyên điểm gốc",
      "sources": [
        {
          "path": "docs/ssa-miniapp/PLAN.md",
          "line": 376,
          "end_line": 392,
          "label": "Thiết kế đề xuất SSA"
        }
      ]
    },
    {
      "id": "n2",
      "lane": "main",
      "col": 2,
      "type": "security",
      "label": "Người duyệt",
      "sublabel": "So sánh nội dung",
      "sources": [
        {
          "path": "docs/ssa-miniapp/PLAN.md",
          "line": 376,
          "end_line": 392,
          "label": "Thiết kế đề xuất SSA"
        }
      ]
    },
    {
      "id": "n3",
      "lane": "main",
      "col": 3,
      "type": "backend",
      "label": "Publish revision",
      "sublabel": "Kiểm expectedVersion",
      "sources": [
        {
          "path": "docs/ssa-miniapp/PLAN.md",
          "line": 376,
          "end_line": 392,
          "label": "Thiết kế đề xuất SSA"
        },
        {
          "path": "docs/ssa-miniapp/PLAN.md",
          "line": 349,
          "end_line": 351
        }
      ]
    },
    {
      "id": "n4",
      "lane": "main",
      "col": 4,
      "type": "database",
      "label": "PDF private",
      "sublabel": "Đúng trẻ và revision",
      "sources": [
        {
          "path": "docs/ssa-miniapp/PLAN.md",
          "line": 376,
          "end_line": 392,
          "label": "Thiết kế đề xuất SSA"
        }
      ]
    },
    {
      "id": "n5",
      "lane": "main",
      "col": 5,
      "type": "frontend",
      "label": "Phụ huynh xem",
      "sublabel": "Quyền hiện hành",
      "sources": [
        {
          "path": "docs/ssa-miniapp/PLAN.md",
          "line": 376,
          "end_line": 392,
          "label": "Thiết kế đề xuất SSA"
        }
      ]
    },
    {
      "id": "exception",
      "lane": "exception",
      "col": 2,
      "type": "security",
      "label": "Trả về Coach",
      "sublabel": "Sửa draft rồi duyệt lại",
      "sources": [
        {
          "path": "docs/ssa-miniapp/PLAN.md",
          "line": 376,
          "end_line": 392,
          "label": "Thiết kế đề xuất SSA"
        }
      ]
    }
  ],
  "edges": [
    {
      "id": "e0",
      "from": "n0",
      "to": "n1",
      "variant": "emphasis"
    },
    {
      "id": "e1",
      "from": "n1",
      "to": "n2",
      "variant": "emphasis"
    },
    {
      "id": "e2",
      "from": "n2",
      "to": "n3",
      "variant": "emphasis"
    },
    {
      "id": "e3",
      "from": "n3",
      "to": "n4",
      "variant": "emphasis"
    },
    {
      "id": "e4",
      "from": "n4",
      "to": "n5",
      "variant": "emphasis"
    },
    {
      "id": "branch",
      "from": "n2",
      "to": "exception",
      "label": "Chưa đạt",
      "variant": "security",
      "role": "branch"
    }
  ],
  "cards": [
    {
      "dot": "amber",
      "title": "Điểm phải nhớ",
      "items": [
        "AI là tùy chọn, tắt khi chưa được phép. AI không đổi điểm hoặc tự publish; timeout AI không chặn nhập điểm."
      ]
    },
    {
      "dot": "slate",
      "title": "Phạm vi bằng chứng",
      "items": [
        "PLAN.md § thiết kế, dòng 376–392; chưa có ứng dụng triển khai.",
        "Sơ đồ mô tả đề xuất, không xác nhận runtime đã hoạt động."
      ]
    }
  ]
}
