iron_cage_reliability
Circuit breakers and fault tolerance for multi-agent systems.
Installation
[]
= { = "0.1", = ["full"] }
Features
enabled(default): Full circuit breaker functionalityfull: All functionality (currently same asenabled)
Quick Start
use CircuitBreaker;
// Create circuit breaker with 5-failure threshold
let cb = new;
// Perform operation with circuit breaker protection
match cb.call
Documentation
Responsibilities: Implements circuit breaker pattern (Closed/Open/HalfOpen states) for agent reliability with automatic failure detection and recovery. Prevents cascading failures by temporarily disabling failing agents while allowing periodic retry attempts. Requires Rust 1.75+, all platforms supported, uses exponential backoff for recovery.
In Scope:
- Circuit breaker pattern implementation
- Automatic fallback mechanisms
- Retry logic with exponential backoff
- Service health monitoring
- Failure threshold tracking
Out of Scope:
- Cost tracking (see iron_cage_cost)
- PII detection (see iron_cage_safety)
- Agent orchestration (see iron_cage_cli)
- Configuration management (see iron_cage_types)
Source Files
| File | Responsibility |
|---|---|
| lib.rs | Circuit breaker pattern for preventing cascading failures. |
Notes:
- Entries marked 'TBD' require manual documentation
- Entries marked '⚠️ ANTI-PATTERN' should be renamed to specific responsibilities
License
MIT