Repository navigation
Pair Overview Findings With Threads by File and Read Every Cleanup Head Page - #3022
Conversation
…ad Page The file table and `Review findings:` readers now pair each finding with a thread of the round on a file it names, one thread per finding, replacing the word-overlap match between a table annotation and an open entry. A table row names a finding by its vote count, whatever severity spelling surrounds it. The headline count is compared against everything the pull request accounts for: the open sections or the stated total, the round's suppressed and previously missed findings, and the threads the reviewer's earlier rounds opened that no open entry links. The per-sentence settled-word filter is gone. `cleanup` pages the open head pull request read and filters each page to this repository before deciding, so forks sharing a branch name are never counted as users, and an unread page stops at exit 2. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A file table or `Review findings:` finding now also pairs with an earlier round's thread that the head round's open entries link, since that entry is a finding the round still names. The headline comparison reads the reviewer's earlier threads by each thread's own author and round rather than through the review window, which holds the newest reviews while the thread window holds the oldest threads. The scripts README now states that every head pull request is read and named. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…se Carry `earlier_round_threads` reads a thread's login through the existing `thread_author` helper, which also survives a deleted account's null author. A `Review findings:` case now covers an entry paired with an earlier round's thread that an open entry links, and three added lines are wrapped to the configured line length. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #3022 +/- ##
==========================================
Coverage ? 60.98%
==========================================
Files ? 17
Lines ? 9010
Branches ? 0
==========================================
Hits ? 5495
Misses ? 3515
Partials ? 0
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:
|
There was a problem hiding this comment.
🟡 Changes recommended
Review-thread pagination remains incomplete, so findings beyond the first 100 threads may be missed.
1 open finding
What changed in this PR
Improves review-finding accounting and safely paginates cleanup head pull requests.
Changes:
- Pairs findings with review threads by file path.
- Expands headline accounting across historical and suppressed findings.
- Adds cleanup pagination, filtering, tests, and documentation.
| File | Reviewed changes |
|---|---|
tests/test_pr_review.py |
Adds coverage for pairing, historical threads, headlines, and cleanup pagination. |
scripts/README.md |
Documents the updated cleanup behavior. |
scripts/pr_review.py |
Implements pairing, headline accounting, and paginated cleanup reads. |
🧠 Review effort: Lite
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
@coderabbitai review |
✅ Action performedReview finished.
|
…ng, and backlog-burndown Re-Dispatch Rules to Main (#3030) - #2997 adds an updater that keeps the coding-agent tools already installed on a host current, without installing a tool the maintainer has not chosen - #3017 brings the agent-safety READMEs up to the write guard's #3011 readings: `--admin` read inside a quoted `eval` argument, clustered and cut-short push options, `--branches` as `--all`, `refs/` pattern destinations, and a double-quoted list expansion as a directory or commit value failing closed - #3022 pairs a Copilot overview-table or `Review findings:` entry with a review thread by the file it names, replacing word overlap, compares the headline count against everything the round and the pull request account for, and makes `pr_review.py cleanup` read every page of the head pull requests, counting only this repository's own - #3018 has `backlog-burndown` name a new branch when an issue is dispatched again, name the open pull request a pushed branch still heads when cleanup reports it, and splits the long cleanup sentence - #3028 keeps an abandoned group's issue out of the `backlog-burndown` ranking while that group is stopped for the maintainer, and records the release on the claim comment - #3023 makes `gh-write-guard` read a `heads/` push destination as the branch git completes it to, read `--prune` beside a pattern, `:`, `--all`, or bare push as a delete of each branch matched, read `--mirror` as a force and a delete, and read the `@{push}` target against the configured remote names. A differential against the previous guard found no deny-to-allow flip - #3032 subtracts every thread id an open entry links, back-references included, from the earlier threads `pr_review.py`'s headline shortfall counts, so a back-referenced thread is no longer counted twice - #3035 covers the bootstrap upgrade handoff on Linux and Windows, the root and elevated skips included, and has `bootstrap.ps1` say when the agent tools report fails - #3037 makes `gh-write-guard` fail closed when a push target resolves but the remote names cannot be read After this merges, the host-safety installer payload changes, so the maintainer runs the installer after promotion. Fixes #3009 Fixes #2985 Fixes #3003 Fixes #2993 Fixes #3016 Fixes #3005 Fixes #3007 Fixes #2973 🤖 Generated with [Claude Code](https://claude.com/claude-code)

Summary
Two
scripts/pr_review.pyreaders, fixed together.cleanupreads every open head pull request (#3003)Q_CLEANUP_USERSis split. The heads read,Q_CLEANUP_HEADS, takes 100 per page and is paged throughshared.walk(..., strict_page=True)in a newlocal_heads. Each page is filtered toheadRepository == owner/repobefore anything is decided, so forks sharing the branch name are never counted, on any page.pageInfo, a malformed node list, or a cursor that does not advance raisesCleanupUnread, socleanupstops at exit 2.first:20read with the overflow counted, since every base pull request is this repository's own.cleanupparagraph now says every head is read and named.Overview table,
Review findings:, and headline readers (#2985)The issue asked whether matching by thread file path should replace word overlap. It does, and the word-overlap code is deleted rather than patched (
title_key,entry_text,reworded,open_entry_texts, and the title-capturingTABLE_FINDING).(N vote(s)), whatever severity spelling surrounds it. Each finding is paired with a thread of the round on a file the row's first cell names. This closes gaps 1-3 of Tighten the Overview Table and Headline Finding Readers in pr_review.py #2985, since no title is read. The newunpaireddoes a maximum one-to-one pairing, one thread per finding, which closes gap 6.Review findings:list. It uses the same pairing, so a second entry on a file that has one thread is now counted. Both readers also pair with an earlier round's thread when the head round's open entry links it.SETTLED) is deleted rather than extended, which closes gap 5. Earlier threads are read by the thread's own author and round, not through thereviews(last:100)window.Measurement
Before choosing the design I measured it read-only against roughly 400 second-format Copilot rounds on recent pull requests in this repository. Only aggregate shapes are reported here.
<Severity> finding (N votes)pattern did not read: nits and moderates named only in a table row.The cost, stated in
headline_shortfall's docstring, is this: a headline naming no more findings than earlier rounds opened threads goes unreported by that reading. The table and prose readers still see such a finding.Verification
OPERATIONS.mdpassed: ruff check and format, mypy, the coverage-run unittest suite plus the selftests,build_dist --check,repo_gate, bothprose_lintinvocations,jq,spec/validate.py, anddocker_lint. The diff-scopedprose_lint --diffagainst the merge base is clean.Closes on promotion: #2985, #3003
🤖 Generated with Claude Code
Summary by CodeRabbit
2if it cannot read a page of head pull requests.