点击播放,逐步展示 Agent.run 推理循环的 7 个步骤
s0 · Agent.plan
OpsAgentBrain · LLM 假设「网关超时可能与近期变更相关」→ 规划 get_alert → trace_ci → list_changes
plan_id: pl_7a2b · 2.1s
12:01:01.004
{ "hypothesis": "change_correlation", "tools_planned": ["get_alert","trace_ci_to_service","list_changes"], "reflect_after": true }
s1 · get_alert
ToolGate → prometheus-api · 读取告警 ALERT-991 详情与 label
200 OK · 142ms
12:01:03.218
{ "alert_id": "ALERT-991", "severity": "P1", "summary": "pay-gw response > 3s", "labels": { "instance": "host-10-1-2-3:8080" } }
s2 · resolve_entity
OntoCore 归一 · host-10-1-2-3:8080 → ci_id CI-PAY-GW-03
命中 教辅-09 规则 #47
12:01:05.891
{ "raw": "host-10-1-2-3", "ci_id": "CI-PAY-GW-03", "cmdb_name": "pay-gw-03", "confidence": 1.0 }
s3 · trace_ci_to_service
Neo4j 图遍历 · 3 hops · runs_on → part_of
路径: pay-gw-03 → Pod → 在线支付
12:01:18.442
{ "start_ci": "CI-PAY-GW-03", "hops": 3, "service_id": "SVC-PAY-ONLINE", "edges": ["runs_on","part_of"] }
s4 · list_changes
ITSM connector · 服务「在线支付」24h 内变更
返回 1 条 · CHG00412
12:01:35.107
{ "changes": [{ "id": "CHG00412", "type": "Normal", "summary": "pay-lb weight adjust", "window": "approved_maint" }] }
s5 · rule_check · OPA
LLM 草稿建议「重启生产 LB pay-lb-01」→ R05 拦截(非维护窗口核心组件写操作)
DENY · rego v0.3.1
12:01:41.556
{ "rule": "R05", "action": "deny_restart_prod_lb", "draft_removed": true, "audit": "blocked_suggestion_logged" }
s6 · synthesize · 综合交付
Agent.reflect + 综合 · 基于证据链生成 RCA 报告(引用 CI/CHG object ID)
已推送 ITSM 侧边栏 + 企微卡片
12:01:48.903
{ "report_id": "RCA-20250605-991", "suspected_change": "CHG00412", "confidence": "high", "trace_id": "tr_8f3a2c91e4b7" }