Documentation Accuracy Verification
Scope
Accuracy verification only: cross-reference documentation claims, commands, API names, and configuration keys against source code in the same repository. Flag anything that cannot be verified.
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 docs/ as changed.
- Full codebase.
- Test files, configuration schemas.
- 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 (behaviour, 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 code evidence. Code is 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 (behaviour, 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 code evidence for all documentation consistency claims.
- Code is the source of truth: flag documentation that contradicts code behaviour, not vice versa.
- Do not claim documentation is "unsupported by code" without verification evidence (at least two search strategies with explicit code 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 code to match docs as the primary action; only documentation should be adjusted to match code reality.
Output
Only verified findings with evidence make it to the final report. Do not include intermediate hypotheses or reasoning.
1---2name: documentation-verify-23description: 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, commands, API names, and configuration keys against source code in the same repository. Flag anything that cannot be verified.1112## Inputs1314- 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 `docs/` as changed.15- Full codebase.16- Test files, configuration schemas.17- Documentation structure.1819---2021## Workflow2223Follow this three-stage process to verify documentation accuracy:2425### Stage 1: Discovery Scan2627**Objective**: Identify documentation claims and form initial hypotheses.28291. Run `git diff` to list changed documentation files.302. Categorize changes into claim types (behaviour, CLI, API, config, examples, error messages, etc.).313. Form initial hypotheses: Supported, Unsupported, Speculative, Ambiguous, or Outdated.3233**For detailed categorization and hypothesis formation procedures**, see `references/verification_procedures.md` → Discovery Scan.3435---3637### Stage 2: Verification Pass3839**Objective**: Verify every hypothesis with code evidence. Code is the source of truth.4041**CRITICAL**: Complete verification before reporting any claims.42431. Use **at least two search strategies** per claim (direct search, entrypoint tracing, test evidence, schema/validation search).442. Apply claim-type-specific verification checklists (behaviour, CLI, API, config, examples, errors, terminology).453. Document evidence for each finding (file paths, line numbers, search commands).464. Reclassify hypotheses based on verification results.475. Apply false-positive prevention rules.486. Cross-check documentation coverage.4950**For comprehensive verification checklists and classification rules**, see `references/verification_procedures.md` → Verification Pass.5152---5354### Stage 3: Report Generation5556**Objective**: Present verified findings with evidence and conservative recommendations.57581. Group findings by final classification (unsupported, outdated, incorrect, imprecise, speculative, inconclusive, no issues).592. Format each finding using the standard template (doc claim, verification checklist, code evidence, assessment, recommended action).603. Provide conservative change suggestions aligned with code reality.614. Link to specific code artifacts (files, functions, structs, line numbers).625. Integrate with other analysis findings (e.g., Diataxis compliance).6364**For report formatting template and change suggestion guidelines**, see `references/report_format.md`.6566---6768## Constraints6970- Complete the verification pass (Stage 2) before reporting any claims.71- Provide code evidence for all documentation consistency claims.72- Code is the source of truth: flag documentation that contradicts code behaviour, not vice versa.73- Do not claim documentation is "unsupported by code" without verification evidence (at least two search strategies with explicit code search and no-match confirmation).74- Do not report false positives.75- Do not prefer "unsupported" when docs are vague or imprecise; use accurate classifications.76- Do not recommend changing code to match docs as the primary action; only documentation should be adjusted to match code reality.7778## Output7980Only verified findings with evidence make it to the final report. Do not include intermediate hypotheses or reasoning.