[Feature] Guard that documentation is right, not only that it is registered #539
Labels
No labels
accepted
bug
declined
docs
duplicate
enhancement
good first issue
in-progress
needs-info
privacy
security
triage
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
LibreKAT/Ocideck#539
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem / motivation
docs_registration_testguards that every document underdocs/is reachable: bundled as an asset, given a reader tile, with a translated title. That is a real guard, and it is a guard about plumbing.It says nothing about whether the document is true, current, or followable. The precedent is on the record: the
d7b609bfguides were generated fiction — well-formed, correctly registered, describing behaviour that did not exist — and they were removed on 2026-07-19. Registration would not have caught that, and did not.Smaller instances keep turning up. In this session alone:
docs/CHECKS.mdsaidserviceUiImportBaselinewas 8 while the code said 4, and the PR template listed 8 supported languages against an actual 32. Both were plumbing-correct and factually wrong.From the CRA position decision (#519): the third direction named there was "sufficient and clear documentation" — meaning right, not merely present.
Proposed solution
Two separable pieces.
Mechanical, cheap: extend the class of check that already caught the two examples above — a claim in prose that restates a constant in code should be derived or compared, not retyped.
test/docs_enum_counts_test.dartand the newtest/pr_template_consistency_test.dartare the working precedents. Candidates: the ratchet values inCHECKS.md, the language count, the enum counts inAPI_DOCUMENTATION.md, the file lists inSOURCE_MAP.md.Human, and the harder half: a periodic pass asking whether a reader who was not there can follow the document — which is what "clear" means and no test can answer.
docs/SOURCE_MAP.mdis the standing example: it claims a line perlib/file and was missing 156 of them (#518).Marp / file-format impact
None.
Alternatives considered
A general "docs must be reviewed every N months" rule — rejected: an unenforceable rule about documentation is itself stale documentation.