Skip to content

Approve without waiting for CI on protected branches, and ask the intent questions that hold approval (deep-review 1.2.3) - #5

Merged
samiashi merged 3 commits into
mainfrom
fix/approve-on-pending-checks-and-ask-intent-questions
Nov 12, 2026
Merged

samiashi merged 3 commits into
mainfrom
fix/approve-on-pending-checks-and-ask-intent-questions

Conversation

@samiashi

Copy link
Copy Markdown
Owner

Problem

The automatic reviewer found no blocking issues but still wouldn't approve, in two situations:

  1. Stacked PRs. The skill only approved once every required check had passed. Stacked PRs target main, but their CI often doesn't run until the parent merges, so the review posted "Approval withheld because GitHub reports no required checks" (coral-core#1834, prioritizer#604/#605).
  2. Unasked questions. On coral-core#1847 an open question about intended behaviour was all that held approval back. The VM's publish-blockers-only policy kept the question private, so the PR showed "pending an owner decision" with nothing anyone could answer.

Fix

Checks

  • On a branch that requires status checks, the review approves while required checks are still running or haven't run, and says so. GitHub blocks the merge until they pass, unless someone bypasses the rule.
  • A required check that failed, was cancelled, timed out, went stale or needs action still holds approval back.
  • On a branch that requires no checks, every check on the PR must pass first, as before.
  • If the checks or branch rules can't be read, approval is held back.

Intent questions

  • A question that would hold approval back is posted once, as an inline question, even under a blockers-only policy. Later rounds reuse its thread.
  • A reply from the PR's author or a maintainer settles it, in the thread or anywhere on the PR. The answer counts as evidence of intent; text asking to approve is still treated as steering.
  • "Intended" clears the question. "Not intended" turns it into a finding, with a severity from independent triage. A question left unclear or unanswered goes to the user.

Scanner (scripts/pending_reviews.py)

  • Comment-only reviews now carry a hidden deep-review-awaiting line, and the scanner follows each kind differently:
    • question: no longer polls checks;
    • checks: followed up once none is failing, even while others are still running;
    • all-checks: waits for every check.
  • Reviews written before this keep the old rule.
  • Replies are counted per thread from a hidden deep-review-read-at line, so an answer posted while a round runs is no longer lost.
  • Review threads are paginated.

Releases deep-review 1.2.3 when merged.

Checks

  • Locally: ruff, the plugin and release-age checks, zizmor and actionlint pass. Unit tests pass on Python 3.11–3.15, and the old-Python guard still works on 3.9 and 3.10.
  • Mutation-tested: every new scanner rule; each mutation broke 1–9 tests.
  • Live: the new GraphQL reads ran against coral-core#1847, #1834 and kubernetes#144045.
  • Deep review: a pre-PR review in fix mode, with Claude and Codex finders, found 4 blocking Mediums and 15 smaller issues. All are fixed here.

After merge

Move the VM to deep-review--v1.2.3. Its prompt already allows publishing intent questions.

…ons that withhold approval

A review held back approval until every required check had passed, so stacked PRs, whose CI often doesn't run until their parent merges, never got one. It now holds back only on a failed required check, because the branch rules already enforce the rest at merge.

When an open intent question was all that withheld approval, it was kept in the report, so the author saw approval pending with nothing to answer. The review now posts it as one inline question, in every round and under blockers-only policies, and settles it from the reply. Release 1.2.3.
Comment-only bodies now carry a deep-review-awaiting line. A review waiting only on an intent question no longer polls checks; one waiting on checks is followed up once none is failing, even with others still running; one on a branch without required checks waits for every check. Check states come from the rollup: cancelled, timed-out and stale checks fail, skipped and neutral pass. Replies are counted per thread from the later of my last reply there and the round's read-at line, so an answer posted mid-round, or followed by my comment elsewhere, isn't lost. Review threads are paginated, and an author's answer anywhere on the PR counts for an open question. Reviews written before the awaiting line keep the old rule.
…ection

Approval waits for checks only where nothing enforces them at merge, and fails closed when checks or branch rules can't be read. Intent questions are asked once, settled by the author or a maintainer as evidence, triaged when not intended, and escalated to the user when unclear or unanswered. Bodies record what they wait on and when the round read the threads. README and changelog updated.
@samiashi
samiashi merged commit 04679c1 into main Nov 12, 2026
12 checks passed
@samiashi
samiashi deleted the fix/approve-on-pending-checks-and-ask-intent-questions branch November 12, 2026 12:57
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