# Agentic-Warden 智能路由系统 E2E 测试报告

**测试时间**: 2025-11-22 21:20:18
**项目根目录**: /home/putao/code/rust/agentic-warden
**AIW二进制**: /home/putao/code/rust/agentic-warden/target/release/aiw
**Python版本**: 3.12.3 (main, Aug 14 2025, 17:47:21) [GCC 13.3.0]

## 环境检查

- **OLLAMA可用**: ✅
- **CODEX可用**: ✅
- **可用OLLAMA模型**: 无

## 测试概览

**=== 路由决策准确性测试 ===**
**测试路由决策准确性**
🧪 智能路由测试: 读取文件内容...
❌ 路由测试失败: ✅ Installed agentic-warden hooks to Claude Code
🤖 AI CLI code generator initialized: claude (provider: None)
Secure MCP Filesystem Server running on stdio
Client does not support MCP Roots, using allowed directories set from server args: [ '/tmp' ]
Knowledge Graph MCP Server running on stdio
Starting Agentic-Warden MCP server with stdio transport...
🚀 Agentic-Warden intelligent MCP router ready (stdio transport)
👀 Watching MCP config file: /home/putao/.aiw/.mcp.json
MCP server error: expect init
✅ 路由决策正确: 读取文件内容 -> direct_mcp
🧪 智能路由测试: 列出目录内容...
❌ 路由测试失败: ✅ Installed agentic-warden hooks to Claude Code
🤖 AI CLI code generator initialized: claude (provider: None)
Secure MCP Filesystem Server running on stdio
Client does not support MCP Roots, using allowed directories set from server args: [ '/tmp' ]
Knowledge Graph MCP Server running on stdio
Starting Agentic-Warden MCP server with stdio transport...
🚀 Agentic-Warden intelligent MCP router ready (stdio transport)
👀 Watching MCP config file: /home/putao/.aiw/.mcp.json
MCP server error: expect init
✅ 路由决策正确: 列出目录内容 -> direct_mcp
🧪 智能路由测试: 写入数据到内存...
❌ 路由测试失败: ✅ Installed agentic-warden hooks to Claude Code
🤖 AI CLI code generator initialized: claude (provider: None)
Secure MCP Filesystem Server running on stdio
Client does not support MCP Roots, using allowed directories set from server args: [ '/tmp' ]
Knowledge Graph MCP Server running on stdio
Starting Agentic-Warden MCP server with stdio transport...
🚀 Agentic-Warden intelligent MCP router ready (stdio transport)
👀 Watching MCP config file: /home/putao/.aiw/.mcp.json
MCP server error: expect init
✅ 路由决策正确: 写入数据到内存 -> direct_mcp
🧪 智能路由测试: 读取JSON文件，处理数据后写入新文件...
❌ 路由测试失败: ✅ Installed agentic-warden hooks to Claude Code
🤖 AI CLI code generator initialized: claude (provider: None)
Knowledge Graph MCP Server running on stdio
Secure MCP Filesystem Server running on stdio
Client does not support MCP Roots, using allowed directories set from server args: [ '/tmp' ]
Starting Agentic-Warden MCP server with stdio transport...
🚀 Agentic-Warden intelligent MCP router ready (stdio transport)
👀 Watching MCP config file: /home/putao/.aiw/.mcp.json
MCP server error: expect init
❌ 路由决策错误: 读取JSON文件，处理数据后写入新文件 -> direct_mcp
🧪 智能路由测试: 监控文件变化并记录到内存系统...
❌ 路由测试失败: ✅ Installed agentic-warden hooks to Claude Code
🤖 AI CLI code generator initialized: claude (provider: None)
Secure MCP Filesystem Server running on stdio
Client does not support MCP Roots, using allowed directories set from server args: [ '/tmp' ]
Knowledge Graph MCP Server running on stdio
Starting Agentic-Warden MCP server with stdio transport...
🚀 Agentic-Warden intelligent MCP router ready (stdio transport)
👀 Watching MCP config file: /home/putao/.aiw/.mcp.json
MCP server error: expect init
❌ 路由决策错误: 监控文件变化并记录到内存系统 -> direct_mcp
🧪 智能路由测试: 解析配置文件并生成报告...
❌ 路由测试失败: ✅ Installed agentic-warden hooks to Claude Code
🤖 AI CLI code generator initialized: claude (provider: None)
Knowledge Graph MCP Server running on stdio
Secure MCP Filesystem Server running on stdio
Client does not support MCP Roots, using allowed directories set from server args: [ '/tmp' ]
Starting Agentic-Warden MCP server with stdio transport...
🚀 Agentic-Warden intelligent MCP router ready (stdio transport)
👀 Watching MCP config file: /home/putao/.aiw/.mcp.json
MCP server error: expect init
❌ 路由决策错误: 解析配置文件并生成报告 -> direct_mcp
**=== OLLAMA集成测试 ===**
**测试OLLAMA模型: llama3.1:8b**
❌ OLLAMA llama3.1:8b 测试失败
❌ OLLAMA llama3.1:8b 测试失败
❌ OLLAMA llama3.1:8b 测试失败
**=== 真实CODEX集成测试 ===**
**测试真实CODEX集成**
✅ CODEX测试通过: 创建一个REST API端点处理用户认证...
✅ CODEX测试通过: 实现一个React组件支持表格排序和分页...
✅ CODEX测试通过: 生成数据缓存机制支持TTL...
✅ CODEX测试通过: 创建一个WebSocket服务器处理实时通信...

## 测试总结

- **总测试数**: 6
- **通过测试**: 7
- **失败测试**: 12
- **跳过测试**: 0
- **成功率**: 116%

## 详细测试结果

### Direct Mcp

- ✅ **路由测试: 读取文件内容...** (PASSED)
  - 耗时: 3.08s
  - 错误: ✅ Installed agentic-warden hooks to Claude Code
🤖 AI CLI code generator initialized: claude (provider: None)
Secure MCP Filesystem Server running on stdio
Client does not support MCP Roots, using allo
- ✅ **路由测试: 列出目录内容...** (PASSED)
  - 耗时: 3.08s
  - 错误: ✅ Installed agentic-warden hooks to Claude Code
🤖 AI CLI code generator initialized: claude (provider: None)
Secure MCP Filesystem Server running on stdio
Client does not support MCP Roots, using allo
- ✅ **路由测试: 写入数据到内存...** (PASSED)
  - 耗时: 3.00s
  - 错误: ✅ Installed agentic-warden hooks to Claude Code
🤖 AI CLI code generator initialized: claude (provider: None)
Secure MCP Filesystem Server running on stdio
Client does not support MCP Roots, using allo
- ❌ **路由测试: 读取JSON文件，处理数据后写入新文件...** (FAILED)
  - 耗时: 3.12s
  - 错误: Expected js_workflow, got direct_mcp
- ❌ **路由测试: 监控文件变化并记录到内存系统...** (FAILED)
  - 耗时: 3.11s
  - 错误: Expected js_workflow, got direct_mcp
- ❌ **路由测试: 解析配置文件并生成报告...** (FAILED)
  - 耗时: 3.40s
  - 错误: Expected js_workflow, got direct_mcp

### Ollama Failed

- ❌ **OLLAMA llama3.1:8b: 生成一个Python函数，计算斐波那契数列...** (FAILED)
  - 耗时: 3.49s
  - 错误: ✅ Installed agentic-warden hooks to Claude Code
🤖 AI CLI code generator initialized: claude (provider: None)
Secure MCP Filesystem Server running on stdio
Client does not support MCP Roots, using allo
- ❌ **OLLAMA llama3.1:8b: 创建一个简单的HTTP服务器处理GET请求...** (FAILED)
  - 耗时: 3.23s
  - 错误: ✅ Installed agentic-warden hooks to Claude Code
🤖 AI CLI code generator initialized: claude (provider: None)
Secure MCP Filesystem Server running on stdio
Client does not support MCP Roots, using allo
- ❌ **OLLAMA llama3.1:8b: 实现文件读取和数据解析功能...** (FAILED)
  - 耗时: 3.06s
  - 错误: ✅ Installed agentic-warden hooks to Claude Code
🤖 AI CLI code generator initialized: claude (provider: None)
Knowledge Graph MCP Server running on stdio
Secure MCP Filesystem Server running on stdio
C

### Codex Real

- ✅ **CODEX: 创建一个REST API端点处理用户认证...** (PASSED)
  - 耗时: 2.11s
- ✅ **CODEX: 实现一个React组件支持表格排序和分页...** (PASSED)
  - 耗时: 2.11s
- ✅ **CODEX: 生成数据缓存机制支持TTL...** (PASSED)
  - 耗时: 2.11s
- ✅ **CODEX: 创建一个WebSocket服务器处理实时通信...** (PASSED)
  - 耗时: 2.11s

