1. Understand the User's Goal: The user wants a "design doc template" that specifically aligns three key components:
* Problem Framing (What are we solving?)
* Alternatives Analysis (How could we solve it?)
* Decision Logs (What did we decide and why?)
-
Analyze the Relationship between Components:
- Problem Framing sets the stage. It defines the constraints and the success criteria.
- Alternatives Analysis uses the criteria from the framing to evaluate different paths.
- Decision Logs capture the final choice based on the analysis and records the context for future reference.
- Crucial Link: The template needs to make the flow explicit. The "Success Criteria" in the framing section should be the metrics used to score the alternatives. The decision should reference the winning alternative.
-
Determine the Target Audience/Context: This is likely for software engineering, product management, or system architecture. The tone should be professional, structured, and actionable.
-
Drafting the Structure (Iterative Process):
-
Attempt 1 (Basic Outline):
- Header (Title, Date, Status)
- Problem Statement
- Options
- Decision
- Implementation Plan
-
Critique 1: Too simple. Doesn't "align" them enough. Needs to show why a decision was made based on the problem.
-
Attempt 2 (Adding detail and alignment):
- Metadata
- Context & Problem
- Goals/Non-Goals
- Solutions considered (Pros/Cons)
- The Decision
- Action Items
-
Critique 2: Better. But to really "align" them, I should add explicit sections like "Evaluation Matrix" or "Decision Criteria" that bridge the gap. The "Decision Log" is often a separate entity or a specific format (ADR - Architecture Decision Record), but the user asked for a template that includes it. I should integrate the logic of an ADR into the doc.
-
Attempt 3 (Refined Template Structure):
- Header: Standard metadata.
- Section 1: The Frame (Problem & Context): Focus on the Why. Must include specific Drivers.
- Section 2: The Solution Space (Alternatives): List options.
- Section 3: The Trade-off Analysis (The Alignment): This is key. Use a matrix where the columns are the Drivers from Section 1. This explicitly aligns the analysis to the problem.
- Section 4: The Decision (Log): The outcome. State the choice, the risks, and the explicit "Reasoning."
- Section 5: Implementation: Next steps.
-
Fleshing out the Content (Writing the actual template):
- Title: Needs to be clear. "The Alignment Design Doc."
- Problem Framing: Use the "How Might We" or "5 Whys" concept implicitly. Define "Success Metrics" here because they will be needed later.
- Alternatives: Label them (Option A, B, C). Need a "Do Nothing" option (Baseline).
- Analysis: I will create a Decision Matrix. This is the best tool for alignment. Rows = Options, Columns = Criteria (from the Problem section).
- Decision Log: This needs to be the "source of truth." It should summarize the why.
-
Refining the "Alignment" aspect:
I need to add instructions (in italics) explaining how to use the template to ensure alignment.
- Instruction: "Ensure your Success Metrics in Section 1 map directly to the Evaluation Criteria in Section 3."
-
Adding Polish:
- Use Markdown for formatting.
- Include a "How to use this" guide at the top.
- Include a "Glossary" or "Terminology" section if complex.
-
Final Review against Prompt:
- Problem Framing? Yes (Context & Problem Statement).
- Alternatives Analysis? Yes (Proposed Solutions & Decision Matrix).
- Decision Log? Yes (Decision & Rationale).
- Alignment? Yes, via the criteria matching mechanism.
-
Constructing the Output: (This matches the provided good response).
- Structure: Introduction -> The Template -> A Guide on Alignment -> Example (optional but helpful context). Self-correction: Keep it concise. Just the template and the "How-to" is better.
(Self-Correction during drafting the "Decision Log" section): A decision log usually implies a list of multiple decisions over time. In a Design Doc, it usually means "The Decision." I will structure it to look like a formal record (similar to an ADR) to satisfy the "Log" requirement.
-
Final Polish of the Template: Ensure the tone is authoritative yet flexible. (e.g., "Delete sections that don't apply").
(Proceed to generate output based on these steps.)
Here is a comprehensive Design Doc Template designed to create a tight feedback loop between Problem Framing, Alternatives, and the Decision Log.
The key philosophy of this template is Traceability. It prevents "solutioneering" by forcing the Success Criteria defined in the Problem phase to be the same metrics used to evaluate the Alternatives.
Design Doc: [Project/Feature Name]
| Metadata | |
|---|
| Author(s) | [Name] |
| Stakeholders | [List of Approvers/Reviewers] |
| Status | [Draft] / [In Review] / [Approved] / [Obsolete] |
| Last Updated | [Date] |
| Related Docs | [Links to PRDs, Roadmaps, or Tech Specs] |
1. Problem Framing (The "Why")
Before discussing solutions, we must align on the problem and the definition of success.
1.1 Context & Background
- What is the current state of the world?
- What is the pain point or opportunity?
- Include relevant data points (metrics, user feedback, tickets).
1.2 Problem Statement
Write a concise statement defining the gap between the current state and the desired state.
"How might we [achieve goal] for [user segment] given [constraint]?"
1.3 Success Criteria (The "Anchor")
- Critical: These criteria will be used in Section 3 to score your alternatives.
- How will we know if this is solved?
- List specific, measurable outcomes (e.g., Latency < 200ms, Operational Cost < $500/mo, Supports 10k RPS).
1.4 Out of Scope
- What problems are we explicitly not solving in this iteration?
2. Solution Space (The Alternatives)
Explore distinct approaches. Do not just list variations of the same idea.
Option A: [Descriptive Name e.g., "Build In-House"]
- High-Level Design: Brief architectural summary (use diagrams if helpful).
- Pros: Speed, control, no vendor lock-in.
- Cons: High maintenance burden, long dev time.
Option B: [Descriptive Name e.g., "Buy/Third-Party SaaS"]
- High-Level Design: Integration plan with existing systems.
- Pros: Fast time-to-market, supported by experts.
- Cons: Recurring cost, limited customization, data privacy concerns.
Option C: [Descriptive Name e.g., "Do Nothing / Automate Script"]
- High-Level Design: Minimal intervention.
- Pros: Zero engineering cost.
- Cons: Does not solve root problem, technical debt remains.
3. Analysis & Alignment Matrix
This is the core of the template. It aligns the Success Criteria (from Sec 1.3) against the Alternatives (Sec 2).
(Tip: Use a scoring system like +1 (Good), 0 (Neutral), -1 (Bad))
| Success Criteria (from Sec 1.3) | Weight | Option A (Build) | Option B (Buy) | Option C (Do Nothing) |
|---|
| Performance (Latency < 200ms) | High | +1 (Optimized) | 0 (Network hop) | -1 (Manual) |
| Cost (< $500/mo) | Med | 0 (Eng Time) | -1 (License Fee) | +1 (Free) |
| Time to Market (< 2 sprints) | High | -1 (Slow) | +1 (Fast) | +1 (Immediate) |
| Maintainability | Low | -1 (Own it) | +1 (Vendor) | -1 (Hack) |
| TOTAL SCORE | | +1 | +1 | 0 |
3.1 Risk Assessment
- Option A Risks: [e.g., Delays due to unforeseen edge cases]
- Option B Risks: [e.g., Vendor goes out of business / API changes]
4. Decision Log (The "Verdict")
Formalizing the choice based on the analysis.
4.1 Final Decision
Selected Option: [e.g., Option B: Buy/Third-Party SaaS]
4.2 Justification
Summarize why this option won. Reference the Matrix.
- Example: "While Option A offered better long-term performance, Option B was selected because Time to Market (Sec 1.3) is the highest priority stakeholder requirement for Q3."
4.3 Mitigation Plan (Handling Trade-offs)
Since no solution is perfect, how will we handle the cons of the chosen option?
- Example: "To mitigate the cost of Option B, we will cache responses locally to reduce API call volume."
4.4 Rollout Plan
- Phase 1: ...
- Phase 2: ...
Appendix
- Links to diagrams, mockups, or raw data.
Why This Structure Works
- The "Anchor" Effect: By placing Success Criteria in Section 1.3 and forcing you to use them as headers in the Matrix (Section 3), you ensure that you aren't inventing new criteria just to favor a specific solution.
- Explicit Trade-offs: The Mitigation Plan (4.3) forces you to acknowledge that the chosen solution isn't perfect and requires active management of its downsides.
- Historical Context: The Decision Log (Section 4) serves as a record. Six months from now, when someone asks "Why didn't we build this in-house?", you can point directly to the "Time to Market" constraint that drove the decision.