Skip to main content
TealReliability is a governance module that enforces reliability policies — retry budgets, circuit breakers, fallback chains, and degradation strategies. It extends the v1.1 TealCircuit pattern into a full reliability governance layer.

Overview

AI agents can fail in expensive ways: retrying endlessly, cascading failures across providers, or burning budget on degraded models. TealReliability governs these failure modes at the policy level.

Retry Budgets

Cap retry attempts per request, session, or agent

Circuit Breakers

Open circuits on repeated failures (extends TealCircuit)

Fallback Chains

Ordered fallback models when primary is unavailable

Degradation Policies

Graceful degradation instead of hard failure

Quick Start


Policy Configuration

Configure TealReliability through the reliability key in your policy:

Retry Budgets

Retry budgets cap the number of retry attempts for a given request. Once the budget is exhausted, the module returns DENY with RETRY_BUDGET_EXCEEDED.

Circuit Breakers

TealReliability includes circuit breaker logic that extends the v1.1 TealCircuit pattern. Circuits track failure counts per model/tool and transition through three states:
When the circuit is half-open, the module returns DEGRADE to allow a probe request:

Fallback Chains

When a primary model is unavailable (circuit open), TealReliability can suggest a fallback:

Degradation Policies

Instead of hard denial, TealReliability can degrade service quality:

Reason Codes


Event Types


Python