Skip to content

Read a Split File-Table Cell and Let a Noted Row Stop Refusing Without Covering - #2543

Merged
ptr727 merged 19 commits into
developfrom
feature/auto-2251
Oct 9, 2026
Merged

ptr727 merged 19 commits into
developfrom
feature/auto-2251

Conversation

@ptr727

@ptr727 ptr727 commented Oct 8, 2026 •

Copy link
Copy Markdown
Owner

Summary

Copilot's file table, which pr_review.py reads as coverage when no coverage statement reaches the head, misread two shapes the Balanced review effort writes, so a fully reviewed pull request was sent to the maintainer.

  • A cell grouping several files, each in its own single-backtick code span with commas between them, is now read as one entry per span. Any other cell is read whole, as before.
  • A row that names no changed path and ends in a parenthesized note, as in docs/a.md (cleanup), is read again without the note. Per decision Decide Whether a Note-Stripped File-Table Row Counts as Coverage on Its Own (auto-2251) #2522, such a row only stops being reported as naming a path the diff does not carry. It covers nothing, since nothing reads the note and it could say the file went unreviewed. So a file named only on a noted row is left out, and the table refuses.
  • A grouped cell ending in one or more notes, as in `docs/a.md`, `docs/b.md` (moved), gives each span those notes, so each reads as a noted row. The note comes off before the spans are found, so a path quoted inside it is never read as one. note_split and span_list hold the note check and the span-list check once each.
  • The digest's "the reviewer names N rows" message now says "entries", since one split cell yields several.
  • table_match also returns the uncovered paths a noted row names, so the digest's table_against_diff counts such a file as named and no longer reads it as the one unread file.

scripts/README.md, the row_paths, table_match, and cell_paths docstrings, and the tests change with the code.

Verification

  • Current develop (53170c6) is merged in. Its new exit 50 reads a round stating no finding under a flagging verdict, so the split-cell tests' written helper now gives its rounds the clean verdict, as the sibling balanced helper already does (54a45bd).
  • Full unit suite: 2389 tests OK (6 skipped). ruff format and check, mypy, the prose gate, repo_gate.py, and spec/validate.py pass.
  • With elif not noted reverted to else, six subtests across three tests fail, so the tests pin the decision. Finding the spans in the whole cell rather than in the text before the note fails both new grouped-note tests, and loosening note_split's whitespace and inner-parenthesis checks fails the read-whole test.
  • Copilot's second round raised the grouped-noted-cell reading (de954e6). A first attempt, aa804fb, counted spans quoted inside a note and is reverted in 8f97a76. The local passes since then raised a duplicated note check and two README wordings, fixed in 2a857d8 and 721406e. Copilot's third round raised a grouped cell carrying stacked notes, which the last local pass had also left open, and an ungrammatical docstring sentence, both fixed in e2d5cf2, which a local pass recorded with no findings.

Closes on promotion: #2251

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Improvements
    • Coverage tables now recognize comma-separated file paths and rows with trailing notes. Paths found only after removing a note are not counted as covered.
    • Coverage diagnostics distinguish noted paths from uncovered, invented, or ambiguous paths. A table establishes coverage only when no such issues remain.
    • Clarified how statements indicating no coverage are classified.

ptr727 and others added 10 commits October 4, 2026 16:33
…t Names

A file-table cell listing several code spans separated by commas now names
each span, and a row naming no changed path is read again without a trailing
parenthesized note. Every row form still applies to each path a cell yields,
and a split or annotated path the diff does not carry still refuses the table.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The row_paths summary now says a note is read past only where it must, and
the unreadable-diff message counts paths rather than rows, since a split
cell yields several. The README sentence on the new readings is split in two.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
An annotated duplicate row and a wildcard row each break a path count, so
the message names entries, one per row or listed span.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI lite review requested due to automatic review settings October 8, 2026 15:29
@coderabbitai

coderabbitai Bot commented Oct 8, 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: c587e928-2691-4942-8a59-05b59a701068
📥 Commits

Reviewing files that changed from the base of the PR and between 382c0cc and 203b054.

📒 Files selected for processing (3)
  • scripts/README.md
  • 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

Walkthrough

File-table parsing now accepts comma-separated backtick paths and handles trailing parenthesized row notes. Coverage matching and diagnostics track paths found only after removing a note as uncovered. Tests and documentation cover these parsing and reporting rules.

Changes

File-table coverage parsing

Layer / File(s) Summary
Parse table cells and noted rows
scripts/pr_review.py, tests/test_pr_review.py, scripts/README.md
Cells can contain multiple backtick-delimited paths when separated only by commas and whitespace. Rows with trailing parenthesized notes are retried only when the original row matches no changed path. Tests and documentation describe these parsing rules.
Propagate noted paths through coverage diagnostics
scripts/pr_review.py, tests/test_pr_review.py
table_match returns noted paths separately. Coverage diagnostics treat paths found only on noted rows as uncovered and exclude them from exact unread-file identification. Tests cover the diagnostic output.

Priority: ⬇️ Low

Estimated code review effort: 3 (Moderate) | ~20 minutes

Merge Risk: ⚪ Minimal · up to 203b0

No actionable issue remains in the supplied review evidence; the change is ready for normal merge checks.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
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 25 functions across 2 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.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly summarizes the two main changes: parsing split file-table cells and allowing noted rows to prevent refusal without providing coverage.
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · 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.

@codecov

codecov Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.25%. Comparing base (53170c6) to head (e2d5cf2).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2543      +/-   ##
===========================================
+ Coverage    59.09%   59.25%   +0.15%     
===========================================
  Files           16       16              
  Lines         8231     8263      +32     
===========================================
+ Hits          4864     4896      +32     
  Misses        3367     3367              
Flag Coverage Δ
python-3.13 59.25% <100.00%> (+0.15%) ⬆️

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.

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.

🟡 Changes recommended

The noted-path diagnostic issue remains unresolved, along with a docstring formatting nit.

2 open findings
What changed in this PR

Improves Balanced review coverage parsing for grouped file-table cells and note-suffixed rows.

Changes:

  • Splits comma-separated backtick paths.
  • Handles trailing notes without counting them as coverage.
  • Adds documentation and regression tests.

Open findings:

  • Critical (4 votes): Preserve noted paths in the shortfall diagnostic.
  • Nit (4 votes): Reflow the table_match docstring sentence.
File Description
tests/​test_pr_review.py Adds regression coverage.
scripts/​README.md Documents the coverage rules.
scripts/​pr_review.py Implements parsing, matching, and diagnostics.

🧠 Review effort: Lite


Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.

Comment thread scripts/pr_review.py Resolved
Comment thread scripts/pr_review.py Resolved
@ptr727

ptr727 commented Oct 8, 2026

Copy link
Copy Markdown
Owner Author

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

@ptr727

ptr727 commented Oct 8, 2026

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Oct 8, 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 and others added 4 commits October 8, 2026 17:25
The `written` helper built a round stating no finding under a flagging
verdict, which develop now reads as exit 50. The tests read the file
table, so they take the clean verdict the sibling `balanced` helper uses.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A cell listing several code spans that also carried a note was read
whole and reported as a path the diff does not carry. It now names each
span with a note, so each covers nothing and the refusal names it as
noted.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Counting every code span in the cell also counted a span quoted inside a
note, so a single-path row such as one noting what it was renamed from
read as naming a second path and refused falsely. The earlier reading
fails closed on a grouped cell carrying a note, so it stands.

This reverts commit aa804fb.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ptr727

ptr727 commented Oct 9, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head 8f97a7641e7ef5e91ebe31d3fbd84e30ed5fd2ad, the content this pull request carries at that commit against develop, and it recorded 1 finding.

@ptr727
ptr727 requested a lite review from Copilot October 9, 2026 00:43

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.

🟡 Changes recommended

The grouped-cell noted-row diagnostic remains incorrect, with related documentation and docstring wording issues.

1 open finding
2 resolved since last review

🧠 Review effort: Lite

Comment thread scripts/pr_review.py Resolved
ptr727 and others added 3 commits October 8, 2026 17:51
A cell listing several code spans and ending in a note was read whole,
so the refusal named it as a path the diff does not carry. The note now
comes off the cell's end before its spans are found, and each span keeps
it, so each reads as a noted row and a span quoted in the note is never
read as a path.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
`cell_paths` peeled a grouped cell's note with a looser copy of the
check `note_head` makes, and tested for a span list twice. `note_split`
and `span_list` now hold each check once, so a grouped cell ending in
anything `note_head` would not read as a note is read whole.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
"carrying it" could read as each span carrying the whole list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

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.

🟡 Changes recommended

A P2 parsing issue and a documentation nit remain unresolved.

1 open finding
1 resolved since last review
Previously missed (1)

In code that hasn't changed since last review

Low severity Fix grouped-cell fallback sentence in docstring

scripts/​pr_review.py:2471

[P2] Repair the grouped-cell sentence in this docstring. “and read whole that cell is one path” is grammatically incomplete, so the explanation of the fallback behavior is hard to parse. State that the grouped cell is read as one path before contrasting it with the split form.

🧠 Review effort: Lite

Comment thread scripts/pr_review.py Resolved
`cell_paths` took one note off a grouped cell, where `row_paths` takes
notes off a row one after another, so a grouped cell ending in two notes
was read whole. It now loops the same way, and the docstring's
grouped-cell sentence reads as a sentence.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ptr727

ptr727 commented Oct 9, 2026

Copy link
Copy Markdown
Owner Author

[P2] Repair the grouped-cell sentence in this docstring. “and read whole that cell is one path” is grammatically incomplete, so the explanation of the fallback behavior is hard to parse.

Fixed in e2d5cf2: the cell_paths docstring now reads "Read whole, such a cell is one path holding backticks, which names none of the files it lists."

@ptr727

ptr727 commented Oct 9, 2026

Copy link
Copy Markdown
Owner Author

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

@ptr727
ptr727 merged commit 38f2c91 into develop Oct 9, 2026
13 checks passed
@ptr727
ptr727 deleted the feature/auto-2251 branch October 9, 2026 01:39
ptr727 added a commit that referenced this pull request Oct 9, 2026
#2611)

## Summary

Promotes develop to main.

- #2543: read a Copilot file-table cell listing several code spans as
each path it names, and let a row carrying a trailing note stop being
reported as a path the diff lacks, without covering the file.

Fixes #2251

🤖 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