{
  "schema_version": 2,
  "diagram_type": "workflow",
  "meta": {
    "title": "Contract Review｜双轮审查与 Word 批注",
    "locale": "zh-CN",
    "quality_profile": "showcase",
    "legend": {
      "mode": "hidden"
    },
    "views": [
      {
        "id": "main-flow",
        "label": "内部主流程",
        "focus": [
          "request",
          "route",
          "step1",
          "step2",
          "step3",
          "step4",
          "output"
        ],
        "note": "从任务触发、路由选择到实际处理与交付。"
      },
      {
        "id": "tools-gates",
        "label": "工具与闸门",
        "focus": [
          "step1",
          "step3",
          "tool1",
          "tool2"
        ],
        "note": "查看真实脚本、外部服务以及质量或安全边界。"
      }
    ]
  },
  "lanes": [
    {
      "id": "task",
      "label": "legal · 任务与交付"
    },
    {
      "id": "skill",
      "label": "contract-review · 内部流程"
    },
    {
      "id": "runtime",
      "label": "实际工具、脚本与质量/安全闸门"
    }
  ],
  "phases": [
    {
      "id": "intake",
      "label": "触发与路由",
      "fromCol": 0,
      "toCol": 1
    },
    {
      "id": "execution",
      "label": "内部执行",
      "fromCol": 2,
      "toCol": 4,
      "variant": "emphasis"
    },
    {
      "id": "delivery",
      "label": "验证与交付",
      "fromCol": 5,
      "toCol": 5
    }
  ],
  "mainPath": [
    "request",
    "route",
    "step1",
    "step2",
    "step3",
    "step4",
    "output"
  ],
  "nodes": [
    {
      "id": "request",
      "lane": "task",
      "col": 0,
      "type": "external",
      "label": "已有合同审阅",
      "sublabel": "DOCX / PDF / 扫描件 / 文本",
      "width": 155
    },
    {
      "id": "route",
      "lane": "task",
      "col": 1,
      "type": "security",
      "label": "只审不起草",
      "sublabel": "先确定合同类型、交易与立场",
      "width": 170
    },
    {
      "id": "output",
      "lane": "task",
      "col": 5,
      "type": "frontend",
      "label": "审查摘要与意见清单",
      "sublabel": "DOCX 输入另附保留原件的批注稿",
      "width": 175
    },
    {
      "id": "step1",
      "lane": "skill",
      "col": 2,
      "type": "backend",
      "label": "输出结构简报",
      "sublabel": "主体、交易、立场、类型化风险",
      "width": 175
    },
    {
      "id": "step2",
      "lane": "skill",
      "col": 3,
      "type": "backend",
      "label": "主体核查与法律审",
      "sublabel": "工商信息 · 十类条款 · 高中低分级",
      "width": 175
    },
    {
      "id": "step3",
      "lane": "skill",
      "col": 4,
      "type": "backend",
      "label": "第二轮文本技术审",
      "sublabel": "错字、序号、引用、金额日期一致性",
      "width": 175
    },
    {
      "id": "step4",
      "lane": "skill",
      "col": 5,
      "type": "backend",
      "label": "按输入形态交付",
      "sublabel": "意见清单；DOCX 默认批注/修订版",
      "width": 175
    },
    {
      "id": "tool1",
      "lane": "runtime",
      "col": 2,
      "type": "messagebus",
      "label": "legal-research / 天眼查",
      "sublabel": "法条类案与境内主体核验",
      "width": 180
    },
    {
      "id": "tool2",
      "lane": "runtime",
      "col": 4,
      "type": "security",
      "label": "Kimi Word 插件",
      "sublabel": "comment.py / track.py 落地批注修订",
      "width": 180
    }
  ],
  "edges": [
    {
      "id": "requestRoute",
      "from": "request",
      "to": "route"
    },
    {
      "id": "routeStep1",
      "from": "route",
      "to": "step1",
      "variant": "emphasis"
    },
    {
      "id": "step1Step2",
      "from": "step1",
      "to": "step2",
      "variant": "emphasis"
    },
    {
      "id": "step2Step3",
      "from": "step2",
      "to": "step3",
      "variant": "emphasis"
    },
    {
      "id": "step3Step4",
      "from": "step3",
      "to": "step4",
      "variant": "emphasis"
    },
    {
      "id": "step4Output",
      "from": "step4",
      "to": "output",
      "variant": "emphasis"
    },
    {
      "id": "tool1Step1",
      "from": "tool1",
      "to": "step1",
      "variant": "dashed",
      "role": "branch"
    },
    {
      "id": "tool2Step3",
      "from": "tool2",
      "to": "step3",
      "variant": "dashed",
      "role": "branch"
    }
  ],
  "cards": [
    {
      "dot": "cyan",
      "title": "实际命令 / 调用关系",
      "items": [
        "意见字段：定位 | 等级 | 分析 | 原文 | 建议 | 依据",
        "Word：每风险一条批注；文字改法走修订，结构意见只批注"
      ]
    },
    {
      "dot": "amber",
      "title": "内部约束 / 异常边界",
      "items": [
        "每个问题只报一次；核对一致项不展开，不凑数",
        "最终摘要分底线、核心争取、可让步；律师审定后对外使用"
      ]
    },
    {
      "dot": "slate",
      "title": "SKILL.md 来源定位",
      "items": [
        "contract-review/SKILL.md:12-47 范围、简报、主体",
        ":49-104 双轮审查与交付；:106-117 收尾"
      ]
    }
  ]
}
