Skip to content

Tighten the Overview Table and Headline Finding Readers in pr_review.py #2985

Closed

Description

@ptr727

Context

The overview-table and headline readers added for #2982 match a file-table annotation to an open entry by word overlap, and read a headline count by regex. Three local review passes found gaps that were not fixed in that change, because each fix produced the next finding.

Remaining gaps

  • Entries are read from quote-masked text, so an entry title made mostly of code spans loses those words, and an annotation naming the same code spans then matches nothing. This reports a finding as unthreaded on a round where every finding has a thread.
  • A title runs to the end of its cell, so trailing prose in the same cell as the annotation adds words to the title and can drop the word overlap below half.
  • A title followed in the same cell by a code-span quotation is cut at the backtick and gains the next word.
  • The headline reader counts any number beside "findings", including suppressed findings and earlier rounds' findings, and does not compare against the round's own stated open total. A clean round with a resolved section can print a shortfall.
  • The settled-word check is per sentence and handles only "not" and "not yet" as negation, so "have not been addressed" is skipped, and a semicolon joining a settled clause to an owed one hides the owed count.
  • Word overlap has no one-to-one pairing, so several annotations can match the same entry.

What to Change

Measure these readers against real second-format bodies and decide whether matching by thread file path, which both the annotation row and the thread carry, replaces word overlap.

Activity

  1. added
    enhancement
    script
    on Oct 14, 2026
  2. ptr727 commented on Oct 14, 2026

    @ptr727
    OwnerAuthor

    Claim (engineering round 25, grouped with #3003): branch feature/2985-3003-pr-review-readers, files scripts/pr_review.py and tests/test_pr_review.py (plus scripts/README.md only where a documented reading changes).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementscript

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions