Repository navigation
Read Open-Section Thread Ids From Its Entries Alone - #2573
Conversation
The linked entry count read only bullets at the section's margin outside nested blocks, while the thread ids were read from the whole section. A back-reference inside a collapsed block naming an id no thread carries was counted as a missing finding beside the unlinked entry it sat near, two for one. The ids now come from the same entries the count reads. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
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. Comment |
There was a problem hiding this comment.
🟢 Approval recommended
All reviewed changes address the reported issue with regression coverage and no unresolved blocking findings remain.
0 open findings
What changed in this PR
Updates overview parsing so thread IDs are collected only from section-level entries, preventing duplicate findings from collapsed back-references.
Changes:
- Restricts ID extraction to margin-level entries.
- Clarifies parser behavior for collapsed blocks.
- Adds regression coverage.
| File | Description |
|---|---|
tests/test_pr_review.py |
Adds regression coverage for collapsed back-references. |
scripts/pr_review.py |
Aligns ID extraction with counted entries. |
🧠 Review effort: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #2573 +/- ##
===========================================
+ Coverage 58.84% 58.85% +0.01%
===========================================
Files 16 16
Lines 8179 8181 +2
===========================================
+ Hits 4813 4815 +2
Misses 3366 3366
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
… Recognizer (#2568) ## Summary Promotes four changes from `develop`. - [#2562](#2562): `scripts/pr_review.py` reads Copilot's second overview format through one recognizer, `read_overview`, whose rows live in one table, `OVERVIEW_SECTIONS`. It reads the verdict and headline, the count-first open-findings section in both numbers, both resolved spellings, and the collapsible `Open (N)` block, matching each open entry against the head's threads by `fullDatabaseId`. A round whose verdict flags findings while counting none now exits `50` rather than reading as clean. `scripts/README.md`, the module docstring, and `pr-review-conduct` describe the new readings, and the generated skills are rebuilt. - [#2570](#2570) fixes a finding this promotion's first Copilot round raised. An `Open (N)` section is not read as a total, so an entry it counted with no recognized thread link dropped out of every count. Each entry the section counts beyond its linked entries now reaches `FINDINGS WITH NO THREAD`. A linked entry is a bullet at the section's margin carrying a recognized link, outside any block collapsed within it. - [#2573](#2573) fixes the next finding this promotion's Copilot round raised. An open section's thread ids are now read from the same margin-bullet entries its linked count reads, so a back-reference inside a collapsed block is no longer counted as a second missing finding. - [#2571](#2571), merged to `develop` by another lane, rides along. Both menus now judge a cached hub tree fresh against the commit the session's own ref resolves to, rather than against `origin/main`. It carries no `Closes on promotion` line, so this promotion closes no issue for it. Fixes #2480 Fixes #2479 Fixes #2544 Fixes #1723 ## Verification - #2562 took nine recorded local strict-review passes, and the last, over its final head, recorded no finding. Copilot ran two rounds, and all five threads were fixed, answered, and resolved. - Copilot's second-round headline on #2562 also named #2544's headline-sentence arm, a clean verdict whose headline names a finding. Decision #2564 shipped #2562 without that arm, and it is filed as #2567. - #2570 took eight recorded local strict-review passes, the last recording no finding, and Copilot's two rounds on it were all fixed and answered. A pre-existing gap it found in the count-first section's shortfall is filed as #2569. - On this promotion, the fixture `KeyError` finding was declined with evidence, the anchorless-entry finding is fixed by #2570, and the entry-id finding by #2573. #2573's one local pass raised two findings, an `Open (0)` exit-code change that reports rather than hides and a mixed-revision shape never seen, both listed in its body, and Copilot approved it with no open finding. - #2481 is not included and stays open for its own lane. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Summary
Fixes a finding Copilot raised on promotion #2568.
read_overviewread an open section's linked entry count only from bullets at the section's margin outside nested collapsed blocks, but read its thread ids from the whole section. A back-reference inside a collapsed block naming an id no thread carries was then counted as a missing finding beside the unlinked entry near it, two for one. The ids now come from the same entries the count reads.read_overviewcollects each section's ids from its margin-bullet entries alone, and its docstring says a back-reference or a collapsed list is read as neither an entry nor a link.Closes on promotion: #2480
Local review
One recorded local strict-review pass ran over 073a4e9 and raised two findings, listed here with the disposition proposed for the hosted review:
uncounted_verdict'slistedcheck readscount or ids, so anOpen (0)section whose only link sits off the margin now lists nothing, and a flagging verdict with nothing else counted exits50where it exited0. That reports rather than hides, and anOpen (0)section carrying a link is a shape no measured round has shown.**Findings:**preamble total and also carrying a count-first(N) open findingssection, with an entry whose unknown-id link sits off the margin, such as a numbered item, no longer counts that entry. The docstrings record the two format revisions as never seen together, and in that mixed shape a margin bullet with no link already went uncounted before this change, so it widens an existing gap rather than opening one.🤖 Generated with Claude Code