Replay a stored retry-loop execution trace through X-Ray.
The fixture contains a provider-backed retry workflow trace captured from a real multi-step execution.
CLI replay:
python -m cli.main examples/retry_loops/retry_loop_trace.jsonSDK replay:
python examples/retry_loops/retry_loop.pyOptional live-capture regeneration:
python examples/retry_loops/generate_retry_loop_trace.pyOptional fixture verification:
python examples/retry_loops/verify_retry_loop_example.pyThe trace demonstrates a retry-collapse pattern commonly observed in multi-step LLM workflows:
- retries continue
- reformulations vary slightly
- execution remains locally coherent
- token usage increases
- marginal contribution declines
This execution shape commonly appears in:
- retry loops
- recursive execution chains
- repeated tool-call workflows
- iterative refinement systems
- long-running agent orchestration
Example replay verdict:
[VERDICT]
Execution should have stopped at Step 2.
[WASTE]
68% of execution happened after peak contribution.
[TIMELINE]
Step 1 → Improving
Step 2 → Peak
Step 3 → Repeating
Step 4 → Repeating
Step 5 → Declining
The local replay UI visualizes execution trajectories, contribution progression, redundancy growth, and peak-step transitions from deterministic replay traces.
retry_loop_trace.jsonretry_loop_live_raw.json
examples/langchain_callback/examples/crewai_callback/examples/iterative_refinement/

