What is documentation drift?
Documentation drift is the gap between what your docs say and what your code does. It opens when a pull request changes behavior and nobody updates the page that describes it. The page was true when written; it becomes wrong without anyone touching it. Review is the cheapest place to stop it.
How drift happens
Almost no one makes a docs mistake. They make a code change, and the docs are not part of the diff. A renamed flag, a new default, a removed endpoint or a changed setup step each leave a sentence somewhere that is now false. The author does not remember which page said it, and the reviewer sees only the files in the diff.

What it looks like
- A page that tells readers to pass a flag that was renamed.
- A default value, limit or timeout that changed in code only.
- A code sample that calls a function with the old signature.
- A new option or route that no page mentions at all.
- A setup step that no longer works on a clean machine.
Why it costs more than it seems
Wrong docs are worse than missing docs. A reader who follows a stale instruction loses time, and then stops trusting the rest of the page. Support questions repeat, onboarding slows, and coding agents that read the repository copy the old behavior into new code.
How to catch it
- Ask the docs question while the pull request is open, when context is freshest.
- Check changed names against every page that mentions them, not only the file next to the code.
- Require evidence: the changed line and the sentence it contradicts.
- Keep the check non-blocking so that it informs review instead of stalling it.
Drift versus debt
Drift is one change that made one statement wrong. Docs debt is the pile of such statements, plus gaps, nobody has had time to fix. Stopping drift at review keeps the pile from growing; an audit of the existing pages shrinks it.
Try it on your next pull request.
Free for public repositories, with unlimited members.
Start free with GitHub