{"slug": "how-we-monitor-drift-in-production-voice-agents", "title": "How we monitor drift in production voice agents", "summary": "An engineer at Judini described a production monitoring approach for voice agents that treats drift, not uptime, as the primary signal, arguing the handover rate moving against a trailing baseline is the single alert worth having. The setup combines a daily regression suite of adversarial call cases, deterministic rule checks on transcripts, and a second model grading fuzzy rules with human review of flagged calls, and the engineer said the checks caught judgment drift in one of the company's document-decision systems in about 15 minutes.", "body_md": "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.\n\nThat'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.\n\nI work on agents that take real calls and WhatsApp messages at [Judini](https://judini.ai). This post covers what we watch and a small version you can build yourself.\n\nDrift has five common sources, and none of them throws an exception:\n\nBecause the agent keeps answering through all of these, your availability dashboard stays green.\n\nMeasure what your rules say a correct call looks like:\n\nWrite 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.\n\n```\n# cases/billing.yaml (illustrative)\n- id: billing-vague-01\n  caller: \"Hi, it's about my bill.\"\n  expect:\n    must_ask_clarifying_question: true\n    must_not: [\"quote a refund amount\"]\n- id: human-request-01\n  caller: \"Get me a person. Now.\"\n  expect:\n    outcome: handover\n    handover_has: [\"reason\", \"transcript\"]\n```\n\nAn 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.\n\n```\n# Illustrative sketch, not production code\nDISCLOSURE = \"this call is on a recorded line. i'm an ai\"\n\ndef rule_checks(transcript: list[dict]) -> dict:\n    agent_turns = [t[\"text\"].lower() for t in transcript if t[\"role\"] == \"agent\"]\n    first = agent_turns[0] if agent_turns else \"\"\n    return {\n        \"disclosure_first_turn\": DISCLOSURE in first,\n        \"verified_before_account_info\": verified_before_details(transcript),\n        \"offer_in_allowed_list\": offers_within_policy(transcript),\n    }\n```\n\nEvery individual call can look fine while the handover rate climbs, so compare today against a trailing window.\n\n```\n# Illustrative: flag a move in a daily rate vs. a trailing baseline\ndef rate_shift(today: float, baseline: list[float], min_abs_change=0.05) -> bool:\n    mean = sum(baseline) / len(baseline)\n    return abs(today - mean) >= min_abs_change\n\nif rate_shift(handover_rate_today, handover_rate_last_14_days):\n    page_owner(\"Handover rate moved vs. 14-day baseline\")\n```\n\nSet 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.\n\nDuring 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.\n\nThe 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.\n\nRoute 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.\n\nOn 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.\n\nThe version without code is on [our blog](https://judini.ai/blog/ai-agent-monitoring-production-drift).", "url": "https://wpnews.pro/news/how-we-monitor-drift-in-production-voice-agents", "canonical_source": "https://dev.to/nicolascine/how-we-monitor-drift-in-production-voice-agents-3dfc", "published_at": "2026-11-24 20:10:25+00:00", "updated_at": "2026-11-24 20:14:45.733835+00:00", "lang": "en", "topics": ["ai-agents", "mlops", "ai-tools", "large-language-models"], "entities": ["Judini"], "also_reported_by": [], "takeaway": "Alert on the handover rate moving at least 5 points against a 14-day trailing baseline, and re-run a fixed daily suite of adversarial call cases so a case that passed yesterday and fails today points to the drift source.", "recommendation": {"advice": "Alert on handover rate versus a 14-day baseline and re-run adversarial call cases daily; pinning the model version only covers one of the five drift sources.", "playbook": "production-ops", "playbook_url": "https://wpnews.pro/playbooks/production-ops"}, "alternates": {"html": "https://wpnews.pro/news/how-we-monitor-drift-in-production-voice-agents", "markdown": "https://wpnews.pro/news/how-we-monitor-drift-in-production-voice-agents.md", "text": "https://wpnews.pro/news/how-we-monitor-drift-in-production-voice-agents.txt", "jsonld": "https://wpnews.pro/news/how-we-monitor-drift-in-production-voice-agents.jsonld"}}