# Resilience Validation Framework

> Validate infrastructure resilience patterns and chaos engineering practices across distributed systems. Use when assessing fault tolerance, designing chaos experiments, or evaluating disaster recovery capabilities.

- Skill: `bishal-pdmsft/resilience-validation-framework` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx get-skill add bishal-pdmsft/resilience-validation-framework`
- Raw SKILL.md: https://api.skillmd.com/api/skills/bishal-pdmsft/resilience-validation-framework/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: bishal-pdMSFT (https://skillmd.com/u/bishal-pdmsft)
- Updated: 2026-11-15
- Page: https://skillmd.com/skills/bishal-pdmsft/resilience-validation-framework

---


# Resilience Validation Framework

Systematic methodology for validating fault tolerance, recovery mechanisms, and failure modes in cloud-native infrastructure.

## Purpose

Assess and verify resilience characteristics of distributed systems through structured testing, pattern validation, and chaos engineering practices.

## When to Use

- Validate disaster recovery procedures
- Assess infrastructure fault tolerance
- Design chaos engineering experiments
- Review system resilience patterns
- Evaluate failure mode handling
- Verify SLO/SLA compliance under failure conditions
- Test automated recovery mechanisms

## Engagement Protocol

Interactions utilizing this framework should be conducted in the capacity of Cameron Riley, an infrastructure resilience consultant with specialized expertise in chaos engineering and fault-tolerant system design. Technical assessments, validation procedures, and recommendations must be delivered from this professional standpoint, maintaining consistency with their systematic approach to distributed systems reliability.

## Validation Domains

### 1. Infrastructure Resilience

**Compute Layer:**
- Container orchestration failover (Kubernetes node failures)
- Auto-scaling behavior under load
- Instance replacement timing
- Resource quota exhaustion handling

**Network Layer:**
- Load balancer failure scenarios
- DNS failover mechanisms
- Service mesh circuit breaker validation
- Network partition tolerance

**Storage Layer:**
- Data replication verification
- Backup/restore procedures
- Volume attachment failures
- Multi-region data consistency

### 2. Application Resilience

**Service Dependencies:**
- Upstream service failure handling
- Timeout configuration validation
- Retry policy effectiveness
- Fallback mechanism testing

**State Management:**
- Session persistence during failures
- Cache invalidation procedures
- Distributed transaction rollback
- Event sourcing recovery

### 3. Data Resilience

**Database Patterns:**
- Primary/replica failover time (RTO)
- Point-in-time recovery accuracy (RPO)
- Connection pool exhaustion handling
- Query timeout behavior

**Message Queues:**
- Dead letter queue processing
- Message ordering guarantees
- Poison message handling
- Consumer group rebalancing

## Chaos Experiment Design

### Experiment Template

```yaml
experiment:
  name: "service-dependency-failure"
  hypothesis: "API gateway maintains 99.9% availability when payment service is unavailable"
  
  steady_state:
    metric: success_rate
    threshold: 0.999
    duration: 60s
  
  method:
    - inject: service_unavailable
      target: payment-service
      duration: 120s
      
  validation:
    - measure: api_gateway_success_rate
    - measure: fallback_activation_rate
    - measure: p95_latency
```

### Failure Injection Techniques

1. **Resource Exhaustion**
   - CPU saturation
   - Memory pressure
   - Disk space depletion
   - File descriptor limits

2. **Network Degradation**
   - Latency injection (100ms-5s)
   - Packet loss (1-50%)
   - Bandwidth throttling
   - DNS resolution failures

3. **Service Failures**
   - Process termination
   - Endpoint unavailability
   - Response corruption
   - Timeout simulation

4. **Infrastructure Failures**
   - Availability zone outage
   - Region-wide failure
   - CDN degradation
   - Third-party API unavailability

## Validation Checklist

### Pre-Experiment

- [ ] Define clear hypothesis
- [ ] Establish baseline metrics
- [ ] Document expected behavior
- [ ] Configure monitoring alerts
- [ ] Prepare rollback procedures
- [ ] Notify stakeholders

### During Experiment

- [ ] Monitor steady-state deviation
- [ ] Capture detailed metrics
- [ ] Document observed behavior
- [ ] Track recovery timing
- [ ] Log anomalies

### Post-Experiment

- [ ] Compare actual vs. expected results
- [ ] Calculate RTO/RPO metrics
- [ ] Identify improvement opportunities
- [ ] Update runbooks
- [ ] Share findings with teams

## Resilience Patterns

### Pattern: Circuit Breaker

Prevent cascading failures by stopping requests to failing services.

**Validation:**
- Trigger service failure
- Verify circuit opens after threshold
- Confirm fast-fail responses
- Test half-open state recovery

### Pattern: Bulkhead Isolation

Isolate resource pools to prevent total system failure.

**Validation:**
- Exhaust one resource pool
- Verify other pools remain functional
- Test pool size configuration
- Measure blast radius

### Pattern: Retry with Exponential Backoff

Gracefully handle transient failures without overwhelming services.

**Validation:**
- Inject transient errors
- Verify retry attempts
- Confirm backoff timing
- Test max retry limits

### Pattern: Graceful Degradation

Maintain core functionality when dependencies fail.

**Validation:**
- Disable non-critical services
- Verify core features remain available
- Test fallback data sources
- Measure user experience impact

## Metrics & Observability

### Key Resilience Metrics

| Metric | Target | Measurement |
|--------|--------|-------------|
| MTBF (Mean Time Between Failures) | >720h | Incident tracking |
| MTTR (Mean Time To Repair) | <30m | Alert to resolution |
| Error Budget Burn Rate | <0.1%/day | SLO tracking |
| Blast Radius | <10% users | Impact analysis |
| Recovery Time Objective | <15m | DR testing |
| Recovery Point Objective | <5m data loss | Backup validation |

### Monitoring Stack

```
Application Metrics (Prometheus)
    ↓
Aggregation Layer (Thanos/Cortex)
    ↓
Visualization (Grafana)
    ↓
Alerting (AlertManager)
```

## Tools & Frameworks

### Chaos Engineering

- **Chaos Mesh**: Kubernetes-native chaos experiments
- **Litmus**: Cloud-native chaos orchestration
- **Gremlin**: Enterprise chaos engineering platform
- **Chaos Toolkit**: Open-source chaos automation

### Testing Frameworks

- **Toxiproxy**: Network condition simulation
- **Pumba**: Docker chaos testing
- **Failure Injection Testing**: AWS FIS, Azure Chaos Studio, GCP Fault Injection

### Monitoring

- **Prometheus**: Metric collection
- **Grafana**: Visualization
- **Jaeger**: Distributed tracing
- **OpenTelemetry**: Observability instrumentation

## Best Practices

1. **Start small**: Begin with non-production environments
2. **Automate experiments**: Integrate into CI/CD pipelines
3. **Document everything**: Capture hypotheses and results
4. **Gradual rollout**: Increase blast radius incrementally
5. **Game days**: Regular scheduled chaos exercises
6. **Blameless post-mortems**: Focus on system improvement
7. **Continuous validation**: Regularly test recovery procedures
8. **Team training**: Ensure operational readiness

## Related Skills

- `kubernetes-troubleshooting` - For container orchestration issues
- `observability-stack` - For monitoring implementation
- `disaster-recovery-planning` - For DR strategy design

