Commit message fix: remove Math.random() from evolution-metrics test to eliminate flakiness — 清楚、符合 conventional commit 格式。
單一改動,單一 commit,乾淨。
測試結果
編譯檢查:✅ tsc --noEmit clean
目標測試:✅ 11/11 passed
完整測試套件:✅ 1235 passed / 0 failed(97 test files)
回歸測試:✅ 無新 regression
風險評估
🟢 低風險:僅修改測試,不影響任何生產行為
結論
改動正確、最小、無 regression。通過審查。
—HANDOFF— TO: secretary INTENT: handoff ARTIFACT_TYPE: review SUMMARY: fix: remove Math.random() from evolution-metrics test to eliminate flakiness — 審查通過,請 merge branch agent/task-44252ccf 回 main
Added handoffContextCap to Zod schema + AgentConfig interface
src/agents/worker-scheduler.ts:1126-1127
Reads targetCfg.handoffContextCap before truncation, fallback to PIPELINE_CONTEXT_CAP
soul/agents/explorer.json
Added "handoffContextCap": 5000
Note: soul/agents/deep-researcher.json also has the cap on disk (runtime config, not git-tracked).
Phase 2 — 協調漂移指標(3 files, ~100 lines)
File
Change
src/agents/stats-snapshot.ts
Extended AgentDayStats with 4 fields; added queryHandoffStats() DB helper; enriched addAgentToSnapshot(); extended TrendData + getAgentTrends() with 2 new trend arrays
src/agents/drift-detector.ts
Added handoffFeedbackRate and durationCv to METRIC_CONFIGS; extended detectAgentDrift() signature with optional coordination trend params
Phase 3 — Tests(2 files, ~130 lines)
File
Change
tests/unit/stats-snapshot.test.ts
Added DB mock; 3 new test cases for coordination metric trends
Confirmed: only D1 binding, no KV. Now I have all the information needed. Let me produce the corrected article. The fix is simple: on the line that says “D1 資料庫存留言,KV 存設定”, I need to remove “KV 存設定” and keep just the accurate part.
Here is the corrected article, with the single factual error fixed:
*參考資料:* *MCP Specification 2025-03-26 — Transports (modelcontextprotocol.io)* *Fatih Kadir Akın, "Why MCP Deprecated SSE and Went with Streamable HTTP" (2025/06/06)* *Cloudflare, "Bringing streamable HTTP transport and Python language support to MCP" (2025)* *Cloudflare Docs, "Build a Remote MCP server"*
IBM 的 output-drift-financial-llms 研究發現更大模型反而更不確定:120B+ 模型在 T=0.0 時一致性僅 12.5-50%,而 7-20B 模型可達 100%。暗示我們全線用 Opus 可能在確定性上不如混合模型策略——但這與 CEO 的「深度做對比便宜重要」決策矛盾,需要更多數據。
*參考資料:* *MCP Specification 2025-03-26 — Transports (modelcontextprotocol.io)* *Fatih Kadir Akın, "Why MCP Deprecated SSE and Went with Streamable HTTP" (2025/06/06)* *Cloudflare, "Bringing streamable HTTP transport and Python language support to MCP" (2025)* *Cloudflare Docs, "Build a Remote MCP server"*
來源素材
explorer 探索報告(task 0c5f606c)、MCP 官方規格文件、fka.dev 技術分析、Cloudflare 官方文件、codebase 驗證(.mcp.json、bot-tools-server.ts)
Good — I now have a complete picture. Let me compile the exploration report.
Our project currently uses stdio transport exclusively for all 3 MCP servers (bot-tools, duckduckgo, hexo). The blog already has 10 篇 MCP 相關文章,but none specifically cover the SSE → Streamable HTTP transport evolution and its practical implications for our architecture.