Skip to content

Report a Vetted Suppressed Summary Its Reader Misses in pr_review.py - #3202

Merged
ptr727 merged 4 commits into
developfrom
fix/suppressed-vetted-unread
Oct 18, 2026
Merged

ptr727 merged 4 commits into
developfrom
fix/suppressed-vetted-unread

Conversation

@ptr727

@ptr727 ptr727 commented Oct 18, 2026 •

Copy link
Copy Markdown
Owner

Summary

unrecognized_in compared vetted summaries against what a block reader actually read only for the previously-missed section. The vetted suppressed spellings, Suppressed comments (N) and Comments suppressed due to low confidence (N), got no such check against suppressed_blocks. A layout that reader misses therefore reported shapes=ok while suppressed= came out short.

  • The suppressed spellings move into a SUPPRESSED_SUMMARIES set, and the one existing comparison runs over both readers, rather than a copy being added beside it.
  • The comparison now counts only the summary opening each block. Counted over every summary a block holds, a block that ran on into the next section stood in for that section, so the over-run form of the defect stayed silent too. The local strict review found this.

Tests

  • test_a_vetted_suppressed_summary_its_reader_misses_is_reported stubs suppressed_blocks to drop its last block over three constructed bodies. It fails on the base in all three cases.
  • test_a_block_running_into_the_next_section_does_not_stand_in_for_it patches sibling_heading to never bound. It fails with the first-line counting reverted.
  • Full suite: 2968 tests OK, 7 skipped. Ruff, mypy, prose gate, eol, spec/validate.py, and build_dist.py --check are clean.

Local review

Three recorded passes at the frontier tier. The first two raised findings that were fixed in this branch, and the third raised none. One finding outside this diff, which predates the branch, is filed as #3201.

Refs #3193

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • Improved detection of unread sections in pull request reviews, including suppressed sections and sections whose boundaries are unclear.
    • Review results now identify vetted section headings that were missed, helping make review coverage more accurate.

unrecognized_in compared vetted summaries against what a reader read only for
the previously-missed section. A layout that suppressed_blocks misses therefore
reported shapes=ok while suppressed= came out short. The comparison now runs
over both readers, and a test stubs the suppressed reader to drop a block.

Fixes #3193
A block that ran on into the next section held that section's summary, so
the section read as found and the over-run form of the alternating-sections
defect reported shapes=ok. Only the summary opening a block now counts.
The test holds two suppressed sections with nothing between them, so it is
a same-kind over-run rather than the alternating-sections layout.
Copilot AI lite review requested due to automatic review settings October 18, 2026 16:23
@ptr727

ptr727 commented Oct 18, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head 3f546f8ad11fa0959552e388ddb8e22de2f7abda, the content this pull request carries at that commit against develop, and it recorded 0 findings.

@coderabbitai

coderabbitai Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: ptr727/ProjectTemplate/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8c7637e1-9536-4408-b216-cd07593a5fcf
📥 Commits

Reviewing files that changed from the base of the PR and between ebb1b40 and aa966bb.

📒 Files selected for processing: 2
  • scripts/pr_review.py
  • tests/test_pr_review.py

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

📝 Walkthrough

The unread-section check now includes vetted suppressed-section headings. Regression tests cover missing parsed sections and cases where boundary detection causes a suppressed block to absorb the next section.

Changes: Suppressed-Section Detection

Layer / File(s) Summary
Detect unread suppressed sections
scripts/pr_review.py, tests/test_pr_review.py
SUPPRESSED_SUMMARIES is added to the vetted headings. unrecognized_in checks opening summaries from the corresponding readers for previously missed and suppressed sections. Tests cover standalone and alternating sections, plus a failed sibling-boundary case.

Priority: ⬇️ Low

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

Merge Risk: ⚪ Minimal · up to aa966

No actionable issue remains identified; the change is mergeable after normal checks.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and specifically summarizes the main change: reporting vetted suppressed summaries that a reader misses in pr_review.py.
Docstring Coverage Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files. (1 skipped: 1 …
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: Docstring Coverage

Explanation

Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files. (1 skipped: 1 too large.)

✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

Only a minor documentation nit remains, with no blocking issues.

1 open issue
What changed in this PR

Updates unrecognized_in to detect suppressed summaries missed by their reader, including overrun sections.

Changes:

  • Centralizes suppressed summary spellings.
  • Validates both readers using each block’s opening summary.
  • Adds regression tests for missed and overrun sections.

Review note: One P3 documentation nit remains regarding subject-verb agreement.

File Description
tests/​test_pr_review.py Adds regression coverage for missed and overrun sections.
scripts/​pr_review.py Extends vetted-summary validation for suppressed blocks.

Review effort: Lite

Comment thread tests/test_pr_review.py Resolved
Read in the past tense parsed as a present-tense agreement error.
@ptr727

ptr727 commented Oct 18, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head aa966bb438d872781fd209413a061c689771e48e, the content this pull request carries at that commit against develop, and it recorded 0 findings.

@codecov

codecov Bot commented Oct 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (develop@ebb1b40). Learn more about missing BASE report.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop    #3202   +/-   ##
==========================================
  Coverage           ?   65.48%           
==========================================
  Files              ?       17           
  Lines              ?     9754           
  Branches           ?        0           
==========================================
  Hits               ?     6387           
  Misses             ?     3367           
  Partials           ?        0           
Flag Coverage Δ
python-3.13 65.48% <100.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ptr727

ptr727 commented Oct 18, 2026

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@ptr727
ptr727 merged commit 3b1fe04 into develop Oct 18, 2026
13 checks passed
@ptr727
ptr727 deleted the fix/suppressed-vetted-unread branch October 18, 2026 17:07
ptr727 added a commit that referenced this pull request Oct 18, 2026
…ck to Main (#3203)

- #3198 states the fleet standard for script and utility file names in
`CODESTYLE.md`'s General section, with a pointer from `GOVERNANCE.md`.
The `python-codestyle` skill carries the changed text as a generated
include, so the installed Skills change at release.
- #3202 extends `pr_review.py`'s vetted-but-unread check to the
suppressed summaries. A layout that `suppressed_blocks` misses now
reports an unread shape instead of `shapes=ok` with `suppressed=` short.
The check now counts only the summary opening each block, so a block
that runs into the next section no longer stands in for it. The
cross-kind over-run the local review found outside that diff is #3201.

Closes #3140
Closes #3193

🤖 Generated with [Claude Code](https://claude.com/claude-code)
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.

2 participants