Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions .agents/skills/pr-review-conduct/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,12 @@ visible comments, routinely still carries a finding nobody has answered. Treatin
`refusal=QUOTA` or `refusal=ERROR`, the pull request's newest Copilot review being an
account-quota refusal or an error refusal read as a possible quota hit, on this head or an
earlier one, is the one nothing the loop does clears, which is the case "Which Reviewers a
Repository Actually Has" below states. `status=COPILOT_QUOTA_EXHAUSTED_REPO_WIDE` is that same
Repository Actually Has" below states. An error refusal whose `RUN LOG READING` line says
transient is the exception. `wait` re-requests it once and exits `30` while that request is
pending. A second error refusal in a row, or a re-request made with no round answering it,
reads as possible quota. A held head exits `41` as `COPILOT_ERROR_TRANSIENT`, its request
waiting on `--request`.
Comment thread
ptr727 marked this conversation as resolved.
Resolved
`status=COPILOT_QUOTA_EXHAUSTED_REPO_WIDE` is that same
account state read from the reviewer's activity elsewhere when this head carries none of its
own, and a refusal holding across several heads with no cause its body names reaches it the
slower way. That exit is `wait`'s alone: `status` exits 0 over a refusal, carrying it as
Expand Down Expand Up @@ -229,8 +234,9 @@ must have done.
encountered an error, which is what the
weekly rate limit posts. Each covers no head, so the gate stays unsatisfied, and nothing the
loop does clears it, since re-requesting returns it again and spends quota doing so. Where the
reviewer's run log names a reset time `pr_review.py` reports it. Each refusal goes to the
maintainer, rather than into a wait.
reviewer's run log names a reset time `pr_review.py` reports it. Where it names a transient
fetch failure instead, `pr_review.py wait` re-requests once. Every other refusal, a repeat of
that one included, goes to the maintainer rather than into a wait.

Where a reviewer's behavior still surprises you after reading what it posted, the hub's
`docs/pr-reviewer-reference.md` records what each one does, what shapes it, and which repositories
Expand Down Expand Up @@ -267,13 +273,15 @@ Run `local-strict-review` against the branch's current diff before every push th
deserves a Copilot round anyway. `wait` also skips the request where
a review already covers the head, where the answer came outside a formal review, where it detects
drift, under a quota or error refusal, and where something is already in the request set, which
is the condition the recovery below clears. Requesting in the pull request UI is the maintainer's
route rather than this loop's.
is the condition the recovery below clears. An error refusal whose run log reads transient is
the exception, owed one re-request per Merge Gate item 2. Requesting in the pull request UI is
the maintainer's route rather than this loop's.
4. Run a bounded `uv run --no-project --script scripts/pr_review.py wait <number> --repo <owner>/<repo>` in a background process and read its terminal output.
A completed review raising **no findings** is a valid terminal outcome, so do not re-trigger it
or read silence as a missing review. A review whose body says it declined to review is the one
exception, and it is terminal the other way. Nothing follows it, and re-requesting the same
head only repeats the decline.
head only repeats the decline. A transient error refusal under Merge Gate item 2 is owed its one
re-request first.
5. Triage findings (see below).
6. Apply fixes or write a rationale for declines.
7. Reply to each thread, and resolve what was addressed and what was declined on evidence the
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
184af41cfc570242
8743445c185bcca7
20 changes: 14 additions & 6 deletions .claude-plugin/fleet-skills/skills/pr-review-conduct/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,12 @@ visible comments, routinely still carries a finding nobody has answered. Treatin
`refusal=QUOTA` or `refusal=ERROR`, the pull request's newest Copilot review being an
account-quota refusal or an error refusal read as a possible quota hit, on this head or an
earlier one, is the one nothing the loop does clears, which is the case "Which Reviewers a
Repository Actually Has" below states. `status=COPILOT_QUOTA_EXHAUSTED_REPO_WIDE` is that same
Repository Actually Has" below states. An error refusal whose `RUN LOG READING` line says
transient is the exception. `wait` re-requests it once and exits `30` while that request is
pending. A second error refusal in a row, or a re-request made with no round answering it,
reads as possible quota. A held head exits `41` as `COPILOT_ERROR_TRANSIENT`, its request
waiting on `--request`.
`status=COPILOT_QUOTA_EXHAUSTED_REPO_WIDE` is that same
account state read from the reviewer's activity elsewhere when this head carries none of its
own, and a refusal holding across several heads with no cause its body names reaches it the
slower way. That exit is `wait`'s alone: `status` exits 0 over a refusal, carrying it as
Expand Down Expand Up @@ -229,8 +234,9 @@ must have done.
encountered an error, which is what the
weekly rate limit posts. Each covers no head, so the gate stays unsatisfied, and nothing the
loop does clears it, since re-requesting returns it again and spends quota doing so. Where the
reviewer's run log names a reset time `pr_review.py` reports it. Each refusal goes to the
maintainer, rather than into a wait.
reviewer's run log names a reset time `pr_review.py` reports it. Where it names a transient
fetch failure instead, `pr_review.py wait` re-requests once. Every other refusal, a repeat of
that one included, goes to the maintainer rather than into a wait.

Where a reviewer's behavior still surprises you after reading what it posted, the hub's
`docs/pr-reviewer-reference.md` records what each one does, what shapes it, and which repositories
Expand Down Expand Up @@ -267,13 +273,15 @@ Run `local-strict-review` against the branch's current diff before every push th
deserves a Copilot round anyway. `wait` also skips the request where
a review already covers the head, where the answer came outside a formal review, where it detects
drift, under a quota or error refusal, and where something is already in the request set, which
is the condition the recovery below clears. Requesting in the pull request UI is the maintainer's
route rather than this loop's.
is the condition the recovery below clears. An error refusal whose run log reads transient is
the exception, owed one re-request per Merge Gate item 2. Requesting in the pull request UI is
the maintainer's route rather than this loop's.
4. Run a bounded `uv run --no-project --script scripts/pr_review.py wait <number> --repo <owner>/<repo>` in a background process and read its terminal output.
A completed review raising **no findings** is a valid terminal outcome, so do not re-trigger it
or read silence as a missing review. A review whose body says it declined to review is the one
exception, and it is terminal the other way. Nothing follows it, and re-requesting the same
head only repeats the decline.
head only repeats the decline. A transient error refusal under Merge Gate item 2 is owed its one
re-request first.
5. Triage findings (see below).
6. Apply fixes or write a rationale for declines.
7. Reply to each thread, and resolve what was addressed and what was declined on evidence the
Expand Down
20 changes: 14 additions & 6 deletions .github/skills/pr-review-conduct/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,12 @@ visible comments, routinely still carries a finding nobody has answered. Treatin
`refusal=QUOTA` or `refusal=ERROR`, the pull request's newest Copilot review being an
account-quota refusal or an error refusal read as a possible quota hit, on this head or an
earlier one, is the one nothing the loop does clears, which is the case "Which Reviewers a
Repository Actually Has" below states. `status=COPILOT_QUOTA_EXHAUSTED_REPO_WIDE` is that same
Repository Actually Has" below states. An error refusal whose `RUN LOG READING` line says
transient is the exception. `wait` re-requests it once and exits `30` while that request is
pending. A second error refusal in a row, or a re-request made with no round answering it,
reads as possible quota. A held head exits `41` as `COPILOT_ERROR_TRANSIENT`, its request
waiting on `--request`.
`status=COPILOT_QUOTA_EXHAUSTED_REPO_WIDE` is that same
account state read from the reviewer's activity elsewhere when this head carries none of its
own, and a refusal holding across several heads with no cause its body names reaches it the
slower way. That exit is `wait`'s alone: `status` exits 0 over a refusal, carrying it as
Expand Down Expand Up @@ -229,8 +234,9 @@ must have done.
encountered an error, which is what the
weekly rate limit posts. Each covers no head, so the gate stays unsatisfied, and nothing the
loop does clears it, since re-requesting returns it again and spends quota doing so. Where the
reviewer's run log names a reset time `pr_review.py` reports it. Each refusal goes to the
maintainer, rather than into a wait.
reviewer's run log names a reset time `pr_review.py` reports it. Where it names a transient
fetch failure instead, `pr_review.py wait` re-requests once. Every other refusal, a repeat of
that one included, goes to the maintainer rather than into a wait.

Where a reviewer's behavior still surprises you after reading what it posted, the hub's
`docs/pr-reviewer-reference.md` records what each one does, what shapes it, and which repositories
Expand Down Expand Up @@ -267,13 +273,15 @@ Run `local-strict-review` against the branch's current diff before every push th
deserves a Copilot round anyway. `wait` also skips the request where
a review already covers the head, where the answer came outside a formal review, where it detects
drift, under a quota or error refusal, and where something is already in the request set, which
is the condition the recovery below clears. Requesting in the pull request UI is the maintainer's
route rather than this loop's.
is the condition the recovery below clears. An error refusal whose run log reads transient is
the exception, owed one re-request per Merge Gate item 2. Requesting in the pull request UI is
the maintainer's route rather than this loop's.
4. Run a bounded `uv run --no-project --script scripts/pr_review.py wait <number> --repo <owner>/<repo>` in a background process and read its terminal output.
A completed review raising **no findings** is a valid terminal outcome, so do not re-trigger it
or read silence as a missing review. A review whose body says it declined to review is the one
exception, and it is terminal the other way. Nothing follows it, and re-requesting the same
head only repeats the decline.
head only repeats the decline. A transient error refusal under Merge Gate item 2 is owed its one
re-request first.
5. Triage findings (see below).
6. Apply fixes or write a rationale for declines.
7. Reply to each thread, and resolve what was addressed and what was declined on evidence the
Expand Down
2 changes: 1 addition & 1 deletion scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ uv run --no-project --script scripts/pr_review.py cleanup 452 --repo ptr727/Proj

`wait` does not classify a request from `copilot_work_started`, since GitHub can complete an effort-labeled review without that event. A request with no review or answer remains `PENDING` until the bounded timeout. Where a second bounded wait times out as well, read the pending set, clear it only where no human or team reviewer is requested alongside the bot, and rerun `wait`, which then requests afresh. The clear replaces that set rather than adding to it, so a stall on a pull request with a human or team reviewer requested goes to the maintainer, the mutation itself being in [`pr-reviewer-reference.md`][pr-reviewer-reference]. `--pickup-grace` remains accepted for command compatibility and has no effect.

`wait` exits `41` when the newest round is a refusal or a quota state. A refusal is a formal review carrying the head and no threads, which is the clean pass byte for byte, so it is not coverage: `review_on_head` reports `NO` and `refusal=` carries its kind. A quota refusal reads `refusal=QUOTA`. An error refusal is the body the weekly rate limit posts, so the job log of the reviewer's own failed run on that commit is read, a logged rate limit reading as `QUOTA` with its reset time and anything else as `ERROR`. `wait` sends no request while the pull request's newest Copilot review is a quota or error refusal on any head, and none where the reviewer's newest activity elsewhere in the repository is a quota refusal nothing answered since. Pass `--ignore-quota-signal` once the quota is believed to have reset. A file-count refusal is cleared by splitting the pull request. `status` exits `0` over a refusal and carries it in `refusal=`.
`wait` exits `41` when the newest round is a refusal or a quota state. A refusal is a formal review carrying the head and no threads, which is the clean pass byte for byte, so it is not coverage: `review_on_head` reports `NO` and `refusal=` carries its kind. A quota refusal reads `refusal=QUOTA`. An error refusal is the body the weekly rate limit posts, so the job log of the reviewer's own failed run on that commit is read, a logged rate limit reading as `QUOTA` with its reset time and anything else as `ERROR`. `wait` sends no request while the pull request's newest Copilot review is a quota or error refusal on any head, and none where the reviewer's newest activity elsewhere in the repository is a quota refusal nothing answered since. The exception is an error refusal whose run log names `too many files changed`, a transient fetch failure one re-request clears. `wait` sends that one re-request, unless the round before it was an error refusal too. A re-request already made after the refusal is never sent again, even where the request has since vanished. It exits `30` while that request is pending, and `41` as `COPILOT_ERROR_TRANSIENT` on a held head, where only `--request` sends it. A `RUN LOG READING` line in the digest names the reading taken, and a log unread or naming neither cause keeps the possible-quota reading. Pass `--ignore-quota-signal` once the quota is believed to have reset. A file-count refusal is cleared by splitting the pull request. `status` exits `0` over a refusal and carries it in `refusal=`.

The digest reports the completed head review's effective effort as `lite`, `balanced`, or `max`, with `effort_source=default` for `Default (<level>)` and `explicit` for a bare level, and `unknown` for both where the body states none. Effort never changes a verdict, and the workflow never selects or changes the user-controlled setting.

Expand Down
Loading
Loading