Your Claude application is producing inconsistent outputs for similar inputs, even when using the same model and prompt. You want to debug the issue systematically.Your debugging approach would...
Answer: D
Explanation
Capturing full traces and comparing runs is correct because systematic debugging requires complete evidence about every factor that influences the output. A full trace records the exact input, the system prompt, the entire list of user and assistant messages, any tool calls and results, the model's output, and all parameters such as model version, temperature, and max_tokens. With this information captured for both consistent and inconsistent runs, the team can compare them side by side and identify what actually differs. Inconsistency that seems to come from the model often turns out to have a concrete cause, such as slight variations in input formatting, different retrieved context, changes in conversation history, a different prompt version, or parameter settings that are not as uniform as assumed. If every input is truly identical, the comparison confirms that sampling variability is the cause, guiding targeted fixes like adjusting temperature or adding validation. This trace-based approach replaces guesswork with data, makes problems reproducible, and leads to fixes that address the real root cause of inconsistent outputs.