fischer-agentkit/docs/plans
chiguyong cac9c73dd5 fix(routing): U1-U6 路由优化 + 修复方案 + 代码审查修复
实现 6 个修复单元(U1-U6)并应用 ce-code-review 发现的 5 项安全修复。

## U1: benchmark 超时阈值
- 按 difficulty 分级超时:easy=45s, medium=60s, hard=90s
- 替换原单一 60s 硬编码

## U2: OpenAICompatibleProvider httpx 超时
- 新增 timeout 参数(默认 120s),替换硬编码 60s
- ProviderConfig.timeout 透传到 Provider
- 新增 2 项单元测试

## U3: 激活 QualityGate skill_match 校验
- BaseAgent._build_skill_context() 构造 skill_context
- 在 base.py / tasks.py / runner.py 三处传入 QualityGate.validate()

## U4: 添加 disambiguation_keywords 字段
- IntentConfig 新增 disambiguation_keywords 字段
- 8 个 skill YAML 补充该字段

## U5: 优化 RequestPreprocessor 路由正则
- 拆分 _FACTUAL_RE 为 CN/EN 双正则(中文无空格)
- 新增 _MATH_RE / _TRANSLATION_RE 纯模式
- _TOOL_CONTEXT_RE 排除需要工具的实时查询
- 多行输入守卫 + 结尾标点支持
- 新增 21 项单元测试(共 40 项全通过)

## U6: 重新基准测试
- 真实 LLM benchmark:准确率 60% -> 93.3%
- 4/5 通过,p50=40.8s,一致性=100%
- 旧基线备份至 baseline_2026-06-17_old_arch.json

## ce-code-review 修复(5 项)
- 修复 \s 字符类匹配换行符的安全隐患
- 添加事实/数学正则的结尾标点支持
- 修复 geo_optimizer.yaml 关键词重复
- 修复 _login_with_retry 不可达 return
- 修复 real_llm_server fixture stderr_fh 资源泄漏

测试:tests/unit/chat/ 63 项全通过,ruff 检查通过。
2026-06-20 19:31:49 +08:00
..
2026-06-05-001-feat-agentkit-tdd-validation-plan.md feat(agentkit): v2 Phase 1 - ReAct/LLM Gateway/Skill/Server + review fixes 2026-06-05 23:32:16 +08:00
2026-06-05-002-design-agentkit-v2-architecture.md feat(agentkit): v2 Phase 1 - ReAct/LLM Gateway/Skill/Server + review fixes 2026-06-05 23:32:16 +08:00
2026-06-05-003-feat-agentkit-v2-phase1-plan.md feat(agentkit): v2 Phase 1 - ReAct/LLM Gateway/Skill/Server + review fixes 2026-06-05 23:32:16 +08:00
2026-06-05-004-geo-migration-mode-a.md feat(agentkit): v2 Phase 1 - ReAct/LLM Gateway/Skill/Server + review fixes 2026-06-05 23:32:16 +08:00
2026-06-05-005-refactor-agentkit-framework-hardening.md feat(agentkit): v2 Phase 1 - ReAct/LLM Gateway/Skill/Server + review fixes 2026-06-05 23:32:16 +08:00
2026-06-05-006-refactor-agentkit-v2-phase2-plan.md feat(agentkit): v2 Phase 1 - ReAct/LLM Gateway/Skill/Server + review fixes 2026-06-05 23:32:16 +08:00
2026-06-05-007-feat-agentkit-cli-deployment-plan.md feat(cli): AgentKit CLI with serve/version/health/task/skill/init/usage 2026-06-06 12:45:51 +08:00
2026-06-06-008-feat-agentkit-phase3-upgrade-plan.md docs: mark Phase 3 upgrade plan as completed 2026-06-06 17:18:07 +08:00
2026-06-06-009-feat-agentkit-rag-optimization-plan.md feat(memory): RAG pipeline optimization — 5 Implementation Units 2026-06-06 19:27:09 +08:00
2026-06-06-010-feat-agentkit-phase4-production-plan.md feat(agentkit): Phase 4 enterprise production upgrade — 12 Implementation Units 2026-06-06 21:51:04 +08:00
2026-06-06-011-feat-agentkit-phase5-intelligence-plan.md docs: mark Phase 5 plan as completed 2026-06-06 22:53:14 +08:00
2026-06-07-012-feat-agentkit-phase6-toolkit-plan.md docs: mark Phase 6 plan as completed 2026-06-07 17:27:01 +08:00
2026-06-07-013-feat-agentkit-phase7-headroom-plan.md docs: mark Phase 7 Headroom integration plan as completed 2026-06-07 18:21:27 +08:00
2026-06-07-014-fix-agentkit-p0-review-fixes-plan.md fix(agentkit): resolve all P0/P1/P2/P3 issues from code review 2026-06-07 22:05:18 +08:00
2026-06-07-015-feat-agentkit-phase8-chat-adaptive-plan.md feat: accumulated frontend enhancements, docs, and static assets 2026-06-14 16:35:01 +08:00
2026-06-08-016-feat-agentkit-layered-memory-plan.md feat: accumulated frontend enhancements, docs, and static assets 2026-06-14 16:35:01 +08:00
2026-06-09-017-feat-agentkit-multi-agent-marketplace-plan.md feat: accumulated frontend enhancements, docs, and static assets 2026-06-14 16:35:01 +08:00
2026-06-10-018-fix-agentkit-p2-hardening-plan.md fix(security,reliability): resolve all P2 findings from code review 2026-06-10 15:05:40 +08:00
2026-06-10-019-feat-agentkit-deferred-improvements-plan.md fix: resolve code review issues from deferred improvements 2026-06-11 13:49:02 +08:00
2026-06-12-020-feat-pipeline-adversarial-loop-plan.md feat: accumulated frontend enhancements, docs, and static assets 2026-06-14 16:35:01 +08:00
2026-06-12-021-feat-chat-response-speed-optimization-plan.md feat: optimize chat response speed for sub-1s first token latency 2026-06-12 13:15:06 +08:00
2026-06-12-022-feat-agentkit-phase9-integrated-next-stage-plan.md feat: accumulated frontend enhancements, docs, and static assets 2026-06-14 16:35:01 +08:00
2026-06-12-023-feat-frontend-productization-plan.md feat: frontend productization with code review fixes 2026-06-13 01:29:58 +08:00
2026-06-13-001-feat-gui-productization-plan.md feat: accumulated frontend enhancements, docs, and static assets 2026-06-14 16:35:01 +08:00
2026-06-13-001-refactor-gui-redesign-plan.md docs: mark GUI redesign plan as completed 2026-06-13 03:01:31 +08:00
2026-06-13-003-feat-platform-experience-upgrade-plan.md feat: accumulated frontend enhancements, docs, and static assets 2026-06-14 16:35:01 +08:00
2026-06-13-004-feat-tauri-desktop-client-plan.md feat(client): add Tauri 2.x desktop client with sidecar process management 2026-06-14 10:06:12 +08:00
2026-06-14-001-feat-expert-team-mode-plan.md feat: Expert Team Mode — plan-execute collaboration with conversation UI 2026-06-14 22:20:14 +08:00
2026-06-14-001-feat-p0-production-hardening-plan.md feat: accumulated frontend enhancements, docs, and static assets 2026-06-14 16:35:01 +08:00
2026-06-14-002-u1-llm-cache-architecture.md feat: accumulated frontend enhancements, docs, and static assets 2026-06-14 16:35:01 +08:00
2026-06-14-003-u2-llm-cache-integration.md feat: accumulated frontend enhancements, docs, and static assets 2026-06-14 16:35:01 +08:00
2026-06-14-004-u3-semantic-router.md feat: accumulated frontend enhancements, docs, and static assets 2026-06-14 16:35:01 +08:00
2026-06-15-001-feat-autonomous-task-execution-plan.md feat: autonomous task execution - connect PlanExecEngine + TeamOrchestrator 2026-06-15 12:41:32 +08:00
2026-06-15-002-feat-e2e-capability-improvement-plan.md refactor: eliminate routing layer, align with industry best practices 2026-06-17 10:44:40 +08:00
2026-06-15-003-feat-router-intelligence-optimization-plan.md refactor: eliminate routing layer, align with industry best practices 2026-06-17 10:44:40 +08:00
2026-06-15-004-feat-semantic-router-and-benchmark-upgrade-plan.md refactor: eliminate routing layer, align with industry best practices 2026-06-17 10:44:40 +08:00
2026-06-16-005-backtest-report.md refactor(router): replace CostAwareRouter with SimpleRouter and prompt-based tool calling 2026-06-16 03:31:05 +08:00
2026-06-16-005-code-review-fixes.md refactor(router): replace CostAwareRouter with SimpleRouter and prompt-based tool calling 2026-06-16 03:31:05 +08:00
2026-06-16-005-reasoning-verification.md refactor(router): replace CostAwareRouter with SimpleRouter and prompt-based tool calling 2026-06-16 03:31:05 +08:00
2026-06-16-005-refactor-routing-architecture-plan.md refactor(router): replace CostAwareRouter with SimpleRouter and prompt-based tool calling 2026-06-16 03:31:05 +08:00
2026-06-16-006-refactor-architecture-optimization-evolution-plan.md refactor: eliminate routing layer, align with industry best practices 2026-06-17 10:44:40 +08:00
2026-06-17-001-feat-board-meeting-mode-plan.md feat: 私董会讨论模式 + 回测集成 + WS持久化修复 2026-06-17 23:52:53 +08:00
2026-06-17-001-fix-benchmark-failures-root-cause-plan.md fix: resolve benchmark failures from root cause (LLM timeout, WebSocket, latency stats) 2026-06-17 13:32:54 +08:00
2026-06-17-002-fix-ws-task-persistence-plan.md feat: 私董会讨论模式 + 回测集成 + WS持久化修复 2026-06-17 23:52:53 +08:00
2026-06-17-003-feat-team-pipeline-integration-plan.md docs: U3+U10 更新 AGENTS.md 流水线模式文档 + 计划状态改为 completed 2026-06-18 03:04:47 +08:00
2026-06-19-001-feat-chat-area-vi-redesign-plan.md feat: 企业级客户端-服务端架构 + 代码审查修复 2026-06-20 06:48:18 +08:00
2026-06-19-002-enterprise-client-server-architecture-plan.md feat: 企业级客户端-服务端架构 + 代码审查修复 2026-06-20 06:48:18 +08:00
2026-06-19-003-feat-enterprise-client-server-evolution-plan.md feat: 企业级客户端-服务端架构 + 代码审查修复 2026-06-20 06:48:18 +08:00
2026-06-20-001-fix-regression-issues-routing-optimization-plan.md fix(routing): U1-U6 路由优化 + 修复方案 + 代码审查修复 2026-06-20 19:31:49 +08:00