Skip to content

Review angles: check that doc claims are true, not just present - #9

Merged
James-Chapman merged 2 commits into
mainfrom
doc-claim-accuracy
Nov 26, 2026
Merged

James-Chapman merged 2 commits into
mainfrom
doc-claim-accuracy

Conversation

@James-Chapman

@James-Chapman James-Chapman commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Why

On OMGCode PR 70, CodeRabbit raised 11 findings and omg-review-bot, which runs this skill, raised none. Most of that miss was a JSON-parsing bug in the bot: when the model's answer was malformed, the bot threw its findings away. That bug is being fixed separately in LLM-PR-Bot.

The rest of the gap is in this skill. Six of CodeRabbit's findings were false claims in Markdown the PR added:

  • a journal error code that the runtime doesn't record,
  • a recovery step that ignores rotated archive files,
  • an over-broad cross-build compatibility claim,
  • a changelog entry that contradicts the next one.

The skill only asked whether docs were updated, and large-PR triage ranked docs last, so a reviewer following it would skim them.

What changes

  • review-angles.md, Documentation. List every concrete claim a changed doc makes and check each against the code or ADR, at the layer it describes. Claims include codes, limits, paths, preconditions, recovery steps and compatibility. Walk recovery steps against the code, check limit claims at the boundary, and keep changelog entries, summaries and ADRs in agreement.
  • review-angles.md, other angles from the same PR:
    • sibling implementations reach the same outcome on unusual input;
    • fallbacks fit the limits they enforce;
    • error advice fits every case that reaches it;
    • older readers accept the largest encoded record;
    • persistence tests reload from storage before asserting.
  • SKILL.md. Triage no longer skims docs that state the contract of code in the same change. Tier 4 makes a false claim someone will act on a defect, whatever its tier.
  • reporting.md. A false doc claim someone will act on is a (Defect), ranked by what following it causes: [P3] usually, [P2] if following it leaves them stuck or loses data. Stale wording that changes no one's action is [P4] MINOR (Quality).
  • verification.md. New false-positive pattern, "Doc claim checked at the wrong layer". The same event often has different names at the CLI, journal and UI layers, so a doc can be right about one and wrong about another.
  • instructions.md. Claims in AGENTS.md and CLAUDE.md about code behaviour are checked against the code, not only reviewed as prompts.
  • evals/. Corpus version 2 adds five cases: a stale doc code, a recovery step that misses archives, adapter divergence, a replay test that never reloads, and one accurate doc change as a false-positive check. The README's sample predictions now cover every case.

Testing

  • python skills/code-change-review/scripts/detect_languages.py --check: passes.
  • python -m unittest discover -s tests -v: 30 tests pass. The 3 skips are symlink tests that need elevated privileges on Windows, and skip the same way on main.
  • python scripts/score_evals.py with the README's sample predictions: 11 cases, precision and recall 1.0. That only checks the file is well formed.
  • No model has been run against the new eval cases yet; that needs a manual, adjudicated run.

After merging

The deployed bot runs the skill from an uploaded zip. Rebuild and upload it, or the bot keeps the old rules.

🤖 Generated with Claude Code

CodeRabbit

  • Doc claim checks: Reviewers verify factual claims in changed docs against the code or ADR at the layer the doc describes. The skill previously checked only that docs were present and in sync.
  • Why: A false doc claim leads operators or integrators to take wrong actions.
  • Triage: Docs that state the contract of changed code are no longer skipped. For changes over about 1,500 lines, these docs are reviewed alongside the code.
  • Severity: Actionable false claims are (Defect), usually [P3], or [P2] when they leave users stuck or lose data. Stale wording that changes no action is [P4] MINOR (Quality).
  • Review angles: Adds checks for error-message suitability, fallback limits, sibling implementations, record size at maximum encoded length, persistence round trips, and recovery steps. Removes three test-checklist items and the Documentation heading.
  • False positives: Adds a pattern for checking a claim at the wrong output layer.
  • Instructions: AGENTS.md and CLAUDE.md code claims must match code, including preconditions.
  • Evals: cases.json moves to version 2 with five manual-review cases. The README lists the new case IDs. No model has run on these cases yet.

On OMGCode PR 70, CodeRabbit raised 11 findings and omg-review-bot
(which runs this skill) raised none. Most of that miss was a parsing
bug in the bot, but six findings were false claims in Markdown the PR
added: a wrong journal error code, a recovery step that ignored rotated
archives, an over-broad compatibility claim, a changelog entry that
contradicted the next one. The skill only asked whether docs were
updated, and large-PR triage ranked docs last, so a reviewer following
it would skim them.

- review-angles.md: list every concrete claim a changed doc makes
  (codes, limits, paths, preconditions, recovery steps, compatibility)
  and check each against the code or ADR at the layer it describes;
  walk recovery steps against the code; check limit claims at the
  boundary; keep changelog entries, summaries and ADRs in agreement.
- review-angles.md also: sibling implementations reach the same outcome
  on unusual input; fallbacks fit the limits they enforce; error advice
  fits every case that reaches it; older readers accept the largest
  encoded record; persistence tests reload from storage before
  asserting.
- SKILL.md: triage no longer skims docs that state the contract of code
  in the same change; tier 4 makes a false claim someone acts on a
  defect, whatever its tier.
- reporting.md: a doc claim someone will act on is a (Defect), ranked
  by what following it causes; stale wording that changes no action is
  [P4] MINOR (Quality).
- verification.md: new false-positive pattern, "Doc claim checked at
  the wrong layer".
- instructions.md: claims in AGENTS.md and CLAUDE.md about code
  behaviour are checked against the code.
- evals: corpus version 2 with five new cases (stale doc code, recovery
  step missing archives, adapter divergence, replay test without a
  reload, and one accurate doc change as a false-positive check); the
  README's sample predictions cover every case.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Explain Change →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 37 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d4244be4-6fde-40eb-9722-20517bc65991
Commits

Reviewing files that changed from the base of the PR and between 3817e1e and 07768f0.

Files selected for processing: 3

  • evals/README.md
  • evals/cases.json
  • skills/code-change-review/references/reporting.md

No actionable comments were generated in the recent review.

Walkthrough

The pull request updates code-review instructions, checklists, verification guidance, and reporting criteria. It also adds five evaluation cases and lists their IDs in the predictions example.

Changes

Code Review Guidance

Layer / File(s) Summary
Documentation accuracy and reporting
skills/code-change-review/SKILL.md, skills/code-change-review/references/languages/instructions.md, skills/code-change-review/references/reporting.md, skills/code-change-review/references/review-angles.md, skills/code-change-review/references/verification.md
The guidance adds checks for factual documentation claims, recovery steps, compatibility, and limits. Reporting guidance distinguishes documentation that leads to incorrect action from wording that does not change action.
Review checklist updates
skills/code-change-review/references/review-angles.md
The checklists add checks for error messages and fallbacks, sibling implementations, serialized-record compatibility, and persistence round trips.
Evaluation cases and predictions
evals/cases.json, evals/README.md
The evaluation data adds five cases covering documentation claims, adapter argument handling, and replay-test behavior. The predictions example lists the case IDs.

Estimated code review effort: 2 (Simple) | ~12 minutes

Change: Other

Possibly related PRs

Suggested reviewers: greptile-apps, omg-review-bot

Merge Risk: Minimal · previous review 3817e

This change updates review guidance and adds evaluation cases, with no runtime code affected. No merge-blocking issues remain. After merge, the deployed bot must be rebuilt with the new skill zip to pick up the rules.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "Review angles: check that doc claims are true, not just present" matches the main change. The PR adds documentation-claim verification to the review angles, the verification reference, the …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "Review angles: check that doc claims are true, not just present" matches the main change. The PR adds documentation-claim verification to the review angles, the verification reference, the reporting severity guidance, and the eval cases. The title is specific and does not describe unrelated work. It does not mention the broader triage, reporting, or eval changes, but it does not need to cover every detail.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9af07074-33ee-4a3f-a947-adbb8272b1ea
Commits

Reviewing files that changed from the base of the PR and between 41a99df and 3817e1e.

Files selected for processing: 7

  • evals/README.md
  • evals/cases.json
  • skills/code-change-review/SKILL.md
  • skills/code-change-review/references/languages/instructions.md
  • skills/code-change-review/references/reporting.md
  • skills/code-change-review/references/review-angles.md
  • skills/code-change-review/references/verification.md

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@omg-review-bot

omg-review-bot Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

✅ Review posted on 07768f0

  • Started: 2026-11-26 01:25:49 UTC
  • Model: beam
  • Review skill: code-change-review

The review is posted here.

@omg-review-bot omg-review-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Automated review of 3817e1e

Bot review number 1 of 30.

The PR strengthens documentation-claim review in the skill and adds five corpus cases; the changes are broadly consistent. One severity-rule conflict remains: the new documentation rule caps data-loss claims at P2, while the existing severity table defines data loss as P1, so a data-destroying doc instruction could be under-ranked.

Findings: 🟡 1 × [P3] MINOR (Defect) · 🔵 1 × [P4] MINOR (Quality)

🛑 Changes requested: 1 unresolved finding(s) at [P3] MINOR (Defect) or above. I'll withdraw this once they're fixed or resolved.

Model beam → deepseek-v4.1-flash · skill code-change-review · 7 files reviewed. Reply to an inline comment to discuss it.

Comment thread evals/cases.json Resolved
- reporting.md: a false doc claim now ranks on the same scale as code.
  Following it in normal use and losing or corrupting data is [P1],
  matching the severity table; being left stuck stays [P2].
- evals: three more cases cover rules the earlier cases missed. A
  rejection fallback that exceeds the smallest result limit and gives
  file-edit advice to every tool; a raised event limit whose largest
  escaped message an older build rejects; and a clean case where the
  doc names the CLI code correctly while the journal uses another name,
  which checks the "wrong layer" false-positive pattern. The README's
  sample predictions cover all 14 cases.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

@omg-review-bot omg-review-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Automated re-review of 07768f0

Bot review number 2 of 30.

New findings are only on code changed since the last review (3817e1e); the rest was reviewed then.

No new issues found in the changed lines reviewed.

No new issues found in this update.

✅ Approved: no unresolved findings at [P3] MINOR (Defect) or above.

Model beam · skill code-change-review · 7 files reviewed. Reply to an inline comment to discuss it.

@James-Chapman
James-Chapman merged commit 8cecd99 into main Nov 26, 2026
5 checks passed
@James-Chapman
James-Chapman deleted the doc-claim-accuracy branch November 26, 2026 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant