Skip to content
Thally
Log inGet started
Guide

Published · 7 min read

Learn how to measure documentation accuracy by checking which pages go wrong after each merged pull request, and what evidence proves it.

By Published Updated

Can you say, right now, which of your pages are wrong? Most teams can't. They can tell you how many docs tickets are open, or when a page was last edited, and neither is the same thing. If you want to know how to measure documentation accuracy, start with a narrower question: after each merged pull request, which pages changed status from right to wrong, and what proves it?

This guide walks through a method built on that question. It works for docs, marketing pages, and help-center articles, and needs no new vocabulary, just a ledger and some discipline.

Define accuracy as the page versus merged code

Accuracy is not readability, completeness, or findability. Those matter, and DORA measures documentation quality with "a set of eight metrics that assess documentation attributes like clarity, findability, and reliability". But a clear, easy-to-find page that describes a flag you removed last sprint is still wrong.

So define accuracy narrowly: a page is accurate when every checkable claim on it matches the behavior of the code that is merged and shipped. A checkable claim is anything a reader could test, such as:

  • An endpoint, parameter, or response field
  • A CLI command, flag, or config key
  • A default value, limit, or plan entitlement
  • A UI label, menu path, or step in a procedure
  • A code sample that should run as written

Opinion, positioning, and conceptual explanation are out of scope for this metric. That narrows the job to comparing claims against code.

The drift is well documented. A study in Empirical Software Engineering covering more than 3,000 GitHub projects found that "28.9% of the most popular projects on GitHub currently contain at least one outdated reference," and that 82.3% of the projects were outdated at least once in their history. At the reference level the share looks small: in the top-1000 dataset, 3.9% (7910/201852) of the detected code element references are currently outdated. Even among Google projects, 9.7% (287/2947) of documents are currently outdated.

Two caveats apply. That study looks at open-source repository docs, not help centers or marketing sites. And DORA's research covers internal documentation only. Your public surfaces are probably less studied and less watched than your README, which is a reason to measure them yourself.

Judge affected pages, not ticket volume

Ticket counts tell you how many readers bothered to complain. They lag the error by days or months, and they skew toward your highest-traffic pages. A wrong default on a quiet reference page can sit for a year without a ticket.

The merge is the better signal. Every inaccuracy starts with a specific change to the code, so that is where measurement should start too. One DORA survey item puts the standard plainly: "Technical documentation is updated as changes are made".

How to measure documentation accuracy per merge

For each merged pull request, run the same four steps:

  • List the user-visible changes in the diff: renamed fields, new defaults, removed options, changed UI text.
  • Trace each change to every page that makes a claim about it, across docs, the website, and the help center.
  • Mark each traced page as affected-and-still-correct or affected-and-now-wrong.
  • Record the result in a ledger keyed by page URL and PR number.

From that ledger you get three numbers worth reporting:

  • Affected pages per merge: how much surface area each change touches. This shows where docs and code are tightly coupled.
  • Drift rate: affected-and-now-wrong pages as a share of all affected pages. This is your accuracy measure.
  • Time to correction: the gap between the merge and the approved fix going live.

The hard part is the tracing. Researchers describe the status quo this way: "developers often have to manually check whether the documentation needs to be updated whenever changes are made to the source code". That paper presents a GitHub Actions tool that scans docs for outdated code references whenever a pull request is submitted. A check like this catches literal references. It will not catch a help-center article that describes the old behavior in plain prose, so plan to trace behavior as well as identifiers.

If you want a baseline before building anything, Thally Track runs this kind of impact analysis on your last five merged PRs. Whatever you use, test it against your own changes. A tool that covers many repositories has not thereby shown it is accurate.

Attach evidence to each proposed change

A proposed doc fix without evidence is just another claim, and now you have two things to verify instead of one. This matters more as drafting gets automated. In Postman's 2025 State of the API survey, 41% of respondents use AI to generate API documentation. Meanwhile, Stack Overflow reports that "46% of developers said they don't trust the accuracy of the output from AI tools, a significant increase from 31% last year".

Evidence resolves that tension. A reviewer does not need to trust the author, human or machine, if the proof is attached. Each proposed change should carry:

  • A link to the merged PR that triggered it
  • The specific diff lines or files that changed the behavior
  • The old claim, quoted from the page
  • The new claim, with the reason it now matches the code
  • Any confirming artifact: a test, a schema, a changelog entry, a screenshot of the new UI

This gives you a fourth metric, evidence coverage: the share of proposed updates that arrive with a traceable link to code. If a reviewer has to open the repo and hunt for the reason behind a change, count that update as uncovered. Low coverage means your approvals rest on trust rather than verification, and your drift rate is less reliable than it looks.

Treat only human-approved updates as published

A draft doesn't fix a page. Neither does a detected problem. For measurement purposes, a page moves back to "accurate" only when a person who knows the product has reviewed the evidence and approved the change. Track four states for every affected page:

  • Detected: the trace flagged it
  • Drafted: a fix exists
  • Approved: a human checked it against the evidence
  • Published: the approved fix is live

Only the last state counts toward accuracy. Rejections count too. If reviewers keep rejecting drafts for one product area, either the tracing is wrong there or the evidence is thin. Record the rejection rate and the reason.

Where AI-readable formats fit

Teams often ask how to publish machine-consumable docs without forcing writers into a complicated workflow, and how to keep governance intact while doing it. The same approval gate handles both. Keep one source that writers edit in a format they already know, generate the machine-readable outputs from it, and put review in front of everything. If the site, the Markdown, the JSON, and the llms.txt all come from one approved source, you measure accuracy once instead of four times.

That is the model Thally uses: updates arrive as evidence-backed pull requests, content stays in Git, and nothing publishes without human approval. When comparing platforms, weigh authoring workflow, maintenance, versioning, API support, and AI readiness together. The real question is whether the platform keeps documentation accurate after launch, not just whether it makes the first draft look polished.

Accuracy also matters more for machine readers. An assistant that reads a stale page will repeat the error with confidence to someone who never visits your site.

Re-check the same pages after the next merge

Accuracy is a status that expires. A page you fixed on Monday can be wrong again by Friday, because the same feature shipped another change. And stale claims left alone tend to stay. According to the preprint of the study above (arxiv.org/html/2212.01479v1), an outdated reference has around a 55% chance of surviving after a month in top-1000 projects and 45% in Google projects.

So keep the ledger running and look at it over time:

  • Repeat offenders: pages flagged by merge after merge. These sit on fast-moving code and may need restructuring so that volatile details live in one place.
  • Open drift: pages detected but not yet approved and published, with their age.
  • Trend in drift rate: whether the share of affected pages going wrong is falling as authors start updating docs in the same PR.
  • Untraced surfaces: website and help-center pages that never appear in any trace. They may be stable, or they may just not be connected to your tracing yet. Spot-check them by hand.

Review these on a regular cadence with whoever owns the pages: docs, engineering, and support.

The stakes are practical. Technical documentation remains a top resource for learning to code, cited by 68% of developers in Stack Overflow's 2025 survey, and 55% of Postman's respondents report struggling with inconsistent documentation. Readers rely on your pages and notice when they're wrong.

To start, pick your last handful of merged PRs, trace them to pages by hand, and write down what you find. That gives you a first drift rate and a baseline for every merge after it.

Sources

  1. Detecting outdated code element references in software repository documentation (Empirical Software Engineering, Springer)
  2. Wait, wasn't that code here before? Detecting Outdated Software Documentation (arXiv)
  3. DORA: Documentation quality (capability page)
  4. DORA Research 2023: Survey Questions
  5. Postman 2025 State of the API Report
  6. Stack Overflow 2025 Developer Survey (press release)
  7. Technical Documentation Platforms: How to Choose | Thally
  8. Best Documentation Automation Software in 2026 | Thally
  9. Best AI Documentation Tools in 2026 | Thally

Published under the Thally editorial policy. Technical conformance is defined in the agent-readiness methodology.

Build docs that stay close to your product.

Create a managed site, or use the open-source engine to run Thally yourself.