Repository navigation
Closed
Labels
enhancementNew feature or requestNew feature or requestready-for-agentFully specified, ready for an AFK agentFully specified, ready for an AFK agent
Description
Parent
What to build
Every Pass checks the quota before any GitHub work and is skipped during a Quota wait or below the reserve, and the operator can see why. This covers Pickup, Architect, Security, Triage, Review with --author, Fix with no pull request, and a Custom process started with no issue, whether cron or a person starts it.
- Admission, beside the existing Command-limit admission and before the Sweep or any other GitHub read: consult the Quota wait record, then
gh api rate_limit. Skip when either resource (REST core, GraphQL) is in a Quota wait or below 500, recording the low resource as a Quota wait. A skipped Pass takes no Command-limit slot. - If the quota check fails for a reason other than exhaustion, the Pass goes ahead as it does today.
- A skip exits 0, prints nothing on stdout and sends no Run notification. The Activity log gets
skipped: GitHub Quota wait until <time> (<resource>: <n> left)only when the reason changes from the last one recorded for that kind. statusand the Console Inbox showGitHub Quota wait until <time>beside thePickup last firedlines while the machine's record holds one.docs/guide.md: describe the skip with the other Pass skips, and add scheduling guidance that every host authenticated as the same GitHub user shares one quota, so Pass frequency should be budgeted per user across hosts, not per host or repository. Regenerate the user manual. Check the hand-written site pages for the Pass skip lists and update them in the same pull request.
Acceptance criteria
- Each kind of Pass listed above is skipped, exit 0, with no GitHub call beyond the quota check, while either resource is in a Quota wait.
- Each is skipped while either resource is below 500, and that records a Quota wait.
- A Pass proceeds normally when
gh api rate_limitfails for a non-quota reason. - A long Quota wait leaves one Activity log line per kind, not one per Pass.
- A skipped Pass sends no email, even with Run notifications on.
-
statusand the Console Inbox show the machine's Quota wait; neither shows one after the reset. - Tests run the binary against the fake
gh, usingrate_limits/next_rate_limitsand rate-limited failures. -
docs/guide.mdand the generated manual describe the skip and the per-user budget;npm run docs:check --prefix sitepasses. -
scripts/affected-tests mainpasses.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestready-for-agentFully specified, ready for an AFK agentFully specified, ready for an AFK agent
Activity
JacobStephens2 commentedon Nov 11, 2026
Closed by #2006, merged into issue-1994 by a thirdshift Ticket run with Self-merge.