Solutions
Implementation Org Review Org Monitoring Managed Services
Agents
Discovery Agent Metadata Agent Design Agent Build Agent Test Agent Governance Agent Support Agent
Industry Solutions
Financial Services
Healthcare & Life Sciences
NDIS & Disability Services
Nonprofit
Not-for-Profit
Other Industries
Recruitment & Staffing Real Estate Cosmetic Procedures
Agentforce Claudeforce Blogs Pricing Docs
Blogs This article

Keeping AI Agents Reliable After Launch

agent-reliability-production
AC Written by Amit Choudhary November 28, 2026
Summarize with AI ChatGPT Claude Perplexity

A failing agent rarely throws an error. It answers confidently, picks a plausible wrong action, or quietly stops resolving anything, and the first signal usually arrives as a complaint rather than an alert. Salesforce’s operational guidance for agentic systems names that pattern directly: many agent incidents are first reported by users rather than by monitoring, which it treats as a gap rather than bad luck.

Reliability engineering for deterministic software starts from the premise that a broken thing announces itself. A null reference raises, a timeout logs, a failed deployment goes red. Agents violate that premise, because a confidently wrong answer is indistinguishable from a correct one at the level where most monitoring operates. Everything below follows from that single difference.

Agent failure modes produce output, not exceptions

Seven failure modes account for most agent incidents, and the significant thing about the list is how few of them register in conventional error tracking.

Failure modeHow it presentsVisible to error monitoring
HallucinationPlausible but incorrect informationNo, returns a 200
Off-topic responseMisunderstood user intentNo
Excessive cost consumptionRunaway token generationNo, every call is valid
Safety violationInappropriate content generatedNo
Timeout failureInference takes too longYes
Permission errorAgent attempts an unauthorized actionYes
Integration failureExternal system unavailableYes

Four of the seven produce a successful response containing a problem. An agent that has stopped understanding its users returns well-formed answers to the wrong question, and runaway cost is a series of entirely valid API calls. Only the bottom three raise anything a conventional monitor is watching for.

This is why agent observability cannot be assembled from uptime and error rate alone. Those metrics cover the minority of failures, and they are the minority that users complain about least, because a timeout is legible as a fault while a wrong answer delivered with confidence gets acted on.

Agent reliability is the practice of detecting and containing failures that produce valid output, using quality and behavioral signals rather than error signals alone.

The metric set that fires early covers latency, tokens, errors, and availability

Four operational measurements carry most of the early warning, and each needs a specific treatment to be useful.

Response latency should be measured at percentiles rather than averages, tracking p50, p95, and p99 so typical and worst-case experience are both visible, with alerts on p95 breaching threshold. An average hides the tail entirely, and the tail is what users describe when they say the agent is slow. Instrument each phase separately, because end-to-end latency for one turn is the sum of inference time, context retrieval, action execution, and integration calls, and optimizing the wrong one is common when the breakdown is not visible.

Token consumption needs tracking per conversation, per agent, and per use case, split into prompt tokens and completion tokens. Prompt tokens are the more controllable half, since they come from your own prompt design and grounding payloads rather than from the model’s output length. One operational instruction is worth adopting verbatim: investigate conversations consuming ten times the typical token count, because those are either legitimate edge cases you should know about or a loop you should stop.

Error rate tracking should separate categories, since the remedies diverge completely. Model-specific errors may call for prompt adjustment or a different model. Permission errors require security configuration changes. Integration errors point outward to another system or to a circuit breaker that should have opened.

Availability measured against service level objectives completes the set, calculated as the share of time the agent successfully responds.

Alert routing matters as much as alert existence. Route critical agent failures to on-call engineers immediately, quality degradation warnings to product teams for business-hours investigation, and minor anomalies into daily digests for trend analysis. Collapsing those three into one channel produces the fatigue that makes the next real alert invisible.

Session tracing records conversations as traces and spans

Teams frequently build conversation logging as custom objects and then hit the scale problems that pattern produces: multi-turn conversations, large JSON payloads, and rapid data growth. Salesforce’s guidance is to use the native session-tracing model instead of hand-built logging, and the structure explains why.

Salesforce’s Session Tracing Data Model records a conversation as a hierarchy. A session contains interactions, which are turns. Each interaction contains steps and messages. Steps are typed, distinguishing user input from model execution from function invocation, so the shape of a turn is inspectable rather than embedded in a text blob. Interactions carry distributed-tracing identifiers and steps carry span identifiers, which is deliberately an OpenTelemetry-style span model rather than a Salesforce-specific invention.

That choice has a practical payoff. Modeling agent conversations as traces and spans is the industry-standard approach, so the telemetry speaks the same language as the observability stack an organization already runs. Token usage, model identity, and prompt detail are reachable through joins to the generation records rather than duplicated onto session fields.

Getting it out of Salesforce is a separate question, and the honest answer today is that the export path is not ready to carry fleet monitoring. A beta OTel export API returns a full session trace in OpenTelemetry format, pre-joined, ready to pipe into Datadog, Splunk, or any OTLP collector. Read its three beta limits before building on it: queries are single-session only with no bulk support, Data Cloud is required, and the API returns only sessions that started within the previous 72 hours. That combination makes it a debugging instrument rather than a monitoring feed. Salesforce says as much, describing the API as additive while the normalized data model remains the foundation for analytics. Anyone planning to centralize agent telemetry in an existing observability platform should design against the data model and treat the export API as a per-incident tool until bulk querying ships.

Two operational details to design around rather than discover. Session tracing collects data at five-minute intervals, so the telemetry is near-real-time rather than live, and an alerting design assuming instantaneous signal will behave differently than its authors expect during a first incident. And access defaults to the Data Cloud Architect permission set, which means deciding early who in the operations rotation can actually read a trace at three in the morning.

Alongside tracing, the Einstein Trust Layer audit trail captures each generative interaction including prompt and response text with masked variants, the grounding data retrieved, safety and toxicity scores, and model details, streamed into Data 360. It requires turning on audit and feedback capture, which is the kind of switch teams discover was off when they first need the history.

A custom object still earns its place in one role: a lightweight record correlating agent behavior with business outcomes. That is a deliberate exception to the native-first rule rather than a contradiction of it, because business outcome is the one thing platform telemetry cannot know.

Three kinds of drift degrade an agent, and each needs its own detector

Drift is the characteristic agent failure, because it arrives without a deployment. Nothing changed on your side and the agent got worse. Salesforce separates three mechanisms, and conflating them sends teams to the wrong remedy.

Drift typeWhat changesHow you detect it
Performance driftAccuracy, relevance or safety degrades over timeRe-run the same held-out test cases periodically
Distribution driftUser input patterns move away from what the agent was designed forMonitor question length, topic mix, language complexity, domain terminology
Behavioral driftThe agent’s own response patterns shiftMonitor response length, action invocation rates, escalation frequency, error patterns

Performance drift has four plausible causes worth distinguishing before acting: model degradation, knowledge base staleness, prompt misalignment with changed usage, and concept drift where the relationship between inputs and desired outputs has itself moved. Only the first is the model’s fault, and it is the least common.

Distribution drift is the one that looks like a quality problem and is not. Your agent still performs exactly as designed; users have started asking different things. Large shifts often signal new use cases, changed user behavior, or an evolving business process, and the remedy is prompt updates, knowledge expansion, or scope change rather than debugging.

Behavioral drift is the subtlest, and escalation frequency is its most useful single indicator. An agent escalating more than it did last month is telling you something about either its capability or its input, before any quality metric moves.

All three depend on one prerequisite most teams miss. Establish baseline performance immediately after initial deployment across accuracy, relevance, safety, and satisfaction, and capture normal operating characteristics including usual performance patterns, tool usage, and decision paths. Drift is a comparison, and without a baseline the comparison has no second term. Organizations that start measuring six months in can see the current state and cannot tell whether it is a decline.

Behind all of this sits a prior question about what evidence you accept as proof of quality at all, which we take apart in evaluating agent output.

Anomaly detection catches the spikes thresholds are tuned to miss

Static thresholds catch sustained problems. Anomalies are different in kind, and four patterns deserve dedicated detection.

Cost anomalies include token consumption spikes, inference rate increases, and total cost acceleration, which may indicate a prompt generating excessive output, misuse, or redundant calls. These are the fastest-moving failures in the set, and we cover the consumption mechanics behind them in the economics of agent delivery.

Error rate spikes matter in three shapes: sudden increases, new error types absent from the baseline, and localized concentrations affecting specific users, agents, or use cases. That third shape is the one aggregate dashboards hide, because a severe problem affecting one population reads as noise org-wide.

Response pattern changes cover sudden shifts in length, action invocation frequency, or escalation rate.

Conversation abandonment increases are the most direct quality signal available, and the instruction to track abandonment by conversation stage is what makes it diagnostic rather than merely alarming. Users abandoning at the first interaction indicates a discoverability or intent-matching problem. Users abandoning mid-conversation indicates the agent loses the thread. Users abandoning after attempted completion indicates it finished and got it wrong. Same metric, three different fixes.

Circuit breakers and fallback hierarchies contain a failure in progress

Detection without containment produces well-documented outages. Two patterns do the containing, and both belong in the orchestration layer rather than inside the agents.

A circuit breaker automatically disables a failing agent rather than letting it keep failing at users. Its configuration has three parameters: an error threshold, a duration window, and recovery testing. Salesforce’s illustrative setting is a 50 percent error rate over a five-minute rolling window, after which the breaker opens and requests route to fallback. Following a timeout the circuit moves to a half-open state allowing trial requests, and closes when those succeed consistently.

Implementing the half-open state properly is what keeps this from backfiring. A breaker that opens and waits for human intervention converts a transient upstream problem into a full outage lasting until someone reads an alert.

A fallback hierarchy provides graceful degradation by attempting progressively simpler options: the primary agent, then a simpler backup agent, then static responses, then a human. Implementing this in orchestration rather than inside each agent is what makes it consistent, since a fallback written into one agent cannot help when that agent is the thing that failed.

Graceful degradation generalizes the idea across dependencies. When sophisticated reasoning fails, fall back to simpler logic. When real-time data is unavailable, operate on cached data. When external integrations fail, operate in read-only mode. Deciding these in advance is the discipline, because during an incident the default degradation is a blank screen.

Test the fallback paths regularly. An untested fallback is in exactly the same category as an untested rollback, which is to say it is a plan rather than a capability, and the sequencing of those controls at release time is covered in taking agents from pilot to production.

Human handoff is a designed path rather than an admission

Escalation is a feature. Designing it as one changes both the user experience and the quality signal you get from it.

A handoff workflow needs to preserve conversation context so the person does not restart the interaction, communicate the reason for escalation, route to a human with relevant expertise, and record the handoff. That last one is what makes escalation a measurement rather than a leak.

Monitor escalation rates by topic, by agent, and by failure reason. An agent escalating uniformly across topics is a different problem from one escalating on a single product line, and only the breakdown distinguishes them.

Feedback capture belongs in the same conversation, and the collection rule is to gather it inline when it happens rather than later, since delayed collection reduces response rates and introduces recall bias. Implicit signals including completion rates, escalation frequency, and retry patterns fill the gap left by the majority of users who never rate anything.

Post-incident review earns its keep on the detection question

Blameless review of agent incidents follows familiar structure, and one section of it produces disproportionate value.

Root cause work should distinguish the immediate cause from contributing factors, which prevents the useless conclusion that the agent had a bug. Salesforce’s worked example shows the chain: an agent produced incorrect information because retrieved context was outdated, because the knowledge base missed recent product changes, because no process existed for the product team to trigger those updates. The root cause is a missing workflow between product releases and knowledge maintenance, which is not a technical defect and would never be found by debugging the agent.

Detection analysis is the section to protect from being skipped. It asks what signal should have caught this earlier and what alert criteria would have fired. Given that agent incidents frequently surface through users first, nearly every review has a real answer here, and acting on it is how a monitoring stack grows to fit the actual failure modes rather than the imagined ones.

Action items need to be specific, assigned, and timebound. The contrast drawn in the guidance is between “improve monitoring” and adding an alert for an error rate above 5 percent over a ten-minute window, assigned to a named person with a two-week deadline. Then track completion across reviews, because low completion rates indicate the improvement process itself has failed.

Operational history is the artifact nobody keeps and everybody needs

Observability degrades for an organizational reason more than a technical one. The person diagnosing an incident is rarely the person who made the decision that caused it, and the reasoning behind a configuration choice is usually the missing piece rather than the telemetry.

GetGenerative.ai addresses that side specifically. Architectural Logs record what changed and the reasoning behind it, which is the input a timeline reconstruction needs and the artifact teams otherwise rebuild from memory and commit messages. The Governance Agent holds the conditions a change had to satisfy, so the question of what this release was supposed to do has a recorded answer. The Support Agent works against the resulting operational history rather than starting from a blank context on each incident.

Forward Deployed Engineer pods matter more in operations than in build. Reading a drift signal requires knowing what normal looks like in that specific org, and that knowledge does not transfer through a handover document. For organizations that want the baseline established before agents go live, continuous org monitoring is the mechanism, since the alternative is to start measuring after the first incident and have nothing to compare against.

Recap

Most agent failures produce valid output rather than exceptions, so error monitoring covers only a minority of them. Latency percentiles, token splits, categorized errors, and availability give early warning. Native session tracing records conversations as traces and spans. Performance, distribution, and behavioral drift need separate detectors and a day-one baseline. Circuit breakers and fallback hierarchies contain failures. Detection analysis is the highest-value part of a review.

Frequently Asked Questions

Why doesn’t standard application monitoring work for AI agents?

Because four of the seven common agent failure modes produce a successful response. Hallucinations, off-topic answers, runaway cost, and safety violations all return valid output with a success status. Error rate and uptime capture only timeouts, permission failures, and integration faults, which are the minority.

What should you measure first on a newly launched agent?

Establish a baseline across accuracy, relevance, safety, and satisfaction immediately after deployment, plus normal operating characteristics for response length, tool usage, and decision paths. Drift detection is a comparison, so an agent launched without a baseline can be measured but cannot be shown to have declined.

How do you tell agent quality degradation from changing user behavior?

Re-run the same held-out test cases. If the agent scores worse on unchanged inputs, that is performance drift. If it scores the same on test cases while live quality complaints rise, user input has moved away from the design, which is distribution drift and calls for scope changes rather than debugging.

Should agent conversation logs go in custom objects?

Use the native session tracing model as the primary substrate, since hand-built logging hits scale problems with multi-turn conversations, large payloads, and data growth. A lightweight custom object correlating agent behavior with business outcomes is the worthwhile exception, because platform telemetry cannot know business results.

What circuit breaker settings suit an agent?

Three parameters: an error threshold, a duration window, and recovery testing. A 50 percent error rate over a five-minute rolling window is the illustrative configuration. Implement the half-open state so trial requests resume automatically, otherwise a transient upstream fault becomes an outage lasting until someone reads an alert.

Is agent telemetry available in real time?

Near-real-time rather than live. Agentforce Session Tracing collects at five-minute intervals, so alerting designed on an assumption of instantaneous signal behaves differently in practice. Plan detection windows around that interval rather than discovering it during a first incident.

About the Author
Amit Choudhary
Amit is a tech entrepreneur and investor, currently the Co-founder & CEO of GetGenerative.ai, an AI-native Salesforce consulting platform. He previously co-founded saasguru, helping over 100,000 learners build careers in Salesforce, and SaaSfocus, APAC’s largest Salesforce boutique acquired by Cognizant. With a global background in sales leadership and $750M+ in TCV, he brings deep expertise in scaling tech ventures.