Documentation Accuracy Verification
Scope
Accuracy verification only: cross-reference documentation claims,
commands, API names, and configuration keys against repository evidence
in the same repository. Flag anything that cannot be verified.
In docs-only repositories, treat documentation tooling and artifacts
(for example, conf.py, Makefile, Sphinx configuration, redirects,
and examples) as the primary evidence source.
Inputs
- Changed documentation files (from
git diff).
If git diff is unavailable or empty, use files explicitly provided
for review; otherwise, treat all documentation files under the detected
docs root as changed.
- Full repository artifacts relevant to documentation behavior.
- Test files and configuration schemas (when applicable).
- Documentation structure.
Workflow
Follow this three-stage process to verify documentation accuracy:
Stage 1: Discovery Scan
Objective: Identify documentation claims and form initial hypotheses.
- Run
git diff to list changed documentation files.
- Categorize changes into claim types (behavior, CLI, API, config, examples, error messages, etc.).
- Form initial hypotheses: Supported, Unsupported, Speculative, Ambiguous, or Outdated.
For detailed categorization and hypothesis formation procedures, see references/verification_procedures.md → Discovery Scan.
Stage 2: Verification Pass
Objective: Verify every hypothesis with repository evidence.
Repository artifacts are the source of truth.
CRITICAL: Complete verification before reporting any claims.
- Use at least two search strategies per claim (direct search, entrypoint tracing, test evidence, schema/validation search).
- Apply claim-type-specific verification checklists (behavior, CLI, API, config, examples, errors, terminology).
- Document evidence for each finding (file paths, line numbers, search commands).
- Reclassify hypotheses based on verification results.
- Apply false-positive prevention rules.
- Cross-check documentation coverage.
For comprehensive verification checklists and classification rules, see references/verification_procedures.md → Verification Pass.
Stage 3: Report Generation
Objective: Present verified findings with evidence and conservative recommendations.
- Group findings by final classification (unsupported, outdated, incorrect, imprecise, speculative, inconclusive, no issues).
- Format each finding using the standard template (doc claim, verification checklist, code evidence, assessment, recommended action).
- Provide conservative change suggestions aligned with code reality.
- Link to specific code artifacts (files, functions, structs, line numbers).
- Integrate with other analysis findings (e.g., Diataxis compliance).
For report formatting template and change suggestion guidelines, see references/report_format.md.
Constraints
- Complete the verification pass (Stage 2) before reporting any claims.
- Provide repository evidence for all documentation consistency claims.
- Repository artifacts are the source of truth: flag documentation that
contradicts repository behavior, not vice versa.
- Do not claim documentation is "unsupported" without verification evidence
(at least two search strategies with explicit search and no-match confirmation).
- Do not report false positives.
- Do not prefer "unsupported" when docs are vague or imprecise; use accurate classifications.
- Do not recommend changing implementation artifacts to match docs as the
primary action; documentation should be adjusted to match repository reality.
Output
Only verified findings with evidence make it to the final report. Do not include intermediate hypotheses or reasoning.
1---2name: documentation-verify3description: Verifies documentation accuracy by cross-referencing claims, CLI commands, API signatures, and configuration against source code. Use when validating documentation correctness or checking code-docs consistency. Flags unsupported or outdated claims.4---56# Documentation Accuracy Verification78## Scope910Accuracy verification only: cross-reference documentation claims,11commands, API names, and configuration keys against repository evidence12in the same repository. Flag anything that cannot be verified.1314In docs-only repositories, treat documentation tooling and artifacts15(for example, `conf.py`, `Makefile`, Sphinx configuration, redirects,16and examples) as the primary evidence source.1718## Inputs1920- Changed documentation files (from `git diff`).21 If `git diff` is unavailable or empty, use files explicitly provided22 for review; otherwise, treat all documentation files under the detected23 docs root as changed.24- Full repository artifacts relevant to documentation behavior.25- Test files and configuration schemas (when applicable).26- Documentation structure.2728---2930## Workflow3132Follow this three-stage process to verify documentation accuracy:3334### Stage 1: Discovery Scan3536**Objective**: Identify documentation claims and form initial hypotheses.37381. Run `git diff` to list changed documentation files.392. Categorize changes into claim types (behavior, CLI, API, config, examples, error messages, etc.).403. Form initial hypotheses: Supported, Unsupported, Speculative, Ambiguous, or Outdated.4142**For detailed categorization and hypothesis formation procedures**, see `references/verification_procedures.md` → Discovery Scan.4344---4546### Stage 2: Verification Pass4748**Objective**: Verify every hypothesis with repository evidence.49Repository artifacts are the source of truth.5051**CRITICAL**: Complete verification before reporting any claims.52531. Use **at least two search strategies** per claim (direct search, entrypoint tracing, test evidence, schema/validation search).542. Apply claim-type-specific verification checklists (behavior, CLI, API, config, examples, errors, terminology).553. Document evidence for each finding (file paths, line numbers, search commands).564. Reclassify hypotheses based on verification results.575. Apply false-positive prevention rules.586. Cross-check documentation coverage.5960**For comprehensive verification checklists and classification rules**, see `references/verification_procedures.md` → Verification Pass.6162---6364### Stage 3: Report Generation6566**Objective**: Present verified findings with evidence and conservative recommendations.67681. Group findings by final classification (unsupported, outdated, incorrect, imprecise, speculative, inconclusive, no issues).692. Format each finding using the standard template (doc claim, verification checklist, code evidence, assessment, recommended action).703. Provide conservative change suggestions aligned with code reality.714. Link to specific code artifacts (files, functions, structs, line numbers).725. Integrate with other analysis findings (e.g., Diataxis compliance).7374**For report formatting template and change suggestion guidelines**, see `references/report_format.md`.7576---7778## Constraints7980- Complete the verification pass (Stage 2) before reporting any claims.81- Provide repository evidence for all documentation consistency claims.82- Repository artifacts are the source of truth: flag documentation that83 contradicts repository behavior, not vice versa.84- Do not claim documentation is "unsupported" without verification evidence85 (at least two search strategies with explicit search and no-match confirmation).86- Do not report false positives.87- Do not prefer "unsupported" when docs are vague or imprecise; use accurate classifications.88- Do not recommend changing implementation artifacts to match docs as the89 primary action; documentation should be adjusted to match repository reality.9091## Output9293Only verified findings with evidence make it to the final report. Do not include intermediate hypotheses or reasoning.