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}}
---
## Step 1: Reproduce
Ask clarifying questions to reproduce the bug reliably. What are the exact steps? What is the expected vs actual behavior?
## Step 2: Isolate
Help narrow down the scope. Which component, layer, or service is most likely responsible? What can we rule out?
## Step 3: Hypothesize
Generate 3-5 specific hypotheses for the root cause, ordered by likelihood. For each: what evidence would confirm or deny it?
## Step 4: Investigate
For the most likely hypothesis, suggest the exact debugging steps, log lines to check, or code paths to trace.
## Step 5: Fix
Once the root cause is confirmed, propose a minimal, safe fix. Distinguish between the immediate patch and any longer-term remediation.
## Step 6: Verify & Prevent
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)