You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Read a Split File-Table Cell and Let a Noted Row Stop Refusing Without Covering - #2543
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.
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.
…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]>
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.
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
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
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.
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.
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.
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]>
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.
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]>
[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.
`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]>
[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."
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Copilot's file table, which
pr_review.pyreads 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.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.`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_splitandspan_listhold the note check and the span-list check once each.table_matchalso returns the uncovered paths a noted row names, so the digest'stable_against_diffcounts such a file as named and no longer reads it as the one unread file.scripts/README.md, therow_paths,table_match, andcell_pathsdocstrings, and the tests change with the code.Verification
develop(53170c6) is merged in. Its new exit 50 reads a round stating no finding under a flagging verdict, so the split-cell tests'writtenhelper now gives its rounds the clean verdict, as the siblingbalancedhelper already does (54a45bd).repo_gate.py, andspec/validate.pypass.elif not notedreverted toelse, 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 looseningnote_split's whitespace and inner-parenthesis checks fails the read-whole test.Closes on promotion: #2251
🤖 Generated with Claude Code
Summary by CodeRabbit