BMAD-METHOD/scripts/epic-execute-lib
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
..
INIT.md merge: sync with upstream v6.8.0 2026-05-26 06:00:02 -05:00
contract-exec.sh feat(epic-execute): wire contract validation gate + self-heal fix loop 2026-06-04 05:44:40 -05:00
contract-harness.sh feat(epic-execute): UI contract - ui: harness schema, preflight, test-id planning 2026-06-04 05:28:36 -05:00
decision-log.sh feat(epic-execute): add phase 2+3 improvements with modular architecture 2026-01-26 14:23:16 -06:00
design-phase.sh feat(epic-execute): UI contract - ui: harness schema, preflight, test-id planning 2026-06-04 05:28:36 -05:00
json-output.sh feat(epic-execute): domain-aware design (frontend/backend/fullstack lenses) 2026-06-03 06:25:00 -05:00
observability.sh feat(epic-execute): add BMAD_TRACE observability + telemetry rollup 2026-06-15 06:07:48 -05:00
regression-gate.sh feat(scripts): port memory-safe execution and reliability improvements from revive-dev 2026-04-12 11:52:39 -05:00
tdd-flow.sh feat(epic-execute): reconcile TDD test specs with design plan 2026-06-03 06:05:33 -05:00
test-failure-filter.sh feat(epic-execute): add test failure filtering and sync improvements from revive-dev 2026-02-10 13:49:55 -06:00
utils.sh feat(scripts): port memory-safe execution and reliability improvements from revive-dev 2026-04-12 11:52:39 -05:00