Engineering

Writing software that survives handover

Documentation, test coverage and deployment automation are the difference between an asset and a liability when the original team moves on.

6 min read

The real test of a system is not whether it works on the day it ships. It is whether a developer who has never seen it can safely change it two years later, with none of the original team available to ask.

The failure is predictable

We are regularly asked to take on systems that work but cannot be changed. The pattern is consistent. There is no working local setup. The build depends on a machine configuration that existed on one laptop. There are no tests, so every change is a gamble. Deployment is a sequence of manual steps that one person remembered. And the reasoning behind the most important decisions exists only in the memory of someone who left.

None of this was negligence. It was the accumulated cost of a hundred reasonable decisions to defer documentation until after the deadline that never arrived.

The setup command is the first test

Our standard is that a new developer with a clean machine should get the system running locally with a documented sequence of commands, and that sequence should be verified by someone who did not write it. If it takes a conversation, the handover has already failed.

This is a surprisingly demanding standard. It forces configuration out of personal environments, forces dependencies to be declared, and forces seed data to exist. Teams that meet it find onboarding time collapses as a side effect.

Tests as the permission to change

The argument for automated tests is not defect detection. It is that a maintainer with no context needs some way to know whether a change broke something. Without that signal, the rational response to an unfamiliar codebase is to touch as little as possible, which is how systems calcify.

Coverage percentage is a poor target. Coverage of the paths that would be expensive to break — money movement, permissions, data integrity, external integrations — is the thing worth insisting on.

Write down why, not what

Code states what it does. It almost never states why it does it that way, what alternatives were rejected, or which constraint made the obvious approach unworkable. That reasoning is the first thing lost and the most expensive thing to reconstruct.

A short architecture decision record — context, options, decision, consequences — written at the moment of the decision takes twenty minutes and saves weeks. Kept in the repository alongside the code, it survives staff changes, email migrations and the loss of whichever wiki was current at the time.

Operational knowledge belongs in runbooks

How to deploy. How to roll back. What the alerts mean. What to do when the queue backs up. Who to call at the payment provider. Where the credentials live and how to rotate them. This is the knowledge that disappears entirely with a departure, and it is rarely more than a few pages per system.

How we end an engagement

Handover is a scheduled phase with deliverables, not an email on the last day. It includes a verified setup path, a passing test suite in a pipeline the client controls, written decision records, runbooks for the common operational events, full transfer of accounts and credentials, and a recorded walkthrough for people who join later.

We treat it as a measure of whether the engagement succeeded. A client who cannot leave us is not a loyal client — they are a trapped one, and that is not a business we want to run.


This article reflects our delivery experience and is general information, not legal, regulatory or investment advice. Seek advice appropriate to your own circumstances before acting on it.

Working on something like this?

We would be glad to compare notes, whether or not it leads to an engagement.

Contact us