Skip to content

fix(service): GitHub refused the identity and rounds stopped #7911

Done

Description

@dan-petty

Problem

The roadmap Service is halted and starts no round. At startup the pod writes this log message: "The Service stays halted: ... service-halt.json records that GitHub refused the identity devops-cli-service[bot], so no round starts. When the cause is fixed, remove the file and restart the Service."

Evidence

All times are 2026-11-30, UTC.

Cause

Not known. The log of the pod that got the refusal was not read.

Change

Remove the cause of the refusal. Then remove the halt file and restart the Service (docs/CLUSTER.md, the paragraph "When GitHub refuses the identity").

Acceptance criteria

Alternatives check of 2026-11-30: none.
Tool: none found.
Reason: Searches found GitHub SDKs, but no tool reads a 403 body to separate a secondary rate limit from a refused identity. The fix belongs in the project's own is_rate_limited classifier.

Lacks:

  • Reading the 403 answer body to detect a rate limit
  • Separation of a rate limit from a refused identity
  • A restart of the halted Service after the fix

Activity

  1. added
    type/bug
    source/agent
    status/new
    effort/medium
    value/high
    scope/service
    on Nov 30, 2026
  2. dan-petty commented on Nov 30, 2026

    @dan-petty
    OwnerAuthor
  3. added
    priority/p0-critical
    owner/agent
    on Nov 30, 2026
  4. dan-petty commented on Nov 30, 2026

    @dan-petty
    OwnerAuthor

    Cause

    From the log of the Service on 2026-11-30:

    • 03:23:03: the row redeliver for dan-petty/dreamscaper failed on POST /app/hook/deliveries/<id>/attempts with HTTP 403, with no rate-limit header and the message API rate limit exceeded for integration ID .... The Service read this as a refused identity, wrote service-halt.json and stopped each job of each repository.

    So GitHub did not refuse the identity. It was a rate limit. is_rate_limited (src/devops_cli/github/error_classifier.py) reads only the exception type, the status 429 and the header retry-after. It does not read the message of the answer, so the 403 on a write with no rate-limit header goes to _refused_identity_error (#2474). The gh path already reads the text with CONST_GITHUB_RATE_LIMIT_PATTERNS.

    Recovery

    A person removes the halt record and restarts the Service (docs/CLUSTER.md). Until a release holds the fix, a second answer of this kind halts the Service again.

  5. dan-petty commented on Nov 30, 2026

    @dan-petty
    OwnerAuthor

    The owner approved the recovery on 2026-11-30. At 19:09 UTC an agent removed service-halt.json and deleted the Service pod.

    The record that it removed: identity devops-cli-service[bot], repository dan-petty/dreamscaper, kind RoadmapRunError, time 2026-11-30T03:23:03Z.

    The new pod holds the Lease and has a new installation token. The deployed image is v0.259.0, which does not hold a fix, so the same 403 can halt the Service again.

  6. devops-cli-service commented on Nov 30, 2026

    @devops-cli-service
    Contributor

    Next step: the alternatives check records a verdict. See the section Proposed design of the body.

  7. devops-cli-service commented on Nov 30, 2026

    @devops-cli-service
    Contributor

    The result in the alternatives block of the issue body changed. Before this check: no check. A person decides what the new result means for the item.

    Searches (10)

    Tools considered:

    Searches run:

    • githubkit secondary rate limit exception handling, results: 5
    • GitHub API secondary rate limit 403 detect message text library python, results: 5
    • gidgethub RateLimitExceeded 403 rate limit detection, results: 5
    • PyGithub RateLimitExceededException 403 secondary rate limit, results: 5
    • githubkit pypi exception RateLimitExceeded, results: 5
    • GitHub docs secondary rate limits 403 message "rate limit exceeded", results: 5
    • githubkit, results: 5
    • gidgethub GitHub API client library, results: 5
    • docs.github.com rate limits REST API secondary, results: 5
    • github rest api rate limit documentation response headers retry-after, results: 5

    Sources:

  8. added
    status/in-progress
    and removed
    status/new
    on Nov 30, 2026
  9. added
    status/in-review
    and removed
    status/in-progress
    on Nov 30, 2026
  10. removed
    status/in-review
    owner/agent
    on Nov 30, 2026
  11. devops-cli-service commented on Nov 30, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-30 22:54 UTC

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

    effort/mediumpriority/p0-criticalscope/servicesource/agenttype/bugvalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions