Skip to content

fix(dispatch): diagnose GitHub rate-limited responses - #401

Merged
StepenkoAnatoli merged 1 commit into
mainfrom
fix/issue-374-rate-limit-errors
Oct 14, 2026
Merged

StepenkoAnatoli merged 1 commit into
mainfrom
fix/issue-374-rate-limit-errors

Conversation

@StepenkoAnatoli

@StepenkoAnatoli StepenkoAnatoli commented Oct 13, 2026 •

Copy link
Copy Markdown
Owner

GitHub rate-limit 403 responses were reported as token-permission failures, dropping the reset time. Dispatch and run lookup now recognize primary and secondary rate limits from response headers or the body and return RATE_LIMITED with Retry-After and/or reset-time guidance. Ordinary permission refusals keep the existing FORBIDDEN diagnosis.

Fixes #374

what changed: Added shared 403 rate-limit classification for dispatch and run reads; preserved Retry-After seconds and the UTC x-ratelimit-reset value; tested header-based and body-only secondary-limit cases.

why: GitHub uses 403 for both permission failures and rate limits. Its documented response signals allow the client to explain the actual cause without changing retry policy.

what it touched: dispatch library and tests, dispatch architecture row, changelog and README test inventory. No public option or automatic retry behavior changed.

what you verified: verified - red-first 32 passed and 1 expected failure, then 33 dispatch tests passed; handoff OK, preflight PASS, doctor READY. The required full commit gate accepted b439cf9. GitHub CI passed all seven required jobs (run 38431464324).

what you got wrong and fixed: nothing to report.

what changed: Classify rate-limited 403 responses from GitHub headers or message for dispatch and run reads; preserve Retry-After and reset time.

why: Rate limits and token permissions both use 403, so diagnostics should identify the actual cause. No alternative design was set aside.

what it touched: dispatch library/tests, architecture, changelog and test inventory; no retry policy or public interface.

what you verified: verified - red-first 32 passes/1 expected failure, then 33 dispatch tests pass; handoff OK, preflight PASS, doctor READY. Full gate is running.

what you got wrong and fixed: nothing to report.
@StepenkoAnatoli
StepenkoAnatoli merged commit 0dc3ff0 into main Oct 14, 2026
7 checks passed
@StepenkoAnatoli
StepenkoAnatoli deleted the fix/issue-374-rate-limit-errors branch October 14, 2026 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A GitHub rate-limit 403 is reported as FORBIDDEN with a token-permission remedy, dropping the reset time

1 participant