← All patterns
Reliability & Guardrails
Containing the blast radius when a model, a tool, or a provider misbehaves.
5 patterns
Input and Output Guardrail Chain
Run ordered, independently-failing checks before the model sees input and before the user sees output.
9 minaka safety filters
Circuit Breaker and Fallback Chain
Detect a failing dependency, stop calling it, and degrade through a chain of progressively simpler alternatives.
9 minaka provider failover
Idempotent, Replayable Runs
Checkpoint each step and key every side effect, so a crashed or retried run resumes instead of restarting or double-charging.
9 minaka durable execution
Budget and Loop Ceilings
Bound every agent run by steps, tokens, wall clock, and spend — and stop with a useful partial result rather than an exception.
8 minaka runaway protection
Least-Privilege Tool Sandboxing
Scope every tool to the acting user's own authority, and assume any content the model reads may be trying to control it.
9 minaka prompt injection containment