fischer-agentkit/src/agentkit
chiguyong b032e08866 feat(U3): extract _build_phase_engine helper + wire REST PLAN_EXEC
Extract the WS path's inline phase_policy construction into a shared
_build_phase_engine helper so the REST send_message endpoint can reuse
it. Replace the former 501 stub with actual PLAN_EXEC execution:

- REST POST /chat/sessions/{id}/messages with execution_mode=plan_exec
  now builds a phase-policy-backed ReActEngine, calls execute()
  (non-streaming), and returns a MessageResponse.
- KTD5: PLAN_EXEC bypasses execute_with_fallback_chain — phase policy
  and fallback chain are mutually exclusive.
- When plan_exec.enabled=False, REST falls through to the REACT path
  (matching WS behavior).
- WS path refactored to call the same helper; behavior unchanged.

Tests:
- Replace TestRestPlanExec501 with TestRestPlanExec (happy path, bad
  config → 500, disabled → falls through to REACT, REACT mode unchanged).
- Add TestBuildPhaseEngineHelper covering all return branches:
  not-PLAN_EXEC, disabled, empty-config, invalid-config, tool append,
  default-policy fallback.
- All 109 tests pass across the three PLAN_EXEC test files.
2026-06-30 10:59:43 +08:00
..
bitable feat(bitable): 多维表格文件层 + 默认字段 + 表内字段操作 + ce-code-review 修复 (Stage 1) 2026-06-29 04:07:45 +08:00
bus fix: resolve code review issues from deferred improvements 2026-06-11 13:49:02 +08:00
calendar fix(calendar): 修复 agent 创建日历事件后 UI 不刷新 + 文档化三根因三部曲 2026-06-29 02:20:33 +08:00
channels fix(security): P0 安全加固 + 多实例部署一致性 (U1-U4 + U5c) 2026-06-26 04:05:33 +08:00
chat fix(code-review): 修复走查发现的 13 High + Medium 安全/可靠性问题 2026-06-28 15:06:41 +08:00
cli feat(bitable): add bitable companion service with full P0-P2 fixes 2026-06-25 01:09:59 +08:00
client feat: 企业级客户端-服务端架构 + 代码审查修复 2026-06-20 06:48:18 +08:00
core feat(U2): emit phase_violation WS event alongside LLM reinjection 2026-06-30 10:48:35 +08:00
documents feat(documents): add document processing capability (U1-U9) 2026-06-23 15:05:01 +08:00
evaluation feat(evaluation): U9 Ragas evaluation pipeline for RAG quality assessment 2026-06-06 22:49:27 +08:00
evolution feat(skills): SkillHarness 前置条件 + 风险守卫学习增强 2026-06-24 18:56:51 +08:00
experts feat(agent): Wave 2 medium coupling (G4/G7/G9) (#5) 2026-06-30 09:09:33 +08:00
llm feat(agent): Wave 2 medium coupling (G4/G7/G9) (#5) 2026-06-30 09:09:33 +08:00
marketplace fix(review): comprehensive P0-P2 code review fixes 2026-06-12 22:18:25 +08:00
mcp fix(security): P0 安全加固 + 多实例部署一致性 (U1-U4 + U5c) 2026-06-26 04:05:33 +08:00
memory feat(skills): SkillHarness 前置条件 + 风险守卫学习增强 2026-06-24 18:56:51 +08:00
orchestrator feat(agent): Wave 2 medium coupling (G4/G7/G9) (#5) 2026-06-30 09:09:33 +08:00
org feat(marketplace): add Phase B/C - CostAwareRouter, OrganizationContext, AlignmentGuard, Soul Evolution, Auction, Server Integration 2026-06-10 19:09:02 +08:00
prompts fix(review): address all 14 P2 advisory findings 2026-06-06 18:20:46 +08:00
quality fix(review): apply code review fixes from ce-code-review 2026-06-16 00:24:14 +08:00
rag_platform feat(rag_platform): U8 — TaskIQ async task integration 2026-06-25 12:58:51 +08:00
router fix(router): keyword match tiebreaker should preserve list order, not alphabetical 2026-06-24 10:11:42 +08:00
server feat(U3): extract _build_phase_engine helper + wire REST PLAN_EXEC 2026-06-30 10:59:43 +08:00
session fix(review): comprehensive P0-P2 code review fixes 2026-06-12 22:18:25 +08:00
skills feat(bitable): add bitable companion service with full P0-P2 fixes 2026-06-25 01:09:59 +08:00
telemetry fix: resolve code review issues from deferred improvements 2026-06-11 13:49:02 +08:00
tools feat(U1): widen PhasePolicy bash_command_filter to accept Callable 2026-06-30 10:39:44 +08:00
utils fix(security,reliability): resolve all P2 findings from code review 2026-06-10 15:05:40 +08:00
__init__.py feat(agentkit): v2 Phase 1 - ReAct/LLM Gateway/Skill/Server + review fixes 2026-06-05 23:32:16 +08:00
__main__.py feat(cli): AgentKit CLI with serve/version/health/task/skill/init/usage 2026-06-06 12:45:51 +08:00