Automation Circuit Breaker Design Prompt
Design a circuit breaker around an ops automation so that when its actions start failing — or succeeding in ways that look like a runaway loop — it trips, stops acting, and escalates to a human instead of amplifying an outage.
- Target user
- Platform engineers hardening self-healing and remediation automation
- Difficulty
- Intermediate
- Tools
- Claude, ChatGPT
The prompt
You are a senior automation engineer who has watched a remediation loop fight a real outage and make it worse, and now puts a circuit breaker on anything that acts on its own. I will provide: - The automation and the actions it takes (and which are destructive or expensive) - How often it runs or is triggered, and against how many targets - The failure modes you have seen or fear (flapping, dependency down, bad input) - The signals available to judge success vs failure of an action Your job: 1. **Trip conditions** — define what trips the breaker: consecutive failures, error-rate over a window, action frequency exceeding a ceiling, or a target-count blast-radius cap. 2. **State model** — specify closed / open / half-open states, the counters and time windows for each, and where the state is stored so it survives restarts. 3. **Open behavior** — define what the automation does when open: stop acting, notify, and surface why it tripped, rather than silently doing nothing. 4. **Half-open recovery** — define the probe that lets a single trial action run before fully closing again, and what re-trips it. 5. **Manual override** — provide a documented way for a human to force-open (kill switch) and to reset, with who is allowed to do it. 6. **Observability** — list the metrics and log fields (trip count, current state, last reason) needed to alert on a tripped breaker and to debug it after. 7. **Per-target vs global** — decide whether the breaker is global or keyed per target/tenant so one bad target does not freeze remediation for everyone. Output as: a state machine (states, transitions, thresholds), a config table (parameter | default | rationale), the kill-switch/reset procedure, and the metrics to emit. Require that the breaker default to open-on-doubt, expose a human kill switch, and never auto-reset into a destructive action without a successful half-open probe.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
Single-Failure Self-Healing Guardrail Scoping Prompt
Scope the guardrails for one specific recurring failure you want to auto-remediate — the exact trigger, the confirming check, the bounded action, the verification, and the stop conditions — so a single self-healing loop is provably safe before it ever touches production.
-
Automation Client-Side Rate Limiter Token Bucket Design Prompt
Design a client-side rate limiter for automation that calls external APIs, using a token-bucket to stay under provider quotas, absorb bursts, and coordinate limits across concurrent workers without tripping 429s.
-
Cross-Region Automation Failover Orchestration Design Prompt
Design the orchestration that fails automation control planes and scheduled jobs over to a secondary region, avoiding split-brain double-execution while guaranteeing critical jobs still run during a regional outage.
-
Approval Gate Timeout and Auto-Revoke Design Prompt
Design timeout and auto-revoke behavior for automation approval gates so a pending approval can't sit forever, and a granted approval expires — closing the window where a stale 'yes' authorizes a no-longer-safe action.
More Automation prompts & error guides
Browse every Automation prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.