Bug Report: [Short Descriptive Title]
Date Reported: [YYYY-MM-DD]
Environment: Local (localhost) | Production (https://...)
Severity: Blocker (app unusable) | Major (feature broken) | Minor (visual/edge case)
Status: Investigating | Fix Verified | Closed
1. Summary: Expected vs. Actual Behavior
- Expected Behavior: [What should happen according to the PRD/Acceptance Criteria]
- Actual Behavior: [What actually happened instead]
2. Exact Steps to Reproduce
Write steps clear enough that someone else (or an AI agent) can trigger the exact bug every time.
- Go to
[page/URL] - Enter
[exact input]into[field] - Click
[button] - Observe
[what happens]
Reproducible? Always | Sometimes | Once so far
3. Evidence & Logs (Never Guess Without Logs!)
Browser DevTools (Console / Network Tab)
- Failing Request (if any):
[e.g., POST /api/habits -> 500 Internal Server Error] - Console Error:
[Paste exact browser console error here, or write "None"]
Server / Terminal Stack Trace
[Paste exact error message and first 10-15 lines of stack trace here]
4. Root Cause Analysis
(Complete AFTER inspecting the code—do NOT patch blindly.)
- File & Line Number:
[e.g., src/routes/habits.js:24] - Why It Happens: [Plain-English explanation of the root cause, not just the symptom]
5. Fix & Verification
- Branch / Commit:
[e.g., fix/blank-habit-validation] - What Changed: [Brief summary of minimal fix]
- Verification Checklist:
- Exact reproduction steps above no longer fail
- Logs / Browser Console show zero related errors
- Added regression test (unit or integration) so this bug stays fixed
- Neighboring features tested and still work