Skip to content

pr_review.py: a GitHub Actions billing-failure notice can be misread as UNRECOGNIZED_REVIEWER_OUTPUT #1071

Closed

Description

@ptr727

What happened

Driving ptr727/Financial-Modeling#199, pr_review.py wait reported:

UNRECOGNIZED REVIEWER OUTPUT (1): ...
  body carrying no heading at all, which no measured review body does  (round 49064e1b)
status=UNRECOGNIZED_REVIEWER_OUTPUT ...

Direct GraphQL confirmed the flagged body:

copilot-pull-request-reviewer, submitted 2026-08-28T23:06:34Z: "The job was not started because
recent GitHub Actions payments have failed or your spending limit needs to be increased."

This isn't a code review at all - it's GitHub Actions' own billing-failure notice (the same one
blocking every workflow job on the repo at that moment, confirmed separately via gh run view's
own annotations), somehow posted as a PR review body attributed to the Copilot reviewer account
rather than surfacing only as a run annotation. The timestamp lines up exactly with the billing
outage window on this repo (recent payment failure / spending limit).

Why this matters

The script's own caution here is correct - it should not trust a digest it cannot fully parse - but
its message doesn't distinguish "an unrecognized review shape" from "not a review at all, an
infra-failure artifact." The two need different next steps: a genuinely new review body shape is a
parser gap to fix; a billing-failure notice masquerading as a review is closer to the class #1060
already tracks (checking budget/quota status before reporting a reviewer bot as broken), just
inverted - here a billing failure got misattributed as reviewer output instead of causing an
absent one.

Suggested fix

Recognize this specific shape (or the general "no code-review markers, matches a known
GitHub-infra-failure phrasing" pattern) and report it distinctly, e.g. status=REVIEWER_INFRA_FAILURE
with a pointer to check the repo's Billing & plans settings, rather than folding it into the generic
UNRECOGNIZED_REVIEWER_OUTPUT bucket that asks the agent to file an issue every time it recurs.

What I did instead

Manually verified via gh api graphql (querying reviews.nodes with commit.oid) that: (1) the
flagged body is the billing artifact above, dated exactly during the confirmed outage window, (2)
the most recent real review from the same reviewer (copilot-pull-request-reviewer, later commit)
reads "Approval recommended... no remaining correctness gaps identified", and (3) reviewThreads
shows 0 unresolved. Proceeded to merge on that basis, per the script's own "whether to merge anyway
is the maintainer's call" - this note is that call, made with the evidence in hand rather than by
overriding the caution unread.

Activity

  1. added
    script
    on Sep 5, 2026
  2. ptr727 commented on Nov 10, 2026

    @ptr727
    OwnerAuthor

    Direction from the maintainer, 2026-11-10: re-check, and close if overtaken.

    The UNRECOGNIZED_REVIEWER_OUTPUT status this issue names was removed in #3410. A worker checks how a constructed billing-failure notice reads under the current gate. If it no longer blocks the gate wrongly, this issue closes citing #3410. Otherwise it is narrowed to the current failure and grouped with the Copilot body parsing work.

  3. ptr727 commented on Nov 11, 2026

    @ptr727
    OwnerAuthor

    Released (2026-11-11): #4066 merged without fixing this issue, which was narrowed instead, so this claim holds no files.

    Backlog burndown claim, round 2 (2026-11-11). Branch feature/review-gate-paging-copilot-parsing, group: #4002, #3875, #3893, #798, #1071.

    Predicted files:

    • scripts/pr_review.py
    • scripts/pr_review_payload.py
    • scripts/pr_review_copilot.py
    • scripts/reviewers/copilot.json
    • scripts/pr_review_digest.py
    • scripts/pr_review_rounds.py
    • scripts/README.md
    • .github/copilot-instructions.md
    • tests/test_pr_review.py
    • tests/test_pr_review_copilot.py
    • tests/test_pr_merge.py
    • tests/test_pr_review_policy.py
    • .agents/skills/fleet-code-review/SKILL.md
    • .github/skills/fleet-code-review/SKILL.md
    • .claude-plugin/fleet-skills/skills/fleet-code-review/SKILL.md
    • .claude-plugin/fleet-skills/.source-digests/fleet-code-review
    • .agents/skills/drive-pr/SKILL.md
    • .github/skills/drive-pr/SKILL.md
    • .claude-plugin/fleet-skills/skills/drive-pr/SKILL.md
    • .claude-plugin/fleet-skills/.source-digests/drive-pr
    • .agents/skills/pr-review-conduct/SKILL.md
    • .github/skills/pr-review-conduct/SKILL.md
    • .claude-plugin/fleet-skills/skills/pr-review-conduct/SKILL.md
    • .claude-plugin/fleet-skills/.source-digests/pr-review-conduct
  4. ptr727 commented on Nov 11, 2026

    @ptr727
    OwnerAuthor

    Re-check under the current gate, 2026-11-11, on a constructed body. UNRECOGNIZED_REVIEWER_OUTPUT went in #3410, so this no longer asks for an issue. The notice still blocks the gate wrongly, so this issue stays open, narrowed to what follows.

    A Copilot review whose whole body says the job did not start because of a billing failure reads as a review round:

    • It reads refusal=no, so it counts as a round on the head. The digest prints review_on_head=yes with coverage=none, and the round counts toward a repository's round cap.
    • On the head it holds as shapes=HELD, the note being that the body carries no ccr-overview-v2 marker. That asks a driver for an acknowledgment of a head nothing reviewed.
    • On an earlier head it reads shapes=NOTED, and merge refuses with OUTPUT_NOTED until its key is answered.

    What remains: read this notice as a refusal, so it covers nothing, spends no round, and owes no acknowledgment. The likely change is a spelling in refusal_openings in scripts/reviewers/copilot.json with a fixture. A distinct remedy line naming the billing settings is optional on top of that.

  5. ptr727 commented on Nov 13, 2026

    @ptr727
    OwnerAuthor

    Backlog burndown claim (round 7, away mode, 2026-11-13): group #1071 on branch burndown/copilot-billing-refusal, tier frontier.

    Predicted file set:

    • scripts/reviewers/copilot.json
    • scripts/pr_review_copilot.py
    • tests/test_pr_review.py
    • tests/test_pr_review_copilot.py
    • .agents/skills/pr-review-conduct/SKILL.md, .github/skills/pr-review-conduct/SKILL.md, .claude-plugin/fleet-skills/skills/pr-review-conduct/SKILL.md, .claude-plugin/fleet-skills/.source-digests/pr-review-conduct
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

    script

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions