Repository navigation
fix(pr-pipeline): plan merge-group verify read floor to header limit - #17401
Conversation
Owner decision D418 (Q227): ci-status's merge-group verdict reader plans its read floor to GITHUB_TOKEN's live x-ratelimit-limit instead of github-token's 1,000-call limit-cap, keeping the 10% read-floor. Run 44463304120 refused with 2,766 of 5,000 left and ejected 21 merge-group runs. babysit_gh's _below drops the limit-cap clamp for read-floor when BABYSIT_READ_FLOOR_HEADER_LIMIT=1; the merge-group block of the lanes-hold step exports it, and its cold-read gate reserves the same floor of the header limit. The owner-PR reader and every other reader keep limit-cap. 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. |
…schema The github-token description says a higher header limit is never a target; ci-status's merge-group verdict reader, run with BABYSIT_READ_FLOOR_HEADER_LIMIT=1, now plans its read floor to it (owner decision D418). Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
claude-review reviewed Code review (incremental, blocking only): no findingsSince The new sentence matches what the PR does, as I checked in the earlier review of this PR:
The edit touches only a This lane already reviewed an earlier head, so this review reports blocking findings only. There is no closing issue (the PR cites D418), so there are no acceptance criteria to check. No plugin manifest changes in this increment. Loosened-check verdict: fail (default; the prompt has no loosened_check_verdict or loosened_check_patterns lines); patterns: 0. The prompt has no decision-record line either, so I did not check the citation requirement. A documentation-only description edit loosens no check. Verifier dropped 0 of 0 candidates. |
|
claude-security-review reviewed Security review: PR #17401, read floor planned to the header limitNo security issues found. What changedThe merge-group verdict reader in What I checked
SpendThe merge-group reader can use more GITHUB_TOKEN REST requests per hour: it keeps going down to 10% of the live limit (500 of 5,000) instead of 100. That is API quota, not a billed resource, so it is not a hold and not a finding. critical-findings: 0 |
|
The pr-verify verifier failed head What it wrote (25 lines)This pull request leaves the merge queue, and ci-status holds it out while it carries |
|
The unattended merge path enqueued this pull request at head |
|
The post-merge check verified merge commit |
Closes #17428
Summary
ci-status's merge-group verdict reader now sets its read floor from GITHUB_TOKEN's live
x-ratelimit-limit(5,000) instead of github-token's 1,000-call planning cap (limit-capin.github/actions/log-api-budget/rate-limits.json). The 10%read-floorstays. Run 44463304120 refused #17252 with 2,766 of 5,000 requests left (verify:unreadable: ... not sent: the github-token pool is below its read-floor share), and 21 merge-group runs were ejected.Fix
babysit_gh.py_below: whenBABYSIT_READ_FLOOR_HEADER_LIMIT=1is set, the read floor is a share of the header's limit and thelimit-capclamp is skipped. Unset, nothing changes.pr-require-checks.yml, lanes-hold step: the merge-group block exports the flag. That block holds the reader whoseverify:unreadableejects the entry. Its cold-read gate now reservesread-floor × header limit(500), so it no longer admits a cold read that the reader would floor about 400 requests later.limit-cap; a refusal there other than a FAIL holds nothing. pr-merge's readers and the shell guard (API_BUDGET_LIMIT_CAP) keeplimit-captoo.exportline and leaves fix(source-control): wait out the read floor's reset in the merge-queue verify read #17382's reader invocation line, its babysit_gh.py hunks and its tests alone, so either PR can merge first.Verification
test_babysit_gh_rate_guard.py: new cases built from the run's numbers. With the flag, 2,766/5,000 sends the read; without it, the same reading is floored. With the flag, 500/5,000 is not low and 499/5,000 is. 57 tests pass.scripts/ci-lanes-pr-hold.test.sh: the merge-group reader runs with the flag and the owner-PR reader runs without it. The cold-gate needs were recomputed by hand with a floor of 500 (for example 1,739 + 500 = 2,239).test_babysit_verify_evidence.py, plusnode --testonrate-guard.test.mjsandlog-api-budget.test.mjs(248 pass).Related
🤖 Generated with Claude Code