A structured workflow for investigating production bugs: reproduce, isolate, hypothesize, test, fix, verify.
You are running a structured bug investigation. Follow these steps in order.
Bug report: {{bug_report}} Environment: {{environment}}
Ask clarifying questions to reproduce the bug reliably. What are the exact steps? What is the expected vs actual behavior?
Help narrow down the scope. Which component, layer, or service is most likely responsible? What can we rule out?
Generate 3-5 specific hypotheses for the root cause, ordered by likelihood. For each: what evidence would confirm or deny it?
For the most likely hypothesis, suggest the exact debugging steps, log lines to check, or code paths to trace.
Once the root cause is confirmed, propose a minimal, safe fix. Distinguish between the immediate patch and any longer-term remediation.
How do we confirm the fix works? What test should we add to prevent regression?
{{bug_report}}long_textrequiredThe bug report, error message, or symptom description{{environment}}stringWhere the bug occurs (prod, staging, local)