DEV Community

Ashkan Rajaee
Ashkan Rajaee

Posted on

Engineering Documentation That Survives Team Turnover

An engineer who has been on a client project for two years gives notice. Everyone agrees the handover will be fine. There is a wiki, a README and a folder of diagrams. Three months after the engineer leaves, a nightly job fails, and nobody can explain why it runs at 2 AM, why it skips one customer, or what the comment "do not change this, see ticket" refers to. The ticket system was migrated a year ago. The knowledge left with the person.

Most teams do not have a documentation shortage. They have pages that describe what the code does, which the code already tells you, and almost nothing about why it is that way, how to run it when something breaks, or which odd behaviors are deliberate.

Earlier in my career, as a partner, I helped grow a software consulting company from about $6M to $60M in under three years, and later I founded and ran a fully remote consultancy. In services work, people rotate between projects as a normal part of the business, so documentation that only makes sense to its author is a real risk to the client. Here is the small set of engineering documentation I think every product needs to survive turnover, and how to write it as part of delivery instead of as a cleanup task nobody gets to.

Why Most Documentation Fails the Turnover Test

Documentation usually fails in one of three ways.

It describes the obvious. Pages that restate the code ("this service handles orders") age badly and add little. What a new engineer cannot read in the code is the reasoning behind it.

It is written once and abandoned. A big documentation push before a launch produces a lot of pages that are accurate for about a month. After that, nobody trusts them or updates them.

It lives in someone's head. The most valuable knowledge, such as which alerts are noise, which customer has a special arrangement, or which setting must never be changed, is often never written down because the person who knows it never needed to look it up.

The goal is not more documentation. It is the right few documents, kept current because they are part of how the team works.

The Three Documents That Matter Most

When I think about engineering documentation best practices for a team that will change over time, I come back to three types. Most products need all three and not much more.

1. Decision Records: Why It Is Built This Way

A decision record is a short note, often half a page, written when the team makes a choice that someone later might question. It answers four questions:

  • What did we decide?
  • What problem were we solving?
  • What options did we consider and reject?
  • What would make us revisit this?

Without decision records, a new engineer sees an unusual design, assumes it was an accident and "fixes" it, rediscovering the reason the hard way. With them, the engineer can judge whether the reasoning still holds and change it on purpose if it does not.

Keep them short and keep them in the repository, next to the code they describe, so they move with the code and show up in search.

2. Runbooks: How to Run It and Fix It

A runbook explains how to operate the system, especially when something goes wrong. A useful runbook covers:

  • How to deploy, roll back and check that a release is healthy
  • What each important alert means and the first steps to take
  • Where the logs and dashboards are, and who has access
  • Scheduled jobs: what they do, when they run and what happens if they fail
  • Who to contact outside the team, such as the client's IT contact or a vendor's support line

The test of a runbook is simple: could an engineer who has never touched the system follow it at 2 AM and either fix the problem or know exactly who to call? If not, it is a description, not a runbook.

3. Known Exceptions: The Weird Things on Purpose

Every real system has behavior that looks wrong but is deliberate. A customer with a different billing cycle. A feature flag that must stay on for one region. A rate limit set low because a partner's system cannot handle more.

This list is short, often a single page, and it is the one most often missing. It is also the one that prevents the most painful surprises after someone leaves. Each entry should say what the exception is, why it exists, who asked for it and what would allow it to be removed.

Write It During Delivery, Not After

Documentation written "later" rarely gets written. The way to make it survive is to attach it to work the team already does.

Tie decision records to pull requests. When a change involves a real design choice, the pull request includes a short decision record. Reviewers check for it the same way they check for tests.

Update the runbook as part of incident follow-up. Every time something breaks, the follow-up includes one question: what would have made this faster to fix? The answer usually belongs in the runbook.

Add to known exceptions when the exception is created. When the team agrees to a special case for a client or a partner, the person who builds it adds a line to the list before the work is marked done.

Put documentation in the definition of done. If a ticket changes how the system is run or adds a deliberate exception, it is not done until the relevant document reflects it.

None of these adds much time to a single task, and together they keep the documents current, updated in small pieces by the people closest to the change.

How This Differs From Handoffs and Onboarding

This is related to, but different from, two other moments in a project. A handoff checklist covers the week before a specific person or engagement transitions. An onboarding plan covers the first week of a new engineer. Both work far better when the three documents above already exist. Without them, a handoff becomes a rushed attempt to write down two years of context in five days, and onboarding becomes a series of interruptions for whoever has been there longest. Documentation that is maintained during delivery is what makes both of those moments short.

A Hypothetical Example

Here is a made-up scenario. A team maintains a scheduling product for a client. One engineer has been the expert on the reporting module for a long time. The team keeps decision records in the repository, a runbook per service and a one-page known exceptions list.

The engineer moves to another project. In their second month, the new owner sees that one report excludes weekend data and is about to treat it as a bug. A quick search turns up a decision record: the client's finance team asked for weekday-only figures to match their internal process, and the record names the change that would justify revisiting it. The new owner leaves it alone and moves on. Without that half page, the "fix" would have shipped, the finance team's numbers would have shifted overnight, and the client conversation would have been about why the team broke something that worked.

What This Will Not Fix

Good documentation does not replace people who understand the system, and it will not make turnover painless. Some knowledge, such as how a client prefers to be told about problems, is learned through relationships, not pages. Documents also go stale if nobody owns them, so assign an owner for each runbook and the exceptions list, and review them on a regular schedule, such as once a quarter.

Start With One Page This Week

You do not need a documentation overhaul. This week, ask the person who knows your most critical system best to write the known exceptions list for it: every deliberate oddity, why it exists and who asked for it. It will probably fit on one page, and it will probably be the most valuable page your team writes this quarter.

Engineering documentation best practices for a team that changes over time come down to writing the why, the how-to-run and the on-purpose exceptions, and keeping them current as part of delivery. When those three exist, people can rotate off a project without taking the product's memory with them.

If your team is worried about what walks out the door when an engineer moves on and you want help building documentation habits into delivery, visit https://tdzpro.com.

Ashkan Rajaee is the founder of TDZ Pro. He has spent years building and scaling software engineering teams, including a fully remote software consultancy.

Top comments (0)