docs(roadmap): 更新 Phase 4b 状态为已完成

This commit is contained in:
徐涛
2026-06-11 21:57:10 +08:00
parent 2b189880a9
commit 4de7db0b2c
5 changed files with 162 additions and 11 deletions
+10
View File
@@ -31,6 +31,10 @@ pub enum AgentError {
#[error("记忆错误: {0}")]
Memory(#[from] MemoryError),
/// Plan 解析失败(Phase 4b 新增)。
#[error("Plan 解析错误: {0}")]
PlanParse(String),
/// 钩子阻断操作(Agent 层特有)。
#[error("钩子阻断: {0}")]
HookBlocked(String),
@@ -63,6 +67,7 @@ impl AgentError {
),
Self::Tool(e) => e.is_recoverable(),
Self::Memory(e) => e.is_recoverable(),
Self::PlanParse(_) => false,
Self::HookBlocked(_) | Self::LimitExceeded(_) | Self::Config(_) | Self::Other(_) => {
false
}
@@ -132,6 +137,11 @@ mod tests {
assert!(!AgentError::Other("unknown".into()).is_recoverable());
}
#[test]
fn plan_parse_not_recoverable() {
assert!(!AgentError::PlanParse("bad json".into()).is_recoverable());
}
#[test]
fn from_llm_via_question_mark() {
fn returns_llm() -> Result<(), LlmError> {