Adaptive (Circuit Breaker)
/adaptive-circuit-breaker Tier 3
Three-state circuit breaker: Closed → Open (after FailureThreshold consecutive failures) → Half-Open (after ResetTimeout, one probe allowed) → Closed (on success). Dynamic timeout scaling. Never trips on permanent 4xx errors.
Signature
action contractfunc Adaptive[Req, Res any](name string, cfg AdaptiveConfig) Middleware[Req, Res]