Files
Arcrun/cypher-executor
Leo 8b54ebb68a feat(cypher-executor): step-level telemetry (LI roadmap 2026-W19 建議)
對應第一份 arcrun-roadmap (block id e924c231) 提的:
  「mira_feed_watcher 執行時間偏長(~35秒),無 error 資訊
    建議:加入 checkpoint/step-level telemetry,監測瓶頸」

新增 TelemetryEvent:
  - node_success — 單一 Component node 跑完
  - node_failure — 單一 Component node 失敗

寫入點:GraphExecutor.executeNode catch + 最終 trace.push 之後
  - 只記 node.type === 'Component'(Input/Output 跳過避免噪音)
  - 含 workflow_name + component_id + duration_ms + (error_code on fail)
  - fire-and-forget, 不擋主流程

實測(wiki_synthesis trigger 後):
  - 4 個 node_success blocks 寫入 KBDB (4 個 kbdb_get)
  - duration 範圍 653ms-2003ms,立刻看到誰是瓶頸
  - paused 的 classify (claude_api) 不算 success(trace 已記 paused 狀態)

下次 weekly_review compose_review 會看到 component-level breakdown,
能寫出「kbdb_get 平均 X ms、claude_api 平均 Y ms」等更細的分析。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-16 21:47:15 +08:00
..