Skip to content

The stall recovery for an unpicked review request is UI-only, and requested=yes is not evidence a round is coming #1741

Closed

Description

@ptr727

pr-review-conduct "Expected review loop" ends its timeout advice with a recovery no agent can perform, and the digest field a driver would lean on instead does not mean what it looks like.

requested=yes is not evidence a round is coming

The field reports that the request was accepted, not that anything will pick it up. An accepted request can sit unpicked indefinitely, and while it does the digest is indistinguishable from a request that is about to be served. A driver reading requested=yes and waiting is therefore doing the right thing and the wrong thing for the same reason, which is the shape of every other silent-wait defect this repository has already fixed.

Measured on a live pull request in another fleet repository today: an accepted request sat unpicked for roughly eight minutes across two attempts.

The documented recovery is UI-only

The section currently reads, for a timeout with requested=yes, that the driver reruns wait for another bounded interval, and then:

If the maintainer directs a retry, remove Copilot in the pull request UI, add it again, and rerun wait.

An agent has no pull request UI. So the one recovery the rule names is unreachable from the seat that hits the problem, and the rule's own fallback is to wait again, which is what was already failing. The practical outcome is that a stall is escalated to the maintainer for a manual click, every time.

A programmatic recovery exists and was measured

The request set is writable through requestReviews. Clearing it with an empty botIds and union: false, then requesting again, produced a review round within a minute, twice in a row, on the same pull request where the plain re-request had stalled for eight minutes.

union: false replaces the whole request set rather than adding to it, so the pending set is read first and any human reviewer requested alongside the bot is preserved. That read-before-replace is the part a rule has to state, because the obvious shortest form of this recovery silently drops a human reviewer.

What this issue asks for

  1. Say plainly in the digest's own documentation that requested=yes reports acceptance rather than expected delivery, so a driver stops reading it as progress.
  2. Replace the UI-only recovery with the programmatic one, or carry both and mark which is reachable from an agent seat.
  3. Decide where the requestReviews mutation itself belongs. .github/copilot-instructions.md currently documents no request or re-request mutation at all, and scripts/pr_review.py issues requestReviews already, so a driver has a helper that requests but no documented route to clear and re-request when one stalls.

Credit

Measured by another session on this machine while driving an unrelated repository's pull requests, and reported rather than acted on, since the surfaces are here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions