{
  "schema_version": 2,
  "diagram_type": "workflow",
  "meta": {
    "title": "Backend và Zalo phát hành riêng — thiết kế đề xuất",
    "locale": "vi",
    "output": "docs/ssa-miniapp/archify/release.html",
    "quality_profile": "showcase",
    "repository": {
      "url": "git@github.com:skan2026/ssa.git",
      "revision": "05bb7ca2dfe249d1bfb325b901ee8d7d2958d19e",
      "link_mode": "local-only"
    }
  },
  "lanes": [
    {
      "id": "main",
      "label": "Đội triển khai và SSA owner"
    },
    {
      "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": "backend",
      "label": "CI + artifact",
      "sublabel": "SHA / scan / contracts",
      "sources": [
        {
          "path": "docs/ssa-miniapp/PLAN.md",
          "line": 530,
          "end_line": 558,
          "label": "Thiết kế đề xuất SSA"
        }
      ]
    },
    {
      "id": "n1",
      "lane": "main",
      "col": 1,
      "type": "cloud",
      "label": "Backend staging",
      "sublabel": "Migration tương thích",
      "sources": [
        {
          "path": "docs/ssa-miniapp/PLAN.md",
          "line": 530,
          "end_line": 558,
          "label": "Thiết kế đề xuất SSA"
        }
      ]
    },
    {
      "id": "n2",
      "lane": "main",
      "col": 2,
      "type": "security",
      "label": "UAT + G0/G1/G4",
      "sublabel": "Quyền thật / restore",
      "sources": [
        {
          "path": "docs/ssa-miniapp/PLAN.md",
          "line": 530,
          "end_line": 558,
          "label": "Thiết kế đề xuất SSA"
        },
        {
          "path": "docs/ssa-miniapp/PLAN.md",
          "line": 673,
          "end_line": 691
        }
      ]
    },
    {
      "id": "n3",
      "lane": "main",
      "col": 3,
      "type": "external",
      "label": "Zalo Testing",
      "sublabel": "Quyền App / hồ sơ duyệt",
      "sources": [
        {
          "path": "docs/ssa-miniapp/PLAN.md",
          "line": 530,
          "end_line": 558,
          "label": "Thiết kế đề xuất SSA"
        }
      ]
    },
    {
      "id": "n4",
      "lane": "main",
      "col": 4,
      "type": "external",
      "label": "Approved + Publish",
      "sublabel": "SSA owner phát hành",
      "sources": [
        {
          "path": "docs/ssa-miniapp/PLAN.md",
          "line": 530,
          "end_line": 558,
          "label": "Thiết kế đề xuất SSA"
        }
      ]
    },
    {
      "id": "n5",
      "lane": "main",
      "col": 5,
      "type": "frontend",
      "label": "Cutover / kiểm tra",
      "sublabel": "User thường / OA entry",
      "sources": [
        {
          "path": "docs/ssa-miniapp/PLAN.md",
          "line": 530,
          "end_line": 558,
          "label": "Thiết kế đề xuất SSA"
        }
      ]
    },
    {
      "id": "exception",
      "lane": "exception",
      "col": 3,
      "type": "security",
      "label": "Bị từ chối",
      "sublabel": "Sửa hồ sơ hoặc build",
      "sources": [
        {
          "path": "docs/ssa-miniapp/PLAN.md",
          "line": 530,
          "end_line": 558,
          "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": "n3",
      "to": "exception",
      "label": "Review chưa đạt",
      "variant": "security",
      "role": "branch"
    }
  ],
  "cards": [
    {
      "dot": "amber",
      "title": "Điểm phải nhớ",
      "items": [
        "Deploy backend không đồng nghĩa Mini App đã live. Giữ API tương thích bundle cũ trong lúc chờ review; không dùng demo bypass cho reviewer."
      ]
    },
    {
      "dot": "slate",
      "title": "Phạm vi bằng chứng",
      "items": [
        "PLAN.md § thiết kế, dòng 530–558; chưa có ứng dụng triển khai.",
        "Sơ đồ mô tả đề xuất, không xác nhận runtime đã hoạt động."
      ]
    }
  ]
}
