A bug shows up in about one run out of ten.
You cannot make it happen on demand.
- ALabel it flaky and move on to reproducible work
- BRun the whole suite a hundred times in CI at a higher temperature until it fails again, then read the logs of whichever run happened to break
- CReplay the exact recorded inputs from the failing trace with the sampling pinned, then bisect
- DAdd more logging and wait for it to happen in production
Answer: C
Replay the exact recorded inputs from the failing trace with the sampling pinned, then bisect
Why
One in ten is not «unreproducible» - it is «reproduced once, and you kept the recording». A trace holds the exact inputs; replaying them with sampling fixed removes the randomness you were fighting. Repeating the run a hundred times only re-rolls the dice.
More on Way of the Agent
- Course programThe first three modules are free: start in the browser or the app, no card needed.
- Library: guides, skills and promptsReady prompt templates, grouped into collections.
- AI ChroniclesSourced stories from the history of AI.
- ConceptsPlain-language explainers of agent engineering.
- Learn AI agentsApps and courses for learning AI agents, compared honestly.
Real situations from building agents - with the answer and why.
Solve a new one every day on the Path