{
  "schema_version": 2,
  "diagram_type": "workflow",
  "meta": {
    "title": "Khôi phục mà không mất dữ liệu mới — thiết kế đề xuất",
    "locale": "vi",
    "output": "docs/ssa-miniapp/archify/recovery.html",
    "quality_profile": "showcase",
    "repository": {
      "url": "git@github.com:skan2026/ssa.git",
      "revision": "05bb7ca2dfe249d1bfb325b901ee8d7d2958d19e",
      "link_mode": "local-only"
    }
  },
  "lanes": [
    {
      "id": "main",
      "label": "SSA vận hành và đội kỹ thuật"
    },
    {
      "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": "security",
      "label": "Cô lập sự cố",
      "sublabel": "Freeze đúng phạm vi",
      "sources": [
        {
          "path": "docs/ssa-miniapp/PLAN.md",
          "line": 483,
          "end_line": 505,
          "label": "Thiết kế đề xuất SSA"
        }
      ]
    },
    {
      "id": "n1",
      "lane": "main",
      "col": 1,
      "type": "backend",
      "label": "Chọn cách phục hồi",
      "sublabel": "Import / app / DB",
      "sources": [
        {
          "path": "docs/ssa-miniapp/PLAN.md",
          "line": 483,
          "end_line": 505,
          "label": "Thiết kế đề xuất SSA"
        }
      ]
    },
    {
      "id": "n2",
      "lane": "main",
      "col": 2,
      "type": "database",
      "label": "Phục hồi theo loại",
      "sublabel": "Generation / artifact / DB",
      "sources": [
        {
          "path": "docs/ssa-miniapp/PLAN.md",
          "line": 483,
          "end_line": 505,
          "label": "Thiết kế đề xuất SSA"
        }
      ]
    },
    {
      "id": "n3",
      "lane": "main",
      "col": 3,
      "type": "security",
      "label": "Đối soát kết quả",
      "sublabel": "DB: replay revoke / deletion",
      "sources": [
        {
          "path": "docs/ssa-miniapp/PLAN.md",
          "line": 483,
          "end_line": 505,
          "label": "Thiết kế đề xuất SSA"
        }
      ]
    },
    {
      "id": "n4",
      "lane": "main",
      "col": 4,
      "type": "external",
      "label": "SSA xác nhận",
      "sublabel": "Đo RPO / RTO",
      "sources": [
        {
          "path": "docs/ssa-miniapp/PLAN.md",
          "line": 483,
          "end_line": 505,
          "label": "Thiết kế đề xuất SSA"
        }
      ]
    },
    {
      "id": "n5",
      "lane": "main",
      "col": 5,
      "type": "frontend",
      "label": "Mở lại có kiểm soát",
      "sublabel": "Theo dõi sau khôi phục",
      "sources": [
        {
          "path": "docs/ssa-miniapp/PLAN.md",
          "line": 483,
          "end_line": 505,
          "label": "Thiết kế đề xuất SSA"
        }
      ]
    },
    {
      "id": "exception",
      "lane": "exception",
      "col": 3,
      "type": "security",
      "label": "Chưa khớp",
      "sublabel": "Giữ cô lập; điều tra",
      "sources": [
        {
          "path": "docs/ssa-miniapp/PLAN.md",
          "line": 483,
          "end_line": 505,
          "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": "Sai đối soát",
      "variant": "security",
      "role": "branch"
    }
  ],
  "cards": [
    {
      "dot": "amber",
      "title": "Điểm phải nhớ",
      "items": [
        "Import sai: quay generation MISA, giữ orders/consent/survey. App lỗi: quay artifact tương thích. DB hỏng: restore biệt lập với backup + file manifest, áp lại ledger; không blind PITR. RPO ≤24h/RTO ≤4h là đề xuất chưa đo."
      ]
    },
    {
      "dot": "slate",
      "title": "Phạm vi bằng chứng",
      "items": [
        "PLAN.md § thiết kế, dòng 483–505; chưa có ứng dụng triển khai.",
        "Sơ đồ mô tả đề xuất, không xác nhận runtime đã hoạt động."
      ]
    }
  ]
}
