Skip to content

Stop comment-only follow-ups from looping and recognise marker-only reviews (deep-review 1.2.1) - #2

Merged
samiashi merged 4 commits into
mainfrom
fix/scanner-comment-only-follow-ups
Nov 11, 2026
Merged

samiashi merged 4 commits into
mainfrom
fix/scanner-comment-only-follow-ups

Conversation

@samiashi

@samiashi samiashi commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner

Problem

The automatic pass's scanner (plugins/deep-review/scripts/pending_reviews.py) had two bugs.

  1. Endless follow-ups. A comment-only verdict at the PR's head triggered a "checks now pass" follow-up on every scan whenever the required checks passed, even if they had already passed when the review was posted. The pass kept posting comment-only reviews.
  2. Missed follow-ups. A comment-only review with no inline findings, such as a clean PR with a failing required check, wasn't recognised as a deep review, so its follow-up never ran.

Fix

  • Follow up only on new check results. A comment-only verdict now triggers a follow-up only once a required check finishes after that review.

  • Where finish times come from: one GraphQL statusCheckRollup read, made through the scanner's gh() helper.

    • Check runs finish at completedAt, commit statuses at createdAt. gh pr checks reports a zero time for statuses, which is why it can't be used.
    • Only the newest run of each check counts, and only SUCCESS passes, matching gh pr checks.
    • A read that fails, sees a different head commit, or can't see every check counts as pending. That PR is retried on the next scan without holding up the others.
  • Verdict marker: every review body now ends with a hidden <!-- deep-review-verdict: approve|ready|changes|comment -->.

    • The scanner judges follow-ups from the latest review that carries one, and reads a body's closing marker rather than a quoted one.
    • Reviews posted before this release are still read from their state and wording.
  • Pre-submit re-read: before posting a verdict that depends on the required checks, the review skill now reads them again.

  • Compatibility: required_checks_pass(repo, number) and evaluate(repo, me, pr) keep their signatures, so external callers that override them keep working.

  • CI matrix: the unit tests now run on every supported Python (3.9, 3.10, 3.11, 3.12, 3.13, 3.14 and 3.15), not just the oldest and newest.

Releases deep-review 1.2.1 when merged.

Checks

Run locally on the final tree:

  • ruff
  • plugin checks and release-age check
  • zizmor and actionlint
  • 93 unit tests on every supported Python, 3.9 to 3.15, with every fix mutation-tested
  • claude plugin validate
  • the new rollup read, run live against three real PRs (check runs, commit statuses and mixed); it agrees with gh pr checks on pass or fail

A pre-PR deep review in fix mode, with Claude and Codex finders, found 1 Medium issue: required commit statuses never triggered the follow-up. It also found 10 Low or Nit issues. All are fixed here.

After merge

The VM's automatic pass has to be moved to the new tag: check out deep-review--v1.2.1, run codex plugin add, and update the two pinned runner paths.

…nise marker-only reviews

A comment-only verdict at the current head re-triggered a follow-up on every scan whenever the required checks already passed, so the automatic pass kept posting comment-only reviews. It now follows up only when a required check finished after that review.

A comment-only review with no inline findings was never treated as a deep review, so its checks-now-pass follow-up never ran. Review bodies now end with a hidden <!-- deep-review-verdict: ... --> marker that the scanner reads, with the old state and wording rules kept for earlier reviews.

The required_checks_pass and evaluate signatures are unchanged, so callers that override them keep working. Release 1.2.1.
…llup

gh pr checks reports a zero completedAt for commit statuses, so the follow-up never fired in repos whose required checks are statuses. One GraphQL statusCheckRollup read through gh() now gives both the pass state and the finish time: check runs finish at completedAt, statuses at createdAt, and only the newest run of each check counts, as in gh. A read that fails, sees another head, or can't see every check counts as pending, so that PR is retried without stalling the scan.

The follow-up is now judged against the latest review that carries a verdict marker, and a body's closing marker wins over a quoted one.
…endent verdict

Closes the window where a check re-run passes between the verdict and the submit, which would leave a comment-only review with no follow-up. The changelog describes what 1.2.1 actually does.
The matrix only covered the oldest and newest versions. It now lists every supported release, so a behaviour change in any of them fails CI. AGENTS.md, CONTRIBUTING.md and the plugin README now state the supported range.
@samiashi
samiashi merged commit 920b8d5 into main Nov 11, 2026
14 checks passed
@samiashi
samiashi deleted the fix/scanner-comment-only-follow-ups branch November 11, 2026 08:11
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.

1 participant