Design a Chaos Experiment
Purpose
Turn a resilience assumption into a safe, falsifiable experiment with a bounded blast radius and clear abort rules, so the team learns how the system really behaves under failure before customers find out.
When to use
- A resilience mechanism exists on paper (failover, retry, circuit breaker, autoscaling) but has never been exercised.
- A game day or failure-injection program is being planned.
- A recent incident suggests a hidden dependency or weak fallback that should be confirmed.
When not to use
- The architecture has not been reviewed for failure modes yet. Use
resilience-reviewfirst to find what to test. - The goal is a full site or region recovery procedure. Use
dr-plan(its tests can then use this skill). - The system is currently unstable or in an incident. Stabilize first; experiments need a known steady state.
Inputs
Required:
- The target system and the resilience claim to test.
- The environment where the experiment may run and who approves it.
Optional, improves quality:
- SLOs and dashboards that define normal behavior.
- Architecture and dependency map, known failure history, existing runbooks.
- Available fault injection capabilities and change-management rules.
If the claim or the permitted environment is unknown, ask. Never propose production injection without explicit approval and an abort mechanism.
Process
- State the resilience claim in the user's words, then define the steady state as measurable signals (e.g. success ratio, p99 latency, queue lag) with their normal range, preferably SLIs.
- Write a falsifiable hypothesis: "When happens to , stay within , because ."
- Choose the fault to inject and its realism: instance or pod termination, dependency latency or errors, network partition, resource exhaustion, zone loss, clock skew, expired credential.
- Bound the blast radius: environment, share of traffic or hosts, duration, time window, and a progressive plan (smallest scope first, widen only after a pass).
- Define abort conditions tied to user impact (e.g. error budget burn above a threshold, SLI below a floor) and the rollback: how the fault is stopped and how fast recovery is verified.
- List prerequisites: monitoring in place and watched, on-call informed, stakeholders notified, no concurrent changes, approved change record, a verified manual recovery path.
- Plan observations: which dashboards, logs and traces to capture, who watches what, and what timeline notes to take during the run.
- Define roles: experiment lead, operator injecting the fault, observer, and the person with authority to abort.
- Prepare the findings record: hypothesis confirmed or refuted, observed behavior vs. expected, surprises, and follow-up actions with owners.
- Label every inference
[ASSUMPTION], list open questions, and suggest next skills:runbookfor gaps found in response,resilience-reviewfor design fixes, orpostmortemformat if the experiment caused unexpected impact.
Output format
# Chaos Experiment: <name>
Owner: <lead> · Environment: <env> · Window: <date/time or [TBD]> · Approval: <who>
## Claim and Hypothesis
- Claim: ...
- Steady state: <signals and normal range>
- Hypothesis: When ..., then ..., because ...
## Fault Injection
| Fault | Target | Method (neutral) | Duration |
## Blast Radius and Progression
## Abort Conditions and Rollback
## Prerequisites Checklist
## Roles
## Observation Plan
## Findings (filled after run)
| Expected | Observed | Result | Follow-up action | Owner |
## Assumptions and Open Questions
Quality checklist
- The hypothesis is falsifiable and references measurable steady-state signals.
- Blast radius is bounded in scope, traffic share and duration, with progressive widening.
- Abort conditions are tied to user impact and a tested way to stop the fault exists.
- Prerequisites include monitoring, notification, approval and no concurrent changes.
- A named person has authority to abort.
- The findings record separates observed facts from interpretation.
- All checks pass; if any fails, revise the output and re-run this checklist before answering.
Common pitfalls
- Running an experiment without a steady state. Without a baseline, "it looked fine" is not evidence.
- Starting at full scope in production. Begin with the smallest radius, often in a pre-production environment, then widen.
- Treating a refuted hypothesis as a failure of the exercise. Finding a weakness is the goal; record it and fix it.
Example
Input: "Order service should survive losing one of three Redis replicas."
Excerpt of output:
- Steady state: order API success ratio ≥ 99.9% and p99 < 300 ms over 5-minute windows
[ASSUMPTION: from SLO]. - Hypothesis: When one Redis replica is terminated, success ratio and p99 stay within steady state, because the client reconnects to the remaining replicas within 5 s.
- Blast radius: staging first; then production, one replica, 10 minutes, off-peak window.
- Abort: success ratio < 99.5% for 2 consecutive minutes, or any cache write failure alert → restart replica, confirm recovery on dashboard.