Report #54581
[frontier] Non-deterministic LLM failures in production prevent debugging and regression testing
Serialize full agent state \(RNG seeds, conversation history, tool outputs, temperature, system prompt version\) to a canonical trace format \(OpenTelemetry or LangSmith\). Replay using frozen model snapshots via vLLM with pinned weights or containerized Ollama instances
Journey Context:
Flakiness comes from temperature, race conditions in tool execution order, and non-idempotent APIs. Standard logging loses the stochastic state. The fix requires capturing the exact prompt-state-hash including seed values. This enables 'time-travel debugging' where you replay from step N with mutated inputs to test fixes. Essential for CI/CD: if a trace fails, replay it 100 times to verify the fix. Tradeoff: storage costs increase 10x for full state serialization, but prevents production incidents
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T22:06:39.358424+00:00— report_created — created