<?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: Baraqix</title>
    <description>The latest articles on DEV Community by Baraqix (@abdur2k3).</description>
    <link>https://dev.to/abdur2k3</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%2F4279477%2Fc6fcc8a7-3c8c-493a-b692-0086dc5632c2.png</url>
      <title>DEV Community: Baraqix</title>
      <link>https://dev.to/abdur2k3</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/abdur2k3"/>
    <language>en</language>
    <item>
      <title>PostgreSQL fixed 52 flaws. Your NL2SQL role is the attack surface</title>
      <dc:creator>Baraqix</dc:creator>
      <pubDate>Thu, 03 Dec 2026 02:25:39 +0000</pubDate>
      <link>https://dev.to/abdur2k3/postgresql-fixed-52-flaws-your-nl2sql-role-is-the-attack-surface-25k</link>
      <guid>https://dev.to/abdur2k3/postgresql-fixed-52-flaws-your-nl2sql-role-is-the-attack-surface-25k</guid>
      <description>&lt;p&gt;On 12 November 2026 the PostgreSQL Global Development Group &lt;a href="https://www.postgresql.org/about/news/postgresql-187-1712-1616-1520-1425-and-19-rc-2-released-3442/" rel="noopener noreferrer"&gt;released 18.7, 17.12, 16.16, 15.20 and 14.25&lt;/a&gt;, together with the second release candidate of PostgreSQL 19. The announcement says the update fixes 52 security vulnerabilities and over 140 bugs, and that several issues need extra steps after the new binaries are installed. It is also the final release of PostgreSQL 14, which is now end of life.&lt;/p&gt;

&lt;p&gt;Most teams will treat this as routine patching. We think teams shipping AI on Postgres should read it more closely, because the threat model in these advisories is the one an NL2SQL tool or a database agent creates by design: an authenticated, low privilege role running SQL text that someone else influenced.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the advisories actually say
&lt;/h2&gt;

&lt;p&gt;The announcement scores many of the advisories at CVSS 8.8, and the advisories we cite here carry &lt;code&gt;PR:L&lt;/code&gt; in their vector, meaning a low privileged account is enough. The score hides the detail that matters, which is the precondition written in each advisory. Three of them show the range.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://www.postgresql.org/support/security/CVE-2026-116331/" rel="noopener noreferrer"&gt;&lt;code&gt;CVE-2026-116331&lt;/code&gt;&lt;/a&gt;: type confusion in the min/max aggregate optimization lets an &lt;strong&gt;object creator&lt;/strong&gt; execute arbitrary code as the operating system user running the database, through a user defined aggregate. A role that cannot create objects does not meet that precondition.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.postgresql.org/support/security/CVE-2026-116317/" rel="noopener noreferrer"&gt;&lt;code&gt;CVE-2026-116317&lt;/code&gt;&lt;/a&gt;: a heap buffer overflow in &lt;code&gt;ts_rank_cd()&lt;/code&gt; may let &lt;strong&gt;a database user&lt;/strong&gt; execute arbitrary code as the operating system user, through an invalid tsvector containing duplicate positions. No precondition beyond being a database user is stated. &lt;code&gt;ts_rank_cd()&lt;/code&gt; is a full text ranking function, the kind of call hybrid retrieval queries make.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.postgresql.org/support/security/CVE-2026-120154/" rel="noopener noreferrer"&gt;&lt;code&gt;CVE-2026-120154&lt;/code&gt;&lt;/a&gt;: a role with INSERT, UPDATE and the applicable SELECT privileges can read every row of a table despite row security policies, by repeating &lt;code&gt;INSERT ... ON CONFLICT DO UPDATE&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The same release also lists &lt;a href="https://www.postgresql.org/support/security/CVE-2026-116311/" rel="noopener noreferrer"&gt;&lt;code&gt;DROP OWNED&lt;/code&gt; removing restrictive row security policies&lt;/a&gt; from tables the caller does not own, and &lt;a href="https://www.postgresql.org/support/security/CVE-2026-116327/" rel="noopener noreferrer"&gt;&lt;code&gt;security_barrier&lt;/code&gt; analysis exposing hidden values&lt;/a&gt; through indirect expressions. If row level security is the only tenant boundary in your system, this release is about you.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why AI backends are more exposed than a typical app
&lt;/h2&gt;

&lt;p&gt;A classic web backend sends a fixed set of parameterized statements. The attacker controls values and never the SQL text. An NL2SQL system or an agent with a &lt;code&gt;run_sql&lt;/code&gt; tool inverts that. The SQL text is generated, and the generator reads user questions, retrieved documents and tool output. Prompt injection turns "a database user can trigger this" into "anyone who can put text in front of the model can try". The advisories do not mention any exploitation through AI systems, and we are not claiming one. Our point is narrower: in these architectures the precondition is cheap to meet.&lt;/p&gt;

&lt;p&gt;There is a second, quieter problem for retrieval. The release fixes GIN index corruption that could make queries miss rows or return unrelated rows, and &lt;code&gt;pg_trgm&lt;/code&gt; GiST index corruption that could make searches miss matching rows. In a RAG pipeline that uses Postgres full text or trigram search as one leg of hybrid retrieval, a missed row looks exactly like a relevance problem. Nobody files a bug. The model answers from whatever came back, and it answers confidently.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we would do before PostgreSQL 19 ships
&lt;/h2&gt;

&lt;p&gt;The announcement gives 19 November 2026 as the planned general availability date for PostgreSQL 19. That is a natural deadline for getting the minor update and its follow up work done first, so a major upgrade does not land on top of an unpatched estate.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Upgrade every supported cluster to 18.7, 17.12, 16.16 or 15.20. On a managed service, check the minor version the provider is actually running, which can differ from the one in your infrastructure code. Put the move off 14 on the roadmap with a date.&lt;/li&gt;
&lt;li&gt;Run the post update steps the announcement lists, including: reindex GIN indexes you suspect, reindex GiST indexes that use &lt;code&gt;gist_trgm_ops&lt;/code&gt;, reindex &lt;code&gt;btree&lt;/code&gt; indexes on &lt;code&gt;bpchar&lt;/code&gt; columns declared without a length, reindex any table that shows &lt;code&gt;missing chunk number&lt;/code&gt; errors, check partitioned tables for &lt;code&gt;NOT NULL NO INHERIT&lt;/code&gt; constraints, and take a new full backup if you rely on incremental backups.&lt;/li&gt;
&lt;li&gt;Rerun your retrieval evaluation on the same golden set before and after reindexing. If recall moves, you have learned something about the answers your system gave over the last months.&lt;/li&gt;
&lt;li&gt;Strip the role that executes model generated SQL down to reading: no CREATE on any schema, no TEMPORARY, no INSERT or UPDATE, and no &lt;code&gt;dblink&lt;/code&gt;, &lt;code&gt;plperl&lt;/code&gt; or &lt;code&gt;pltcl&lt;/code&gt; in that database unless a feature needs them. That removes the object creator and INSERT and UPDATE preconditions named above, and keeps the extension advisories out of reach.&lt;/li&gt;
&lt;li&gt;Stop treating row level security as the only tenant filter for generated queries. Put the tenant predicate in the query your own code assembles, and keep the policy as the second layer.&lt;/li&gt;
&lt;li&gt;Parse generated SQL with a real SQL parser and reject anything that is not a single SELECT. Where the product allows it, keep an allowlist of functions.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="c1"&gt;-- GIN and gist_trgm_ops indexes the 12 November announcement asks you to review after updating&lt;/span&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;relname&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;index_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;am&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;amname&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;pg_index&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;
&lt;span class="k"&gt;JOIN&lt;/span&gt; &lt;span class="n"&gt;pg_class&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;oid&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;indexrelid&lt;/span&gt;
&lt;span class="k"&gt;JOIN&lt;/span&gt; &lt;span class="n"&gt;pg_am&lt;/span&gt; &lt;span class="n"&gt;am&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="n"&gt;am&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;oid&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;relam&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;am&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;amname&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'gin'&lt;/span&gt;
   &lt;span class="k"&gt;OR&lt;/span&gt; &lt;span class="k"&gt;EXISTS&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
     &lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;pg_opclass&lt;/span&gt; &lt;span class="n"&gt;oc&lt;/span&gt;
     &lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;oc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;oid&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;ANY&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;indclass&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="n"&gt;oid&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;span class="k"&gt;AND&lt;/span&gt; &lt;span class="n"&gt;oc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;opcname&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'gist_trgm_ops'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;-- The role that runs model generated SQL&lt;/span&gt;
&lt;span class="c1"&gt;-- On 14 and earlier PUBLIC can create in schema public, so revoke it there too&lt;/span&gt;
&lt;span class="k"&gt;REVOKE&lt;/span&gt; &lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="k"&gt;SCHEMA&lt;/span&gt; &lt;span class="n"&gt;public&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="no"&gt;PUBLIC&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;REVOKE&lt;/span&gt; &lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="k"&gt;SCHEMA&lt;/span&gt; &lt;span class="n"&gt;public&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;nl2sql_reader&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;REVOKE&lt;/span&gt; &lt;span class="k"&gt;TEMPORARY&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="k"&gt;DATABASE&lt;/span&gt; &lt;span class="n"&gt;app&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="no"&gt;PUBLIC&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;GRANT&lt;/span&gt; &lt;span class="k"&gt;TEMPORARY&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="k"&gt;DATABASE&lt;/span&gt; &lt;span class="n"&gt;app&lt;/span&gt; &lt;span class="k"&gt;TO&lt;/span&gt; &lt;span class="n"&gt;app_writer&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;REVOKE&lt;/span&gt; &lt;span class="k"&gt;INSERT&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;UPDATE&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;DELETE&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="k"&gt;ALL&lt;/span&gt; &lt;span class="no"&gt;TABLES&lt;/span&gt; &lt;span class="k"&gt;IN&lt;/span&gt; &lt;span class="k"&gt;SCHEMA&lt;/span&gt; &lt;span class="n"&gt;public&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;nl2sql_reader&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;ALTER&lt;/span&gt; &lt;span class="no"&gt;ROLE&lt;/span&gt; &lt;span class="n"&gt;nl2sql_reader&lt;/span&gt; &lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="n"&gt;statement_timeout&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'5s'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;ALTER&lt;/span&gt; &lt;span class="no"&gt;ROLE&lt;/span&gt; &lt;span class="n"&gt;nl2sql_reader&lt;/span&gt; &lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="n"&gt;default_transaction_read_only&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;on&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Warning:&lt;/strong&gt; &lt;code&gt;default_transaction_read_only&lt;/code&gt; only sets a default. Any session can run &lt;code&gt;SET TRANSACTION READ WRITE&lt;/code&gt;. Privileges are the boundary, and role hardening does not close a bug like the &lt;code&gt;ts_rank_cd()&lt;/code&gt; overflow, which only needs a database user. For that class, the patch is the fix.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  The position we would defend
&lt;/h3&gt;

&lt;p&gt;Least privilege for an AI database role is usually argued in terms of what a wrong query can damage. This release argues it in terms of which memory safety bugs a steered query can reach. Those are different lists, and the second one changes every few months. A team that patches on a slow quarterly cycle and lets a model write SQL as a role with CREATE rights is betting that no advisory will ever say "object creator" again. We would not take that bet.&lt;/p&gt;

&lt;p&gt;This is the review we would run on any system that lets a model write SQL. If you want a second pair of eyes on the database role, retrieval indexes and tenant filtering behind your AI features, see our &lt;a href="https://baraqix.com/services#data-nl2sql" rel="noopener noreferrer"&gt;data and NL2SQL work&lt;/a&gt; and &lt;a href="https://baraqix.com/services#backend-apis" rel="noopener noreferrer"&gt;backend and API work&lt;/a&gt;, or start with a &lt;a href="https://baraqix.com/process#sprint" rel="noopener noreferrer"&gt;two week Discovery Sprint&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;First published on the &lt;a href="https://baraqix.com/blog/postgresql-fixed-52-flaws-your-nl2sql-role-is-the-attack-surface" rel="noopener noreferrer"&gt;Baraqix engineering notes&lt;/a&gt;. Baraqix builds RAG pipelines, AI agents and NL2SQL systems from prototype to production. &lt;a href="https://baraqix.com/contact" rel="noopener noreferrer"&gt;Book a free call&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>postgres</category>
      <category>security</category>
      <category>nl2sql</category>
      <category>rag</category>
    </item>
    <item>
      <title>ElevenLabs says voice wins long conversations. Read the latency data instead</title>
      <dc:creator>Baraqix</dc:creator>
      <pubDate>Thu, 03 Dec 2026 02:21:07 +0000</pubDate>
      <link>https://dev.to/abdur2k3/elevenlabs-says-voice-wins-long-conversations-read-the-latency-data-instead-ph9</link>
      <guid>https://dev.to/abdur2k3/elevenlabs-says-voice-wins-long-conversations-read-the-latency-data-instead-ph9</guid>
      <description>&lt;p&gt;On 2 November, ElevenLabs published &lt;a href="https://elevenlabs.io/blog/voice-wins-complex-stressful-conversations" rel="noopener noreferrer"&gt;a study comparing voice and chat agents&lt;/a&gt;, and updated it on 3 November. The headline claim is that in conversations longer than two minutes, voice succeeded 32% more often than text chat. It is a vendor study about its own product category. We think the headline is the weakest number in the post, and the latency finding is the one a team shipping voice agents should act on.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the post reports
&lt;/h2&gt;

&lt;p&gt;The comparison covers voice calls over the phone and WhatsApp against chat sessions, across what the post calls hundreds of production agents that run both channels. The methodology section says it included agents with at least 50 voice and 50 chat conversations between July and September 2026, each judged against success criteria the business defined for its own use case. Each agent was compared against itself rather than pooling all traffic.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Under one minute, chat did better by about 9 percentage points. Between one and two minutes, the channels were fairly even.&lt;/li&gt;
&lt;li&gt;Past two minutes, voice success rates were 10.9 points higher, which the post states as a 31.7% increase (rounded to 32% in its summary), and nearly two thirds of agents did meaningfully better on voice.&lt;/li&gt;
&lt;li&gt;Among successful conversations over two minutes, voice averaged 4.6 minutes against 7 for chat, and 78% of the 90 agents with enough successful long conversations on both channels resolved them faster on voice.&lt;/li&gt;
&lt;li&gt;Across what the post describes as 315 agent conversations that switched to a faster LLM, a 16% reduction in average end to end latency correlated with a 26% lift in success rate. The share of calls ending within 15 seconds fell from 21.1% to 3.8%.&lt;/li&gt;
&lt;li&gt;In a separate user study, 98 participants rebooked a simulated canceled flight with both a voice agent and a chat agent in randomized order, and 85% said afterwards that they preferred voice.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why we would not pick a channel from this
&lt;/h2&gt;

&lt;p&gt;The per agent comparison is a good design choice, and we would copy it. It removes the obvious trap where one business with high success rates and mostly voice traffic makes the whole channel look good. The problem sits one step later, in the duration buckets.&lt;/p&gt;

&lt;p&gt;The post uses conversation length as a stand in for complexity, and it says itself that duration is an imperfect measure, especially for chat, where customers pause between messages. A chat that runs past two minutes and a call that runs past two minutes are not the same population. A slow typist with a simple question lands in the long chat bucket. Duration is also partly an outcome of the conversation, so splitting on it means partly splitting on how the conversation went. The post does not publish how traffic is distributed across the buckets for each channel, so a reader cannot tell how much of the 10.9 point gap comes from which conversations land where.&lt;/p&gt;

&lt;p&gt;Two more gaps. The post does not say whether an agent's voice and chat channels were judged against identical success criteria. And the 85% figure is a stated preference after a simulated scenario, in a study run by the vendor. None of this makes the result wrong. It makes it a hypothesis to test on your own traffic, not a reason to move budget.&lt;/p&gt;

&lt;h2&gt;
  
  
  The latency number is the useful one
&lt;/h2&gt;

&lt;p&gt;The latency finding is also correlational, and switching to a faster model can change answer quality as well as speed. But the mechanism the post proposes is concrete and easy to check: latency matters most at the start of a call, when people decide whether to stay on the line, and callers who wait too long assume the line is dead and hang up. A fall in calls ending within 15 seconds from 21.1% to 3.8% is visible in your own call records within a day.&lt;/p&gt;

&lt;p&gt;That matches how we think about phone agents on Twilio: much of what decides whether a voice agent succeeds happens before any reasoning does. Every stage between the caller finishing a sentence and the first audio reaching them adds up: end of speech detection, transcription, the model call, the first text to speech chunk, and the media stream back. A team that only tracks average model latency is measuring one stage out of five.&lt;/p&gt;

&lt;h3&gt;
  
  
  What we would log
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;Why it matters&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Time from end of caller speech to first audio, per turn&lt;/td&gt;
&lt;td&gt;The delay callers actually feel. Track p50 and p95, not the mean.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Share of calls ending within 15 seconds&lt;/td&gt;
&lt;td&gt;The early abandonment signal the post highlights, and cheap to compute from call records.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Turns per resolved conversation, per channel&lt;/td&gt;
&lt;td&gt;A better complexity proxy than wall clock duration, because it ignores typing pauses.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Outcome against one shared definition&lt;/td&gt;
&lt;td&gt;The same success rule for voice and chat, written down before you compare them.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Model and prompt version per conversation&lt;/td&gt;
&lt;td&gt;Without it you cannot attribute a change in any metric above.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The early hangup metric is a plain query. A sketch for PostgreSQL, assuming a &lt;code&gt;calls&lt;/code&gt; table with one row per conversation:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;agent_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
       &lt;span class="n"&gt;channel&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
       &lt;span class="nb"&gt;count&lt;/span&gt;&lt;span class="cm"&gt;(*) AS conversations,
       round(100.0 * avg((duration_s &amp;lt; 15)::int), 1) AS pct_under_15s,
       round(100.0 * avg(succeeded::int), 1)         AS pct_success
FROM calls
WHERE started_at &amp;gt;= now() - interval '30 days'
GROUP BY agent_id, channel
HAVING count(*)&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mi"&gt;50&lt;/span&gt;
&lt;span class="k"&gt;ORDER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;agent_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;channel&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;HAVING&lt;/code&gt; clause mirrors the post's floor of 50 conversations per channel. Compare each agent against itself and change one thing at a time.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we would do
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Set a budget for time to first audio per turn, and treat a regression against it as a failed release, the same way a backend team treats a broken API contract.&lt;/li&gt;
&lt;li&gt;Before arguing about channels, instrument both with the same outcome definition and a turn count, then read the results per agent.&lt;/li&gt;
&lt;li&gt;When the model is the slow stage, test a faster model on the opening turns, where the post suggests latency matters most, and keep the stronger model for turns that need it. Measure whether success moves, not only latency.&lt;/li&gt;
&lt;li&gt;Make sure the voice agent can finish the job. The post makes this point as well: long conversations need context and connections to real systems, otherwise the caller gets handed off and the channel comparison stops mattering.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Our &lt;a href="https://baraqix.com/blog/building-a-phone-ordering-agent-that-asks-instead-of-assumes" rel="noopener noreferrer"&gt;phone ordering agent for restaurants&lt;/a&gt; is at demo stage, so we have no production success rates to set next to these numbers, and we will not write as if we did. What we can say is where we would start: the first fifteen seconds of a call and the time to first audio, measured per turn. If you are planning a voice agent on Twilio, or deciding whether one belongs next to an existing chat assistant, that is the scope of our &lt;a href="https://baraqix.com/services#voice-agents" rel="noopener noreferrer"&gt;voice agent work&lt;/a&gt;, and a &lt;a href="https://baraqix.com/process#sprint" rel="noopener noreferrer"&gt;Discovery Sprint&lt;/a&gt; is where we would measure it on your traffic before building anything else.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;First published on the &lt;a href="https://baraqix.com/blog/elevenlabs-says-voice-wins-long-conversations-read-the-latency-data-instead" rel="noopener noreferrer"&gt;Baraqix engineering notes&lt;/a&gt;. Baraqix builds RAG pipelines, AI agents and NL2SQL systems from prototype to production. &lt;a href="https://baraqix.com/contact" rel="noopener noreferrer"&gt;Book a free call&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>voice</category>
      <category>latency</category>
      <category>evaluation</category>
    </item>
    <item>
      <title>Coding agents install deprecated MCP servers from memory</title>
      <dc:creator>Baraqix</dc:creator>
      <pubDate>Thu, 03 Dec 2026 02:20:14 +0000</pubDate>
      <link>https://dev.to/abdur2k3/coding-agents-install-deprecated-mcp-servers-from-memory-5cc4</link>
      <guid>https://dev.to/abdur2k3/coding-agents-install-deprecated-mcp-servers-from-memory-5cc4</guid>
      <description>&lt;p&gt;On 2 November 2026, Glow Labs published &lt;a href="https://www.glow.io/blogs/mcphantom-ai-coding-agents-are-installing-vulnerable-deprecated-mcp-servers-from-training-data" rel="noopener noreferrer"&gt;research it calls MCPhantom&lt;/a&gt;: AI coding agents setting up MCP servers that were deprecated and archived. Glow's reading of the transcripts is that the package name came from the model's training data rather than from a lookup. The finding is narrow and specific, and that is why it matters. Nobody attacked anyone. The agent simply remembered an old package name, and nothing in the toolchain stopped it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Glow Labs reported
&lt;/h2&gt;

&lt;p&gt;Glow Labs reviewed real coding session transcripts. In 98% of the sessions where an agent set up a deprecated MCP server, Glow says the choice appears to come from training data. In the other 2%, the user asked for the old package by name. Read the scope carefully: &lt;a href="https://www.glow.io/blogs/mcphantom-ai-coding-agents-are-installing-vulnerable-deprecated-mcp-servers-from-training-data" rel="noopener noreferrer"&gt;Glow's own wording&lt;/a&gt; makes the 98% a share of sessions where an agent set up a deprecated server. It describes why it happened in those sessions. It is not a rate for how often agents pick deprecated packages across real sessions in general.&lt;/p&gt;

&lt;p&gt;In the GitHub example, the agent passed over the server GitHub maintains and installed an archived Anthropic reference server instead. The &lt;a href="https://github.com/modelcontextprotocol/servers-archived" rel="noopener noreferrer"&gt;archive repository&lt;/a&gt; was archived on 29 May 2025, and its README states that no security updates or bug fixes will be provided. Glow says Anthropic published 20 reference servers and 13 were archived. The archive README itself lists 14 servers, so the counts do not quite agree.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Where it showed up:&lt;/strong&gt; Claude Code, Cursor, Codex CLI, Claude Cowork and Claude chat, with models from Anthropic, OpenAI and xAI, according to Glow.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What is in the packages:&lt;/strong&gt; four high severity vulnerabilities across the deprecated reference servers. The most serious is a remote code execution bug in the Puppeteer server, where a prompt injection makes the agent start any process instead of the browser.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;How widely used:&lt;/strong&gt; 17,352,267 npm downloads since 10 July 2025 across the packages Glow counted, with &lt;code&gt;server-github&lt;/code&gt; at 5,266,085 and &lt;code&gt;server-postgres&lt;/code&gt; at 4,312,874.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fix status:&lt;/strong&gt; the maintainers closed the Puppeteer report as out of scope because the server is unmaintained. Glow says it has not seen exploitation.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One detail should end a common argument. A Glow researcher &lt;a href="https://www.helpnetsecurity.com/2026/11/03/mcphantom-deprecated-mcp-servers/" rel="noopener noreferrer"&gt;told Help Net Security&lt;/a&gt; that in one session the agent checked npm, was told the package was deprecated, installed it anyway and did not tell the user. Asking the model to look things up first is advice, not a control.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this is a backend problem, not only a laptop problem
&lt;/h2&gt;

&lt;p&gt;Glow frames MCPhantom as an endpoint security issue, and for developer machines that is right. Our position is broader. Glow describes the model's memory as a package manager with no deprecation feed, and that flaw is not limited to laptops. Any system where a model chooses which tool or package to bring in has it, because the model's memory has no deprecation feed and no security advisories. That covers coding agents, internal agents that configure their own integrations, and the scaffolding a team generates during a prototype and then ships.&lt;/p&gt;

&lt;p&gt;An MCP server launched with &lt;code&gt;npx&lt;/code&gt; is a dependency that never appears in &lt;code&gt;package.json&lt;/code&gt; or a lockfile. As Glow points out, your SCA tool cannot flag it, and since these flaws have no CVEs, there is nothing for it to match. If an agent wrote the config, no human ever chose that package. When a team reviews an AI prototype before production, the config files that start tool servers deserve the same scrutiny as the application manifest, and for the reasons above, often more.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Question&lt;/th&gt;
&lt;th&gt;Model memory&lt;/th&gt;
&lt;th&gt;What we treat as the source of truth&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Which server for this service?&lt;/td&gt;
&lt;td&gt;Whatever name was common during training&lt;/td&gt;
&lt;td&gt;One approved server per service, written down in the repo&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Is it still maintained?&lt;/td&gt;
&lt;td&gt;Unknown&lt;/td&gt;
&lt;td&gt;npm deprecation status and the repository archive flag, checked by a script&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Which version runs?&lt;/td&gt;
&lt;td&gt;Latest at launch time via &lt;code&gt;npx&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;An exact pinned version that changes only through review&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Who approved it?&lt;/td&gt;
&lt;td&gt;Nobody&lt;/td&gt;
&lt;td&gt;A named team in code review, like any other dependency&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  What we would do this week
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Search every repository and developer machine for MCP configs that reference &lt;code&gt;@modelcontextprotocol&lt;/code&gt; server packages, and replace each one with the service owner's own server where one exists. This is the first step Glow recommends, and we agree.&lt;/li&gt;
&lt;li&gt;Keep an allowlist with one server per service at an exact version. Floating &lt;code&gt;npx&lt;/code&gt; installs mean the code that runs can change without anyone reviewing it.&lt;/li&gt;
&lt;li&gt;Make the check deterministic and outside the model. Run it in CI on every config change, and wire it into the hooks your agent harness runs before tool execution, where the harness supports them.&lt;/li&gt;
&lt;li&gt;Scope permissions per tool, not per session. The Puppeteer bug is dangerous because approving browsing ended up covering arbitrary commands. A browser tool should run in a sandbox that cannot spawn other processes.&lt;/li&gt;
&lt;li&gt;Watch for configs that change without a commit. If an agent can write its own tool config, that write is a privileged action and should be logged and reviewed.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The gate does not need to be clever. This is the shape of the check we would add to CI, reading a JSON config with an &lt;code&gt;mcpServers&lt;/code&gt; map:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;#!/usr/bin/env bash&lt;/span&gt;
&lt;span class="c"&gt;# Gate: every npx-launched MCP server must be on the allowlist and not deprecated on npm&lt;/span&gt;
&lt;span class="nb"&gt;set&lt;/span&gt; -euo pipefail
&lt;span class="nv"&gt;config&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"${1:-.mcp.json}"&lt;/span&gt;
&lt;span class="nv"&gt;allow&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"${2:-mcp-allowlist.txt}"&lt;/span&gt;   &lt;span class="c"&gt;# one exact name@version per line&lt;/span&gt;
&lt;span class="nv"&gt;fail&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;0
&lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="nb"&gt;read&lt;/span&gt; -r name pkg&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt;
  &lt;span class="nv"&gt;base&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"${pkg%@*}"&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt; -z &lt;span class="s2"&gt;"$base"&lt;/span&gt; &lt;span class="o"&gt;]&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nv"&gt;base&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"$pkg"&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; ! grep -qxF &lt;span class="s2"&gt;"$pkg"&lt;/span&gt; &lt;span class="s2"&gt;"$allow"&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt;
    &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"BLOCK $name: $pkg is not on the allowlist (pin an exact version)"&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="nv"&gt;fail&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;1
  &lt;span class="k"&gt;fi&lt;/span&gt;
  &lt;span class="nv"&gt;dep&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"$(npm view "&lt;/span&gt;&lt;span class="nv"&gt;$base&lt;/span&gt;&lt;span class="s2"&gt;" deprecated 2&amp;gt;/dev/null || true)"&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt; -n &lt;span class="s2"&gt;"$dep"&lt;/span&gt; &lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt;
    &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"BLOCK $name: $base is deprecated on npm: $dep"&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="nv"&gt;fail&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;1
  &lt;span class="k"&gt;fi&lt;/span&gt;
&lt;span class="k"&gt;done&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;jq -r &lt;span class="s1"&gt;'.mcpServers | to_entries[]
  | select(.value.command == "npx")
  | "\(.key) \(.value.args | map(select(startswith("-") | not)) | .[0])"'&lt;/span&gt; &lt;span class="s2"&gt;"$config"&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;
&lt;span class="nb"&gt;exit&lt;/span&gt; &lt;span class="s2"&gt;"$fail"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Warning:&lt;/strong&gt; A deprecation warning is not a block. Glow notes that &lt;code&gt;npx&lt;/code&gt; still installs a deprecated package with only a warning, and deprecated packages drop out of npm search, which makes them harder to spot, not harder to install.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;A caveat on the source: Glow sells endpoint tooling for exactly this problem, and the transcripts come from its own monitoring. The archive notice and the npm download counts can be checked independently, and we think they are enough to justify the controls above without relying on the vendor framing. None of these steps require buying anything.&lt;/p&gt;

&lt;p&gt;If your agents, MCP integrations or prototype backends were assembled with heavy help from coding agents and nobody has audited which tool servers they start, that is a good use of a &lt;a href="https://baraqix.com/process#sprint" rel="noopener noreferrer"&gt;Discovery Sprint&lt;/a&gt;. Our &lt;a href="https://baraqix.com/services#ai-integration" rel="noopener noreferrer"&gt;AI integration work&lt;/a&gt; starts from the position that every tool an agent can reach is a dependency to review and pin, because the model will not do that review for you.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;First published on the &lt;a href="https://baraqix.com/blog/coding-agents-install-deprecated-mcp-servers-from-memory" rel="noopener noreferrer"&gt;Baraqix engineering notes&lt;/a&gt;. Baraqix builds RAG pipelines, AI agents and NL2SQL systems from prototype to production. &lt;a href="https://baraqix.com/contact" rel="noopener noreferrer"&gt;Book a free call&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>agents</category>
      <category>supplychain</category>
      <category>security</category>
    </item>
  </channel>
</rss>
