Skip to main content
Back to all articles
AI Engineering 13 min readUpdated October 28, 2026

Your Agent Is 95% Accurate. That Tells Me Almost Nothing About Reliability.

Offline eval accuracy tells you whether an agent can pass a benchmark. Production reliability needs risk-specific SLIs and SLOs, error budgets, burn-rate monitoring, and policies that automatically narrow autonomy when reliability degrades.

By Salman Butt · Senior Full-Stack & Generative AI Engineer
#AI Agents#Reliability Engineering#SLO#SLI#Error Budgets#Burn Rate#SRE#AgentOps#TypeScript#Python#Production AI
On this page

At 9:03 AM, the release dashboard says the new support agent is 95% accurate.

That sounds good enough to ship.

By lunch, it has handled 20,000 production actions.

Most are boring. It answered policy questions, looked up orders, summarized cases, and routed tickets correctly.

A few were wrong.

One gave a harmlessly incomplete answer.

One escalated a case that did not need a human.

One took twelve seconds instead of three.

And one tried to issue a refund to the wrong payment object before a downstream control rejected it.

The release is still 95% accurate.

The production system is not 95% reliable in any useful sense of the word.

That is the gap I care about once an AI agent can do more than generate text.

Offline accuracy answers whether the agent can solve a test case. Reliability answers whether I should keep letting it operate under real workload, real latency, real costs, real dependencies, and real side effects.

For that, I want the same kind of operating contract we use for other production systems: service-level indicators, service-level objectives, error budgets, burn rates, and explicit policies for what happens when the system starts spending reliability faster than we intended.

But there is one important adjustment for agents.

A normal error budget can tolerate some ordinary unreliability.

It must not become permission to average away catastrophic or irreversible failures.

A single accuracy number collapses failures that are not equivalent

Suppose an eval suite contains 1,000 cases and the agent passes 950.

The headline is:

Text
95% pass rate

Now split the fifty failures:

Text
28 slightly incomplete answers12 unnecessary human escalations6 malformed tool arguments caught before execution3 slow but eventually correct workflows1 unauthorized destructive action blocked at the executor

The average treats all fifty as the same unit.

Production does not.

A slightly incomplete FAQ answer, a five-second latency regression, a duplicate refund, and a privilege escalation are different failure classes with different consequences and different acceptable rates.

This is why I do not want one global number called agent_reliability.

I want a small reliability vector:

Text
correctnesssafetyavailabilitylatencyrecoverycosthuman intervention

Some dimensions can reasonably have an error budget.

Some should be hard release or runtime gates.

That distinction is the architecture.

Start with the user-visible event, not the model call

An SLI is useful only if the event being measured corresponds to something the user or business actually cares about.

For an agent, the wrong denominator can make a bad system look healthy.

Imagine one customer request triggers:

Text
3 model calls4 retrievals2 tool reads1 write

If nine of those ten internal operations succeed but the final write is wrong, I do not want a dashboard saying:

Text
90% successful operations

The user experienced one failed task.

So I first define the qualifying production event.

For example:

TypeScript
type TaskClass =  | "answer_policy_question"  | "classify_ticket"  | "prepare_refund"  | "execute_refund";​type TaskOutcome = {  taskId: string;  taskClass: TaskClass;  riskTier: 0 | 1 | 2 | 3;  success: boolean;  correct: boolean;  policyCompliant: boolean;  humanEscalated: boolean;  recovered: boolean;  latencyMs: number;  costUsd: number;};

The model call is an implementation detail.

The task outcome is the reliability event.

That also means task classes should not be mixed carelessly. A read-only policy answer and a money-moving action should not share one denominator just because the same agent handled both.

Pick SLIs that correspond to real failure modes

I would start with a small set instead of instrumenting everything that can be counted.

DimensionExample production measureQuestion it answers
Task correctnessCorrect qualifying tasks / qualifying tasksDid the agent achieve the intended outcome?
Policy compliancePolicy-compliant actions / executed actionsDid it stay inside the allowed behavior envelope?
AvailabilityTasks completed with an acceptable outcome / eligible tasksCould the user get the service?
RecoveryRecoverable failures successfully recovered / recoverable failuresDid retries, failover, or reconciliation actually restore the task?
Human escalationEscalated tasks / qualifying tasks, segmented by riskIs automation covering the cases we expected?
Latencyp95/p99 end-to-end task completion timeHow bad are the slow tails users feel?
Cost efficiencyCost per successful taskAre successful outcomes becoming operationally expensive?

Not every row needs to become a classic error-budget SLO.

Latency may use a threshold SLI such as:

Text
percentage of eligible tasks completed under 4 seconds

Cost may be better treated as a separate operating objective or budget than merged into a reliability percentage.

The important thing is to preserve the dimensions instead of hiding them inside one weighted score.

Ten cheap answers should not compensate for one unsafe write.

Risk tiers should change the reliability contract

I do not want the same target for every action class.

A useful starting model is:

Risk tierExampleDefault automation posture
Tier 0Search, summarize, read-only lookupBroad automation, ordinary SLO policy
Tier 1Reversible internal updateAutomation with validation and rollback
Tier 2External or financially meaningful side effectStronger evidence, idempotency, tighter SLOs, possible approval
Tier 3Irreversible, security-sensitive, destructive, safety-criticalExplicit authorization/review policy; some failures are never-events

The exact tiers are product policy.

The useful property is that reliability targets become conditional on consequence.

For a low-risk answer, a 99.0% correctness objective may be appropriate.

For a refund execution path, the acceptable duplicate-action rate may be effectively zero even if the surrounding task-completion objective is lower.

For a destructive infrastructure action, the right policy may be:

Text
human approval required

rather than:

Text
we have 0.2% error budget left

An error budget is a tool for balancing ordinary reliability and change velocity.

It is not a moral license to spend one customer account, one credential leak, or one production database deletion because the monthly average still looks green.

The control loop I want

Once the task and risk boundaries are explicit, the operating loop becomes straightforward:

Text
production events      ↓SLIs      ↓risk-specific SLOs      ↓error budgets      ↓burn rate      ↓operational policy
Production AI agent reliability control loop

The last arrow is the one teams often skip.

They collect metrics.

They build a dashboard.

They send an alert.

Then the agent keeps the exact same permissions and rollout percentage while somebody opens Slack to discuss the alert.

I want the reliability signal connected to an operating policy.

The error-budget math is intentionally boring

For a ratio SLO, the basic math is:

Text
allowed error rate = 1 - SLO target

and:

Text
error budget events = eligible events × allowed error rate

Suppose an action class has:

Text
20,000 qualifying actions / month99.5% correctness SLO

The allowed ordinary error rate is:

Text
1 - 0.995 = 0.005 = 0.5%

The monthly error budget is therefore:

Text
20,000 × 0.005 = 100 ordinary failed actions

That does not mean:

We are allowed to harm 100 customers.

It means the SLO policy has defined one measurable class of ordinary failure for which the service can tolerate up to 100 failed qualifying events before that objective is missed.

A wrong-recipient payment, privilege escalation, sensitive-data disclosure, or destructive unauthorized action should usually be modeled separately as a critical invariant or never-event.

That is how I keep SRE math from becoming an excuse for unacceptable agent behavior.

Burn rate tells me when the monthly number is lying

A monthly budget can look healthy while the system is failing right now.

If the 99.5% SLO allows a 0.5% error rate, and the last production window is failing at 2.0%, then:

Text
burn rate = observed error rate / allowed error rate​burn rate = 2.0% / 0.5% = 4×

A burn rate of 1 means the service is consuming the budget at exactly the sustainable rate for that SLO window.

A sustained burn rate above 1 means that, if the behavior continues, the service will run out of budget and miss the objective.

This is much more actionable than:

Text
We still have 81% of the monthly budget left.

because a newly introduced regression can destroy that remaining budget quickly.

Google Cloud's SLO guidance makes the same distinction between fast-burn and slow-burn conditions: short windows are useful for sudden severe regressions, while longer windows detect a smaller but sustained overspend.

I would use the same shape for an agent.

Not because an agent is a web server.

Because rate of reliability loss is the question in both systems.

The policy should control autonomy, not just paging

Here is an illustrative operating policy for a Tier 2 agent capability.

These thresholds are examples, not universal recommendations:

ConditionExample response
Budget healthy, burn near sustainableContinue approved rollout
Budget consumption acceleratingFreeze rollout expansion and investigate
Sustained SLO miss riskNarrow eligible task classes; increase human review
Fast burnDisable risky write tools, degrade to read-only, or route to human
Critical never-eventStop the affected capability immediately; incident + investigation

The interesting idea is not whether the first threshold is 1.5× or 2×.

That depends on your product, traffic volume, objective window, and consequence model.

The important idea is that the response is predetermined.

Text
reliability state→ autonomy state

I do not want the runtime asking an LLM whether a 6× burn rate "seems concerning."

That policy belongs in code.

Keep normal SLO policy and never-event policy separate

I would represent them separately in configuration too.

TypeScript
type RatioSlo = {  id: string;  taskClass: string;  target: number;  windowDays: number;};​type CriticalInvariant = {  id: string;  taskClass: string;  violation: string;  response:    | "stop_capability"    | "require_human"    | "disable_tool";};​const refundReliability: RatioSlo = {  id: "refund-task-correctness",  taskClass: "execute_refund",  target: 0.995,  windowDays: 30,};​const wrongRecipient: CriticalInvariant = {  id: "refund-wrong-recipient",  taskClass: "execute_refund",  violation: "refund recipient differs from authorized payment object",  response: "stop_capability",};

The first says:

Text
Track ordinary task correctness over a window.

The second says:

Text
One occurrence changes the operating state immediately.

Those concepts should not be averaged together.

Compute burn rate outside the model

The math and policy are deterministic enough that I do not want an LLM involved.

TypeScript
type SloWindow = {  target: number;  eligible: number;  failed: number;};​type ReliabilityState =  | "healthy"  | "insufficient_data"  | "freeze_rollout"  | "restrict_autonomy";​function burnRate(window: SloWindow): number | null {  if (!Number.isFinite(window.target) || window.target <= 0 ||      window.target > 1 || !Number.isSafeInteger(window.eligible) ||      !Number.isSafeInteger(window.failed) || window.eligible < 0 ||      window.failed < 0 || window.failed > window.eligible) {    throw new RangeError("Invalid SLO window");  }  if (window.eligible === 0) return null; // Unknown, not healthy.​  const allowedErrorRate = 1 - window.target;  const observedErrorRate = window.failed / window.eligible;  return allowedErrorRate === 0    ? (observedErrorRate === 0 ? 0 : Number.POSITIVE_INFINITY)    : observedErrorRate / allowedErrorRate;}​function policyForBurn(rate: number | null): ReliabilityState {  // Illustrative local policy, not a universal SRE threshold.  if (rate === null) return "insufficient_data";  if (Number.isNaN(rate) || rate < 0) {    throw new RangeError("Invalid burn rate");  }  if (rate >= 4) return "restrict_autonomy";  if (rate >= 1) return "freeze_rollout";  return "healthy";}

And the same idea in Python:

Python
from dataclasses import dataclassfrom typing import Literal​​ReliabilityState = Literal[    "healthy",    "insufficient_data",    "freeze_rollout",    "restrict_autonomy",]​​@dataclass(frozen=True)class SloWindow:    target: float    eligible: int    failed: int​​def burn_rate(window: SloWindow) -> float | None:    from math import isfinite​    if (not isfinite(window.target) or not 0 < window.target <= 1            or type(window.eligible) is not int or window.eligible < 0            or type(window.failed) is not int            or not 0 <= window.failed <= window.eligible):        raise ValueError("Invalid SLO window")    if window.eligible == 0:        return None  # No observations is not evidence of health.​    allowed_error_rate = 1.0 - window.target    observed_error_rate = window.failed / window.eligible    if allowed_error_rate == 0:        return 0.0 if observed_error_rate == 0 else float("inf")    return observed_error_rate / allowed_error_rate​​def policy_for_burn(rate: float | None) -> ReliabilityState:    from math import isnan​    # Illustrative local policy, not a universal SRE threshold.    if rate is None:        return "insufficient_data"    if isnan(rate) or rate < 0:        raise ValueError("Invalid burn rate")    if rate >= 4:        return "restrict_autonomy"    if rate >= 1:        return "freeze_rollout"    return "healthy"

An empty observation window is insufficient data, not a healthy burn rate. A release gate should separately check minimum sample volume and telemetry coverage before calling the service healthy. The examples also reject impossible counts and invalid SLO targets.

The policy layer can then map restrict_autonomy to actual controls:

Text
disable issue_refundkeep get_refund_policyrequire human approval for account changesreduce rollout percentageroute high-risk tasks to known-safe version

This is much stronger than an alert nobody sees for twelve minutes.

The runtime needs to know which version spent the budget

A useful error budget should help me decide whether to keep shipping.

That means every event needs enough release context to attribute the regression.

I want dimensions such as:

Text
agent versionmodel routeprompt / policy versiontool schema versionretrieval index versiontenant / workload segmenttask classrisk tierrelease cohort

Suppose global correctness falls from 99.7% to 99.2%.

That sounds like one incident.

Segment it and you may discover:

Text
read-only tasks         99.8%refund preparation      99.6%refund execution        96.1%​old release             99.7%new canary              93.4%

Now the operating decision is obvious.

Stop expanding the canary.

Do not retrain the whole agent because a blended global average moved by half a point.

Offline evals and production SLOs solve different problems

I still want offline evals.

They are one of the best places to catch regressions before users see them.

But an offline eval answers a different question:

Text
Can this candidate satisfy this curated test distribution?

A production SLO asks:

Text
Is the live service satisfying its operating contractunder the workload and dependencies it is actually seeing?

The distributions differ.

Production introduces:

Text
new user phrasingunexpected tool combinationsprovider incidentsqueue delaysstale datapartial outageslong sessionsconcurrencyreal permissionsreal moneyreal side effects

That is why I do not replace evals with SLOs, and I do not replace SLOs with evals.

I want a release loop:

Text
offline eval gate      ↓shadow / canary      ↓production SLIs      ↓SLO + error-budget policy      ↓production failures become new eval cases

The test suite protects the next release.

The SLO protects the current one.

Reliability should be segmented by risk, not just customer traffic

Traditional services often segment SLOs by endpoint, geography, or customer tier.

Agents need another dimension: decision risk.

Imagine these two workflows share the same model and runtime:

Text
summarize this ticketissue this refund

If the summarizer becomes slightly worse, I may tolerate a period of degraded quality while rolling back.

If the refund agent starts selecting the wrong recipient, I want a hard stop.

So I want dashboards that can say:

Text
Tier 0 task correctness: 99.1%Tier 1 task correctness: 99.7%Tier 2 task correctness: 99.95%Tier 3 autonomous execution: disabled by policy

The exact objectives belong to the business.

The architecture should make those choices expressible.

Human escalation is not automatically a failure

This metric deserves special treatment.

If a high-risk agent correctly recognizes insufficient evidence and routes the case to a human, that may be a successful task outcome.

If a low-risk agent escalates 70% of routine work, the system may be safe but economically useless.

So I would not define:

Text
human involved = failure

Instead, track coverage and correctness together:

Text
automation coveragecorrect automated outcome ratefalse escalation ratemissed escalation ratehuman override rate

This connects directly to abstention and evidence sufficiency.

The reliability target is not "the agent always acts."

It is "the system chooses the right control state and reaches an acceptable outcome."

Sometimes that outcome is escalation.

Recovery deserves its own SLI

A service can fail internally and still satisfy the user if recovery works.

That matters a lot for agents because they sit on unreliable dependencies: model APIs, search, databases, queues, SaaS tools, and external services.

Suppose 2% of primary model calls fail during an incident.

If provider failover recovers every eligible task safely, the user-visible reliability may stay high.

But I still want to know that recovery is carrying the system.

Track:

Text
primary dependency failure raterecovery attempted raterecovery success raterecovery latencyrecovery costunsafe recovery rate

This complements provider failover and graceful degradation.

A fallback that saves the task is part of reliability.

A fallback that silently changes behavior is another failure mode.

Cost belongs next to reliability, not hidden in finance

An agent can become "more reliable" by brute force:

Text
call a larger modelretry more timesretrieve more documentsrun three judgesask two subagents

If successful tasks now cost six times more, that is not necessarily a production win.

I like cost per successful task because it keeps the numerator tied to an actual useful outcome.

Text
$0.08 / successful policy lookup$0.61 / successful refund investigation$4.20 / successful long-running research task

Do not blend cost into the correctness SLO.

Put it beside it.

Then a release decision can say:

Text
correctness improved 0.4 percentage pointsp95 latency regressed 18%cost per success increased 73%

That is a real engineering tradeoff.

"The eval score went up" is not.

Test the operating policy, not just the agent

Once error budgets control autonomy, the policy itself becomes production logic.

I would failure-inject it.

Injected conditionExpected system behavior
Correctness stays above SLOContinue normal rollout
Slow sustained budget burnFreeze expansion and create investigation signal
Fast burn in Tier 2 actionsNarrow autonomy or require approval
Never-event occursStop affected capability regardless of remaining budget
Primary model degrades but fallback preserves SLOContinue in declared failover mode and record recovery
Fallback preserves answers but doubles unsafe-path rateBlock fallback for that risk tier
Cost per successful task spikesTrigger cost policy without pretending correctness failed
Human escalation rises sharplyCheck coverage/abstention policy rather than counting every escalation as an error
No eligible eventsDo not manufacture a misleading burn rate

The key test is:

Text
Did the system change operating statewhen the reliability contract said it should?

If the dashboard turns red and the agent keeps full write access, the policy has not been implemented.

It has been visualized.

Put release policy in writing before the incident

The worst time to decide what a 5× burn rate means is while the incident is happening.

I want a short policy that product, engineering, security, and operations can all read.

For example:

Text
Refund-agent policy​Normal:- Tier 0/1 read and reversible workflows enabled- Tier 2 refund execution enabled for approved segments​Reliability degradation:- freeze rollout expansion- stop enabling new tenants- compare failure rate by release + model route​Fast burn on refund correctness:- Tier 2 writes require human approval- read-only diagnosis remains available​Critical invariant violation:- disable refund execution- preserve traces and evidence- open incident- require explicit re-enable after root-cause review

That policy does more for production safety than another prompt sentence saying:

Text
Be careful with refunds.

The dashboard I would actually use

I would put these next to each other:

Text
eligible taskssuccessful taskscorrect task ratepolicy-compliant action ratenever-event counterror budget remainingshort-window burn ratelong-window burn rateautomation coveragehuman escalation raterecovery success ratep95 / p99 task latencycost per successful taskcurrent autonomy modecurrent release / model / policy version

The last line matters.

If the dashboard says:

Text
current autonomy mode: READ_ONLY

I know the reliability system can change production behavior.

If it only says:

Text
SLO breached

I know I still need a person to translate monitoring into control.

What I would not do

I would not copy Google's or another company's SLO percentages into an agent because they sound mature.

I would not call every metric an SLO.

I would not hide safety, latency, cost, and correctness inside one weighted score.

I would not let a global average hide a failing high-risk segment.

I would not put catastrophic failures inside the same ordinary error budget as incomplete answers.

I would not let an LLM decide whether the current burn rate warrants disabling a tool.

And I would not define a reliability objective that has no consequence when it is missed.

An SLO without an operating policy is mostly a dashboard target.

The production rule I would keep

An eval score tells me whether an agent can pass the cases I knew enough to write down.

That is necessary.

It is not the production contract.

For a real agent, I want to know:

Text
Which task class is this?What is the consequence if it is wrong?Which user-visible outcome are we measuring?What objective are we promising for that outcome?How much ordinary unreliability can we tolerate?How fast are we spending that allowance?Which failures are never allowed into the budget?What happens to autonomy when reliability degrades?

That leads to a control system:

Text
measure the outcomesegment by riskset the objectivecompute the budgetwatch the burnchange the operating modestop immediately on critical invariantsfeed production failures back into evals

This is the difference between saying an agent is "95% accurate" and being able to explain why it is still allowed to touch production.

Offline evals answer: can this agent work?

SLOs and error-budget policy answer: should we keep letting it act?

And there is one uncomfortable dependency underneath all of this: the eval set and outcome labels you are using today will not stay representative forever.

The next reliability problem is making sure the tests themselves do not quietly go stale while production moves on.

References

KEEP READING

Related engineering notes