Skip to content

fix(github): enforce window-budgeted rate pacing, disk quota persistence, and diff-only project sync #211

Closed

Description

@dan-petty

Bug Description

The GitHub GraphQL rate limiter previously permitted rapid quota exhaustion (burning 4,376 of 5,000 requests in 20 minutes) due to:

  1. Blind sync field mutations in devops gh project sync (issuing 5 GraphQL item-edit calls per candidate across 326 candidates = 1,630 mutations per run).
  2. Ephemeral rate limiter state losing quota tracking between independent CLI executions.
  3. Lack of rate limit response headers on gh project item-edit.
  4. Window-blind pacing delays that defaulted to 0.5s when quota was >50%.

Deliverables

  • Window-budgeted pacing delay in rate_limiter.py calculating dynamic delays over the 60-minute window.
  • Cross-process quota disk persistence (.data/cache/gh_quota.json) with pessimistic estimation for headerless mutations.
  • Diff-only project reconciliation in projects.py fetching items in a single cached call and skipping mutations when field values match.
  • Removal of REST fallback workarounds in PR threads to strictly honor GraphQL quotas and backoff.

Activity

  1. added this to the v0.2.18 milestone on Sep 15, 2026
  2. added
    type/bug
    scope/cli
    scope/github
    priority/p0-critical
    on Sep 15, 2026
  3. added a commit that references this issue on Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/p0-criticalscope/cliscope/githubtype/bug

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions