The report
The a11y document counts disagreed by three for a day: the build report said 294 HTML documents, the markup pass found 297. Three phantom pages, no visual diff, everyone blaming the scanner.
The cause
Next writes __next_error__ fallback documents for not-found variants into .next/server/app. The scanner was counting build artefacts as pages. The fix was the scanner's — skip the fallback document and say so out loud in its output ('1 fallback document(s) skipped') — because a counter that silently excludes is the same lie in a nicer font.
The lesson generalises: when two of your instruments disagree, do not average them. Name the discrepancy in the output of one of them until the disagreement is impossible.