Skip to content

Read Open-Section Thread Ids From Its Entries Alone - #2573

Merged
ptr727 merged 1 commit into
developfrom
feature/auto-2480-entry-ids
Oct 8, 2026
Merged

ptr727 merged 1 commit into
developfrom
feature/auto-2480-entry-ids

Conversation

@ptr727

@ptr727 ptr727 commented Oct 8, 2026

Copy link
Copy Markdown
Owner

Summary

Fixes a finding Copilot raised on promotion #2568. read_overview read 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_overview collects 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.
  • A test feeds an unlinked entry beside a collapsed back-reference to an absent thread and expects one finding. It reports two with the change reverted.

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:

  1. Within the chosen direction. uncounted_verdict's listed check reads count or ids, so an Open (0) section whose only link sits off the margin now lists nothing, and a flagging verdict with nothing else counted exits 50 where it exited 0. That reports rather than hides, and an Open (0) section carrying a link is a shape no measured round has shown.
  2. Unseen shape. A body stating a **Findings:** preamble total and also carrying a count-first (N) open findings section, 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

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]>
Copilot AI lite review requested due to automatic review settings October 8, 2026 19:37
@coderabbitai

coderabbitai Bot commented Oct 8, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Repository: ptr727/ProjectTemplate/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5193456b-7ec9-42f2-bb03-01c7b2bb526b
  • 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.

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

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

codecov Bot commented Oct 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 58.85%. Comparing base (e93e478) to head (073a4e9).

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              
Flag Coverage Δ
python-3.13 58.85% <100.00%> (+0.01%) ⬆️

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 merged commit 3013808 into develop Oct 8, 2026
14 checks passed
ptr727 added a commit that referenced this pull request Oct 8, 2026
… 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)
@ptr727
ptr727 deleted the feature/auto-2480-entry-ids branch October 17, 2026 20:44
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