fix(audit): 第五轮审计修复 — 反思LLM分析、语义路由、并行执行、错误中文化

- P2: 反思引擎接入 LLM 深度行为分析 (analyze_patterns_with_llm)
- P3-M6: 语义路由 RuntimeLlmIntentDriver 真实 LLM 匹配
- P3-L1: V2 Pipeline execute_parallel 改用 buffer_unordered 真正并行
- P3-S10: Rust 用户可见错误提示统一中文化

累计修复 27 项,完成度 ~72% → ~78%
This commit is contained in:
iven
2026-03-27 12:10:48 +08:00
parent 30b2515f07
commit 256dba49db
10 changed files with 393 additions and 84 deletions

View File

@@ -150,7 +150,7 @@ impl ActionRegistry {
.await
.map_err(ActionError::Llm)
} else {
Err(ActionError::Llm("LLM driver not configured".to_string()))
Err(ActionError::Llm("LLM 驱动未配置,请在设置中配置模型与 API".to_string()))
}
}
@@ -165,7 +165,7 @@ impl ActionRegistry {
.await
.map_err(ActionError::Skill)
} else {
Err(ActionError::Skill("Skill registry not configured".to_string()))
Err(ActionError::Skill("技能注册表未初始化".to_string()))
}
}
@@ -181,7 +181,7 @@ impl ActionRegistry {
.await
.map_err(ActionError::Hand)
} else {
Err(ActionError::Hand("Hand registry not configured".to_string()))
Err(ActionError::Hand("Hand 注册表未初始化".to_string()))
}
}
@@ -197,7 +197,7 @@ impl ActionRegistry {
.await
.map_err(ActionError::Orchestration)
} else {
Err(ActionError::Orchestration("Orchestration driver not configured".to_string()))
Err(ActionError::Orchestration("编排驱动未初始化".to_string()))
}
}