BMAD-METHOD/docs/improvements
Caleb c525d673fb feat(epic-execute): add BMAD_TRACE observability + telemetry rollup
Capture the telemetry the claude CLI already emits (session id, tokens,
cost, latency, context window) as OTel-shaped trace spans and roll them
up into deterministic metrics. Gated behind BMAD_TRACE=1; the legacy
text path is unchanged when tracing is off.

- New scripts/epic-execute-lib/observability.sh: span recording, rollup,
  jq dep enforcement, and an intra-phase heartbeat for crash forensics
- epic-execute.sh: stream-json capture in run_claude_to_file with clean
  .result extraction, per-phase set_span_context calls, rollup in cleanup
- epic-chain.sh: measured (non-fabricated) telemetry section in reports
- Guard set -e aborts on malformed stream lines so crash/timeout paths
  degrade gracefully instead of killing the run
- Docs: gap analysis + observability implementation plan

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-15 06:07:48 -05:00
..
party-mode-integration merge: sync with upstream/main (v6.0.0-Beta.8) 2026-02-10 14:09:21 -06:00
agent-loop-2026-gap-analysis.md feat(epic-execute): add BMAD_TRACE observability + telemetry rollup 2026-06-15 06:07:48 -05:00
epic-chain-report-proposal.md merge: sync with upstream/main (v6.0.0-Beta.8) 2026-02-10 14:09:21 -06:00
epic-workflows-v1.md merge: sync with upstream/main (v6.0.0-Beta.8) 2026-02-10 14:09:21 -06:00
observability-implementation-plan.md feat(epic-execute): add BMAD_TRACE observability + telemetry rollup 2026-06-15 06:07:48 -05:00
uat-implementation-plan.md merge: sync with upstream/main (v6.0.0-Beta.8) 2026-02-10 14:09:21 -06:00
uat-integration-architecture.md merge: sync with upstream/main (v6.0.0-Beta.8) 2026-02-10 14:09:21 -06:00
uat-workflow-implementation-gaps.md merge: sync with upstream/main (v6.0.0-Beta.8) 2026-02-10 14:09:21 -06:00