Handing over a codebase when a developer leaves
What to capture before someone who knows the code moves on: a handover checklist for systems, deploys, risks, decisions, access and open work.
When the person who knows a system best leaves, much of what they know leaves with them unless you capture it on purpose. Code holds the what. The handover needs to capture the why, the how to operate it and the what's about to go wrong.
Start early
A handover in the last two days is a list of links. A handover over two to three weeks can include pairing, recorded walkthroughs and the new owner shipping a change with support. Plan for the longer version whenever you can.
What to capture
Systems and boundaries
- What the system does, in a paragraph
- Its main parts, external dependencies and data stores, on one diagram
- Who uses it and who depends on it
Running and deploying
- How to run it locally
- How it's deployed, and how to roll back
- Environments, where configuration and secrets live (not the secrets themselves)
- Monitoring, dashboards, alerts and what each alert means
Known risks
- What breaks most often, and the fix
- Fragile areas and why they're fragile
- Workarounds in production that aren't in the code
- Upcoming deadlines: certificate expiry, deprecated APIs, contract renewals
Decisions and their reasons
- The main design decisions and why they were made
- Things that were tried and abandoned
- Constraints that aren't obvious (a customer, a regulation, a performance limit)
Open work
- Half-finished branches and pull requests
- Planned changes and their status
- Promises made to other teams
Access
- Accounts, admin rights and third-party services the person controls, transferred before they leave
How to capture it
- Walkthroughs, recorded. Have the leaver trace the two or three most important flows while the new owner asks questions. A recording is worth keeping.
- The new owner writes the docs. They'll write down what they didn't understand, which is exactly what the next person will need.
- A supervised change. The new owner ships a real change, with the leaver reviewing.
Use the code to check the handover
Docs written in a hurry contain mistakes. After the walkthrough, the new owner can ask RepoGrasp the same questions ("how does the nightly sync decide which records to update?") and compare its cited answer with the handover notes. Differences are worth raising while the leaver is still around.
Afterwards
Agree a way to ask the person questions for a few weeks after they leave, if they're willing. And use the experience to reduce knowledge silos before the next handover.