<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="675" viewBox="0 0 1200 675" preserveAspectRatio="xMidYMid meet" role="img" aria-labelledby="title desc" data-image-type="dag-troubleshooting-flow">
  <title id="title">AI工作流触发到审计的执行链路</title>
  <desc id="desc">image_type="DAG排查决策树与修复验证图"；section="AI工作流编排到底要解决什么问题"；position="首个核心H2后"；reader_task="理解触发输入、上下文检索、模型调用、审批门、结果回写、失败处理和审计记录如何组成可追踪、可恢复的DAG执行链路"；用途：展示AI工作流编排中的主流程节点、状态流转、排查决策树、修复验证与独立审计记录；troubleshooting: true；PBDS: failure-handling semantics only；关键术语：触发输入、上下文检索、模型调用、审批门、结果回写、审计记录、失败处理、排查决策树、修复验证、待执行、运行中、待审批、已成功、已失败。</desc>
  <defs>
    <marker id="arrow" markerWidth="10" markerHeight="10" refX="8" refY="5" orient="auto" markerUnits="strokeWidth">
      <path d="M1,1 L8,5 L1,9 Z" fill="#2563eb" />
    </marker>
    <style>
      text { font-family: system-ui, Arial, Helvetica, sans-serif, "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC"; fill: #0f172a; }
      .bg { fill: #f8fafc; }
      .frame { fill: #ffffff; stroke: #cbd5e1; stroke-width: 1.5; }
      .node { fill: #ffffff; stroke: #93c5fd; stroke-width: 2; }
      .node-soft { fill: #eff6ff; stroke: #60a5fa; stroke-width: 2; }
      .gate { fill: #fff7ed; stroke: #f97316; stroke-width: 2.4; }
      .audit { fill: #f8fafc; stroke: #94a3b8; stroke-width: 1.8; }
      .chip-blue { fill: #dbeafe; stroke: #93c5fd; stroke-width: 1.4; }
      .chip-run { fill: #bfdbfe; stroke: #60a5fa; stroke-width: 1.4; }
      .chip-wait { fill: #fed7aa; stroke: #fdba74; stroke-width: 1.4; }
      .chip-ok { fill: #bbf7d0; stroke: #86efac; stroke-width: 1.4; }
      .chip-fail { fill: #fecaca; stroke: #fca5a5; stroke-width: 1.4; }
      .title { font-size: 24px; font-weight: 700; }
      .subtitle { font-size: 16px; fill: #475569; }
      .label { font-size: 20px; font-weight: 700; }
      .sub { font-size: 15px; fill: #475569; }
      .chipText { font-size: 15px; font-weight: 700; fill: #334155; }
      .line { stroke: #2563eb; stroke-width: 3; fill: none; marker-end: url(#arrow); }
    </style>
  </defs>

  <rect class="bg" x="0" y="0" width="1200" height="675" />
  <rect class="frame" x="66" y="52" width="1068" height="558" rx="26" />

  <text class="title" x="600" y="96" text-anchor="middle">触发到审计的执行链路</text>
  <text class="subtitle" x="600" y="128" text-anchor="middle">把多步骤智能调用拆成可追踪、可恢复、可审计的DAG节点</text>

  <rect class="node-soft" x="80" y="212" width="168" height="132" rx="18" />
  <text class="label" x="164" y="252" text-anchor="middle">触发输入</text>
  <text class="sub" x="164" y="284" text-anchor="middle">用户请求与事件</text>
  <text class="sub" x="164" y="312" text-anchor="middle">模板、权限范围</text>

  <rect class="node" x="300" y="212" width="168" height="132" rx="18" />
  <text class="label" x="384" y="252" text-anchor="middle">上下文检索</text>
  <text class="sub" x="384" y="284" text-anchor="middle">读取知识与配置</text>
  <text class="sub" x="384" y="312" text-anchor="middle">补齐任务输入</text>

  <rect class="node" x="520" y="212" width="168" height="132" rx="18" />
  <text class="label" x="604" y="252" text-anchor="middle">模型调用</text>
  <text class="sub" x="604" y="284" text-anchor="middle">生成候选结果</text>
  <text class="sub" x="604" y="312" text-anchor="middle">执行质量校验</text>

  <rect class="gate" x="740" y="212" width="168" height="132" rx="20" />
  <text class="label" x="824" y="252" text-anchor="middle">审批门</text>
  <text class="sub" x="824" y="284" text-anchor="middle">高风险动作暂停</text>
  <text class="sub" x="824" y="312" text-anchor="middle">人工放行或拒绝</text>

  <rect class="node-soft" x="960" y="212" width="168" height="132" rx="18" />
  <text class="label" x="1044" y="252" text-anchor="middle">结果回写</text>
  <text class="sub" x="1044" y="284" text-anchor="middle">工单、报告</text>
  <text class="sub" x="1044" y="312" text-anchor="middle">下游系统更新</text>

  <path class="line" d="M260 278 H288" />
  <path class="line" d="M480 278 H508" />
  <path class="line" d="M700 278 H728" />
  <path class="line" d="M920 278 H948" />

  <rect class="audit" x="810" y="404" width="294" height="96" rx="18" />
  <text class="label" x="957" y="440" text-anchor="middle">审计记录</text>
  <text class="sub" x="957" y="470" text-anchor="middle">发起人、执行器、审批人</text>

  <rect class="chip-blue" x="100" y="548" width="160" height="38" rx="19" />
  <text class="chipText" x="180" y="572" text-anchor="middle">待执行</text>
  <rect class="chip-run" x="310" y="548" width="160" height="38" rx="19" />
  <text class="chipText" x="390" y="572" text-anchor="middle">运行中</text>
  <rect class="chip-wait" x="520" y="548" width="160" height="38" rx="19" />
  <text class="chipText" x="600" y="572" text-anchor="middle">待审批</text>
  <rect class="chip-ok" x="730" y="548" width="160" height="38" rx="19" />
  <text class="chipText" x="810" y="572" text-anchor="middle">已成功</text>
  <rect class="chip-fail" x="940" y="548" width="160" height="38" rx="19" />
  <text class="chipText" x="1020" y="572" text-anchor="middle">已失败</text>
</svg>
