<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Nicolas Silva</title>
    <description>The latest articles on DEV Community by Nicolas Silva (@nicolascine).</description>
    <link>https://dev.to/nicolascine</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4263391%2Fddf636fd-0e5c-4542-ae38-da6c48ed5fb1.png</url>
      <title>DEV Community: Nicolas Silva</title>
      <link>https://dev.to/nicolascine</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nicolascine"/>
    <language>en</language>
    <item>
      <title>How we monitor drift in production voice agents</title>
      <dc:creator>Nicolas Silva</dc:creator>
      <pubDate>Tue, 24 Nov 2026 20:10:25 +0000</pubDate>
      <link>https://dev.to/nicolascine/how-we-monitor-drift-in-production-voice-agents-3dfc</link>
      <guid>https://dev.to/nicolascine/how-we-monitor-drift-in-production-voice-agents-3dfc</guid>
      <description>&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;I work on agents that take real calls and WhatsApp messages at &lt;a href="https://judini.ai" rel="noopener noreferrer"&gt;Judini&lt;/a&gt;. This post covers what we watch and a small version you can build yourself.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources of drift that don't raise errors
&lt;/h2&gt;

&lt;p&gt;Drift has five common sources, and none of them throws an exception:&lt;/p&gt;

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

&lt;p&gt;Because the agent keeps answering through all of these, your availability dashboard stays green.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to measure
&lt;/h2&gt;

&lt;p&gt;Measure what your rules say a correct call looks like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Decisions:&lt;/strong&gt; calls routed to the right queue, the ratio of resolved to handed over, and handovers that arrive without context.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rules:&lt;/strong&gt; 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.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Callers:&lt;/strong&gt; repeat contacts about the same issue, people asking for a human in the first seconds, and calls that end early.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Operations:&lt;/strong&gt; response latency on live calls, since a slow reply makes the call feel wrong, and failures in the systems the agent calls.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Four checks to build
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. A fixed test set on a schedule
&lt;/h3&gt;

&lt;p&gt;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.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="c1"&gt;# cases/billing.yaml (illustrative)
&lt;/span&gt;&lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;billing-vague-01&lt;/span&gt;
  &lt;span class="na"&gt;caller&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Hi, it's about my bill."&lt;/span&gt;
  &lt;span class="na"&gt;expect&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;must_ask_clarifying_question&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
    &lt;span class="na"&gt;must_not&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"quote a refund amount"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;human-request-01&lt;/span&gt;
  &lt;span class="na"&gt;caller&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Get me a person. Now."&lt;/span&gt;
  &lt;span class="na"&gt;expect&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;outcome&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;handover&lt;/span&gt;
    &lt;span class="na"&gt;handover_has&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"reason"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"transcript"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  2. Rule checks on every transcript
&lt;/h3&gt;

&lt;p&gt;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.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Illustrative sketch, not production code&lt;/span&gt;
&lt;span class="no"&gt;DISCLOSURE&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"this call is on a recorded line. i'm an ai"&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;rule_checks&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;transcript&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;list&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="kt"&gt;dict&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kt"&gt;dict&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;agent_turns&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"text"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;lower&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;transcript&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"role"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"agent"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="n"&gt;first&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;agent_turns&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;agent_turns&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="s2"&gt;""&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="s2"&gt;"disclosure_first_turn"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;DISCLOSURE&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;first&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"verified_before_account_info"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;verified_before_details&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;transcript&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"offer_in_allowed_list"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;offers_within_policy&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;transcript&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  3. Alerts on change
&lt;/h3&gt;

&lt;p&gt;Every individual call can look fine while the handover rate climbs, so compare today against a trailing window.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Illustrative: flag a move in a daily rate vs. a trailing baseline&lt;/span&gt;
&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;rate_shift&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;today&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;float&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;baseline&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;list&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="kt"&gt;float&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;min_abs_change&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mf"&gt;0.05&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kt"&gt;bool&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;mean&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;baseline&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;baseline&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nb"&gt;abs&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;today&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;mean&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="n"&gt;min_abs_change&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nf"&gt;rate_shift&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;handover_rate_today&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;handover_rate_last_14_days&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="nf"&gt;page_owner&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Handover rate moved vs. 14-day baseline"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;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.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. A person reads a sample every day
&lt;/h3&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  What pinning the model version covers
&lt;/h2&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we do when a metric moves
&lt;/h2&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;I'm Nicolas Silva, GTM Engineer at &lt;a href="https://judini.ai" rel="noopener noreferrer"&gt;Judini&lt;/a&gt;. We design, deploy and run AI agents for contact center, document and back-office work. The version without code is on &lt;a href="https://judini.ai/blog/ai-agent-monitoring-production-drift" rel="noopener noreferrer"&gt;our blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>voiceai</category>
      <category>llm</category>
      <category>monitoring</category>
    </item>
  </channel>
</rss>
