Skip to content

Clarify Copilot Coverage Handling for Clean Reviews #788

Closed

Description

@ptr727

Summary

Align the Copilot review parser and merge gate for a formal clean review that covers the current head but omits an explicit changed-file coverage line.

Reproduction

  1. Open a pull request that changes one Markdown file.
  2. Request a Copilot review on the current head.
  3. Receive a formal COMMENTED review on that head with an overview and change list.
  4. Confirm that the review has no inline threads, no suppressed-findings block, and no refusal text.
  5. Run pr_review.py status on the pull request.

The current status shape is review_on_head=yes, threads=0, unresolved=0, suppressed=0, shapes=ok, and coverage=unstated. Required checks can still be green and the pull request can report merge=CLEAN.

Observed Impact

The review runbook correctly treats a formal no-comment review on the current head as a completed review. The merge gate also requires confirmation that the review read the full diff. Copilot clean-review bodies do not always state changed-file coverage, so the tooling cannot prove that requirement from the body.

This leaves a valid clean review in an ambiguous state. The agent must not merge because the gate treats unstated coverage as insufficient, even though the review has no findings and the pull request is otherwise clean. The current promotion example is PR #787.

Expected Behavior

Define one consistent policy for this review shape. Either:

  • Make Copilot emit or expose a machine-readable full-diff coverage value and have pr_review.py consume it.
  • Or document and implement a bounded acceptance rule for a formal current-head clean review when no refusal, partial-coverage statement, unrecognized shape, inline finding, or suppressed finding exists.
  • Or state that coverage=unstated intentionally blocks promotion and provide a maintainer-facing resolution path.

The parser, runbook, and merge-gate wording should produce the same decision for this case.

Activity

  1. added
    skills
    agents
    on Aug 17, 2026
  2. ptr727 commented on Aug 21, 2026

    @ptr727
    OwnerAuthor

    Verified against develop at 1832702. The parser and runbook now make one consistent decision. A current-head review with no coverage statement reports coverage=unstated, blocks successful completion with exit 45, and hands the decision to the maintainer. Structured and legacy coverage forms are both parsed. Live structured-marker behavior remains the separate external-behavior issue #798.

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

    agentsskills

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions