Dev.to AI 🤖 Ai 👁 0 📖 4 min read

How we monitor drift in production voice agents

Your voice agent can stay up for a month with zero errors in the logs and still send callers to the wrong queue the whole time. That's drift: the agent's decisions slowly moving away from what you intended, without anyo

Your voice agent can stay up for a month with zero errors in the logs and still send callers to the wrong queue the whole time.

That's drift: the agent's decisions slowly moving away from what you intended, without anyone changing anything on purpose. I'd argue uptime is the wrong thing to watch first. If you only get one alert, make it the handover rate moving against its baseline, because that number moves when the agent's judgment moves and an error log doesn't.

I work on agents that take real calls and WhatsApp messages at Judini. This post covers what we watch and a small version you can build yourself.

Sources of drift that don't raise errors

Drift has five common sources, and none of them throws an exception:

  • Customers start describing a problem differently, or a new campaign brings new questions.
  • Someone updates a policy, but nobody updates the agent's instructions or test cases.
  • The model provider ships an update that changes how the model phrases, decides or refuses.
  • A field in one of your systems gets renamed, or a lookup slows down or returns different data.
  • The caller mix shifts: a new market, a new accent, a new time of day.

Because the agent keeps answering through all of these, your availability dashboard stays green.

What to measure

Measure what your rules say a correct call looks like:

  • Decisions: calls routed to the right queue, the ratio of resolved to handed over, and handovers that arrive without context.
  • Rules: the "This call is on a recorded line. I'm an AI." opening, identity checks before any account details, and offers outside the allowed list.
  • Callers: repeat contacts about the same issue, people asking for a human in the first seconds, and calls that end early.
  • Operations: response latency on live calls, since a slow reply makes the call feel wrong, and failures in the systems the agent calls.

Four checks to build

1. A fixed test set on a schedule

Write cases for the calls that break agents: the caller who interrupts, the one who says "get me a person" in the first five seconds, the vague "it's about my bill", the request outside scope, the caller pushing for a promise the agent can't make. Run the same set every day. When a case that passed yesterday fails today, something changed, and you know where to look.

# cases/billing.yaml (illustrative)
- id: billing-vague-01
  caller: "Hi, it's about my bill."
  expect:
    must_ask_clarifying_question: true
    must_not: ["quote a refund amount"]
- id: human-request-01
  caller: "Get me a person. Now."
  expect:
    outcome: handover
    handover_has: ["reason", "transcript"]

2. Rule checks on every transcript

An answer can sound fine and still break a rule, so check the rules directly. Code handles the simple ones. For fuzzy rules, a second model can grade the transcript, as long as a person reads what it flags.

# Illustrative sketch, not production code
DISCLOSURE = "this call is on a recorded line. i'm an ai"

def rule_checks(transcript: list[dict]) -> dict:
    agent_turns = [t["text"].lower() for t in transcript if t["role"] == "agent"]
    first = agent_turns[0] if agent_turns else ""
    return {
        "disclosure_first_turn": DISCLOSURE in first,
        "verified_before_account_info": verified_before_details(transcript),
        "offer_in_allowed_list": offers_within_policy(transcript),
    }

3. Alerts on change

Every individual call can look fine while the handover rate climbs, so compare today against a trailing window.

# Illustrative: flag a move in a daily rate vs. a trailing baseline
def rate_shift(today: float, baseline: list[float], min_abs_change=0.05) -> bool:
    mean = sum(baseline) / len(baseline)
    return abs(today - mean) >= min_abs_change

if rate_shift(handover_rate_today, handover_rate_last_14_days):
    page_owner("Handover rate moved vs. 14-day baseline")

Set each threshold with the person who owns the process, before launch. There's no formula for the right number, and having one written down matters more than its exact value.

4. A person reads a sample every day

During a rollout we start at 30 to 100 real interactions a day, and someone reads them daily. After launch the habit continues with a lighter random sample, so you also see the calls nobody flagged. The grader tells you where to look, but only the process owner can decide what "correct" means.

What pinning the model version covers

The usual objection is that pinning the model version solves this. Pin the version, keep prompts in version control, and re-run the test set before any upgrade. That handles one of the five sources. It does nothing when your customers start asking about a product launched last week, or when a backend field changes shape, so you still need the checks above.

What we do when a metric moves

Route the affected call types to people while you look. Find which of the five sources changed. Fix it, then add the failing case to the test set so it can't come back quietly. Write down what changed and how you caught it, because that log is how the agent gets better after launch.

On one of our document-decision systems, these checks caught drift in the agent's judgment in about 15 minutes. That's one system and one kind of check, so don't read it as a promise for yours.

I'm Nicolas Silva, GTM Engineer at Judini. We design, deploy and run AI agents for contact center, document and back-office work. The version without code is on our blog.

📰 Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.