type State
import bend-kit-retry@0.3.0.0/retry.bend as Retryimport Base
24# Closed: the failures since the last success that are still inside the window, newest first.
25# Open: no attempt before until. Half: probes in flight.
26type State is Data:
27 CircuitClosed{fails: List<&2, Nat>}
28 CircuitOpen{until: Nat}
29 CircuitHalf{busy: Nat}