{
  "schema_version": 2,
  "diagram_type": "workflow",
  "meta": {
    "title": "hyperresearch: pipeline 16 bước và vault",
    "quality_profile": "showcase",
    "views": [
      {
        "id": "full",
        "label": "Tier full",
        "focus": [
          "decompose",
          "sweep",
          "depth",
          "drafts",
          "synth",
          "critics",
          "gate"
        ],
        "note": "Đủ 16 bước: thu nguồn rộng, đào sâu, 3 draft, tổng hợp, 4 critic tấn công, patch có kiểm soát rồi qua ship gate."
      },
      {
        "id": "light",
        "label": "Tier light",
        "focus": [
          "decompose",
          "sweep",
          "drafts",
          "gate"
        ],
        "note": "Câu hỏi hẹp: bước 1 → 2 → 10 (một draft) → 15 → 16, bỏ qua đào sâu và critic; khoảng 30–40 phút."
      },
      {
        "id": "vault",
        "label": "Vault",
        "focus": [
          "sweep",
          "vault"
        ],
        "note": "Mọi nguồn đã đọc vào vault markdown + SQLite; phiên sau tìm trong vault trước khi fetch mới."
      }
    ],
    "legend": {
      "mode": "hidden"
    }
  },
  "lanes": [
    {
      "id": "collect",
      "label": "Thu thập + phân tích"
    },
    {
      "id": "write",
      "label": "Viết"
    },
    {
      "id": "verify",
      "label": "Tấn công + kiểm chứng"
    }
  ],
  "phases": [
    {
      "id": "p1",
      "label": "Bước 1–9",
      "fromCol": 0,
      "toCol": 2
    },
    {
      "id": "p2",
      "label": "Bước 10–12",
      "fromCol": 3,
      "toCol": 4,
      "variant": "emphasis"
    },
    {
      "id": "p3",
      "label": "Bước 13–16",
      "fromCol": 5,
      "toCol": 5,
      "variant": "dashed"
    }
  ],
  "mainPath": [
    "decompose",
    "sweep",
    "depth",
    "drafts",
    "synth",
    "critics",
    "gate"
  ],
  "nodes": [
    {
      "id": "decompose",
      "lane": "collect",
      "col": 0,
      "type": "frontend",
      "label": "Decompose",
      "sublabel": "atomic items, tier",
      "width": 132
    },
    {
      "id": "sweep",
      "lane": "collect",
      "col": 1,
      "type": "cloud",
      "label": "Width sweep",
      "sublabel": "fetcher song song",
      "width": 132
    },
    {
      "id": "depth",
      "lane": "collect",
      "col": 2,
      "type": "backend",
      "label": "Loci + depth",
      "sublabel": "mâu thuẫn, gap-fill",
      "width": 132
    },
    {
      "id": "drafts",
      "lane": "write",
      "col": 3,
      "type": "backend",
      "label": "3 draft",
      "sublabel": "3 góc nhìn song song",
      "width": 132
    },
    {
      "id": "synth",
      "lane": "write",
      "col": 4,
      "type": "backend",
      "label": "Synthesize",
      "sublabel": "final_report.md",
      "width": 132
    },
    {
      "id": "critics",
      "lane": "verify",
      "col": 4,
      "type": "security",
      "label": "4 critic",
      "sublabel": "tấn công song song",
      "width": 132
    },
    {
      "id": "gate",
      "lane": "verify",
      "col": 5,
      "type": "security",
      "label": "Patch + polish + gate",
      "sublabel": "full: patch, cite-check",
      "width": 160
    },
    {
      "id": "vault",
      "lane": "collect",
      "col": 4,
      "type": "database",
      "label": "Vault",
      "sublabel": "markdown + SQLite",
      "width": 132
    }
  ],
  "edges": [
    {
      "id": "e1",
      "from": "decompose",
      "to": "sweep"
    },
    {
      "id": "e2",
      "from": "sweep",
      "to": "depth",
      "variant": "emphasis"
    },
    {
      "id": "e3",
      "from": "depth",
      "to": "drafts"
    },
    {
      "id": "e4",
      "from": "drafts",
      "to": "synth",
      "variant": "emphasis"
    },
    {
      "id": "e5",
      "from": "synth",
      "to": "critics"
    },
    {
      "id": "e6",
      "from": "critics",
      "to": "gate",
      "label": "findings",
      "variant": "emphasis"
    },
    {
      "id": "e-vault",
      "from": "sweep",
      "to": "vault",
      "label": "mọi nguồn",
      "variant": "dashed",
      "role": "branch"
    },
    {
      "id": "e-light",
      "from": "sweep",
      "to": "drafts",
      "label": "light",
      "variant": "dashed",
      "role": "branch"
    },
    {
      "id": "e-light2",
      "from": "drafts",
      "to": "gate",
      "label": "light: chỉ polish",
      "variant": "dashed",
      "role": "branch",
      "route": "bottom-channel",
      "fromSide": "bottom",
      "toSide": "bottom"
    }
  ],
  "cards": [
    {
      "dot": "cyan",
      "title": "Nguyên tắc",
      "items": [
        "Patch, không viết lại bản nháp",
        "Prompt gốc được mọi bước đọc lại"
      ]
    },
    {
      "dot": "rose",
      "title": "Ship gate chặn",
      "items": [
        "Trích dẫn không có nguyên văn trong vault",
        "Nguồn bị rút (retraction) chưa ghi nhận"
      ]
    }
  ]
}
