fischer-agentkit/src/agentkit
chiguyong 47a437c5e3
Test / backend-test (pull_request) Has been cancelled Details
Test / frontend-unit (pull_request) Has been cancelled Details
Test / api-e2e (pull_request) Has been cancelled Details
Test / frontend-e2e (pull_request) Has been cancelled Details
fix(experts): resolve residual review findings from PR #13
Addresses 4 actionable findings (1 P1 + 3 P2) from ce-code-review of
feat/ui-ue-enhancement (PR #13), now merged to main (8066e0b).

P1 — expert_step payload alignment (_phase_executor.py)
  The thinking/tool_call/tool_result event payloads were missing the
  fields the frontend WsServerMessage contract requires
  (expert_name/expert_color/content/step). Frontend code consuming these
  events silently degraded. Now all expert_step broadcasts carry the
  full contract; tool_call/tool_result keep step_data for the raw payload.

P2 #1 — execute_stream CancellationToken registration (config_driven.py)
  execute_stream() bypassed BaseAgent.execute() and never registered a
  CancellationToken, so cancel_task() could not cooperatively cancel a
  streaming task. Now registers the token and cleans it up in finally.

P2 #2 — team_synthesis orphan milestone cleanup (orchestrator.py)
  If synthesis streaming was interrupted (cancel/exception), no terminal
  team_synthesis event was emitted, leaving the frontend streaming
  milestone spinning forever. Now an inner try/except emits a terminal
  team_synthesis with status=cancelled|error before re-raising, so the
  frontend can finalize the milestone. The success path also carries
  the synthesis_id.

P2 #3 — synthesis_id dedup (orchestrator.py + types.ts + chatStream.ts)
  Without an identifier, the frontend could not precisely match a
  team_synthesis terminal event to its streaming milestone (especially
  across retries/concurrent teams). The backend now injects a stable
  synthesis_id (`{plan.id}:synthesis`) into both team_synthesis_chunk
  and team_synthesis events; the frontend uses it for exact milestone
  matching and treats error/cancelled status as terminal.

Test updates
  - Updated test_thinking_events_forwarded_as_expert_step to assert the
    new payload contract (expert_id/name/color/content/step).
  - Added test_tool_call_events_forwarded_as_expert_step covering
    tool_call/tool_result payload shape (content=tool_name摘要 +
    step_data=原始 payload).

Verification
  - ruff check: clean
  - pytest tests/unit/experts/test_phase_executor_streaming.py: 14/14
  - npm run typecheck: clean
  - vitest: 126/127 (1 unrelated baseline failure in tauri-auth.test.ts)

Residuals doc: docs/residual-review-findings/feat-ui-ue-enhancement.md
2026-07-01 13:26:19 +08:00
..
bitable refactor: follow-up tech debt cleanup (except Exception + Any 治理) (#9) 2026-07-01 03:03:02 +08:00
bus refactor: tech debt Wave 3+4 (tools/skills/mcp/rag/calendar/auth/cli/quality/channels/telemetry/session/bus/documents Any 治理) (#11) 2026-07-01 08:08:36 +08:00
calendar refactor: tech debt Wave 3+4 (tools/skills/mcp/rag/calendar/auth/cli/quality/channels/telemetry/session/bus/documents Any 治理) (#11) 2026-07-01 08:08:36 +08:00
channels refactor: tech debt Wave 3+4 (tools/skills/mcp/rag/calendar/auth/cli/quality/channels/telemetry/session/bus/documents Any 治理) (#11) 2026-07-01 08:08:36 +08:00
chat refactor: tech debt Wave 1+2 (except Exception 收尾 + core/experts Any 治理) (#10) 2026-07-01 03:54:53 +08:00
cli refactor: tech debt Wave 3+4 (tools/skills/mcp/rag/calendar/auth/cli/quality/channels/telemetry/session/bus/documents Any 治理) (#11) 2026-07-01 08:08:36 +08:00
client refactor: follow-up tech debt cleanup (except Exception + Any 治理) (#9) 2026-07-01 03:03:02 +08:00
core fix(experts): resolve residual review findings from PR #13 2026-07-01 13:26:19 +08:00
documents refactor: tech debt Wave 3+4 (tools/skills/mcp/rag/calendar/auth/cli/quality/channels/telemetry/session/bus/documents Any 治理) (#11) 2026-07-01 08:08:36 +08:00
evaluation feat(evaluation): U9 Ragas evaluation pipeline for RAG quality assessment 2026-06-06 22:49:27 +08:00
evolution refactor: tech debt Wave 1+2 (except Exception 收尾 + core/experts Any 治理) (#10) 2026-07-01 03:54:53 +08:00
experts fix(experts): resolve residual review findings from PR #13 2026-07-01 13:26:19 +08:00
llm refactor: follow-up tech debt cleanup (except Exception + Any 治理) (#9) 2026-07-01 03:03:02 +08:00
marketplace fix(review): comprehensive P0-P2 code review fixes 2026-06-12 22:18:25 +08:00
mcp refactor: tech debt Wave 3+4 (tools/skills/mcp/rag/calendar/auth/cli/quality/channels/telemetry/session/bus/documents Any 治理) (#11) 2026-07-01 08:08:36 +08:00
memory refactor: tech debt Wave 1+2 (except Exception 收尾 + core/experts Any 治理) (#10) 2026-07-01 03:54:53 +08:00
orchestrator refactor: follow-up tech debt cleanup (except Exception + Any 治理) (#9) 2026-07-01 03:03:02 +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 refactor: tech debt Wave 3+4 (tools/skills/mcp/rag/calendar/auth/cli/quality/channels/telemetry/session/bus/documents Any 治理) (#11) 2026-07-01 08:08:36 +08:00
rag_platform refactor: tech debt Wave 3+4 (tools/skills/mcp/rag/calendar/auth/cli/quality/channels/telemetry/session/bus/documents Any 治理) (#11) 2026-07-01 08:08:36 +08:00
router fix(router): keyword match tiebreaker should preserve list order, not alphabetical 2026-06-24 10:11:42 +08:00
server fix(experts): resolve residual review findings from PR #13 2026-07-01 13:26:19 +08:00
session refactor: tech debt Wave 3+4 (tools/skills/mcp/rag/calendar/auth/cli/quality/channels/telemetry/session/bus/documents Any 治理) (#11) 2026-07-01 08:08:36 +08:00
skills refactor: tech debt Wave 3+4 (tools/skills/mcp/rag/calendar/auth/cli/quality/channels/telemetry/session/bus/documents Any 治理) (#11) 2026-07-01 08:08:36 +08:00
telemetry refactor: tech debt Wave 3+4 (tools/skills/mcp/rag/calendar/auth/cli/quality/channels/telemetry/session/bus/documents Any 治理) (#11) 2026-07-01 08:08:36 +08:00
tools refactor: tech debt Wave 3+4 (tools/skills/mcp/rag/calendar/auth/cli/quality/channels/telemetry/session/bus/documents Any 治理) (#11) 2026-07-01 08:08:36 +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