You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make pr_review.py wait Poll Checks, or Say So, When an Attested Local Pass Covers the Head #2685
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
Open a feature -> develop pull request and let Copilot review it once.
Push a fix, record a local strict-review pass, and run pr_review.py attest --checkout <worktree> <n>.
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
Poll an Attested Head's Checks in pr_review.py wait (#2722)