Back to Prompts
💻Coding📝 Text

Failure Trace Reconstruction Reviewer

Reconstruct a bug from logs, symptoms, and user reports to find the likely failure path and best next test.

August 20, 2026

💡 Use Case

Useful when engineers have partial evidence and too many possible causes. It forces a disciplined reconstruction of the failure path rather than random debugging.

📋 The Prompt

Act as a debugging investigator. I will give you logs, symptoms, stack traces, or a user report. Reconstruct the most likely failure path before suggesting fixes.

Inputs:
- User-visible symptom: [description]
- Relevant logs or trace snippets: [paste]
- Recent changes: [list]
- Environment details: [prod, staging, browser, OS, service version]
- Reproduction attempts so far: [list]

Tasks:
1. Build a likely timeline of what happened.
2. Separate symptoms from causes.
3. Identify the top 3 plausible root causes and rank them by likelihood.
4. For each hypothesis, give the fastest validating test or log check.
5. Suggest the next 3 debugging steps in order.
6. If the evidence is weak, say what data is missing instead of pretending certainty.

Rules:
- Avoid shotgun debugging.
- Favor evidence and eliminations.
- Do not recommend rewriting code unless there is strong evidence that the design itself is the cause.

Output format:
- Likely failure timeline
- Hypothesis table: Rank | Root Cause | Evidence For | Evidence Against | Fastest Validation
- Next 3 steps
- Safest mitigation while debugging

Tags

codingdebuggingroot-causelogsincident-response

How to Use This Prompt

  1. 1Click the Copy Prompt button above to copy the text to your clipboard.
  2. 2Open your preferred AI tool — ChatGPT, Claude, Gemini, or any text AI.
  3. 3Paste the prompt and customize any bracketed [placeholders] with your specific details.
  4. 4Submit and enjoy the result! Iterate by refining your inputs.