feat(agent): Wave 2 medium coupling (G4/G7/G9) #5
Loading…
Reference in New Issue
No description provided.
Delete Branch "feat/agent-wave2-medium-coupling"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Wave 2 of advanced-agent gap optimization. 4 implementation units (U1-U4), 73 new tests, all ruff clean. Plan: docs/plans/2026-06-29-003-feat-agent-wave2-medium-coupling-plan.md
- 新增 agentkit/server/_fallback_chain.py: execute_with_fallback_chain Main (ReActEngine) → Recovery (ReflexionEngine) → Emergency (EmergencyRules) - chat.py send_message 用 chain 包装 react_engine.execute (KTD5) - ReflexionEngine 内部 ReAct 调用不走 chain (避免递归) - TaskCancelledError 直接传播, 不进入 Emergency (KTD3) - soft failure (empty_fallback/verify_failed) 也触发 Recovery - Recovery 失败/异常 → Emergency 用 EmergencyRules.classify 分类 - ServerConfig.from_dict 读取 fallback_chain.{recovery,emergency} - 17 个测试覆盖 Main/Recovery/Emergency 三层 + 配置