Skip to content

fix(github): project reconcile rate quota exhaustion and unbounded candidate mutations #235

Closed

Description

@dan-petty

Description

✓ Reconciled project #2 custom fields: 0/0 items updated. consumed thousands of GitHub GraphQL requests within minutes, exhausting almost the entire GraphQL request quota (from 5000 down to 84).

Root Causes

  1. Unbounded Historical Candidate Provisioning: queries pulling all 200+ historical issues, and attempts to add all missing closed issues to the project board without any mutation budget cap.
  2. Missing Total Mutation Budget: (25) was not enforced across provisioning or individual field mutations (up to 5 per item), permitting hundreds to thousands of mutations in a single run.
  3. Repeated Failing CLI Owner Fallback Calls: fails with 'unknown owner type' before falling back to , doubling requests on user-owned projects due to un-cached owner resolution.
  4. Low GraphQL Safety Threshold: (100) only reserved 2% of the quota before halting.

Acceptance Criteria

  • Raise GraphQL safety threshold to 500 (or 20% of limit).
  • Restrict candidate provisioning to open issues/PRs.
  • Enforce strict aggregate mutation budget across provisioning and field updates.
  • Cache resolved project owner argument to eliminate redundant fallback calls.

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/p1-highscope/githubtype/bug

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions