Repository navigation
fix(source-control): wait out the read floor's reset in the merge-queue verify read - #17382
Conversation
…ue verify read ci-status's merge-queue verdict reader refused verify:unreadable when babysit_gh did not send a read below github-token's read floor, which ejected lane PRs until a new head or a person. Under BABYSIT_READ_FLOOR_WAIT_SECONDS the reader now waits for the floored pool's reset and judges again with a fresh reader, when the reset is within the wait; otherwise the judgment stands. ci-status passes 900 s, WAIT_BUDGET_SECONDS.ciStatusVerify in rate-guard.mjs, pinned by rate-guard.test.mjs, and its timeout grows by that wait (owner decision D417). A pass at the head whose run cannot be read now refuses verify:unreadable instead of verify:missing, unless another counted pass allows, and the index-mode notice no longer claims the reader refused before listing. Closes #17377 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…floor wait 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f988f528d5
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
claude-security-review reviewed Security review: no security issues foundScope. I read the full diff in Trusted paths I checked closely:
Merge hold: not weakened.
Inputs. Trust controls: none touched. The diff does not change the trusted-actor list, the trusted-trigger check, token scope or the token broker, the kill switch, or untrusted-text selection. It touches no plugin manifest and removes no standing instruction. Settled threads. Both threads on Spend. ci-status's critical-findings: 0 |
|
claude-review reviewed Code review: no blocking findings on #17382 at This lane already reviewed earlier heads ( What I checked beyond the diff
Closing issue #17377
Earlier findings
Spend: a merge-queue ci-status run can now take up to 15 more minutes of runner time (one wait of up to 900 s per queue entry). This is ordinary Actions usage, not a billing change. Loosened-check verdict: fail (the default, since the prompt had no
No plugin manifest changed. Both changelog fragments are I ran no tests. The test counts in the PR description are the author's own and I have not checked them. I dispatched no verifier subagents. Verifier dropped 0 of 0 candidates. |
|
The pr-unblock lane stopped
When a retry on this head can change the outcome, the lane runs one on its own, up to its per-head cap, and edits this comment if it stops again; a run that does not stop clears the status. When no retry can (a review thread the lane does not take or settle, or a failing check after the retries are spent), a person resolves the threads or gets the checks green, then dispatches the workflow below: that run finds the cause gone and clears the status. On a pull request the lanes App opened, the dispatchers start that run once per stop; on any other, a person does. A new commit to the branch starts clean. To run it again on this head now, dispatch the gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=17382 -f activity=resolve-conflicts |
Lane run report
Failed GitHub API calls
|
Lane run report
Failed GitHub API calls
|
Lane run report
Failed GitHub API calls
|
Lane run report
Failed GitHub API calls
|
Lane run report
Failed GitHub API calls
|
Lane run report
Failed GitHub API calls
|
Lane run report
Failed GitHub API calls
|
|
The pr-unblock lane stopped
When a retry on this head can change the outcome, the lane runs one on its own, up to its per-head cap, and edits this comment if it stops again; a run that does not stop clears the status. When no retry can (a review thread the lane does not take or settle, or a failing check after the retries are spent), a person resolves the threads or gets the checks green, then dispatches the workflow below: that run finds the cause gone and clears the status. On a pull request the lanes App opened, the dispatchers start that run once per stop; on any other, a person does. A new commit to the branch starts clean. To run it again on this head now, dispatch the gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=17382 -f activity=address-feedback |
Lane run report
Failed GitHub API calls
|
Lane run report
Failed GitHub API calls
|
Lane run report
Failed GitHub API calls
|
…dgment A listing or record read refused below the read floor left a `.failed` note, an over-count claim, or a run-cache negative entry, so the second judgment after the reset refused verify:unreadable without reading. Floor refusals are no longer noted or cached, and the over-count claim is released. ci-gh-read.test.sh now takes the verdict reader's 900 s read-floor wait out of ci-status's timeout. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KeBVgbERyakZ33T4AetfRj
Lane run report
Failed GitHub API calls
|
Main raised GH_READ_MARGIN_SECONDS to 435 and ciStatusReads to 765; this branch adds ciStatusVerify's 900 s read-floor wait and the note that it comes out of ci-status's timeout. Both are kept. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KeBVgbERyakZ33T4AetfRj
An index-mode refusal with no saved listing must say it was refused in FAIL index mode, not before listing artifacts. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KeBVgbERyakZ33T4AetfRj
Keep both waits #17433 and this branch add: WAIT_BUDGET_SECONDS carries ciStatusVerify and queuedPr, rate-guard.test.mjs keeps both timeout tests, and the outage-posture paragraph names both readers. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KeBVgbERyakZ33T4AetfRj
Closes #17377
Refs: #16642
Summary
In merge-group runs, ci-status's verdict reader (
babysit_verify_evidence.py evidence) refusedverify:unreadablewhenever babysit_gh did not send a read below github-token's read floor (BABYSIT_READ_FLOOR_STOP). That ejected the lane pull request until it got a new head or a person stepped in: 21 merge_group runs on 8 lane PRs between 03:46Z and 05:14Z on 2026-11-19. Owner decision D417 (Q226): on a read-floor refusal, wait for the pool reset and read again. The budget comes from a newWAIT_BUDGET_SECONDSkey, and a read that still cannot be made after the wait reports as it does today.Fix
babysit_ghrecords the reset of each pool it refuses below the floor (read_floor_refusals). Theevidencecommand is now wrapped by_after_the_read_floor. When the judgment isverify:unreadable, at least one read-floor refusal was recorded, and every refused pool's reset is withinBABYSIT_READ_FLOOR_WAIT_SECONDS, it:Reader, so no failed-read memo carries over.WAIT_BUDGET_SECONDS.ciStatusVerify: 900in.github/actions/log-api-budget/rate-guard.mjs. No Python or shell mirror ofWAIT_BUDGET_SECONDSexists (git grepover*.py,*.shand*.bash).BABYSIT_READ_FLOOR_WAIT_SECONDS=900on the lanes App reader'spython3line only. The other judged-author reader never holds onunreadable, so it does not wait.GH_READ_JOB_SECONDS(1200) plus the wait.rate-guard.test.mjspins the literal and the timeout to the key.mainmerge queue'scheck_response_timeout_minutesis 30 (gh api repos/melodic-software/claude-code-plugins/rules/branches/main).gh run list --event merge_group).verify:unreadable, notverify:missing.too_oldormissing. A counted pass beside an unread one still allows.test_a_pass_whose_run_cannot_be_read_is_missingpinned the old behavior. It is renamed and now expectsverify:unreadable.docs/conventions/pr-pipeline/README.md, and the step comment, which wrongly said the reader had no read-floor margin.What the floor compares against. In the job log of run 44463304120, the refusal at 05:15:34Z came with an end-of-job core reading of
limit=5000 remaining=2766 used=2234. The floor compares that reading against github-token'slimit-capof 1000 inrate-limits.json, so planned-left ismax(0, 1000 - 2234) = 0, underread-floor0.1 × 1000 (babysit_gh._below). So it floors at 900 used, while 55% of the real 5000-request pool is still left. This is not a stale or misread value. It is the configured planning cap. That window's core reset was 05:46:58Z, 31 minutes after the refusal, so this wait would not have cleared that run. Whether the cap should stay at 1000 is a separate owner decision. This PR leaves it unchanged.Verification
Run locally against this branch, merged with
main:python3 tests/test_babysit_verify_evidence.py: 460 tests OK. The newARefusalBelowTheReadFloorWaitsForTheResetclass drives a realReaderthrough the real rate guard, with gh faked atrun_commandand GitHub's rate-limit headers on each answer:verify:unreadableand names the budget;test_babysit_gh_rate_guard.py(57 OK),test_babysit_gh_read_retry.py(42 OK),test_babysit_verify_index.py(48 OK).node --test .github/actions/log-api-budget/rate-guard.test.mjs: 164 pass, including the new pin test.log-api-budget.test.mjs: 85 pass.bash scripts/ci-lanes-pr-hold.test.sh: PASS=345 FAIL=0.main'sbabysit_gh.py,babysit_verify_evidence.py,rate-guard.mjsandpr-require-checks.ymlrestored, the 3 floor-wait tests error, the fix(source-control): report an unreadable pass as verify:unreadable, not verify:missing #17377 test fails (verify:missing), and the pin test fails.callers.test.mjswas not run locally (nonode_modulesin the worktree). CI runs it.pr-require-checks.ymlis 482,244 bytes, up from 481,459 onmain, under the 500 KB workflow limit.Related
WAIT_BUDGET_SECONDSsource, with each job's wait pinned to it.🤖 Generated with Claude Code