You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
source-control/babysit-prs and pull-request: codify REST polling and a queued-vs-running distinction for CI waits #3955
needs-humanHuman-in-the-loop required; autonomous sessions must not resolve items carrying this.status: readyTriaged, unblocked, and fully specified; eligible to pick up.
Neither babysit-prs nor pull-request says how to poll a pending check (grep -rn "checks --watch" plugins/source-control/ returns nothing), so a run reaches for gh pr checks --watch, which polls
GraphQL hard enough to lock the account out of GraphQL entirely — while the job in question has not even
started.
Evidence
ab7ddac6 L124 2026-09-07T21:23:49 — "GraphQL: API rate limit already exceeded for user ID
153232337"; diagnosed L129 21:24:05 ("the --watch polling burned it"); worked around L136 21:24:25 by switching to REST at a low frequency.
The job was merely queued, not running: PR work-items: lease-coordination.test.sh missing concurrent-renew revalidation test case #687's test job queued at L117 21:14:53, still
queued at L162 21:56:36, passed L216 22:09:08. Roughly 63 minutes of the wait was queue time on a
saturated self-hosted pool (L183 21:57:41 — "nine ci-runner-melo-lap-001 runners online, all
busy"). Cost: three sequential background pollers plus the rate-limit exhaustion.
Note this chain never invoked /source-control:* as a skill at all (section D) — the --watch call was
raw Bash. So this is hardening the skill text to steer the next run, not a defect in code the skills
currently execute.
Proposed work
Prescribe REST polling at a low interval as the wait mechanism; name --watch as the thing not to use
for a long wait, with the rate-limit reason.
Before polling starts, distinguish queued from running: report "queued on label X, N/M runners
busy" rather than treating a queued job as a slow job. On a self-hosted pool, latency is a capacity
property of the fleet, not a property of the change, and the two call for different operator action.
References
melodic-software/github-iac — owns the runner routing label and the org pool-saturation alert; a
companion issue there covers the capacity side.
Source: /session-flow:retro over the meta-muse chain, 2026-09-07
Type: Task Summary: Document the correct way to wait on a pending CI check (REST polling at a low interval, and distinguishing a queued check from a running one) so a run does not reach for a GraphQL watch-based polling command that can exhaust the account's GraphQL rate limit.
Current behavior:
Neither the /source-control:pull-request skill's monitoring reference nor the /source-control:babysit-prs reference states that a long CI wait must avoid the GitHub CLI's watch-based check-polling command, even though that command polls GraphQL aggressively enough to exhaust the account's GraphQL rate limit while the check in question may not have even started running. The monitoring reference already documents a REST-and-polling-tool-based wait mechanism, and a stuck-queued classification already exists in the babysitting logic, but neither surface tells the reader in words not to reach for watch-based polling, nor how to tell a queued check apart from a running one before treating a wait as slow.
Desired behavior:
The pull-request monitoring reference and the PR-babysitting reference each state explicitly, in prose a contributor or agent will read before choosing a polling mechanism, that a long CI wait must not use the GitHub CLI's watch-based check-polling command, naming GraphQL rate-limit exhaustion as the reason. Both references also state that a check found in a queued state should be reported as queued (naming its runner-pool contention where available) rather than treated as a slow-running job, since queued-versus-running calls for different operator action on a capacity-constrained runner pool.
Key interfaces:
The pull-request skill's monitoring reference gains an explicit anti-pattern statement naming the watch-based check-polling command as unsafe for a long wait.
The PR-babysitting reference gains the same anti-pattern statement, plus a queued-vs-running distinction in its reporting language, consistent with the stuck-queued classification the babysitting logic already computes.
Acceptance criteria:
The pull-request skill's monitoring reference contains a line explicitly naming the GitHub CLI's watch-based check-polling command as not to be used for a long CI wait, with the GraphQL rate-limit reason stated.
The PR-babysitting reference contains the same explicit anti-pattern statement.
The PR-babysitting reference's language for a check already classified as stuck-in-queue reports it as queued (naming runner-pool contention where the data is available) rather than as merely slow.
Neither reference recommends the watch-based check-polling command anywhere else in its text.
Out of scope:
Any change to the babysitting logic's stuck-queued classification itself (already correct); this brief is documentation-only.
The runner-pool capacity and routing-label problem, which is owned by a companion repository.
Human-gated (work-loop lane melo-lap-001-wsl-3). Question: approve dispatch of this feature-shaped skill-text change, and record its class?
Classification: C3 scoped, feature-shaped.
Reason: the work adds new prescriptive guidance (REST polling at a low interval instead of gh pr checks --watch, and a queued-versus-running distinction reported before polling) to skill bodies that agents load and follow: plugins/source-control/skills/babysit-prs/SKILL.md (and its reference/cadence.md / reference/stuck-checks.md) and plugins/source-control/skills/pull-request/SKILL.md (and its reference/monitor.md). Tracked skill markdown is a runtime surface, so this is new agent behavior, not mechanical maintenance. The issue itself says no code the skills execute is defective, so it is new capability rather than a bug fix. C3 feature-shaped items are human-gated at admission.
Intended dispatch once approved:/work-items:work; add the polling and queued-versus-running guidance at the owning reference files, with a verification record per the skill-bodies rule, and patch-bump source-control with a matching CHANGELOG.md section.
Proposed class for the operator to record: C3 feature-shaped. The recorded work-class: scoped label matches; no relabel proposed.
This comes from the 2026-09-29 audit of the Cursor run. Draft PR: #5317 (Refs #3955).
What the audit found. Two defects in monitor.md: the queued-past-threshold bullet contradicted the busy-pool case, and step 2 of the monitor loop did not defer to the REST read (plus babysit-prsloop.md). #5317 fixes both.
Unchanged. The added procedure itself (jobs API, runners endpoint, three-way action list) is not touched. The audit recommends ratifying it; the dispatch-approval question stays with the owner. If you want it trimmed to the anti-pattern statement plus the queued/running line, say so here.
needs-humanHuman-in-the-loop required; autonomous sessions must not resolve items carrying this.status: readyTriaged, unblocked, and fully specified; eligible to pick up.
Activity
kyle-sexton commentedon Sep 23, 2026
This was generated by AI during triage.
Agent Brief
Type: Task
Summary: Document the correct way to wait on a pending CI check (REST polling at a low interval, and distinguishing a queued check from a running one) so a run does not reach for a GraphQL watch-based polling command that can exhaust the account's GraphQL rate limit.
Current behavior:
Neither the
/source-control:pull-requestskill's monitoring reference nor the/source-control:babysit-prsreference states that a long CI wait must avoid the GitHub CLI's watch-based check-polling command, even though that command polls GraphQL aggressively enough to exhaust the account's GraphQL rate limit while the check in question may not have even started running. The monitoring reference already documents a REST-and-polling-tool-based wait mechanism, and a stuck-queued classification already exists in the babysitting logic, but neither surface tells the reader in words not to reach for watch-based polling, nor how to tell a queued check apart from a running one before treating a wait as slow.Desired behavior:
The pull-request monitoring reference and the PR-babysitting reference each state explicitly, in prose a contributor or agent will read before choosing a polling mechanism, that a long CI wait must not use the GitHub CLI's watch-based check-polling command, naming GraphQL rate-limit exhaustion as the reason. Both references also state that a check found in a queued state should be reported as queued (naming its runner-pool contention where available) rather than treated as a slow-running job, since queued-versus-running calls for different operator action on a capacity-constrained runner pool.
Key interfaces:
Acceptance criteria:
Out of scope:
kyle-sexton commentedon Sep 27, 2026
This was generated by AI during work-loop.
Human-gated (work-loop lane melo-lap-001-wsl-3). Question: approve dispatch of this feature-shaped skill-text change, and record its class?
gh pr checks --watch, and a queued-versus-running distinction reported before polling) to skill bodies that agents load and follow:plugins/source-control/skills/babysit-prs/SKILL.md(and itsreference/cadence.md/reference/stuck-checks.md) andplugins/source-control/skills/pull-request/SKILL.md(and itsreference/monitor.md). Tracked skill markdown is a runtime surface, so this is new agent behavior, not mechanical maintenance. The issue itself says no code the skills execute is defective, so it is new capability rather than a bug fix. C3 feature-shaped items are human-gated at admission./work-items:work; add the polling and queued-versus-running guidance at the owning reference files, with a verification record per the skill-bodies rule, and patch-bumpsource-controlwith a matchingCHANGELOG.mdsection.work-class: scopedlabel matches; no relabel proposed.docs(source-control): REST-poll CI waits; queued vs running (#3955) (#…
fix(source-control): route queued jobs as stuck only without a free m…
kyle-sexton commentedon Sep 29, 2026
This comes from the 2026-09-29 audit of the Cursor run. Draft PR: #5317 (
Refs #3955).What the audit found. Two defects in
monitor.md: the queued-past-threshold bullet contradicted the busy-pool case, and step 2 of the monitor loop did not defer to the REST read (plusbabysit-prsloop.md). #5317 fixes both.Unchanged. The added procedure itself (jobs API, runners endpoint, three-way action list) is not touched. The audit recommends ratifying it; the dispatch-approval question stays with the owner. If you want it trimmed to the anti-pattern statement plus the queued/running line, say so here.
The issue stays closed.
fix(source-control): repair audit findings in linkage, worktree, conf…