Last quarter, our payments API went down for 3 hours because our documentation was six months out of date. A new engineer followed what looked like current docs, made what should have been a routine configuration change, and brought down transaction processing for 40,000 merchants.
The incident report was clear: “Documentation drift.” But the real problem wasn’t the docs themselves—it was how we treated documentation as something separate from code.
The Documentation Crisis in 2026
Here’s what I see happening across engineering teams: AI tools now write 41% of our code. Developers using AI assistants merge 98% more pull requests. But here’s the catch—pull requests containing AI-generated code have 1.7× more issues than human-written code.
And you know what makes those issues worse? Outdated documentation.
When developers (or AI) reference documentation that’s disconnected from the actual codebase, we’re amplifying problems instead of catching them. It’s like having a map that shows roads from five years ago—technically it’s a map, but it’ll lead you straight into a lake that wasn’t there when the map was drawn.
Documentation as Code: The Philosophy Shift
At my previous role at Adobe, we made a fundamental change: we started treating documentation exactly like code.
What does that actually mean?
Same tools as code: Documentation lives in Markdown files in our Git repository, right alongside the code it describes. No separate wiki. No Google Docs. No SharePoint hell.
Same workflows as dev teams: Every documentation change goes through a pull request. Every PR that changes behavior must update docs in the same PR. Our CI/CD pipeline runs linting on docs, checks for broken links, and deploys automatically.
Same team ownership: We don’t have a separate “documentation team.” Whoever touches a system updates its documentation. If you add an environment variable, you update the prerequisites section. If you discover an edge case, you document it.
The Real ROI: 13 Minutes Per Developer Per Week
Research shows that each one-point improvement in documentation score correlates to 13 minutes per developer per week in time savings. That might not sound like much, but let me do the math for you:
For a team of 40 engineers (my current team size):
- 13 minutes/week × 40 engineers = 520 minutes/week
- That’s 8.6 hours per week
- Or about 450 hours per year
- At a loaded cost of $100/hour, that’s $45,000 in saved time per one-point improvement
And that’s just the direct time savings. It doesn’t count:
- Reduced production incidents from misunderstood APIs
- Faster onboarding for new hires
- Better AI tool suggestions (yes, AI tools use your docs)
- Reduced context-switching for senior engineers fielding questions
How We Implemented It
Here’s the practical approach that worked for our financial services team:
1. Shift Documentation Left
Every PR template now includes a docs section. Before code review starts, reviewers check: “Does this PR update the relevant documentation?”
If someone updates business logic, they update the behavior section. If they add a new API endpoint, they update the API reference. If they change a database schema, they update the data model docs.
2. Docs Review is Part of Definition of Done
We changed our definition of done to explicitly include: “Documentation is updated and reviewed.” Just like we don’t merge code without tests, we don’t merge changes without doc updates.
3. Automate What You Can
Our CI/CD pipeline:
- Lints documentation for style consistency
- Checks for broken internal links
- Generates API documentation from OpenAPI specs
- Builds and deploys docs to our internal portal automatically
- Flags PRs that touch code without touching docs
4. Start With the Pain Points
We didn’t try to document everything overnight. We started with:
- The top 10 systems that caused the most production incidents
- The APIs that generated the most support tickets
- The onboarding guides that new hires needed most
Focusing on the most painful 20% gave us 80% of the benefit.
The Cultural Shift
The hardest part wasn’t the tooling—it was changing how engineers thought about documentation.
Some of my team initially pushed back: “I’m an engineer, not a technical writer.” My response: “You’re an engineer who writes code that other engineers need to understand. Documentation is part of the interface.”
We also tied documentation quality to performance reviews. Not in a punitive way, but recognizing engineers who consistently wrote excellent docs alongside their code. Within two quarters, documentation quality became a point of pride.
The AI Documentation Paradox
Here’s something interesting: AI tools can help generate initial documentation from code, but they can’t replace human-maintained docs-as-code workflows.
Why? Because AI-generated docs are only as good as the patterns they learned from. If your AI tool generates docs that aren’t reviewed, updated, and maintained by humans, you end up with documentation drift at machine scale.
But when you combine AI-assisted doc generation with rigorous docs-as-code PR reviews? That’s powerful. We use AI to generate first drafts of API docs, then humans review, correct, and enhance them as part of the PR process.
Questions for the Community
How does your team handle documentation?
- Are docs part of your PR reviews?
- Do you have automation for doc deployment and validation?
- How do you handle documentation for legacy systems?
- What’s been your biggest documentation pain point?
I’m especially curious how other leaders are handling the documentation challenge as AI tools change how we write code. When code velocity increases 98%, how do we ensure documentation velocity keeps pace?
Sources: