Repository navigation
Re-Request Once on a Transient Copilot Fetch Error - #3542
Conversation
Read the reviewer's run log for a `too many files changed` fetch failure before reading an error refusal as a possible quota hit. `wait` spends one re-request on such a refusal, unless the round before it was an error refusal too, and `status` names the reading taken in a RUN LOG READING line. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Read where an error refusal stands on its one re-request from one primitive, `transient_state`, which `wait`'s request, its exit, and the digest line all read. A request made after the refusal spends the re-request, so a request that vanished is not sent again. A pending re-request exits 30, and one this wait did not send exits 41 as COPILOT_ERROR_TRANSIENT. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Name COPILOT_ERROR_TRANSIENT only on a held head, where --request is what sends the owed re-request. Elsewhere the refusal steps aside, so an unrecorded request, an outside answer, or the repo-wide quota keeps its own status. A pending re-request now polls until the next round lands, the digest reads a sent and unanswered re-request as possible quota, and the request read reuses newest_request_event. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
|
A recorded local strict-review pass covers head |
Keep the request history `transient_state` reads on the payload, so the digest and the exit over the same final read share one answer. Name the held head as the only place `COPILOT_ERROR_TRANSIENT` is reached in the README. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved findings affect one-request state correctness, pending detection, digest and exit consistency, no-bot handling, timestamp handling, refusal wording, and documentation guidance.
2 open issues
What changed in this PR
This pull request distinguishes transient Copilot fetch failures from quota refusals, permits one controlled re-request, and updates related status, polling, digest, documentation, and skill behavior. Unresolved findings remain in request-state handling, output consistency, and documentation.
Changes:
- Parses Copilot run logs and tracks transient re-request states.
- Adds coverage for transient, pending, spent, held-head, and quota outcomes.
- Updates the README and canonical/generated review-conduct skill files.
| File | Summary |
|---|---|
tests/test_pr_review.py |
Adds coverage for transient causes, request histories, polling states, status output, and digest readings. |
scripts/README.md |
Documents transient refusal handling, re-request behavior, and exit statuses. |
scripts/pr_review.py |
Implements transient log classification, re-request state tracking, polling, status reporting, and digest behavior. |
.github/skills/pr-review-conduct/SKILL.md |
Updates the generated GitHub review guidance for transient refusals. |
.claude-plugin/fleet-skills/skills/pr-review-conduct/SKILL.md |
Updates the generated Claude skill guidance for transient refusals. |
.claude-plugin/fleet-skills/.source-digests/pr-review-conduct |
Updates the generated skill source digest. |
.agents/skills/pr-review-conduct/SKILL.md |
Updates the canonical review procedure for transient refusals. |
Review effort: Lite
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #3542 +/- ##
===========================================
+ Coverage 81.58% 81.71% +0.12%
===========================================
Files 26 26
Lines 8972 9030 +58
===========================================
+ Hits 7320 7379 +59
+ Misses 1652 1651 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Name the transient error refusal as the exception in the review loop's request and wait steps, which still read every error refusal as one nothing re-requests. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
…y Tests, and Copilot Transient Fixes (#3544) ## Summary Promotes `develop` to `main`, carrying round 1 of the resync-issue burndown: - #3538: `AGENTS.md` "Model Tiers" now states the no-model dispatch result once, conditionally, in the `highest` bullet. The two bullets that contradicted it lost their unconditional claims. The three skills including the section are regenerated. - #3539: `GOVERNANCE.md` "Durable Knowledge and Self-Improvement" describes the standing-issue handoff lifecycle, matching `AGENTS.md` "Session Scope". `agent-conduct` is regenerated. - #3540: `spec/files.json` gains a `repoOwnedTrees` list declaring `tests`, and `spec/audit.py` `hub_only_paths` leaves those paths out. A carrier's own `tests/` file is no longer reported as hub-only. `spec/validate.py` shape-checks the list, and `AUDIT.md`, `RESYNC.md` and the project-types assertion state the exclusion. - #3542: `pr_review.py wait` and `status` read the Copilot run log before calling an error refusal quota. A `too many files changed` line is transient and earns one re-request, as `COPILOT_ERROR_TRANSIENT` on the existing exit 41. - #3545: promotion fix for Copilot's finding on this pull request. `spec/validate.py` refuses a `repoOwnedTrees` source that overlaps a carried `trees[].source` or holds a `baseline` path. Fixes #3529 Fixes #3504 Fixes #3528 Fixes #3510 🤖 Generated with [Claude Code](https://claude.com/claude-code)

What
pr_review.pyread every Copilot error refusal as a possible quota hit, sowaitstopped and handed the drive to the maintainer. The same body is posted for a transient fetch failure that one re-request clears.waitandstatusnow read the reviewer's run log for atoo many files changedline before taking the quota reading.run_causealso returns the log's transient-failure line, beside the error type and rate-limit sentence it already read. A logged rate limit still wins.transient_state, says where an error refusal stands on its one re-request:owed,pending,sent, orspent.wait's request, its exit, and the digest line all read it.waitsends the one re-request while the state isowed. A request made after the refusal spends it, so a request that vanished is not sent again. Two error refusals in a row spend it too.30,status=PENDING.41asCOPILOT_ERROR_TRANSIENT, naming--requestas what sends the re-request. Elsewhere an owed refusal steps aside, so an unrecorded request, an outside answer, or the repo-wide quota keeps its own status.COPILOT_ERROR_POSSIBLE_QUOTA. Its status line now says which reading was taken.statusprints aRUN LOG READINGline under anERRORrefusal, naming the reading taken.No exit code is added. The transient state rides the existing
0,30,40, and41outcomes and their status lines.The help text,
scripts/README.md, andpr-review-conductdescribe the transient exception. The skill's generated copies are regenerated.drive-prcarries no changed section, so its copies are unchanged.Tests
tests/test_pr_review.pycovers the reading with constructed run logs and request histories: the transient line parsed with and without an error type, a rate limit outranking it, one re-request reviewed normally on the current head and on an earlier one, a second refusal ending the poll as quota, two refusals in a row, a pending re-request at the timeout, a re-request already sent, an unrecorded re-request, a second wait on a pending re-request, a held head, an unread log, and the digest's readings.Local strict review findings
The first push left two
introducedfindings open once its edit budget was spent. Both are fixed in dc2bbe5, and that push's pass raised none.scripts/README.md:225,introduced, fixed: it saidwaitexits41asCOPILOT_ERROR_TRANSIENTwherever it sent none, while only a held head reaches that exit.scripts/pr_review.pytransient_state,introduced, fixed: the digest and the exit each read the request history. The read is now kept on the payload, so they share one answer.Filed elsewhere
COPILOT REFUSED THIS ROUNDtext says "re-requesting repeats it", which a transient refusal contradicts, and theRUN LOG READINGline belongs inside that block. Both needscripts/pr_review_digest.py, outside this change's files.Closes on promotion: #3510
🤖 Generated with Claude Code