Lesson 7 of 9 · 24m
Documentation Rot Is a Maintenance Problem
Control staleness with ownership, review dates, deprecation practice, incident-driven updates, and deletion of documentation that no longer earns trust.
Documentation does not become wrong all at once. It rots in small pieces: a renamed button, an extra required flag, a response field that disappeared, a default changed for good security reasons. Each piece looks too small to update. Then one day a customer follows the official guide into a production outage. Accuracy is not a writing quality; it is an operations discipline.
Freshness needs a trigger, not a wish
Review dates only work when they create work. A simple model is enough:
---
review_after: 2027-01-15
owner: platform-security
risk: high
---High-risk pages cover money, destructive operations, authentication, security boundaries, data retention, and incident recovery. They deserve shorter review intervals and release-checklist attention. Low-risk conceptual pages can go longer. Do not stamp every page with the same date and call it governance.
Product changes must carry documentation impact
Engineering templates should ask the uncomfortable question early:
## Documentation impact
- [ ] No user-visible behavior changed
- [ ] Existing page updated: <link>
- [ ] New documentation required: <link or issue>
- [ ] Migration or deprecation notice requiredThis is not bureaucracy. It forces the team to decide whether the behavior is visible before release. If the answer is unclear, support will discover the answer later at higher cost.
Deprecate behavior in writing
A deprecation is a communication lifecycle, not a changelog line. Readers need dates, consequences, migration steps, and escape hatches:
## Deprecation: legacy `/v1/import` endpoint
`POST /v1/import` will stop accepting requests on 2027-03-01.
Use `POST /v2/import-jobs` instead.
### Why this is changing
The v1 endpoint imports synchronously and cannot report partial failures.
### Migration
1. Replace synchronous calls with `POST /v2/import-jobs`.
2. Poll `GET /v2/import-jobs/{id}` until status is `complete` or `failed`.
3. Handle `errors[]` instead of treating HTTP 200 as full success.The reader should never have to infer whether old behavior still works.
Sometimes the right fix is deletion
Out-of-date documentation can be worse than none because it borrows authority from your domain. Deleting a page is appropriate when the feature is gone, the procedure is dangerous, or replacement material is clearly better. Preserve redirects and archive context where needed:
/docs/old-import /docs/reference/api/import-jobs 301Do not delete quietly because a search engine cleanup is inconvenient. Users need the bridge.
Incidents and support tickets are documentation bugs
When an incident reveals missing operational knowledge, write the page while the scar tissue is fresh. The best troubleshooting guides often begin as internal post-incident notes. Remove sensitive details, but keep the diagnostic path: symptom, meaning, confirmation command, safe mitigation, escalation point.
Field notes
- "Last updated" timestamps mean little unless the update was substantive; automated timestamp bumps destroy trust.
- Ownership follows the system being documented, not whoever happened to write the first draft.
- Keep screenshots and sample output under the same review discipline as commands.
- A page with high traffic and low accuracy is a production risk, not a content backlog item.
Was this lesson helpful?