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
Issue #450 added a circuit breaker template for model rate limiting — great foundation. But in production with multiple Ralphs across machines (or pods on K8s), single-instance circuit breakers aren't enough. Each Ralph independently hits API limits, causing cascading failures across the fleet.
The core problems at scale:
No coordination — 5 Ralphs each think they have full API quota
Thundering herd — All Ralphs retry simultaneously after rate limit resets
Priority inversion — Low-priority work exhausts quota before critical work runs
Reactive only — Circuit opens AFTER 429, wasting the failed request
The circuit breaker in #518/#522 is the big one — it predicts quota exhaustion using linear regression on rate limit headers and opens the circuit before you get a 429. Exponential backoff, half-open recovery, state persisted across restarts. Zero missed rate limits in production.
Happy to walk through any of it or adjust based on your feedback!
Activity
feat: cooperative rate limiting with predictive circuit breaker (gith…
feat: wire rate limiting & circuit breaker into watch command (github…
tamirdresher commentedon Mar 22, 2026
Hey Brady! 👋
Submitted 4 PRs from our production Squad deployment — these are patterns we've been running for 3+ months on AKS:
eeds:*\ label routing (so Ralph only picks issues the machine can handle)
The circuit breaker in #518/#522 is the big one — it predicts quota exhaustion using linear regression on rate limit headers and opens the circuit before you get a 429. Exponential backoff, half-open recovery, state persisted across restarts. Zero missed rate limits in production.
Happy to walk through any of it or adjust based on your feedback!
feat: wire rate limiting & circuit breaker into watch command (github…
feat: Cooperative Rate Limiting & Predictive Circuit Breaker (#515) (#…
feat(watch): circuit breaker integration for rate limit protection (g…
Merge pull request #552 from tamirdresher/tamirdresher/515-rate-limit…
feat: consolidated CLI help, shell, and docs improvements (github#546)