{
  "schema_version": 2,
  "diagram_type": "workflow",
  "meta": {
    "title": "Khảo sát dẫn tới việc chăm sóc — thiết kế đề xuất",
    "locale": "vi",
    "output": "docs/ssa-miniapp/archify/survey.html",
    "quality_profile": "showcase",
    "repository": {
      "url": "git@github.com:skan2026/ssa.git",
      "revision": "05bb7ca2dfe249d1bfb325b901ee8d7d2958d19e",
      "link_mode": "local-only"
    }
  },
  "lanes": [
    {
      "id": "main",
      "label": "Phụ huynh và SSA chăm sóc"
    },
    {
      "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": "frontend",
      "label": "Mở đợt khảo sát",
      "sublabel": "Đúng audience",
      "sources": [
        {
          "path": "docs/ssa-miniapp/PLAN.md",
          "line": 384,
          "end_line": 390,
          "label": "Thiết kế đề xuất SSA"
        }
      ]
    },
    {
      "id": "n1",
      "lane": "main",
      "col": 1,
      "type": "frontend",
      "label": "Gửi câu trả lời",
      "sublabel": "Version / idempotency key",
      "sources": [
        {
          "path": "docs/ssa-miniapp/PLAN.md",
          "line": 384,
          "end_line": 390,
          "label": "Thiết kế đề xuất SSA"
        }
      ]
    },
    {
      "id": "n2",
      "lane": "main",
      "col": 2,
      "type": "security",
      "label": "Validate server",
      "sublabel": "Đợt mở, điểm 1 tới 5",
      "sources": [
        {
          "path": "docs/ssa-miniapp/PLAN.md",
          "line": 384,
          "end_line": 390,
          "label": "Thiết kế đề xuất SSA"
        }
      ]
    },
    {
      "id": "n3",
      "lane": "main",
      "col": 3,
      "type": "database",
      "label": "Lưu submission",
      "sublabel": "Unique theo scope đã chốt",
      "sources": [
        {
          "path": "docs/ssa-miniapp/PLAN.md",
          "line": 384,
          "end_line": 390,
          "label": "Thiết kế đề xuất SSA"
        }
      ]
    },
    {
      "id": "n4",
      "lane": "main",
      "col": 4,
      "type": "backend",
      "label": "Đánh giá threshold",
      "sublabel": "Quy tắc SSA phê duyệt",
      "sources": [
        {
          "path": "docs/ssa-miniapp/PLAN.md",
          "line": 384,
          "end_line": 390,
          "label": "Thiết kế đề xuất SSA"
        }
      ]
    },
    {
      "id": "n5",
      "lane": "main",
      "col": 5,
      "type": "backend",
      "label": "Care task nếu thấp",
      "sublabel": "Có người phụ trách",
      "sources": [
        {
          "path": "docs/ssa-miniapp/PLAN.md",
          "line": 384,
          "end_line": 390,
          "label": "Thiết kế đề xuất SSA"
        }
      ]
    },
    {
      "id": "exception",
      "lane": "exception",
      "col": 2,
      "type": "security",
      "label": "Từ chối ghi",
      "sublabel": "Đợt đóng / sai version",
      "sources": [
        {
          "path": "docs/ssa-miniapp/PLAN.md",
          "line": 384,
          "end_line": 390,
          "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": "Không hợp lệ",
      "variant": "security",
      "role": "branch"
    }
  ],
  "cards": [
    {
      "dot": "amber",
      "title": "Điểm phải nhớ",
      "items": [
        "Scope theo trẻ và ngưỡng bất kỳ câu ≤2 là đề xuất cần G5. Email chỉ mang task ID; không sao chép câu trả lời nhạy cảm."
      ]
    },
    {
      "dot": "slate",
      "title": "Phạm vi bằng chứng",
      "items": [
        "PLAN.md § thiết kế, dòng 384–390; chưa có ứng dụng triển khai.",
        "Sơ đồ mô tả đề xuất, không xác nhận runtime đã hoạt động."
      ]
    }
  ]
}
