feat(trace): finish run-aware demo verification

This commit is contained in:
zhuyongxin
2026-07-10 21:37:43 +08:00
parent 78c1477198
commit f9df94377b
28 changed files with 779 additions and 459 deletions
+9 -6
View File
@@ -42,13 +42,15 @@ flowchart TB
end
subgraph Trace["Trace persistence"]
Session["diagnosis_session"]
ChatSession["chat_session"]
Run["diagnosis_run"]
Step["agent_step"]
Invocation["tool_invocation"]
SelfEval["self_evaluation"]
end
ChatService --> Session
ChatService --> ChatSession
ChatService --> Run
ChatPlanner --> Step
ChatExecutor --> Step
ChatGatekeeper --> SelfEval
@@ -57,7 +59,8 @@ flowchart TB
ChatDecision --> SelfEval
ChatComposer --> Step
AiOpsService --> Session
AiOpsService --> ChatSession
AiOpsService --> Run
AiOpsPlanner --> Step
AiOpsExecutor --> Step
AiOpsTools --> Invocation
@@ -103,7 +106,7 @@ sequenceDiagram
participant G as gatekeeper
participant V as chat_verifier
participant M as chat_composer
participant S as diagnosis_session
participant R as diagnosis_run
C->>P: 原始问题 + history + retry_context
P-->>C: planner_plan
@@ -115,13 +118,13 @@ sequenceDiagram
G-->>C: gatekeeper_result
C->>V: executor_structured_output + gatekeeper_result + tool_trace_summary
V-->>C: PASS / LOW_CONFID / REJECT
C->>S: 写入 verifier_evaluation
C->>R: 写入 verifier_evaluation
alt LOW_CONFID 且允许补证据
C->>P: retry_context: 仅补缺失证据
else PASS 或 REJECT
C->>M: allowed_claims + missing_info + recommended_actions
M-->>C: composer_output
C->>S: 保存 Composer 最终 answer
C->>R: 保存 Composer 最终 answer
end
```