Simulate a circuit breaker to understand Closed, Open, and Half-Open states.
State Machine:
CLOSED → 3 failures → OPEN
OPEN → 5s timeout → HALF-OPEN
HALF-OPEN → 2 successes → CLOSED
HALF-OPEN → 1 failure → OPEN
No events yet. Send a success or failure to start.