You document a design decision by writing a short, durable record at the moment you commit: the problem, the options you weighed, the option you picked, why, and what would make you revisit it. Store it where the code lives, number or date it, link it from the pull request or spec, and treat it as a living artifact rather than a one-time memo. The key condition is timing: capture the record while the reasoning is fresh, because design rationale is the one thing a codebase can never reconstruct after the fact.

That's the whole method in miniature. What follows breaks it into an ordered workflow, explains the record format and the storage options (including how Architecture Decision Records fit), and covers the failure modes that turn decision logs into documentation theater.

Why the reasoning disappears first

Source code shows what you built. It rarely shows what you rejected. Six months after a schema migration, a new engineer can read the tables and see the shape of the design, but nothing on disk explains why the team chose a normalized model over a document store, or why the cache layer sits where it does. The alternatives were considered in a meeting, argued over in a thread, and then evaporated.

This is the core problem the practice solves. Design decisions are expensive to make and cheap to forget, and forgetting them has compounding costs. Teams re-litigate settled questions. Someone "fixes" a deliberate constraint and reintroduces the bug it was preventing. An architect leaves, and the reasoning leaves with them.

Documentation also has a second audience: the future you. When a decision record from eighteen months ago says "we accepted eventual consistency here because the write volume was low," that sentence resolves an argument in thirty seconds that would otherwise consume an hour of archaeology through commit history and Slack.

There's a discipline benefit too. Writing down the alternatives and the reasoning forces clarity. A decision that's hard to write up is often a decision that hasn't actually been made; the act of drafting exposes the gaps.

Prerequisites before you write a single record

Documentation works best when it rides on process that already exists. Three things should be in place first.

A place to put records. Pick one location and commit to it. The most common and most effective choice is a docs/decisions/ directory in the repository itself, so records version alongside the code they describe and survive tool migrations. A wiki or a shared drive works too, but it decouples the record from the code, which is a real cost.

A trigger. Decide what counts as a decision worth recording. Not every variable rename qualifies. Good triggers include: choosing a library or framework, picking a data model or schema shape, adopting a protocol or API contract, setting a performance or consistency trade-off, deciding to defer or reject a significant option, and anything that someone will plausibly question later.

An owner. Usually the person driving the decision writes the record. Don't convene a committee to author it; one author, reviewed by the people who participated in the decision, is the right shape.

You don't need tooling beyond a text editor and version control. A dedicated CLI or a documentation site can help at scale, but the practice lives in the writing, not the software.

The ordered workflow for documenting a decision

Here's a sequence that works for a team of any size. The order matters because each step feeds the next.

  1. Recognize the decision point. This happens during design discussion, in a pull request, in an architecture review, or when someone proposes a change with real consequences. Name it explicitly: "We're deciding X here." Naming the decision is half the battle, because decisions that aren't recognized as decisions never get recorded.

  2. State the problem and constraints in plain language. Before options, write two or three sentences describing the situation. What are we trying to accomplish? What constraints are fixed (budget, latency budget, team skills, regulatory requirement, existing system)? Constraints are the most valuable part of the record, because they're the part that changes first and makes old decisions look wrong in hindsight.

  3. List the options you actually considered. Include the one you chose, the ones you rejected, and the option of doing nothing. For each, one or two sentences on the approach and its main appeal. You don't need exhaustive research here; you need the real shortlist that was on the table.

  4. Record the decision. One clean sentence in active voice: "We will use X." Ambiguity here poisons everything downstream.

  5. Explain the reasoning and the trade-offs. This is the heart of the record. Why did X win? What did you give up? What did the rejected options do better, and why didn't that outweigh their costs? Be honest about the uncertainty. "We're not confident this scales past roughly ten thousand daily users" is a far more useful sentence than a confident assertion that turns out false.

  6. Note the consequences. What becomes easier? What becomes harder? What follow-up work does this create? What are the risks you're accepting?

  7. Capture the conditions for revisiting. Every decision has a shelf life. Write down what would trigger a re-evaluation: a change in scale, a new requirement, a dependency reaching end of life, a measured performance regression. This is the step most teams skip, and it's the one that keeps records from hardening into dogma.

  8. Publish, link, and review. Commit the record, link it from the relevant pull request, spec, or code comment, and have the people who were in the room review it for accuracy. A record that misremembers the decision is worse than no record, because it carries false authority.

  9. Revisit when the trigger fires. When a condition from step 7 occurs, write a new record that supersedes the old one rather than editing history. More on that below.

A quick way to check success: hand the record to a competent engineer who wasn't involved, and ask them to explain why the team chose what it chose. If they can do it without asking you a question, the record is doing its job.

What a good decision record contains

The fields map directly onto the workflow, but the format should be light enough that people actually fill it out. A typical record has a title (short, decisive, dated or numbered), a status, the context and problem, the options considered, the decision, the rationale, the consequences, and the revisit conditions. Some teams add a "related decisions" line to chain supersessions.

The best records are short. One screen is plenty for most decisions; two pages is a lot. The temptation to write an essay is strong, especially for major architectural choices, but length is the enemy of maintenance. If a record needs to be long, consider splitting it: a short decision record plus a longer design document that the record links to.

Write in plain declarative prose. Avoid hedging that obscures the actual choice ("we may potentially consider moving toward..."), because a record's value is its clarity. And write for the reader who arrives cold, with no context about the meeting or the people involved. Names and dates help, but the reasoning has to stand alone.

One useful convention: number records sequentially (ADR-001, ADR-002) or use a date prefix (2026-11-13-choose-event-store). Sequential numbers are easy to reference in conversation; dates sort themselves chronologically and never collide across branches.

Architecture Decision Records and where they fit

The most widely known formalization of this practice is the Architecture Decision Record, or ADR. The term comes from Michael Nygard's 2011 write-up, and the core idea is simple: a small, versioned, immutable document per architecturally significant decision, stored with the code, with a status that moves from proposed to accepted to superseded or deprecated.

ADRs are a subset of decision documentation, not the whole of it. They're scoped to architecture: the decisions that shape structure, non-functional qualities, dependencies, and interfaces. That scoping is deliberate, because not every decision deserves a permanent record. Choosing a logging format probably doesn't warrant an ADR; choosing the primary database probably does.

Status transitions matter. A record that is "accepted" represents current truth. When it's superseded, you don't delete or rewrite it; you change its status to "superseded by ADR-014" and write the new record. This preserves the trail. The history of a system's evolution becomes readable as a sequence of decisions, each one a response to conditions that the previous record documented.

The ADR format is a template, not a mandate. Many teams adapt the sections, add fields like "decision drivers" or "compliance notes," or trim it further. The value is in the discipline of writing a short, immutable, versioned record at decision time, not in matching a particular template.

A worked example, filled in

Abstract formats are hard to apply. Here's a compact record for a decision a backend team might actually face.

Title: 2026-11-10 Use PostgreSQL advisory locks instead of a dedicated Redis lock service.

Context. The billing service processes webhook events and occasionally needs to serialize work for a single customer account to prevent duplicate charges. Two workers can receive events for the same account within milliseconds of each other.

Options. 1: Redis-based distributed lock (e.g., Redlock-style). Fast, well-known, but adds a new infrastructure dependency and the failure mode around clock skew and lock expiry is subtle. 2: PostgreSQL advisory locks, leveraging the database the service already uses. No new infrastructure, transactional semantics, but the lock is tied to a database session and must be released carefully. 3: Application-level idempotency keys with a unique constraint, making duplicate processing harmless instead of preventing it.

Decision. We will use PostgreSQL advisory locks for the serialization, with idempotency keys as a backstop at the database write layer.

Rationale. The team already operates Postgres and understands its failure modes; adding Redis introduces a second consistency model and an operational burden the team doesn't need at current volume. Advisory locks are released automatically on session end, which removes the expiry-related bug class. Option 3 alone was rejected because making duplicate processing harmless is harder than it sounds for downstream side effects like emails, but keeping it as a backstop adds cheap safety.

Consequences. Handlers must acquire locks with a timeout to avoid deadlock. Lock acquisition adds a round-trip to each request. We're now coupled to Postgres availability for webhook processing, which was already a dependency, so the incremental risk is low.

Revisit if. Webhook volume exceeds a point where lock contention degrades throughput, the team moves to a different primary database, or a multi-region deployment makes a single-database lock insufficient.

Notice what makes this record useful: the rejected options are real, the rationale mentions a trade-off the team accepted, and the revisit conditions are concrete and checkable. A colleague can read it in two minutes and understand both the choice and the counterargument.

Where to store records, and how to keep them findable

Storage choices trade off convenience against durability and proximity to the code.

Location Strength Risk
Repository (docs/decisions/) Versions with code, survives tooling changes, visible in review Discoverability depends on repository hygiene
Wiki or knowledge base Easy to search across systems, accessible to non-engineers Drifts from code, can be lost in migrations
Issue tracker Linked to PRs naturally, notified to participants Hard to read as a corpus, polluted by operational chatter
Dedicated documentation site Rich formatting, search, and navigation Maintenance burden, another system to keep current

For most codebases, in-repository records are the strongest default. They get reviewed in the same pull request as the code they justify, which creates a natural quality gate, and they move with the code through repository migrations.

Findability deserves explicit attention. An index file that lists every record with its number, title, status, and date takes minutes to maintain and pays for itself immediately. Link records from the code they describe: a comment above a nontrivial module that points to the relevant record is worth the one-line cost. And use consistent naming so that anyone can guess where to look.

Common failure modes and how to avoid them

Decision documentation fails in predictable ways. Watch for these.

Writing too much. A four-thousand-word decision document that nobody reads is worse than a two-hundred-word record that everybody does. Keep records short and push extended analysis into a linked design document if necessary.

Writing after the fact. A record written three months after a decision is really a rationalization, and it tends to omit the uncertainty that made the decision hard. Write at decision time, even if the record is rough; you can refine it during review.

Recording only the winner. A decision log that never mentions rejected alternatives is a marketing document. The rejected options and the reasons they lost are the most valuable content in the record.

Editing history. When a decision changes, resist the urge to rewrite the old record. Supersede it. The trail of superseded records is the institutional memory.

Status decay. Records that stay marked "proposed" forever signal that the process is theater. Keep statuses current, and have someone responsible for periodic hygiene, perhaps during quarterly planning.

No revisit trigger. Without revisit conditions, decisions become immutable by default, even when their premises have evaporated. Write the conditions down and check them when relevant changes occur.

Treating it as bureaucracy. If filling out a form becomes the point, the practice dies. The record should be a natural byproduct of deciding well, not an additional ritual bolted on afterward.

Making the practice survive contact with a real team

Habits stick when they're cheap, social, and reinforced.

Start small. Pick one significant decision this month and write a record for it. Don't announce a new process; just do it and see whether it helps. Most teams find that a record saves time within the first week, when the same question comes up in a second meeting.

Attach the record to artifacts the team already uses. Link it from the pull request, from the design document, from the ticket. The record should appear where people already are, not in a folder nobody visits.

Make it social. Reviewing records together, even briefly, builds shared understanding and surfaces disagreements before they become code. A five-minute read of a proposed record in a design review is one of the highest-leverage meetings a team can have.

Keep it proportional. Small teams with short-lived codebases need fewer records than long-lived systems with many contributors. The point isn't documentation volume; it's capturing the reasoning that would otherwise vanish. If a piece of reasoning would cost someone an hour to reconstruct, it's worth a paragraph.

Set a stop condition for yourself: if a decision is genuinely inconsequential or trivially reversible, skip the record and move on. The practice is meant to preserve important reasoning, not to document every keystroke. And if a decision touches legal, security, or compliance obligations, the record is not a substitute for the appropriate professional review; loop in the right people and note their sign-off in the record itself.

The payoff compounds. A codebase with a clean trail of decision records is a codebase where new contributors can understand not just what was built but why, where arguments are settled by citations to reasoning rather than by seniority, and where the institutional memory survives every departure. That's worth the fifteen minutes of writing.