{
  "schema_version": 1,
  "diagram_type": "lifecycle",
  "meta": {"title": "健康管理 Agent 生命周期", "subtitle": "一个健康管理任务的完整生命周期", "quality_profile": "standard"},
  "start": "new",
  "states": [
    {"id": "new", "label": "新建任务", "type": "start"},
    {"id": "collecting", "label": "S1 数据采集中", "type": "active"},
    {"id": "summarizing", "label": "S2 摘要生成中", "type": "active"},
    {"id": "analyzing", "label": "S3+4 分析中", "type": "active"},
    {"id": "archiving", "label": "S5 存档中", "type": "active"},
    {"id": "tracking", "label": "S6 跟踪中", "type": "active"},
    {"id": "completed", "label": "任务完成", "type": "end"},
    {"id": "failed", "label": "失败", "type": "error"},
    {"id": "retry", "label": "重试", "type": "waiting"}
  ],
  "transitions": [
    {"from": "new", "to": "collecting", "label": "启动"},
    {"from": "collecting", "to": "summarizing", "label": "采集完成"},
    {"from": "collecting", "to": "failed", "label": "采集失败", "variant": "error"},
    {"from": "summarizing", "to": "analyzing", "label": "摘要完成"},
    {"from": "summarizing", "to": "failed", "label": "摘要失败", "variant": "error"},
    {"from": "analyzing", "to": "archiving", "label": "分析完成"},
    {"from": "analyzing", "to": "failed", "label": "分析失败", "variant": "error"},
    {"from": "archiving", "to": "tracking", "label": "存档完成"},
    {"from": "tracking", "to": "completed", "label": "跟踪完成"},
    {"from": "failed", "to": "retry", "label": "重试", "variant": "dashed"},
    {"from": "retry", "to": "collecting", "label": "重新采集", "variant": "dashed"}
  ]
}
