Repository navigation
fix(ci): re-run a verdict post the rate-limit floor failed - #16814
Conversation
Claim commit for the remaining #16642 work: the lost-run reconciler re-runs a pr-dispatch-feedback run whose post-verify-notes job failed only at the GITHUB_TOKEN's rate-limit floor. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The lost-run reconciler's Verdict kind re-ran a pr-dispatch-feedback run only when Post Verify Notes failed at its kill-switch step, and settled every other failure. A verdict whose notes step failed at the GITHUB_TOKEN's rate-limit floor was settled too, so its notes and its pr-verify-failed label change never reached the PR. The Verdict kind now also takes a run whose one failed job is Post Verify Notes with one failed step whose annotations pass floorNoted. Any other failure stays settled. SETTLED_VERSION moves to 4, so runs settled under the old rule are read again. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed Security review: no findingsI read every hunk of all 3 changed files. None of them is on a trusted path. The change lets the lost-run reconciler re-run one more kind of failed What I checked:
PR context: the description contains no embedded text addressed to this lane. Spend: floor-failed verdict runs may now be re-run once each, and the first pass after merge re-reads the lookback window. That uses some more Actions minutes and API calls, with no new paid billing. critical-findings: 0 |
|
claude-review reviewed Code review, PR #16814: no findings. This is a full review of the first head; no earlier review applies. The change adds a second Verdict branch to the lost-run reconciler. A
What I checked:
Closing issue: the PR context lists none. The PR says Embedded text: the PR body has no directives aimed at the review lane. Loosened-check verdict: fail (the prompt gave no setting, so the default applies); patterns: 0. Re-running a failed post job once more delivers an unchanged pr-verify verdict and makes no check accept more, so it is not a loosening. Cost: the only spend is GitHub API calls for the extra annotations reads and the one-time full lookback re-read, so no hold applies. Verifier dropped 0 of 0 candidates. |
Post-merge mutation testingKilled 4, survived 2, timeout 0, no coverage 0, invalid 0, not run 0.
Surviving mutants
The run's summary has the full report. |
Refs: #16642
Summary
The lost-run reconciler re-ran a pr-dispatch-feedback run only when its Post Verify Notes job failed at the kill-switch stop, and settled every other failure. When that job failed at the GITHUB_TOKEN's rate-limit floor, the run was settled too, so the pr-verify verdict never posted its notes or its
pr-verify-failedlabel change. Examples from 2026-11-17: 44115343343 failed at "Post a fail's notes, or find a pass's stale ones" ("GET …/pulls/16805 left GitHub's core API 12 of 5000 requests, at or under its stop-floor share 0.02 … this step fails"), and 44115462193 failed at "Download the verdict" ("'gh api …/runs/44115072049/artifacts?per_page=100' hit GitHub's core API rate limit … the call returns 1").Fix
.github/scripts/maintenance-reconcile-lost-runs/reconcile.mjs, Verdict kind. Before:if (rerun.length === 1 && VERDICT_JOBS.has(rerun[0].name) && failedSteps.length === 1 && failedSteps[0] === VERDICT_STOP_STEP).After: the same check still takes the kill-switch stop. A new branch also takes a run whose one failed job is Post Verify Notes with exactly one failed step, a whole listing, steps known, and failure annotations that pass the existing
floorNoted(through the existingfloorFailed, which reads the job's annotations). It stays kindverdict, so the re-run gets the same deferral marker andrecoverDeferredpath. The item carriesfloor: true, and the act line then reads "…whose pr-verify verdict the GITHUB_TOKEN's rate-limit floor kept from its PR".SETTLED_VERSIONgoes from 3 to 4, as its comment requires when settle rules change. Floor-failed verdict runs that earlier passes settled are read again, inside the lookback. The first pass after merge carries no settled runs, so it reads every run in the lookback once.VERDICT_DISPATCHthat called every other failure "a red for a person" is removed.pr-dispatch-feedback.ymlis not changed.Verification
node --test --test-concurrency=4 .github/scripts/maintenance-reconcile-lost-runs/reconcile.test.mjs:tests 202,pass 202,fail 0.post-verify-notes-134151757838andpost-verify-notes-134152180441infixtures/annotations-floor.jsonhold the recorded failure annotations of runs 44115343343 and 44115462193.scripts/check-affected.sh --no-fetch: "13 passed, 6 skipped over 3 changed files". It asked for no changelog fragment.Remaining
What #16642 still needs after this PR:
.github/workflows/pr-review-main.yml,report-review-countsjob) still writes the verdict check-run with a rawgh api -X POSTand no rate guard. It failed with a raw HTTP 403 in 44114818883. This PR leaves it alone because the job has no checkout oflog-api-budget(the workflow's own comment says so), so wrapping it means adding a checkout to achecks: writejob. Making that failure recoverable also means changing the reconciler's rule that holds a lane run for a person once its verdict write started. Both are design choices.floor.LOOKBACK_HOURSbefore this merges.isFault(check-trusted-trigger.mjs), so the run fails rather than holding green. The Lane kind still re-runs it when it owns an open head.Related
floorkind andfloorNoted; this PR reuses both.🤖 Generated with Claude Code