Wiki
Advanced12 min read

Deploying agents

Budgets, circuit breakers, tracing, and rollback — the guardrail stack that turns an agent incident into a non-event. Make failure cheap, observable, and reversible.

A demo agent that works on your laptop is not a deployed agent. In production it meets hostile input, unpredictable load, and its own non-determinism — and the difference between a demo and a system is what happens when it goes wrong. The goal of deployment is not to prevent every failure; it is to make failure cheap, observable, and reversible.

Start here

Budgets cap what a runaway loop can spend. A circuit breaker sheds load before a bad state compounds. Tracing shows you why it went wrong. Rollback gets you back to the last known-good version. None of these makes the agent smarter — together they make its mistakes survivable.

spend / min

current $1.8 vs cap $4

avg steps

current 3.8 vs cap 8

error rate %

current 1.5 vs cap 5

Healthy. Within every budget — requests continue, with spend, steps, and error rate monitored on every call.

An agent without a spend cap, a step cap, and a breaker is an incident waiting for load. The point is not to prevent every failure but to make failure cheap: bounded, observable, and reversible. Figures are illustrative.

Raise the load and watch a threshold trip, shed traffic, and ask for a rollback.

The guardrail stack

  • Step and spend budgets — a hard cap on iterations and on cost, so a confused agent cannot run forever with your money.
  • Circuit breakers — when the error rate or latency crosses a threshold, stop sending it traffic and fall back to a safe mode.
  • Safe mode — a degraded path that still answers (a workflow, a smaller model, a "try again later") instead of failing outright.
  • Rollback — version the prompts, tools, and model config so you can return to the last known-good combination in one step.

Observability is not optional

You cannot operate what you cannot see. Trace every step — the thought, the tool call, its arguments, the observation — with token counts, cost, and latency attached, so an incident is a query rather than a reconstruction. Non-determinism means testing trajectories, not answers: the same input can take different paths twice.

Careful

Evaluate on cost, not just accuracy. A benchmark win that costs 40× more per task is often a loss, and an agent that scores well but cannot be observed, capped, or rolled back is a liability. Keep a human in the loop for anything irreversible, ship behind a kill switch, and remember that the guardrails in this chapter — not the model's goodwill — are what make autonomy defensible.

Check yourself

Eduspheria wiki · Agentic AI, Safety & deployment

0 / 4 answered

  1. 1What does a circuit breaker do when the error rate or latency crosses a threshold?
    Multiple choice
  2. 2The goal of deployment guardrails is to prevent every failure.
    True / false
  3. 3What capability returns the prompts, tools, and model config to the last known-good combination?
    Short answer
  4. 4Which is NOT part of the guardrail stack described?
    Multiple choice

That closes the safety chapter, and with it the first pass of the foundation and safety ends of this domain. What remains is the middle: planning, memory, orchestration, and how to measure an agent once it is running.