Design docs & RFCs
A design doc is a written proposal reviewed before you build: context, goals and non-goals, the design, real alternatives and trade-offs, so the expensive arguments happen on paper, not in production.
Analogy: A blueprint review: moving a wall on paper costs an eraser; moving it after the concrete is poured costs the house.
How it works
- Non-goals stop scope creep and settle half the arguments early.
- List at least two real alternatives, including "do nothing"; that is where reviewers judge your judgment.
- State plainly what gets worse; for AI systems, add an eval plan and cost per request.
- Pre-wire blockers in 1:1s, collect about a week of async comments, then meet only on what's contested.
- Name one decider, and record the outcome in an ADR so the why survives.
Check yourself
Answer to mark it learned; your answers aren't scored.
Your design doc to replace help-center search with RAG has sat "in review" for a month. Forty comment threads keep reopening the same two questions, and nobody is sure who signs off. What's your best move?
Go deeper
Full explanation
A design doc (an RFC in many companies) is a short written proposal that reviewers can disagree with before code exists. Its job is alignment and a record of reasoning, not ceremony.
The sections that earn their place:
- Context — what exists today and why it hurts.
- Goals and non-goals — non-goals stop scope creep and settle half the arguments early.
- Proposal — the design, a diagram, and the interfaces that matter.
- Alternatives considered — at least two real ones, including do nothing. This is where reviewers judge your judgment.
- Trade-offs — what gets worse, stated plainly.
- Risks — failure modes, security, cost, and how you'd detect them.
- Rollout and metrics — flags, migration, success and rollback criteria. For AI systems: an eval plan and cost per request.
- Open questions — what you need reviewers to decide.
Getting alignment is a process, not a meeting: pre-wire the people who can block it in 1:1s so nobody is surprised, collect async comments for about a week, then hold a short decision meeting only for what's still contested, with a named decider. Record the outcome so the why survives: see Architecture Decision Records (ADRs).
Code Design doc template
# <Title> — Design Doc
Author · Reviewers · Decider · Status: Draft | In review | Approved
Decision needed by: <date>
## Context
What exists today, who is affected, why now. Link data and incidents.
## Goals / Non-goals
- Goal: support-bot answers cite a source document
- Non-goal: multilingual support (separate doc)
## Proposal
Diagram + the 2–3 interfaces and data flows that matter.
## Alternatives considered
1. Do nothing — what staying put costs
2. <Option B> — why it loses
3. <Option C> — why it loses
## Trade-offs
What gets worse: cost, latency, lock-in, on-call load.
## Risks & mitigations
Failure modes, security/privacy, how we detect each one.
## Rollout & metrics
Flag, phases, success metric, rollback trigger.
AI systems: eval suite + expected cost per request.
## Open questions
Decisions I need from reviewers, each with an owner.Real example
Proposal: replace keyword search in a help center with RAG. Non-goals: no agent actions, English only — that alone ends two long debates. Alternatives: (1) tune BM25 synonyms, (2) buy a vendor search product, (3) build RAG. The doc admits RAG costs more per query and adds an eval dependency. Pre-wiring with the security lead surfaces a PII concern on day one instead of at launch review. Async comments resolve most threads; a 30-minute meeting settles the last one, whether to show citations in the UI (yes), and an ADR records it.
Trade-offs +3 · −3
+ You gain
- The cheapest place to find a design flaw: before code, migrations or contracts.
- Scales your influence: people in other teams and time zones can engage async.
- Leaves a searchable record of why, for the next engineer and for you in a year.
− You pay
- Slow if used for everything; small reversible changes don't need one.
- Review by committee can dilute a design or stall it when nobody owns the decision.
- Docs rot: the implementation drifts and nobody updates the document.
Use it when
Multi-team impact, a hard-to-reverse choice (data model, vendor, public API), more than a few weeks of work, or whenever people outside your team must agree.
Avoid it when
Reversible, single-team changes that a PR description explains. Never write a doc to postpone a decision or to re-fight one you already lost.
Numbers to know 3
- Rule of thumb: 2–6 pages; if it needs 20, split it into several docs.
- Rule of thumb: about a week of async review, then a short decision meeting only if needed.
- Rule of thumb: at least two real alternatives, one of them "do nothing".
Common pitfalls 4
- Straw-man alternatives nobody would pick: reviewers read it as "decided first, wrote later".
- No named decider or deadline, so the doc sits "in review" for a month.
- Surprising a stakeholder in the meeting; pre-wire anyone who can block.
- Detailing the solution but never the problem, so reviewers can't judge fit.
Interview questions 3
Answer out loud first, then reveal.
Walk me through how you get a contested design approved.Show answer
I separate collecting feedback from making the decision. I write the doc with explicit non-goals and real alternatives, then pre-wire the two or three people who could block it, one-on-one, so objections surface privately and early. Then about a week of async comments, where I resolve or explicitly defer every thread. The decision meeting covers only what's still contested, with a named decider, and I record the outcome as an ADR. The trade-off is a week of latency: worth it for one-way doors, wasteful for anything reversible.
What makes a design doc good, in your view?Show answer
Three things. Non-goals that cut scope, because they end half the arguments early. Alternatives a smart person would actually choose, including doing nothing, with honest reasons they lose. And a trade-offs section that says what gets worse. For AI systems I also require an eval plan and a cost-per-request estimate, because "it worked in the demo" is the most common reason a launch review fails. Length matters less than whether a reviewer can disagree with something specific.
When do you NOT write a design doc?Show answer
When the change is reversible and contained to one team: a prompt tweak behind a flag, a new internal endpoint. A good PR description is enough. I also don't write one when the real problem is that nobody has authority to decide; a doc won't fix that, a conversation with whoever owns the decision will. Docs are for choices that are expensive to undo or need agreement from people outside my team.