Skip to content

Make pr_review.py wait Poll Checks, or Say So, When an Attested Local Pass Covers the Head #2685

Closed

Description

@ptr727

scripts/pr_review.py wait skips its polling loop entirely when a fix push into a non-default branch is covered by an attested local pass (the held branch). It prints its note and the digest, then returns at once with exit 0 and no status= line, even while required checks are still running.

Reproduction

  1. Open a feature -> develop pull request and let Copilot review it once.
  2. Push a fix, record a local strict-review pass, and run pr_review.py attest --checkout <worktree> <n>.
  3. Run pr_review.py --repo OWNER/NAME --timeout 1800 wait <n> while CI is still running.

Observed in a downstream repository: the digest read review_on_head=local coverage=local merge=BLOCKED checks=2/6, then waited=3s and exit 0. No status= line was printed.

Why it matters

AGENTS.md "Context and Delegation Discipline" asks a wait to separate three outcomes and to say which one it reached: the condition met, not met yet, or unreachable. Here exit 0 and an absent status line come back while the merge is BLOCKED on pending checks. A caller that backgrounds the wait and reads only its exit code takes that as ready.

Done looks like

  • In the held case, wait still polls checks to a conclusion, just as it does after a Copilot round. Or it returns a distinct, documented exit and status= line that says review coverage is satisfied and checks are pending.
  • A test drives the held branch with pending checks and asserts on that outcome.

Activity

  1. added
    bug
    script
    on Oct 9, 2026
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

    bugscript

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions