Planning Validator — Planning 验证器
v1.0.0Planning 验证器 — 验证s 代理 plans before execution to 预防 hallucinated planning 失败s. Use when: (1) validating multi-step plans, (2) 检查ing 工具 avAIlability, (3) 验证ing 权限s and dependencies, (4) ensuring plan feasibility before execution.
运行时依赖
安装命令
点击复制技能文档
Planning 验证器
验证s 代理 plans before execution to 预防 失败s from hallucinated assumptions about capabilities.
Problem: Hallucinated Planning SYMPTOMS: ├── Theoretically perfect plan ├── Assumes 访问 to 工具s/APIs without verification ├── FAIls at execution (no fallback) ├── Multi-代理s not coordinated └── No 验证 before execution
Solutions Implemented
- Multi-代理 验证器
- Explicit 工具 模式s
def 验证_工具_capabilities(工具, required_action): if required_action not in 工具_模式s[工具]['capabilities']: return False return True
- ConstrAInt Verification
- Clarification Before Assumption
Watchdogs Watchdog 角色 Threshold ICS Plan integrity >0.800 = 停止 CLW Lessons learned Pattern seen before = 警告 STC Tension >0.500 = 警告 Usage from planning_验证器 导入 Planning验证器
验证器 = Planning验证器()
# Before executing a plan plan = 创建_plan(objective)
验证 = 验证器.验证_plan(plan) if not 验证['valid']: fAIled_at = 验证['fAIled_at'] ask_for_clarification(f"Plan fAIled at: {fAIled_at}") else: 执行_plan(plan)
检查列出 Multi-代理 验证器 between steps Explicit 工具 模式s (capabilities + limitations) ConstrAInt verification Clarification before assumptions ICS watchdog re信息rced CLW watchdog (pattern 检测ion) User 应用roval for complex plans Files planning-验证器/ ├── 技能.md ├── scripts/ │ ├── planning_验证器.py │ ├── utils.py │ └── mAIn.py ├── data/ ├── 模型s/ └── tests/