Repository navigation
fix(source-control): hold unattended GitHub loops to the API budget - #7769
Conversation
Add one API budget section to the GitHub provider reference and point the pull-request monitor, babysit-prs and babysit-loop at it. Monitor and babysit watches poll at 60 s and stop on a rate-limit error; merge-state, merge-queue and queue-entry waits poll REST at 60 s and read isInMergeQueue once; the babysit merge gate polls an async merge at 60 s and reads queue state once after a CLI merge instead of re-reading GraphQL every 3 s. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01R3zhSKMdk2UotJNUF3cJ4n
Codex Review SummaryThis 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 finished @kyle-sexton's task in 1m 13s —— View job Security review complete
No security issues found. This PR only changes polling cadence (15s/30s/3s → 60s), reduces GraphQL-only re-reads to a single read, and adds a stop-on-rate-limit-error behavior to the pull-request monitor (
No command-injection, credential-handling, or authorization-boundary changes in this diff. 0 findings. claude-lane-summary: lane=claude-security-review sha=f75a32d247c0a82be81933481e255ebffc52bbec run=39052287817 |
|
Claude finished @kyle-sexton's task in 7m 8s —— View job Code review complete
SummaryReviewed all 14 changed files (docs/reference changes plus One finding posted inline on Author-claimed-but-unverified: the PR body's test/lint run results ( claude-lane-summary: lane=claude-review sha=f75a32d247c0a82be81933481e255ebffc52bbec run=39052287759 |
|
claude-security-review has reviewed this pull request through c923898; a later push is reviewed from there. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f75a32d247
ℹ️ 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-review has reviewed this pull request through c923898; a later push is reviewed from there. |
Keep the babysit SKILL.md files under the 500-line cap, stop the pull-request monitor on a rate limit from any of its gh calls, scale watcher cadence by watcher count, and cite the issue-events read the merge-queue poll relies on. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Claude finished @kyle-sexton's task in 6m 16s —— View job Code review complete
SummaryReviewed the incremental diff since
One finding posted inline on Author-claimed-but-unverified: the PR body's test/lint results and the merge.md citation to claude-lane-summary: lane=claude-review sha=4b48248b74ddaf15cbc6832f403ef9b2ed322840 run=39053637440 |
|
Claude finished @kyle-sexton's task in 50s —— View job Security review complete
No security issues found. Reviewed the incremental change since
No command-injection, credential-handling, authorization-boundary, or Actions-workflow changes in this increment. claude-lane-summary: lane=claude-security-review sha=4b48248b74ddaf15cbc6832f403ef9b2ed322840 run=39053636821 |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Claude finished @kyle-sexton's task in 1m 23s —— View job Code review complete
SummaryReviewed the incremental diff since
Checked both relative links resolve to 0 findings. claude-lane-summary: lane=claude-review sha=c92389867a8028cda57cfa71f0db8be664ebe1ba run=39054266510 |
|
Claude finished @kyle-sexton's task in 35s —— View job Security review complete
No security issues found. Reviewed the incremental diff since
This is a pure addition (no instruction deletion, narrowing, or softening), so the instruction-exception-register lens doesn't apply. No command-injection, credential-handling, authorization-boundary, or Actions-workflow changes in this increment. claude-lane-summary: lane=claude-security-review sha=c92389867a8028cda57cfa71f0db8be664ebe1ba run=39054266470 |
No related issue: owner-approved change to hold unattended loops to the per-user GitHub API budget.
Summary
Every
ghcall by every agent shares one per-user budget (5,000 REST requests and 5,000 GraphQL points an hour), andghnever backs off. The pull-request monitor, babysit-prs and babysit-loop polled faster than that budget allows and re-read GraphQL-only fields in loops.Fix
reference/providers/github/README.md: new API budget section (buckets, 60 s background waits, GraphQL-only fields read once, writes 1 s apart, stop on the first rate-limit error). Skills point at it rather than restating it.pull-requestmonitor: the Monitor watch polls at 60 s (was 30 s), and exits 2 withRATE-LIMITEDon a rate-limit error instead of polling on.pull-requestmerge: merge-state, merge-queue and queue-entry waits poll RESTpulls/<n>at 60 s (were GraphQLgh pr view/gh api graphqlat 15-30 s); the queue wait readsisInMergeQueueonce, when the REST state or queue event changes.babysit-prs: Monitor fallback at 60 s;babysit_merge.pypolls an async merge at 60 s (was 3 s) and reads the queue state once after a CLI merge (was up to 4 GraphQL reads 3 s apart; later runs already confirm an unseen result). New gotcha points workers at the budget.babysit-loop: a rate-limit error ends the cycle's forge work until the reset.Verification
python3 -m unittest discoveroverskills/babysit-prs/scripts/tests: 1705 tests OK.scripts/check-affected.sh --no-fetch: 7 passed, 1 skipped.bash -non the monitor poll script: OK.Related
Source of the cadence: GitHub's REST best practices and REST/GraphQL rate-limit pages, linked in the new section.
🤖 Generated with Claude Code
https://claude.ai/code/session_01R3zhSKMdk2UotJNUF3cJ4n