Repair Circuit Breaker State Drift

    by Mariusz Wrzeszczynski

    1

    Repair duplicate breaker ownership, state drift, half-open probe storms, retry amplification, reset races, and failure-classification mismatches.

    Secure checkout via Stripe

    0 installsSecurity scanned

    Works with the AI tools you already use

    CClaude CodeCCursorCCodex CLIGGitHub CopilotGGemini CLI+17 more

    See it in action

    You say

    Our Node/TypeScript worker uses one circuit breaker around a partner API, but each Kubernetes replica has independent state. The breaker opens after failures and waits 20 seconds, then half-open allows every waiting worker to probe at once. We also have an SDK retry inside the breaker and a queue retry outside it. After the partner recovers, the probe burst sometimes knocks it back down. Repair the repository locally with fake clocks and a scripted dependency. Preserve existing threshold values. Do not call production, change provider limits, or decide that breaker state must be globally shared.

    Your agent does

    Breaker drift found. Half-open permits too many probes, retry exists both inside and outside the breaker, and per-instance ownership is undocumented. The repair bounds half-open recovery, normalizes retry ownership, fences stale timers, preserves existing thresholds, and adds deterministic state tests. Production recovery capacity and shared-vs-local state policy remain unverified.

    What you get

    Prevent probe storms by bounding half-open concurrency in service clients.Align failure classification across distributed service instances.De-duplicate nested retry logic around protected dependency calls.Verify breaker state transitions using deterministic fake-clock tests.

    About this skill

    Circuit breakers can become a failure source when multiple wrappers disagree about state, retries multiply inside and outside the breaker, half-open recovery admits too much traffic, or stale timers reopen/close the wrong generation.

    Repair Circuit Breaker State Drift gives an AI coding agent a repository workflow for reconstructing breaker state machines, unifying ownership and failure classification, bounding half-open probes, fencing reset timers, normalizing retry interaction, and proving transitions with fake-clock tests.

    It preserves supplied thresholds, does not call production dependencies, and does not assume breaker state must be globally shared across instances.

    How to install

    Drop the file into your AI Agent. Works with Claude, Cursor, ChatGPT, and 20+ more.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    30-day refund

    Not a fit? Get your money back

    Trust & safety

    Security scanned

    Verified clean today

    Listedtoday

    Frequently Asked Questions

    Popular in AI Agents & LLM Ops