Skip to content

[Quality]: verify changed documentation claims against authoritative sources #418

Closed as not planned

Description

@sumithr

Audit result

Valid, unique, and still unimplemented.

Current sumo-qa-reviewing-before-merge has a strong documented-inventory drift probe, but no general docs-only procedure that extracts each changed factual claim and verifies it against an authoritative source. The existing skill-reviewing-before-merge-doc-drift.yaml covers only a changed count with stale copies elsewhere.

Boundaries:

Trigger and scope

Run the claim check for a docs-only diff and for documentation files included in a mixed diff.

Inspect:

  • every added/changed factual claim;
  • unchanged claims that the edited passage now depends on for meaning;
  • acceptance-criterion claims made by the documentation change.

Do not audit the entire pre-existing document unless the change republishes/restructures a section in a way that reasserts it.

A factual claim includes:

  • command syntax, output, exit status, or side effect;
  • install/configuration/file-creation mechanics;
  • supported host/platform/version/dependency;
  • count, inventory, enum, or “all/each/never/always” quantifier;
  • capability, permission, safety, mutability, or confirmation-gate scope;
  • precedence/default/fallback behavior;
  • freshness, provenance, comparison base, or cache scope;
  • path, filename, generated source, or ownership.

Generic positioning, opinion, examples clearly labeled hypothetical, and non-behavioral copy receive N/A (no concrete claim). Hedging such as “can”, “may”, or “typically” does not make a behavioral statement non-factual.

Authoritative-source rules

For each claim, locate the narrowest authoritative source in the supplied repository:

  1. generated schema/manifest/registry or canonical catalogue for a derived public surface;
  2. executable implementation plus its contract tests;
  3. the skill/instruction that directly governs agent behavior;
  4. configuration/default source;
  5. a designated canonical specification.

Do not verify one ordinary guide by citing another guide that may share the same error. A documentation file is acceptable only when the repository explicitly designates it as the canonical source for that fact.

Evidence strength:

  • For safe deterministic CLI/file behavior, execute the documented path in an isolated temporary target and cite observed output.
  • If execution is destructive, requires credentials/network/UI, or is platform-specific, inspect the implementation plus focused tests/fixtures and state that it was statically verified.
  • Never run a destructive or externally mutating command solely to verify prose.
  • If the source is absent or inaccessible, mark the claim UNVERIFIED rather than inferring it.

Claim ledger

Before the verdict, emit one row per claim:

Doc claim C<n>: <doc file:line> | Claim: <concise exact proposition> | Source: <authoritative file:line / command> | Evidence: <observed output, test/implementation condition, or NONE> | Status: <VERIFIED | CONTRADICTED — SAFE-blocker | UNVERIFIED — SAFE-blocker | N/A (no concrete claim)>

Rules:

  • Split compound sentences when their propositions have different sources/statuses.
  • Quote exact numbers, qualifiers, and scope words that affect meaning.
  • One source can verify multiple claims only when each mapping is explicit.
  • A broad “checked against current behavior” statement without rows is insufficient.
  • CONTRADICTED names both documented and actual behavior plus the required correction.
  • UNVERIFIED names the missing source/evidence; it is not silently rounded up to safe.

For docs-only changes, this claim ledger replaces invented runtime risks but does not replace required touched-files, change-shape, verification, AC, or documented-inventory rows.

Six regression classes from PR #417

The procedure must recognize these reusable classes without hardcoding the old wording:

  1. File-creation mechanic: a guide says a command emits a file/JSON when it only prints UI fields/instructions.
  2. Command-output quantifier: “each failure prints Fix” while only results carrying a fix render that line.
  3. Section/gate count: prose count differs from the enumerated canonical workflow.
  4. Capability-scope overstatement: “source is read-only” when source annotations are allowed even though behavior may not change.
  5. Public script/tool count: prose count disagrees with the package manifest/registry.
  6. Freshness-scope omission: “fresh” omits that comparison is only against recorded commit vs local HEAD.

Use these as examples of mechanics, quantifiers, counts, scope, and provenance. Do not bloat the skill with the full PR history.

Verdict semantics

Acceptance criteria

Eval design

Add skill-reviewing-before-merge-doc-claim-accuracy.ab.yaml with neutral raw docs diffs and authoritative repo facts.

Positive seeds:

  1. command/file mechanic: docs claim JSON output; implementation prints only settings fields;
  2. capability quantifier/scope: docs say “every” or “read-only”; implementation has a conditional/allowed annotation;
  3. freshness scope: docs say “fresh”; implementation compares only bundle SHA to local HEAD.

For each seed, PASS requires the specific contradiction, both doc/source anchors, a claim-ledger row, and NOT SAFE. “Docs may be inaccurate” fails.

True negatives:

  • positioning copy with no concrete behavioral proposition → N/A and SAFE-eligible;
  • changed factual claim exactly matching an observed command or authoritative source → VERIFIED and SAFE-eligible.

Candidate-visible context provides the raw diff, source, and fresh verification only. It must not say “contradiction”, name the expected finding, or pre-label the source as authoritative.

Use a real pre-edit skill fixture. Apply #427 calibration: reproduce issue-specific A0 failure and A1 success; if A0 reliably catches a seed already, keep it as regression coverage rather than claiming artificial load-bearing lift. Do not loosen grader conditions.

Verification

  • Targeted new A/B config with declared funded provider/repeats.
  • Existing skill-reviewing-before-merge-doc-drift.yaml.
  • Reviewing-before-merge plain/A-B corpus affected by the skill edit.
  • Token-budget, conformance, eval-config, and cross-reference tests.

Source

Gap from #86 / PR #417: the docs review missed six repository-verifiable factual errors that the later adversarial pass found.

Activity

  1. added
    documentation
    enhancement
    priority: next
    on Jun 13, 2026
  2. sumithr commented on Jun 18, 2026

    @sumithr
    OwnerAuthor

    Backlog refinement (2026-06-18): ready as a docs-change review-quality fix.

    Problem: the docs_change branch names accuracy against current behavior, but it did not force extraction and source-checking of each concrete doc claim.

    Expected outcome: review output treats command-output claims, file-creation mechanics, counts/inventories, capability-scope claims, and freshness-scope claims as individually verifiable statements.

    Scope: strengthen sumo-qa-reviewing-before-merge docs_change procedure and add an eval fixture where a docs claim contradicts live code or skill behavior.

    Acceptance boundary: the fix should make unsupported factual claims UNVERIFIED or NEEDS WORK; it should not require source checks for generic positioning copy that has no concrete behavioral claim.

    Test plan: use the six miss classes from PR #417 as examples, add at least one true-negative docs fixture, and run the reviewing-before-merge eval plus token-budget/conformance tests.

  3. changed the title [-][Task]: reviewing-before-merge — operationalise the docs_change "accuracy vs current behaviour" rule into per-claim cross-checks[/-] [+][Quality]: verify changed documentation claims against authoritative sources[/+] on Jul 13, 2026
  4. added
    priority: later
    and removed
    priority: next
    on Jul 13, 2026
  5. sumithr commented on Aug 4, 2026

    @sumithr
    OwnerAuthor

    #588 is duplicate evidence for this issue and adds a fresh PR #585 miss-log:

    • sumo-qa-reviewing-before-merge missed four factual defects in a docstring-only diff.
    • The reusable gap is already covered here: each factual docs/comment claim needs an authoritative source check, and unconditional claims must be checked across all supported install topologies/hosts/platforms.
    • The [Quality]: reviewing-before-merge missed four factual defects in a docstring-only diff that codex caught #588 concrete seed is worth keeping for implementation/eval design: ~/.claude/skills/ symlink claims were false for plugin installs, pip+plugin additive installs, Claude/Copilot slash-menu behavior, and Windows copytree fallback behavior.

    No new owner issue is needed; this issue remains the canonical work item.

  6. sumithr commented on Sep 29, 2026

    @sumithr
    OwnerAuthor

    Triaged under the review-miss policy (epic #753): this is a pattern miss (a careful reviewer applying the generic lens reaches it), category doc-or-comment-drift. Recorded on the review-miss ledger: #752 (comment)

    It is absorbed by the category issue #758, which strengthens the review lens for doc-or-comment-drift as a whole.

    Closing as not planned in favour of that record. Reopen if this turns out to be a class gap (sumo-qa steered the run wrong or had no move for the step).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ai-taskdocumentationenhancementpriority: latertooling

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions