A flight recorder is the right instinct, because the question after a bad action is always what the agent believed at that moment, not only what it did. Capturing the retrieved context and the tool arguments alongside the decision is what makes the replay worth anything. When you replayed the $400 case, was the fault in retrieval or in the reasoning over correct context?