Lesson Learned: [Title]
Date: YYYY-MM-DD Category: [architecture|process|patterns|debugging] Version: 1.0
Problem
[Describe the specific problem encountered]
Context:
- [Project or feature area]
- [Triggering conditions]
- [Initial symptoms]
Impact:
- [How this affected the project]
- [Who was affected]
- [Severity level]
Root Cause
[Explain why the problem happened]
Analysis:
- [Contributing factor 1]
- [Contributing factor 2]
- [Root cause identification]
Evidence:
- [Data or observations that led to this conclusion]
- [Debugging steps taken]
Solution
[Describe how the problem was solved]
Implementation
Approach: [High-level solution strategy]
Key Components:
- [Component 1 description]
- [Component 2 description]
- [Component 3 description]
Code Changes:
[Example code snippets if applicable]
Configuration:
[Example configuration if applicable]
Verification
[How the solution was validated]
Test Cases:
- [Test case 1]
- [Test case 2]
Results:
- [Before measurements]
- [After measurements]
- [Success criteria met]
Prevention System
[How to prevent this problem in the future]
Immediate Prevention:
- [Automated checks added]
- [Validation added]
- [Documentation updated]
Systematic Prevention:
- [Process changes]
- [Architecture changes]
- [Monitoring added]
Replication Pattern
[Abstract pattern for applying this solution elsewhere]
For Other Projects
When to Apply:
- [Trigger condition 1]
- [Trigger condition 2]
Universal Pattern:
- [Step 1 — abstract, no project specifics]
- [Step 2 — abstract, no project specifics]
- [Step 3 — abstract, no project specifics]
Customization Points:
- [What to adapt for different contexts]
- [What to keep universal]
Example Application
Scenario: [Generic scenario description]
Implementation:
[Generic code example]
External References
Sources consulted while solving this problem:
-
Article Title — Accessed: YYYY-MM-DD
- Context: Used for understanding [specific concept]
- Key insight: [What we learned from this source]
-
Documentation Page — Accessed: YYYY-MM-DD
- Context: Referenced for [specific implementation detail]
- Key insight: [What we learned from this source]
Related Documentation
Knowledge Graph:
- Link to KG entry — [Brief context]
Architecture Decisions:
- Link to ADR — [Decision context]
Other Lessons:
- Link to related lesson — [Relation]
Meta-Issues:
- Link to meta-issue — [Context if part of larger investigation]
Lessons & Takeaways
Key Insights:
- [Insight 1]
- [Insight 2]
- [Insight 3]
What Worked:
- [Success factor 1]
- [Success factor 2]
What Didn't Work:
- [Failed approach 1]
- [Failed approach 2]
If We Had to Do It Again:
- [What we'd change]
- [What we'd keep the same]
Version: 1.0 Created: YYYY-MM-DD Last Updated: YYYY-MM-DD