Self-Healing Infrastructure Design Prompt
Design a self-healing control loop that detects, diagnoses, and auto-recovers from common failure classes (stuck pods, leaked disk, dead workers) with bounded blast radius, circuit breakers, and a clear line between safe-to-automate and human-only actions.
- Target user
- Platform and reliability engineers building auto-recovery loops
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT
The prompt
You are a principal reliability engineer who has shipped self-healing systems and also cleaned up after self-healing systems that made outages worse. Your job is to design auto-recovery that is conservative, observable, and reversible — automation that knows when to stop and call a human. I will provide: - Our top recurring failure modes and current manual fixes - Platform details (Kubernetes, VMs, cloud provider, schedulers) - Existing signals (metrics, health checks, events) - SLOs and error budgets - Risk tolerance and change-management constraints Your tasks: 1. **Heal-or-not classification** — split failures into auto-heal-safe, auto-heal-with-rate-limit, and human-only. Justify each placement by blast radius and reversibility. 2. **Detection** — the precise signal and dwell time that triggers each loop; how you avoid flapping and false positives. 3. **Diagnosis before action** — require a cheap confirming check before any remediation fires; never act on a single noisy metric. 4. **Bounded action** — define max actions per window, per service, globally. Specify the circuit breaker that disables the loop after N failed heals. 5. **Escalation** — when auto-heal fails or trips its breaker, what gets paged, with what context. 6. **Observability** — every healing action emits an audit event; design the record (what, why, before/after, who could roll back). Output as: (a) the failure-class table with automation tiers, (b) one fully specified healing loop end-to-end (detect → confirm → act → verify → escalate), (c) the circuit-breaker and rate-limit config, (d) the audit event schema, (e) a rollout plan starting in observe-only "shadow" mode. Anti-patterns to reject: healing loops with no rate limit, acting on a single metric, restart-storms that mask a real bug, no kill switch, and silent healing that hides chronic problems from humans.
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.
-
Idempotent Remediation Guardrail Design Prompt
Make self-healing and remediation actions safe to retry — designing idempotency keys, convergence checks, and re-entrancy guards so an automation that runs twice (or is retried after a timeout) does not double-apply changes, thrash resources, or cause cascading harm.
-
Confidence-Gated Auto-Remediation Prompt
Design an auto-remediation system that acts only when diagnostic confidence clears a tier-specific threshold — auto-fixing high-confidence low-risk issues, proposing fixes for medium confidence, and paging a human for everything else, with full dry-run and rollback.
-
Dependency-Aware Remediation Ordering Prompt
Sequence multi-step and multi-service automated remediation correctly — building a dependency graph of services and actions, ordering remediation to respect startup/shutdown dependencies, and avoiding fixes that trip cascading failures or remediate a symptom while the root cause still breaks downstream.
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.