Repository navigation
Description
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
- Open a pull request that changes one Markdown file.
- Request a Copilot review on the current head.
- Receive a formal COMMENTED review on that head with an overview and change list.
- Confirm that the review has no inline threads, no suppressed-findings block, and no refusal text.
- 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
ptr727 commentedon Aug 21, 2026
Verified against
developat1832702. The parser and runbook now make one consistent decision. A current-head review with no coverage statement reportscoverage=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.