The Discovery phase is the foundation of the entire software development lifecycle. Skipping or rushing this phase risks building the "wrong thing" very efficiently — and that is actually more dangerous than building the wrong thing slowly, because the losses appear faster and larger. The primary goal is not just listing features, but aligning business goals, user needs, and technical constraints in one document that all parties can reference.
1. Definition & Scope
In this phase, we define a clear Problem Statement. We must answer three questions in one sentence: "What problem are we solving, for whom, and how do we know it's done?"
Key activities include:
- User Interviews — at least 5 deep conversations with target users. Focus on "tell me about the last time you experienced this problem", not "what features do you want". The first produces behavioral data, the second produces an unprioritized wishlist.
- User Personas — 2-3 personas representing different segments. Each persona has a name, role, goal, and concrete pain point. Generic personas ("tech-savvy users aged 25-40") are useless.
- Competitor analysis and market research — not to copy, but to understand the status quo. If 10 competitors have already solved the same problem well, we need a strong reason to build the 11th.
- Product Requirement Document (PRD) — a living document, not a one-time write.
- Threat Modeling (New Branch) — identifying valuable assets, potential attack vectors, and data classification (PII, GDPR) before a single line of code is written. For a site like saturumah.net that has an admin panel, contact form, and comments, the minimum threat model must cover: who can read/write what, where data is stored, and how sessions are verified.
- AI Feasibility & Model Risk (New Branch) — if the project involves AI, evaluate whether the problem truly requires AI, and analyze model hallucination risks and inference costs. Concrete example: SHALA uses 11 AI providers with a fallback chain because any single provider can go down at any time — this multi-provider decision must be made at the discovery phase, not after production goes down.
2. Artifacts
- PRD (Product Requirement Document) — a living document detailing features, user stories, and acceptance criteria. Minimum format: 1 paragraph problem statement, 1 user story list ("As X, I want Y, so that Z"), 1 acceptance criteria list per story, 1 out-of-scope list.
- Wireframes / Low-Fidelity Mockups — rough sketches of user flows. Don't need to be polished, the goal is finding dead ends before coding.
- Risk Register — a list of technical and business risks with their mitigations. Each risk has probability × impact = score. High-score risks go to the mitigation priority.
- Data Classification Matrix — a map of what data will be stored, processed, and who can access it. Example: user email column = PII = restricted to admin; view count column = non-PII = public.
3. Tools & Rationale
- Miro / FigJam — for collaborative brainstorming and User Journey Mapping. Why not physical whiteboard: remote access, automatic versioning, comment thread per sticky note.
- Notion / Obsidian — for storing PRDs and research documentation in a centralized location. Obsidian is better for solo devs (local, fast, pure markdown); Notion is better for teams (collaborative editing, database relations).
- OWASP Threat Dragon — an open-source tool for creating Threat Modeling diagrams (STRIDE). Alternative: Microsoft Threat Modeling Tool (Windows-only) or a plain spreadsheet for small projects. What matters is not the tool, but the discipline of mapping assets × threats × mitigations.
4. Common Pitfalls
- "We'll figure it out later" — skipping user research and guessing features. This is a recipe for scope creep and release failure. Reality: features considered important before research often turn out not to be what users actually use after release.
- Ignoring Non-Functional Requirements (NFRs) — forgetting to define latency, availability, or scalability targets early on. NFRs not set at this phase will surface as "performance bugs" in production — and the retrofit cost is 10× more expensive.
- Solution looking for a problem — being overly fixated on one technology (e.g., "We must use React/AI") before the problem is well-defined. Choose the tech stack after the problem statement is clear, not the other way around.
- Threat model as a formality — filling in the STRIDE template without actually thinking about attack surface. Result: CSRF or path traversal bugs only discovered after production goes live.
- PRD written once, never updated — a good PRD is a living document. If features change but the PRD doesn't, that document becomes a dead artifact that misleads.
5. Action Checklist
- [ ] Is the Problem Statement approved by stakeholders?
- [ ] Are the primary User Personas defined (with name, role, pain point)?
- [ ] Have at least 5 user interviews been conducted?
- [ ] Is the initial Threat Model (at least data classification) created?
- [ ] Are success metrics (KPIs/OKRs) established?
- [ ] Are NFRs (e.g., latency < 200ms, 99.9% uptime) agreed upon?
- [ ] Is the out-of-scope list explicit (what will NOT be built)?
- [ ] Does the PRD have an updatable format (not a static PDF)?
- [ ] Does the risk register have at least 5 items with mitigations?
- [ ] Is the tech stack chosen based on needs, not preference?
6. References
- Inspired: How To Create Products Customers Love — Marty Cagan.
- Continuous Discovery Habits — Teresa Torres (for the user interview framework).
- OWASP Threat Modeling Cheat Sheet.
- The Mom Test — Rob Fitzpatrick (how to ask questions without leading).
- Shape Up — Ryan Singer (for shorter discovery -> delivery cycles).
Top comments (0)