<?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: Conor Bronsdon</title>
    <description>The latest articles on DEV Community by Conor Bronsdon (@conorbronsdon).</description>
    <link>https://dev.to/conorbronsdon</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%2F654631%2F416c2c20-4bc3-425c-8812-2d7ff262bada.png</url>
      <title>DEV Community: Conor Bronsdon</title>
      <link>https://dev.to/conorbronsdon</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/conorbronsdon"/>
    <language>en</language>
    <item>
      <title>Fix Hallucinations at the Data Layer, Not the Prompt</title>
      <dc:creator>Conor Bronsdon</dc:creator>
      <pubDate>Sun, 22 Nov 2026 20:30:09 +0000</pubDate>
      <link>https://dev.to/conorbronsdon/fix-hallucinations-at-the-data-layer-not-the-prompt-5a8o</link>
      <guid>https://dev.to/conorbronsdon/fix-hallucinations-at-the-data-layer-not-the-prompt-5a8o</guid>
      <description>&lt;p&gt;A language model predicts the most likely continuation of the text in front of it. When the right enterprise facts are missing, that continuation can be fluent and wrong. Feed it structured sources, relationships, and provenance, and bound what it is allowed to do on this task, so the guess has less room to fill.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://chainofthought.show/guests/dan-klein/" rel="noopener noreferrer"&gt;Dan Klein&lt;/a&gt;, co-founder and CTO of Scaled Cognition and a professor at UC Berkeley, joined in April 2026. &lt;a href="https://chainofthought.show/guests/sudhir-hasbe/" rel="noopener noreferrer"&gt;Sudhir Hasbe&lt;/a&gt;, President and Chief Product Officer at Neo4j, joined in April 2026.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you ground retrieval when similar vectors point at the wrong domain?
&lt;/h2&gt;

&lt;p&gt;Filter similarity results with structured relationships and metadata before the model answers. Hasbe separates consumer models, trained on public web text, from enterprise systems, which must run on internal knowledge those models never saw. Fine-tuning on that knowledge is expensive, and he does not expect every company to hand its IP to a general model. The model still predicts a next word. Your data architecture is what makes the decision checkable.&lt;/p&gt;

&lt;p&gt;Plain vector retrieval is where that gap shows up. Hasbe retells a Spotify case: similarity search on a pop song could surface country music, because the vector space only measures mathematical closeness. Metadata about the song was what restricted results to the domain the listener was in. He sees the same pattern in enterprise RAG. Teams that started on pure vector search were landing around 60 to 65 percent accuracy. Combining vector search with a graph filter on metadata and relationships, what he calls GraphRAG, is where he has seen customers move above 90 percent. Adding targeted tools on a reasoning engine, a predefined query for a question people ask often, is where he says accuracy can move above 95 to 97 percent. The graph is also easier to inspect than a vector space: you can look at the entities and the relationships and explain why a result was kept.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"You all have to figure out what's your data architecture to provide that enterprise knowledge to the agentic system so that you can make right decisions and you can audit the decisions"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;em&gt;Sudhir Hasbe, President and Chief Product Officer at Neo4j, on &lt;a href="https://chainofthought.show/podcast/55-hallucinations-are-a-data-architecture-problem-sudhir-hasbe-neo4j/" rel="noopener noreferrer"&gt;Chain of Thought ep 55&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;


&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
        &lt;div class="c-embed__cover"&gt;
          &lt;a href="https://podcasts.apple.com/us/podcast/hallucinations-are-a-data-architecture-problem/id1776879655?i=1000761799414" class="c-link align-middle" rel="noopener noreferrer"&gt;
            &lt;img alt="" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fis1-ssl.mzstatic.com%2Fimage%2Fthumb%2FPodcasts221%2Fv4%2Fd2%2F50%2F7b%2Fd2507b18-27fb-d630-9d89-0becefe0ae07%2Fmza_1484187062002749425.jpg%2F1200x1200ECA.PESS01-60.jpg%3FimgShow%3DPodcasts221%2Fv4%2Fee%2Ff2%2F1b%2Feef21b19-f090-f9b4-fc85-ffc84f80fad7%2Fmza_6548396687882944514.jpg" height="800" class="m-0" width="800"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="c-embed__body"&gt;
        &lt;h2 class="fs-xl lh-tight"&gt;
          &lt;a href="https://podcasts.apple.com/us/podcast/hallucinations-are-a-data-architecture-problem/id1776879655?i=1000761799414" rel="noopener noreferrer" class="c-link"&gt;
            Hallucinations Are a Data Arch… - Chain of Thought | AI Agents, Infrastructure &amp;amp; Engineering - Apple Podcasts
          &lt;/a&gt;
        &lt;/h2&gt;
          &lt;p class="truncate-at-3"&gt;
            Podcast Episode · Chain of Thought | AI Agents, Infrastructure &amp;amp; Engineering · April 16 · 52m
          &lt;/p&gt;
        &lt;div class="color-secondary fs-s flex items-center"&gt;
            &lt;img alt="favicon" class="c-embed__favicon m-0 mr-2 radius-0" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fpodcasts.apple.com%2Fassets%2Ffavicon%2Ffavicon-32.png" width="32" height="32"&gt;
          podcasts.apple.com
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;Record the rationale with the decision. In Hasbe's sales example, the CRM stores the approved discount. The negotiation that justified it lives in email and Slack: the customer's budget, the sales leadership's approval after the manager discussion on Slack, the bet that the account will grow. A context graph is that missing layer. Future agent actions can read why the exception was granted, which the system of record never kept.&lt;/p&gt;

&lt;p&gt;He describes three ways teams place that graph. A semantic map leaves data in place and records where it lives, what terms mean, and which reference sets apply. A second pattern pulls in the slice that is too scattered to reason over, such as a customer split across sales, marketing, and service clouds. A third puts company knowledge in one graph and runs agents on it. He says most teams start with the first or the second.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;A minimal sketch to adapt:&lt;/em&gt;&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="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;answer_with_graph&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;query&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;graph&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;vectors&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;allowed_tools&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;hits&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;vectors&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;similarity_search&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;query&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;context&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;graph&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;filter_by_metadata&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;hits&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;action&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;call_model&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;query&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;tools&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;allowed_tools&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="nf"&gt;trace_span&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;action&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;provenance&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sources&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;action&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Why does a second model checker fail to catch hallucinations?
&lt;/h2&gt;

&lt;p&gt;The checker fails on the same hard cases as the model it reviews. Klein's name for the base system is a plausibility engine: it assembles likely text, and likely is easy to confuse with true.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Ultimately, they are assembling plausible outputs on the fly. And it's so easy for those things to be plausible, but not true. The bottom line is we have built not truth engines, not reliability engines, we've built plausibility engines."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;em&gt;Dan Klein, co-founder and CTO at Scaled Cognition, on &lt;a href="https://chainofthought.show/podcast/54-why-llms-are-plausibility-engines-not-truth-engines-dan-klein/" rel="noopener noreferrer"&gt;Chain of Thought ep 54&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;He walks a conversation of about 20 turns. A model that is right 80 percent of the time, checked by another at 80 percent, looks like a 4 percent miss if you assume the errors are independent. He then drops that assumption. Hard instances fail together, so 80 percent checking 80 percent lands around 82 percent right, barely above the model alone. Each of those 20 turns is another chance to miss. Sometimes the checker catches an error. Sometimes it adds one, and the design reaches for a third model, then 10 or 15, with the token bill and the latency that implies. He would rather the model avoid the mistake in its own operation.&lt;/p&gt;

&lt;p&gt;Prompt text will not close that gap. Klein says a prompt has no precise semantics and no guarantee the model will follow it. When it ignores you, the recourse is rewording, capital letters, and exclamation points. Around the third exclamation point, he says, you can tell this is not a path to a controllable technology. On the output side you get tokens, and tokens do not tell you what the system is allowed to do. An action can be allowed or refused. Information can be allowed to move or blocked. He argues the model has to give actions and information that status, including a distinction between what it knows and what it does not, and what it can and cannot do. A token generator has no such distinction. If the string happens to match the facts, people call it truth. If it does not, they call it a hallucination. The model did not separate the two.&lt;/p&gt;

&lt;p&gt;A retrieved passage can still be restated into something else. Klein asks how to distinguish a changed answer from a paraphrase that preserves its meaning. He also describes an iceberg: a wrong balance is the kind people notice; a plausible refund policy that is not your refund policy looks right to a developer reading the output. Looks right and is right are not the same.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"First of all, it's not very effective. So what can happen is, OK, you have multiple models. They can all fail. Sometimes one catches the error. Sometimes it introduces an error. And then you need a third model."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;em&gt;Dan Klein, co-founder and CTO at Scaled Cognition, on &lt;a href="https://chainofthought.show/podcast/54-why-llms-are-plausibility-engines-not-truth-engines-dan-klein/" rel="noopener noreferrer"&gt;Chain of Thought ep 54&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How many tools should you give one reasoning engine?
&lt;/h2&gt;

&lt;p&gt;Give it a small set that matches the use case, chosen before the call. Hasbe says customers who attach hundreds of tools to one reasoning engine watch accuracy fall as the list grows. The same slide happens in a chat when you keep appending context after the model has started answering. An architect who had worked at Intuit and later at Salesforce told him the relevant set for that use case had to be chosen on purpose, bounded rather than open-ended. Customer lookup for a fraud step and customer lookup for a marketing step can share a name and still be the wrong tool. Extra unused tools also spend tokens, so the bound is a cost control and an accuracy control.&lt;/p&gt;

&lt;p&gt;Hasbe treats the knowledge graph as the place that lookup happens. For a fraud flow, pick the 10 or 15 tools that belong to it, confirm the intent, and send that list. Uber, in an account he relays from a Neo4j customer summit, uses the graph as a business validation layer for a harder version of the same idea: thousands of jurisdiction combinations for Uber Eats, including payment and minimum-wage rules that change when a delivery crosses from Seattle toward Bellevue. The graph holds those rules so an agent deciding a payment can be checked against the combination that applies.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you tell a demo score from a system you can ship?
&lt;/h2&gt;

&lt;p&gt;Ask whether the scenario is right every time, on the order of 100 runs in a row. Klein says counting how many benchmark scenarios a model got right does not match an enterprise bar. A system at 80 or 90 percent cannot ship; he illustrates with 1 in 10 customers told a flight was booked when it was not. A system that gets 70 percent of scenarios right every single time, however they are approached, is the one he calls hugely valuable. Set the metric to the tolerance you have for a wrong action. A wrong FAQ answer and a wrong account balance do not share a bar, because the second one leads someone into a financial decision.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Is hallucination a model bug or a data gap?&lt;/strong&gt;&lt;br&gt;
Hasbe frames the enterprise case as a data architecture problem: the models were trained on public information, and internal knowledge has to be supplied or the system will answer from what it already has. Klein adds that even a retrieved answer can be replaced with different wording, so retrieval alone does not define the error. Treat grounding and the model's notion of information as two checks.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can prompting alone make an agent reliable?&lt;/strong&gt;&lt;br&gt;
Klein says a prompt is a hint. Natural language is ambiguous, and nothing forces the system to follow the wording. Rewording, capital letters, and exclamation points are the recourse he describes, and he does not treat them as a guarantee. Put allow-or-refuse on actions, and record where information came from.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How many tools should an agent have?&lt;/strong&gt;&lt;br&gt;
Hasbe reports that hundreds of tools on one reasoning engine make results worse as the count grows. Select a bounded set for the use case, and use the graph to decide which set applies. Fewer irrelevant tools also means fewer tokens.&lt;/p&gt;
&lt;h2&gt;
  
  
  Takeaway
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Supply enterprise knowledge through a data architecture the agent can audit: sources, relationships, and provenance.&lt;/li&gt;
&lt;li&gt;Filter vector hits with metadata so a nearby embedding cannot cross into the wrong domain.&lt;/li&gt;
&lt;li&gt;Store the decision and the rationale that email and Slack held, so a later action can read why an exception was granted.&lt;/li&gt;
&lt;li&gt;Bound tools to the use case before the model runs, and trace the action against that context.&lt;/li&gt;
&lt;li&gt;Judge a ship candidate by repeated success on a scenario, on the order of 100 runs, and match the bar to the cost of a wrong action.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The longer explainer, with the episode clips, is on &lt;a href="https://chainofthought.show/ai-decoded/are-ai-hallucinations-a-data-problem/" rel="noopener noreferrer"&gt;Chain of Thought&lt;/a&gt;. It draws on &lt;a href="https://chainofthought.show/podcast/55-hallucinations-are-a-data-architecture-problem-sudhir-hasbe-neo4j/" rel="noopener noreferrer"&gt;this episode&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/dpeyY5oVqRY" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://newsletter.chainofthought.show/subscribe?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=newsletter" rel="noopener noreferrer"&gt;Subscribe to the Chain of Thought newsletter&lt;/a&gt; for new episodes and write-ups like this one.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Drafted with AI assistance from the episode transcripts.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>rag</category>
      <category>architecture</category>
      <category>agents</category>
    </item>
    <item>
      <title>Grade open-ended answers without ROUGE or BERTScore</title>
      <dc:creator>Conor Bronsdon</dc:creator>
      <pubDate>Sun, 22 Nov 2026 15:30:05 +0000</pubDate>
      <link>https://dev.to/conorbronsdon/grade-open-ended-answers-without-rouge-or-bertscore-4h68</link>
      <guid>https://dev.to/conorbronsdon/grade-open-ended-answers-without-rouge-or-bertscore-4h68</guid>
      <description>&lt;p&gt;Overlap metrics tell you how close a reply is to a reference. They do not tell you whether a person would accept it. For open-ended output I'd put an LLM judge in that gap, and keep it on a short leash: one label, a one-line reason, and an honest "cannot tell".&lt;/p&gt;

&lt;h2&gt;
  
  
  Why do ROUGE and BERTScore miss replies users reject?
&lt;/h2&gt;

&lt;p&gt;A reply can share most of its wording with a reference summary and still be a response you should not ship. &lt;a href="https://chainofthought.show/glossary/rouge/" rel="noopener noreferrer"&gt;ROUGE&lt;/a&gt; (Recall-Oriented Understudy for Gisting Evaluation) scores a machine-written summary against one or more summaries written by people. Chin-Yew Lin introduced the package in 2004 and tested it against human judgments from the Document Understanding Conference, the NIST-sponsored summarization evaluation. ROUGE-N counts shared n-grams, so ROUGE-1 is single words and ROUGE-2 is word pairs. ROUGE-L uses the longest common subsequence, which rewards words in the same order without requiring them to be adjacent. ROUGE-S counts skip-bigrams, pairs in sentence order with gaps allowed. The recall-oriented design is what separates ROUGE from BLEU. Those variants answer a narrow question: how much of the reference showed up in the candidate. Users also care whether the reply was fit to send.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://chainofthought.show/glossary/bertscore/" rel="noopener noreferrer"&gt;BERTScore&lt;/a&gt; was introduced in 2019 by Tianyi Zhang and colleagues at Cornell and ASAPP because BLEU and ROUGE match surface words, so a paraphrase that means the same thing scores poorly. BERTScore embeds every token in the candidate and the reference with a pretrained contextual model, matches each token to its most similar counterpart by cosine similarity, and reports precision, recall, and F1. The authors tested it on the outputs of 363 machine translation and image captioning systems and found it correlated better with human judgments than the existing metrics. That catches paraphrase. The score is still similarity to a reference. Open-ended replies often have several acceptable wordings, and a close match can still be the wrong reply for the person who asked.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://chainofthought.show/guests/chip-huyen/" rel="noopener noreferrer"&gt;Chip Huyen&lt;/a&gt; used a book summary for this bind. A summary can sound reasonable, and you may still have to read the whole book to know whether it is good. She also pointed to a LinkedIn case study of a job-fit assistant. Asked whether a candidate was a good fit for a role, the bot could reply "No, you're a terrible fit." The answer was correct, and it was still a bad response. Overlap with a reference that also says the candidate is a poor fit would look fine. She said teams report scores like coherence and relevancy as if they were exact metrics.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;But they're actually very highly dependent on the models you use, on the prompt you use for the judge.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;em&gt;Chip Huyen, author of Designing Machine Learning Systems, on Chain of Thought ep 5 (December 2024)&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://chainofthought.show/guests/vivienne-zhang/" rel="noopener noreferrer"&gt;Vivienne Zhang&lt;/a&gt; described a domain version of the same miss on an NVIDIA copilot for chip designers. Asked what CTL means, a generally accepted answer is combinational time logic. For those designers the answer is Compute Trace Library, specific to NVIDIA. A reference that rewards the public expansion rewards the wrong term in that room. She also pointed to open leaderboards, including RewardBench, where a lot of humans do not agree on which answer is better. She said there is no right answer, and there could be 10 different answers.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;I think I have a very simplified view representing users, which is the application gives an answer that looks correct, but it's not what the user is looking for, and I will consider that a hallucination.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;em&gt;Vivienne Zhang, then a senior product manager for generative AI software at NVIDIA, on Chain of Thought ep 5 (December 2024)&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What should one judge call return?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://chainofthought.show/glossary/llm-as-a-judge/" rel="noopener noreferrer"&gt;LLM-as-a-judge&lt;/a&gt; gives a capable model the output, a rubric, and often the question and a reference, and asks for a score or a verdict. You cannot hand-review every production reply, so the judge is how you get a signal on the volume. The judge is a fallible model. It can be inconsistent, biased toward longer or more confident answers, and only as good as the rubric you give it. A 1 to 10 rating produces noise. I would start with three outcomes and nothing else.&lt;/p&gt;

&lt;p&gt;Pass means the reply meets the criteria you wrote down. Fail means it breaks one of them, including a factually correct reply that is unfit to show a user. Cannot tell means the rubric, or the domain context you supplied, does not decide the case. Keep cannot tell as its own bucket. A person labels those rows. If the same gap keeps appearing, that gap becomes a new line in the rubric.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you write the prompt?
&lt;/h2&gt;

&lt;p&gt;Put the criteria in the prompt before the answer. Name the failures in reviewer language: a detail missing from the context, a reply that misses the question, a correct but hostile reply, or a public definition that is wrong for this product. If an explicit "I can't answer from this" should pass when the context is insufficient, say that in the rubric. Tell the model to ignore length and phrasing unless they change the meaning. Require JSON with two fields only, &lt;code&gt;label&lt;/code&gt; and &lt;code&gt;reason&lt;/code&gt;. The reason is one line and names the criterion. The allowed labels are &lt;code&gt;pass&lt;/code&gt;, &lt;code&gt;fail&lt;/code&gt;, and &lt;code&gt;cannot_tell&lt;/code&gt;. Anything else is not a verdict.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does the wrapper log?
&lt;/h2&gt;

&lt;p&gt;The sketch below is an illustration of the call wrapper and the disagreement log. &lt;code&gt;call_model&lt;/code&gt; stands in for sending the prompt and returning text. It is not production code, and it is not a pipeline any guest described.&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;# Sketch only. Not production code.&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;

&lt;span class="no"&gt;LABELS&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"pass"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"fail"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"cannot_tell"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;judge_prompt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;question&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;answer&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;rubric&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&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;"Grade this one reply. Ignore length and phrasing unless they change meaning.\n"&lt;/span&gt;
        &lt;span class="s2"&gt;"label must be pass, fail, or cannot_tell.\n"&lt;/span&gt;
        &lt;span class="s2"&gt;"Use cannot_tell if the rubric does not decide the case.\n"&lt;/span&gt;
        &lt;span class="s2"&gt;"reason is one line and must name the criterion you applied.\n"&lt;/span&gt;
        &lt;span class="s2"&gt;"Return only JSON with keys label and reason.\n\n"&lt;/span&gt;
        &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"Rubric:\n{rubric}\n\nQuestion: {question}\nAnswer: {answer}"&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;run_judge&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;question&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;answer&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;rubric&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;call_model&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;loads&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;call_model&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;judge_prompt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;question&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;answer&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;rubric&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;if&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"label"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="no"&gt;LABELS&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&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="p"&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;"label"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"cannot_tell"&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;"Judge output was missing a valid label or reason."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&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;"label"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"label"&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="n"&gt;data&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="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;log_disagreement&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;log&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;case_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;judge_row&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;human_label&lt;/span&gt;&lt;span class="p"&gt;)&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;judge_row&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"label"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="n"&gt;human_label&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;log&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="s2"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;case_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="s2"&gt;"judge"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;judge_row&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"label"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="s2"&gt;"human"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;human_label&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="n"&gt;judge_row&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="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;return&lt;/span&gt; &lt;span class="n"&gt;log&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When a reviewer has marked the same case, append a row only if the two labels differ, and store the judge's one-line reason with that row. Read the cannot tell rows and the disagreement log before you change the prompt. The reason tells you whether the judge misread a criterion you already wrote, or whether the rubric never covered the case.&lt;/p&gt;

&lt;h2&gt;
  
  
  Checklist
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Write user-facing failures into the rubric first, including a correct reply that is still a bad one to send.&lt;/li&gt;
&lt;li&gt;Allow only pass, fail, and cannot tell, and require a one-line reason that names the criterion.&lt;/li&gt;
&lt;li&gt;If the model returns any other shape, store cannot tell in the wrapper and leave the case unscored.&lt;/li&gt;
&lt;li&gt;Log each row where the judge label and a human label differ, and keep the judge's reason on that row.&lt;/li&gt;
&lt;li&gt;Read the cannot tell rows and the disagreement log before you add a domain rule or edit the prompt.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The longer explainer, with the episode clips, is on &lt;a href="https://chainofthought.show/ai-decoded/what-is-llm-as-a-judge/" rel="noopener noreferrer"&gt;Chain of Thought&lt;/a&gt;. It draws on &lt;a href="https://chainofthought.show/podcast/5-practical-lessons-for-genai-evals-chip-huyen-and-vivienne-zhang/" rel="noopener noreferrer"&gt;this episode&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://newsletter.chainofthought.show/subscribe?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=newsletter" rel="noopener noreferrer"&gt;Subscribe to the Chain of Thought newsletter&lt;/a&gt; for new episodes and write-ups like this one.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Drafted with AI assistance from the episode transcripts.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>testing</category>
    </item>
    <item>
      <title>How to control agents on regulated systems</title>
      <dc:creator>Conor Bronsdon</dc:creator>
      <pubDate>Sat, 21 Nov 2026 20:30:07 +0000</pubDate>
      <link>https://dev.to/conorbronsdon/how-to-control-agents-on-regulated-systems-1bjk</link>
      <guid>https://dev.to/conorbronsdon/how-to-control-agents-on-regulated-systems-1bjk</guid>
      <description>&lt;p&gt;Give regulated agents a control plane before they touch production data. Keep an inventory record for each agent, test it in a simulated environment so it does not perform unwanted actions, set and monitor its policies, write an audit record of what it did, and keep a human in a supervisory role. The policy check has to inspect combinations: two or three pieces that do not meet a privacy test alone can become PII when they come together, and a compliance pass at launch will miss that later join.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://chainofthought.show/guests/kris-lovejoy/" rel="noopener noreferrer"&gt;Kris Lovejoy&lt;/a&gt;, Global Head of Strategy at Kyndryl, made this case on Chain of Thought in June 2026.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why are autonomous agents still uncommon in banking and healthcare?
&lt;/h2&gt;

&lt;p&gt;Pilots run ahead of the estates they have to operate on. Lovejoy splits AI so it is not treated as one thing. Individual productivity comes first. People already use generative and agentic tools for ordinary tasks, such as booking a hotel, and those agents inherit the user's authorizations. Enterprise productivity tools are in use at scale.&lt;/p&gt;

&lt;p&gt;Mission-critical transformation is the second category. Customers that run banks and healthcare systems are not at full production scale with those programs.&lt;/p&gt;

&lt;p&gt;What stops them depends on the situation. Her short answer was all of the above. Critical infrastructure is mostly not cloud first. The estate is hybrid: mainframe and mid-range, machines she called X-series, more than one cloud, vintage systems beside new ones, and data spread across them. Getting to the data, normalizing it, and keeping its integrity so a model can use it is difficult. A pilot can succeed and still leave out security, reliability, sovereignty, economics, and scalability. Guardrails and resilience capabilities production needs often do not exist yet, so teams invent them while they deploy. Her range for agentic AI at scale in most organizations was a few years, maybe up to a decade.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Within an enterprise, productivity tools are being used and they are being used at scale.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;em&gt;Kris Lovejoy, Global Head of Strategy at Kyndryl, on &lt;a href="https://chainofthought.show/podcast/62-the-first-fully-autonomous-ai-attack-is-coming-kristin-lovejoy/" rel="noopener noreferrer"&gt;Chain of Thought ep 62&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;


&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
        &lt;div class="c-embed__cover"&gt;
          &lt;a href="https://podcasts.apple.com/us/podcast/the-first-fully-autonomous-ai-attack-is-coming-kris/id1776879655?i=1000772201819" class="c-link align-middle" rel="noopener noreferrer"&gt;
            &lt;img alt="" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fis1-ssl.mzstatic.com%2Fimage%2Fthumb%2FPodcasts211%2Fv4%2F34%2Fed%2F9d%2F34ed9d52-b372-2f5d-3cc1-5448ae7d3b36%2Fmza_16928265773108855667.jpg%2F1200x1200ECA.PESS01-60.jpg%3FimgShow%3DPodcasts221%2Fv4%2Fee%2Ff2%2F1b%2Feef21b19-f090-f9b4-fc85-ffc84f80fad7%2Fmza_6548396687882944514.jpg" height="800" class="m-0" width="800"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="c-embed__body"&gt;
        &lt;h2 class="fs-xl lh-tight"&gt;
          &lt;a href="https://podcasts.apple.com/us/podcast/the-first-fully-autonomous-ai-attack-is-coming-kris/id1776879655?i=1000772201819" rel="noopener noreferrer" class="c-link"&gt;
            The First Fully Autonomous AI … - Chain of Thought | AI Agents, Infrastructure &amp;amp; Engineering - Apple Podcasts
          &lt;/a&gt;
        &lt;/h2&gt;
          &lt;p class="truncate-at-3"&gt;
            Podcast Episode · Chain of Thought | AI Agents, Infrastructure &amp;amp; Engineering · June 11 · 46m
          &lt;/p&gt;
        &lt;div class="color-secondary fs-s flex items-center"&gt;
            &lt;img alt="favicon" class="c-embed__favicon m-0 mr-2 radius-0" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fpodcasts.apple.com%2Fassets%2Ffavicon%2Ffavicon-32.png" width="32" height="32"&gt;
          podcasts.apple.com
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;


&lt;h2&gt;
  
  
  What belongs in a control plane for a privileged agent?
&lt;/h2&gt;

&lt;p&gt;If you can't see it, you can't protect it. Lovejoy applied that rule to agentic AI acting as a privileged user.&lt;/p&gt;

&lt;p&gt;She listed the operating steps in this order:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Inventory the agent.&lt;/li&gt;
&lt;li&gt;Evaluate it in simulated environments so it does not perform actions you do not want.&lt;/li&gt;
&lt;li&gt;Generate the policies, establish them, and monitor them.&lt;/li&gt;
&lt;li&gt;Create audit reports and compliance reports that show what happened.&lt;/li&gt;
&lt;li&gt;Keep humans in supervisory roles.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Policy as code sits inside that list, and her relationship with it is fraught. She remembers the early cloud pitch: implement policy as code and security problems go away. That narrative failed, and teams added compliance and secondary controls. Applying deterministic rules to autonomous systems leads her to ask whether the result is RPA or agentic AI. Policy as code remains one element of the reference architecture.&lt;/p&gt;

&lt;p&gt;She pushed back on human in the loop. A linear, human-shaped checkpoint gets forced onto work that runs as parallel tasks. Teams then struggle to write constraints where the person is not a roadblock to finishing the process. The model she argued for is human on top: supervisory roles, with secondary evaluations and approvals before the agent can finish the action.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;if you can't see it, you can't protect it. And so when you're talking about mission-critical systems that are going to be using agentic AI, and when I think about the role of agentic AI as a privileged user interacting with those systems, then we have to apply certain rules to how we manage that.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;em&gt;Kris Lovejoy, Global Head of Strategy at Kyndryl, on &lt;a href="https://chainofthought.show/podcast/62-the-first-fully-autonomous-ai-attack-is-coming-kristin-lovejoy/" rel="noopener noreferrer"&gt;Chain of Thought ep 62&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you flag a join of data that each field would allow?
&lt;/h2&gt;

&lt;p&gt;Check the set of categories in the query, not each category on its own. Lovejoy's privacy example is two or three pieces of data that, alone, have not met a jurisdictional privacy test and, together, count as personal data.&lt;/p&gt;

&lt;p&gt;Privacy, as she defined it, is an individual right. When someone gives data to a third party, that party inherits obligations of access, integrity, and not passing the data to others. Security is one mechanism for meeting those obligations. The rules are a patchwork, so an obligation we have not seen can attach to one element or to a combination.&lt;/p&gt;

&lt;p&gt;Compliance, in her account, still works as a point-in-time habit: test the code, mark it compliant, and stop. That habit does not hold once data is joined, connected, provided onward, or processed in a new place. Continuous compliance replaces it. Ongoing observation is what notices when a privacy constraint has appeared.&lt;/p&gt;

&lt;p&gt;The category names below are stand-ins for that check.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;A minimal sketch to adapt, not a drop-in library.&lt;/em&gt;&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="n"&gt;inventory&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="s2"&gt;"agent_id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"claims-review-07"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"owner"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"claims-ops"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"nonhuman_identity"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"nhi-claims-review-07"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"simulated_ok"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"allowed_alone"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"member_id"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"claim_code"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"device_locale"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"visit_date"&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="n"&gt;forbidden_combinations&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"member_id"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"device_locale"&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="s2"&gt;"claim_code"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"device_locale"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"visit_date"&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;def&lt;/span&gt; &lt;span class="nf"&gt;query_is_blocked&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;categories&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;inventory&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;forbidden_combinations&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;present&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kt"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;categories&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;present&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="kt"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;inventory&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"allowed_alone"&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;return&lt;/span&gt; &lt;span class="kc"&gt;True&lt;/span&gt;  &lt;span class="c1"&gt;# a category this agent was never cleared for&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nb"&gt;any&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;combo&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="n"&gt;present&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;combo&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;forbidden_combinations&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run &lt;code&gt;query_is_blocked&lt;/code&gt; on the categories a query will touch before the agent calls a tool. Repeat the check when the query, the recipient, or the processing location changes. A pass at registration is the point-in-time review she described as something that does not work anymore.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;When two or three pieces of data come together, all of a sudden it's PII.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;em&gt;Kris Lovejoy, Global Head of Strategy at Kyndryl, on &lt;a href="https://chainofthought.show/podcast/62-the-first-fully-autonomous-ai-attack-is-coming-kristin-lovejoy/" rel="noopener noreferrer"&gt;Chain of Thought ep 62&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Is policy as code enough to govern an agent?&lt;/strong&gt;&lt;br&gt;
Lovejoy called policy as code one element of the reference architecture. Inventory, simulated evaluation, monitoring, audit reports, and human supervision sit with it. She asked whether that result is RPA or agentic AI.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What does human on top require in practice?&lt;/strong&gt;&lt;br&gt;
A supervisor who can evaluate and approve before the agent can complete the action. Lovejoy set that against a person placed in the middle of the workflow. AI does not think in a linear way, and a midpoint human check becomes a roadblock to finishing the process.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why is a launch-time privacy review not enough?&lt;/strong&gt;&lt;br&gt;
Joining data can change the obligation. Pieces of data that are not covered on their own can become personal data in a set of two or three. A test-and-done compliance pass does not track later joins, connections, disclosures, or processing locations. Monitor those changes and block or escalate when a forbidden combination appears.&lt;/p&gt;
&lt;h2&gt;
  
  
  Takeaway
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Record every agent: owner, non-human identity, allowed categories, and whether simulation passed.&lt;/li&gt;
&lt;li&gt;Block a query when its categories include a forbidden combination of two or three, even if each category is allowed alone.&lt;/li&gt;
&lt;li&gt;Use policy as code as one control, beside inventory, simulation, monitoring, and audit.&lt;/li&gt;
&lt;li&gt;Require supervisory approval before the agent completes a consequential action.&lt;/li&gt;
&lt;li&gt;Re-check combinations when the query, the recipient, or the processing location changes.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The full conversation, with the transcript, is on &lt;a href="https://chainofthought.show/podcast/62-the-first-fully-autonomous-ai-attack-is-coming-kristin-lovejoy/" rel="noopener noreferrer"&gt;Chain of Thought&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/asrtjJPKYFs" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://newsletter.chainofthought.show/subscribe?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=newsletter" rel="noopener noreferrer"&gt;Subscribe to the Chain of Thought newsletter&lt;/a&gt; for new episodes and write-ups like this one.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Drafted with AI assistance from the episode transcripts.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>security</category>
      <category>architecture</category>
    </item>
    <item>
      <title>Fact-check AI energy claims before they steer your architecture</title>
      <dc:creator>Conor Bronsdon</dc:creator>
      <pubDate>Sat, 21 Nov 2026 15:30:06 +0000</pubDate>
      <link>https://dev.to/conorbronsdon/fact-check-ai-energy-claims-before-they-steer-your-architecture-3f6a</link>
      <guid>https://dev.to/conorbronsdon/fact-check-ai-energy-claims-before-they-steer-your-architecture-3f6a</guid>
      <description>&lt;p&gt;You will hear AI called an environmental disaster. Many of the numbers behind that claim do not survive a calculator, a units conversion, or a question about what you are actually comparing. Before you throttle features, pick a “green” model path, or repeat a stat in a design doc, I'd run the claim through four checks drawn from the fact-checking work of &lt;a href="https://chainofthought.show/guests/andy-masley/" rel="noopener noreferrer"&gt;Andy Masley&lt;/a&gt; and the infrastructure framing of &lt;a href="https://chainofthought.show/guests/jeetu-patel/" rel="noopener noreferrer"&gt;Jeetu Patel&lt;/a&gt;. For more on power and data centers, the &lt;a href="https://chainofthought.show/topics/ai-energy/" rel="noopener noreferrer"&gt;AI energy and data centers&lt;/a&gt; page collects the full conversations.&lt;/p&gt;

&lt;h2&gt;
  
  
  Does the number pass a units and scale sanity check?
&lt;/h2&gt;

&lt;p&gt;Andy Masley, who taught physics for seven years and fact-checks AI environmental claims, describes the largest error he has found personally as a water figure in &lt;em&gt;Empire of AI&lt;/em&gt; that is off by a factor of about 4,500. One root cause: a source mixed up liters and cubic meters. A cubic meter is a thousand liters. The published figure implied that each resident of an 88,000-person community outside Santiago was using about a tenth of a liter of water a day, for everything. Masley argues that is a number anyone could have sanity-checked, and for six months nobody did.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The number that she gave for this community basically implied that the average person there was consuming about point one liters a day, which is something like a fifth of a single bottle of water&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;em&gt;Andy Masley, Effective Altruism DC, on Chain of Thought ep 45&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The same chapter, Masley says, claimed AI would consume half as much water as all of Britain by 2027, while the cited study puts the figure at roughly 5%. An error that size changes the policy conversation.&lt;/p&gt;

&lt;p&gt;When you see megawatt-hours, liters, or “equivalent to X cities,” stop at the noun: consumption versus withdrawal, municipal versus regional basin, inference versus training amortized over model lifetime. If the implied per-person daily use would kill people or violate physics, look for the error in the unit or the denominator.&lt;/p&gt;

&lt;p&gt;A sketch of a units-trap check (mine, not from any guest):&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;# Sketch: reject claims whose implied per-capita rate is absurd&lt;/span&gt;
&lt;span class="n"&gt;claimed_liters_per_person_per_day&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;reported_total_L&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;population&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;days&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;claimed_liters_per_person_per_day&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mf"&gt;1.0&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="nf"&gt;flag&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Likely unit mix-up (e.g. m³ vs L) or wrong denominator"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Am I looking at one prompt or the whole grid?
&lt;/h2&gt;

&lt;p&gt;These are different questions. Masley's party-level comparisons treat a single prompt as tiny relative to a normal day: about what printing a fifth of a page emits, running a space heater for half a second, or driving four feet. On water, his estimate is roughly one eight-hundred-thousandth of daily use. Anything you do on a computer carries a small climate cost relative to almost everything else in a day, which is why “I ran a thousand searches today” was never a confession.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Sending a prompt probably emits as much as printing a fifth of a single page of a book, or it's like running a space heater for about half a second, or driving your car for about four feet or something like that.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;em&gt;Andy Masley, Effective Altruism DC, on Chain of Thought ep 45&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Aggregate impact is different. The bite is how much power the data-center buildout draws and where that power comes from. Utilities and siting decisions move that far more than how often any one person opens a chatbot. Don't design guilt into user flows based on per-prompt estimates while ignoring where the power for new capacity comes from.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is the comparison baseline, and who moved the goalposts?
&lt;/h2&gt;

&lt;p&gt;Bad comparisons usually smuggle in a baseline that sounds alarming but measures the wrong thing. Masley notes that ~90% of water in one cited framing is taken for power plants off-site and returned to the source, while “consumption” in water-management terms is narrower. Quoting the big headline without that distinction mis-trains readers.&lt;/p&gt;

&lt;p&gt;On the Santiago data center, Masley's corrected estimate puts the facility at about 25% of the water in one section of Santiago, but about 3% of the municipal supply. Activist pressure built on the bad figure, he hedges, may have pushed Google toward air cooling instead of water cooling for a proposed center that has not been built. Air cooling takes considerably more energy, so he suspects the redesign would mean higher emissions in exchange for saving water. As of September 2026, Google says it has not decided whether to go ahead with the redesigned, air-cooled project. Environmental policy is trade-offs. You cannot price a trade-off with a number that is wrong by three orders of magnitude.&lt;/p&gt;

&lt;p&gt;When someone compares AI to “all of Britain” or “a thousand towns,” ask: same year, same definition of consume, same geographic boundary, same inclusion of training and embodied hardware? If the answer is fuzzy, treat the ratio as unsupported.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why is the grid the constraint that actually binds?
&lt;/h2&gt;

&lt;p&gt;Jeetu Patel names infrastructure as the first hard constraint on AI: not enough power, compute, network bandwidth, or data-center capacity to meet demand. His framing is that infrastructure is the input and intelligence is the output, and the goal is generating tokens at the lowest kilowatt and the lowest dollar. That problem is expensive, contested, and unresolved. It is also a different problem from whether you should feel bad for sending a prompt.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;There is just not enough power, compute, network bandwidth, and data center capacity to go satiate the needs of AI. And the constraint for infrastructure is directly correlated to a company and a country's ability to to have intelligence. Infrastructure is the input. Intelligence is the output.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;em&gt;Jeetu Patel, Cisco, on Chain of Thought ep 44&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;For developers, that means the decisions that matter for energy are often upstream of your API call: where capacity is built, what fuel mix serves it, whether cooling choices shift burden from water to electricity, and whether networking losses force you to restart million-dollar training runs. Patel also describes data centers being built where power availability is highest, and scale-across networking when one site cannot host enough GPUs. Your latency and cost optimizations are real, but they sit inside a grid and siting story.&lt;/p&gt;

&lt;h2&gt;
  
  
  Checklist
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Convert units and divide by population and time; if implied daily use per person is absurd, fix the math before the moral.&lt;/li&gt;
&lt;li&gt;Label whether the claim is per query, per user-day, or whole-industry buildout; do not use one to justify policy for the other.&lt;/li&gt;
&lt;li&gt;Match the baseline (consumption vs withdrawal, local vs municipal vs national, inference vs training amortization).&lt;/li&gt;
&lt;li&gt;Ask what fuel and cooling trade-off the grid faces; Patel's constraint is power and capacity.&lt;/li&gt;
&lt;li&gt;If you cannot verify all four, do not put the number in an architecture decision. Say “unknown” and point to primary sources.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The longer explainer, with the episode clips, is on &lt;a href="https://chainofthought.show/ai-decoded/is-ai-bad-for-the-environment/" rel="noopener noreferrer"&gt;Chain of Thought&lt;/a&gt;. It draws on &lt;a href="https://chainofthought.show/podcast/45-debunking-ais-environmental-panic-andy-masley/" rel="noopener noreferrer"&gt;this episode&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://newsletter.chainofthought.show/subscribe?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=newsletter" rel="noopener noreferrer"&gt;Subscribe to the Chain of Thought newsletter&lt;/a&gt; for new episodes and write-ups like this one.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Drafted with AI assistance from the episode transcripts.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>sustainability</category>
      <category>infrastructure</category>
      <category>devops</category>
    </item>
    <item>
      <title>Test AI outputs by properties, not by one golden string</title>
      <dc:creator>Conor Bronsdon</dc:creator>
      <pubDate>Fri, 20 Nov 2026 20:30:07 +0000</pubDate>
      <link>https://dev.to/conorbronsdon/test-ai-outputs-by-properties-not-by-one-golden-string-31jd</link>
      <guid>https://dev.to/conorbronsdon/test-ai-outputs-by-properties-not-by-one-golden-string-31jd</guid>
      <description>&lt;p&gt;An exact-string assertion can reject a valid model answer when several different outputs are acceptable. Check properties on a dataset instead. For each case, ask whether the output is grounded in the supplied source, follows the instruction, stays in scope, and avoids the unsafe response. Score with code where you can write the check, and with a rubric or an LLM judge where you cannot. Run that suite on every prompt change, model swap, or dependency bump.&lt;/p&gt;

&lt;p&gt;This explainer draws from Chain of Thought episode 37 (August 2025) with &lt;a href="https://chainofthought.show/guests/hamel-husain/" rel="noopener noreferrer"&gt;Hamel Husain&lt;/a&gt;, founder of Parlance Labs, and episode 18 (April 2025) with &lt;a href="https://chainofthought.show/guests/charity-majors/" rel="noopener noreferrer"&gt;Charity Majors&lt;/a&gt;, co-founder and CTO of Honeycomb.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why does a golden string fail a correct model answer?
&lt;/h2&gt;

&lt;p&gt;The same prompt can produce several answers that are all correct, so a test locked to one stored string fails any correct answer with different wording. Property checks ask what the answer must do.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://chainofthought.show/guests/yash-sheth/" rel="noopener noreferrer"&gt;Yash Sheth&lt;/a&gt; described the first job of evaluation as solving the measurement problem: quantifying an application's behavior as metrics.&lt;/p&gt;

&lt;p&gt;Some checks are mechanical. The reply should name a source id the case requires, exclude a forbidden phrase, and stay under a word limit. Naming a source id does not prove the source supports the claim. That part belongs on a rubric.&lt;/p&gt;

&lt;p&gt;Dashboard scores such as a hallucination score, a toxicity score, or a conciseness score do not replace those checks. Hamel Husain said they are way too generic and do not necessarily correlate with actual failures in the product.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"These generic metrics are most of the time not helpful at all. They're way too generic. They don't necessarily correlate with actual failures in your AI product."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;em&gt;Hamel Husain, founder of Parlance Labs, on &lt;a href="https://chainofthought.show/podcast/37-mindset-over-metrics-how-to-approach-ai-engineering-hamel-husain/" rel="noopener noreferrer"&gt;Chain of Thought ep 37&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;


&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
        &lt;div class="c-embed__cover"&gt;
          &lt;a href="https://podcasts.apple.com/us/podcast/mindset-over-metrics-how-to-approach-ai-engineering/id1776879655?i=1000722806409" class="c-link align-middle" rel="noopener noreferrer"&gt;
            &lt;img alt="" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fis1-ssl.mzstatic.com%2Fimage%2Fthumb%2FPodcasts211%2Fv4%2F47%2F5a%2F1a%2F475a1a62-5e7a-53f3-a306-9c76adeb8b31%2Fmza_11798300429545007129.jpg%2F1200x1200ECA.PESS01-60.jpg%3FimgShow%3DPodcasts221%2Fv4%2Fee%2Ff2%2F1b%2Feef21b19-f090-f9b4-fc85-ffc84f80fad7%2Fmza_6548396687882944514.jpg" height="800" class="m-0" width="800"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="c-embed__body"&gt;
        &lt;h2 class="fs-xl lh-tight"&gt;
          &lt;a href="https://podcasts.apple.com/us/podcast/mindset-over-metrics-how-to-approach-ai-engineering/id1776879655?i=1000722806409" rel="noopener noreferrer" class="c-link"&gt;
            Mindset Over Metrics: How to A… - Chain of Thought | AI Agents, Infrastructure &amp;amp; Engineering - Apple Podcasts
          &lt;/a&gt;
        &lt;/h2&gt;
          &lt;p class="truncate-at-3"&gt;
            Podcast Episode · Chain of Thought | AI Agents, Infrastructure &amp;amp; Engineering · August 20, 2025 · 42m
          &lt;/p&gt;
        &lt;div class="color-secondary fs-s flex items-center"&gt;
            &lt;img alt="favicon" class="c-embed__favicon m-0 mr-2 radius-0" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fpodcasts.apple.com%2Fassets%2Ffavicon%2Ffavicon-32.png" width="32" height="32"&gt;
          podcasts.apple.com
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;


&lt;h2&gt;
  
  
  How do you build the dataset that makes the suite repeatable?
&lt;/h2&gt;

&lt;p&gt;Build the first cases from failures, not from a coverage quota. Hamel Husain calls the method error analysis. Open a trace viewer, read traces, write notes on what went wrong, put the notes into categories, and count them. Prioritize the categories you see most often.&lt;/p&gt;

&lt;p&gt;How many traces is the usual question. Theoretical saturation, a social-science term he uses, means stop when you learn nothing new. People stall on that phrase, so he offers a starter you can schedule: at least 100 traces. After you start, the quota matters less. The notes tell you which eval to write.&lt;/p&gt;

&lt;p&gt;Outsourcing evaluations to developers is one of the biggest failure modes he sees, unless you are building a developer tool and the developer is the domain expert. Otherwise you are guessing. If the product is for lawyers, involve the lawyer.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"To trust LLM as a judge, you have to compare it to some human labels."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;em&gt;Hamel Husain, founder of Parlance Labs, on &lt;a href="https://chainofthought.show/podcast/37-mindset-over-metrics-how-to-approach-ai-engineering-hamel-husain/" rel="noopener noreferrer"&gt;Chain of Thought ep 37&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Before a judge can block a release, compare it with those human labels. The judge's verdict is another model output. If it disagrees with itself on the same case across runs, read the disputed cases before you move the threshold. A gate that flips on noise teaches the team to ignore it.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you gate a release on properties instead of a single score?
&lt;/h2&gt;

&lt;p&gt;Keep a reviewed baseline pass rate in the repo with the cases. Fail the build when the new pass rate falls below it. Print the ids that failed. The rate alone does not say what to fix.&lt;/p&gt;

&lt;p&gt;Run cheap checks before the judge. A string check is enough for a forbidden phrase. The judge should run only after those checks pass.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;A minimal sketch to adapt.&lt;/em&gt;&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="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;pathlib&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;Path&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;test_eval_pass_rate&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="n"&gt;cases&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;loads&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Path&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"eval_cases.json"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;read_text&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="n"&gt;baseline&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;loads&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Path&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"eval_baseline.json"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;read_text&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="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"pass_rate"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="n"&gt;cases&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Evaluation dataset must not be empty"&lt;/span&gt;
    &lt;span class="n"&gt;failed&lt;/span&gt; &lt;span class="o"&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;for&lt;/span&gt; &lt;span class="k"&gt;case&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;cases&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;reply&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;call_model&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;case&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"prompt"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;case&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"source"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;text&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;reply&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="n"&gt;cheap_ok&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
            &lt;span class="k"&gt;case&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"required_source_id"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;reply&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"source_ids"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
            &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="k"&gt;case&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"forbidden_phrase"&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="ow"&gt;not&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;text&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="ow"&gt;and&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;text&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;split&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="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="k"&gt;case&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"max_words"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
        &lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cheap_ok&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="nf"&gt;judge_against_rubric&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;case&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"source"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;case&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"rubric"&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="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;failed&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;case&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;pass_rate&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&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;cases&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;failed&lt;/span&gt;&lt;span class="p"&gt;)&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;cases&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="n"&gt;pass_rate&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="n"&gt;baseline&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"Pass rate dropped: {pass_rate}, failed: {failed}"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Counting words with split() is coarse. Use a stricter method if the limit has hard product meaning.&lt;/p&gt;

&lt;h2&gt;
  
  
  What should you add after a production failure?
&lt;/h2&gt;

&lt;p&gt;Charity Majors' point is that a lot of engineers are comfortable in the editor running tests, and they treat production as someone else's problem. She sees the influx of generated code straining the usual debugging path: find who changed it, and ask the expert what happened. She poses the follow-up: what if there is no expert, and what if you have to understand production on its own terms? When a failure reaches users, record what the system received and what it returned, then add the case that would have caught it.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"the source of truth is what is happening right now."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;em&gt;Charity Majors, co-founder and CTO of Honeycomb, on &lt;a href="https://chainofthought.show/podcast/18-ai-wont-solve-your-toughest-engineering-problems-honeycombs-charity-majors/" rel="noopener noreferrer"&gt;Chain of Thought ep 18&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;She said that in many sentences you can replace AI with automation and the sentence still holds, nine times out of ten by her count. Conor named nondeterminism as the exception, and Charity agreed. Charity was drawing that contrast when she said the whole premise of APIs is that you put in the same thing and get the same thing out.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Why does assert-equals fail a correct answer?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The same prompt can produce more than one correct answer. Equality with a single golden string fails the correct answers that use different words.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How many traces should I review to start?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Hamel Husain recommends at least 100 traces as a concrete starter, then continuing until you are not learning anything new. That stopping rule is what he calls theoretical saturation.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does an AI engineer need to train models?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;No. You do not need to train models, and you do need data literacy. Hamel Husain said that validating a judge against human labels, and explaining why sampling can show noise in the judge, moves you quickly toward the skill set of a machine learning engineer or a data scientist.&lt;/p&gt;

&lt;h2&gt;
  
  
  Takeaway
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Treat each test case as properties: a required source, a forbidden phrase, a word limit, and a rubric for whether the source supports the answer.&lt;/li&gt;
&lt;li&gt;Run cheap code checks before paying for a judge.&lt;/li&gt;
&lt;li&gt;Gate the build on a reviewed baseline, and print failed case ids beside the pass rate.&lt;/li&gt;
&lt;li&gt;Compare the LLM judge with human labels before the judge can fail a build.&lt;/li&gt;
&lt;li&gt;Add a case for every production break, fed by error analysis on traces.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The longer explainer, with the episode clips, is on &lt;a href="https://chainofthought.show/ai-decoded/how-to-test-an-ai-system/" rel="noopener noreferrer"&gt;Chain of Thought&lt;/a&gt;. It draws on &lt;a href="https://chainofthought.show/podcast/37-mindset-over-metrics-how-to-approach-ai-engineering-hamel-husain/" rel="noopener noreferrer"&gt;this episode&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://newsletter.chainofthought.show/subscribe?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=newsletter" rel="noopener noreferrer"&gt;Subscribe to the Chain of Thought newsletter&lt;/a&gt; for new episodes and write-ups like this one.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Drafted with AI assistance from the episode transcripts.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>testing</category>
      <category>llm</category>
      <category>agents</category>
    </item>
    <item>
      <title>Your data agent can have perfect context and still be wrong</title>
      <dc:creator>Conor Bronsdon</dc:creator>
      <pubDate>Fri, 20 Nov 2026 15:30:06 +0000</pubDate>
      <link>https://dev.to/conorbronsdon/your-data-agent-can-have-perfect-context-and-still-be-wrong-26pf</link>
      <guid>https://dev.to/conorbronsdon/your-data-agent-can-have-perfect-context-and-still-be-wrong-26pf</guid>
      <description>&lt;p&gt;WisdomAI sponsored this episode.&lt;/p&gt;

&lt;p&gt;If you connect an LLM to your warehouse and pour in schema, catalogs, and docs, the model still has to guess which of it matters. You have not guaranteed that the number in chat matches what finance would sign off on.&lt;/p&gt;

&lt;p&gt;On Chain of Thought, WisdomAI co-founder and CPO &lt;a href="https://chainofthought.show/guests/kapil-chhabra/" rel="noopener noreferrer"&gt;Kapil Chhabra&lt;/a&gt; argues that enterprise stacks are settling into three layers: raw data, a shared context layer, and a task-specific harness on top. Context stops the model from guessing what ARR or churn means. The harness is what plans queries, catches dialect mistakes, and repairs failures before the user sees an answer. His analogy is a hospital: the model is the surgeon, the context is the patient history, and you still cannot operate without the hospital around them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why does more context not fix wrong answers?
&lt;/h2&gt;

&lt;p&gt;Context is how you encode company truth: metric definitions, fiscal calendars, and examples of queries that look right in your environment. Kapil Chhabra says that without it, models are flying blind on accuracy. He also warns that stuffing the context window with everything you own is a bad trade. You burn tokens, and the model still has to guess which slice matters for this prompt.&lt;/p&gt;

&lt;p&gt;That matches how I think about &lt;a href="https://chainofthought.show/glossary/context-relevance/" rel="noopener noreferrer"&gt;context relevance&lt;/a&gt; in RAG evals. A high score means retrieval returned passages that actually bear on the question. A low score means the model is reading noise. Fixing a bad answer starts with knowing whether retrieval or generation failed. Padding context with marginal text can make both worse.&lt;/p&gt;

&lt;p&gt;For analytics agents, the gap shows up in SQL and Python as well as prose. Kapil Chhabra gives a concrete tripwire:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;time zone conversion in Clickhouse, LLMs, even the best LLMs right now are making a mistake three out of 10 times.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;em&gt;Kapil Chhabra, CPO, WisdomAI&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Same question, same context fed to a frontier model versus a specialized analytics harness: Kapil Chhabra reports a 3x difference in time to the first answer and a 3.4x difference in cost in their side-by-side test. Context was held constant. The difference was workflow around the model.&lt;/p&gt;

&lt;h2&gt;
  
  
  Is a semantic layer enough for chat over data?
&lt;/h2&gt;

&lt;p&gt;Data teams already maintain semantics for BI tools. Chat breaks the old contract. Users ask anything. Q1 might mean fiscal quarter to finance and calendar quarter to marketing. Kapil Chhabra is blunt about the old stack:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;It is necessary, but it is not sufficient.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;em&gt;Kapil Chhabra, CPO, WisdomAI&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;What he puts in the broader context layer includes natural-language rules (when finance asks about a quarter, it may mean the fiscal quarter, while marketing may mean the calendar quarter), plus worked examples that convey the nuances of good SQL and Python queries. That layer has to stay current as definitions drift. He calls that context drift and treats updates as a multiplayer problem: an SME signs off on shared definitions, while personal prefs stay in user memory, not institutional context.&lt;/p&gt;

&lt;p&gt;If you are standing up governance for this, &lt;a href="https://chainofthought.show/topics/context-management/" rel="noopener noreferrer"&gt;context management&lt;/a&gt; is the thread to follow across episodes on memory, harness design, and who owns definitions.&lt;/p&gt;

&lt;h2&gt;
  
  
  What should the harness do after context is injected?
&lt;/h2&gt;

&lt;p&gt;Kapil Chhabra describes an analytics loop:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Decompose the question into sub-questions aligned to each data source (warehouse SQL, Python, MCP-backed systems, docs).&lt;/li&gt;
&lt;li&gt;Generate and run those queries.&lt;/li&gt;
&lt;li&gt;Verify results before recomposing an answer.&lt;/li&gt;
&lt;li&gt;Repair errors (for example, inject deterministic timezone handling before a ClickHouse query runs).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Trust, in his framing, needs accuracy, consistency across repeated asks, governance that respects row-level access, and explainability you can audit. High criticality use cases need all four, not a one-off artifact.&lt;/p&gt;

&lt;p&gt;Humans should still own decisions. Agents increasingly fetch and act on data without a human re-reading every row. That is why verification inside the harness matters more than another paragraph in the system prompt.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do I tell if a fluent answer is also a good one?
&lt;/h2&gt;

&lt;p&gt;Grounded text can still miss the question. &lt;a href="https://chainofthought.show/glossary/answer-relevance/" rel="noopener noreferrer"&gt;Answer relevance&lt;/a&gt; scores whether the reply addresses what was asked, separate from whether claims match sources (faithfulness) or whether retrieval was on-topic (context relevance). Kapil Chhabra's product pattern mirrors that split: after a Live App is generated, the system can flag widgets built with full context versus widgets where it had to assume. You review assumptions, correct them, and approved fixes feed back into the context layer.&lt;/p&gt;

&lt;p&gt;I'd treat automated judges as hints until you spot-check against humans on real business questions, the same way you would before trusting any RAG eval pipeline.&lt;/p&gt;

&lt;p&gt;A sketch of post-answer checks:&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;# Sketch: separate "did we fetch the right stuff" from "did we answer the ask"&lt;/span&gt;
&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;review_agent_answer&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;question&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;answer&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;sql&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ctx_used&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="o"&gt;-&amp;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;str&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;flags&lt;/span&gt; &lt;span class="o"&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;if&lt;/span&gt; &lt;span class="n"&gt;ctx_used&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"assumptions"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;flags&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"review_assumptions:"&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="s2"&gt;", "&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ctx_used&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"assumptions"&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;if&lt;/span&gt; &lt;span class="s2"&gt;"Q1"&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;question&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="s2"&gt;"fiscal"&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;ctx_used&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"calendar_rule"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;flags&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"missing_fiscal_calendar_rule"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="c1"&gt;# Run sql in read-only sandbox; compare aggregates to a golden query when you have one&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;flags&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Checklist
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Separate failures: low context relevance points at retrieval and chunking; plausible but wrong numbers point at harness verification and dialect-specific repair.&lt;/li&gt;
&lt;li&gt;Widen context past the semantic layer: definitions plus calendar rules, ownership, and query examples SMEs would approve.&lt;/li&gt;
&lt;li&gt;Require decompose, execute, verify, repair for federated questions instead of one-shot SQL from the model.&lt;/li&gt;
&lt;li&gt;Score answer relevance as well as faithfulness before anyone acts on the output in Slack or a live app.&lt;/li&gt;
&lt;li&gt;Flag low-confidence widgets and close the loop with SME-approved context updates when definitions drift.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The full conversation, with the transcript, is on &lt;a href="https://chainofthought.show/podcast/75-why-context-alone-isnt-enough-for-enterprise-ai-agents-wisdomai-cpo-kapil-chhabra/" rel="noopener noreferrer"&gt;Chain of Thought&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/RSC5Jxspchw" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://newsletter.chainofthought.show/subscribe?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=newsletter" rel="noopener noreferrer"&gt;Subscribe to the Chain of Thought newsletter&lt;/a&gt; for new episodes and write-ups like this one.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Drafted with AI assistance from the episode transcripts.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>analytics</category>
      <category>rag</category>
    </item>
    <item>
      <title>Decide what meeting-room AI must run on the device</title>
      <dc:creator>Conor Bronsdon</dc:creator>
      <pubDate>Thu, 19 Nov 2026 15:30:08 +0000</pubDate>
      <link>https://dev.to/conorbronsdon/decide-what-meeting-room-ai-must-run-on-the-device-2jl0</link>
      <guid>https://dev.to/conorbronsdon/decide-what-meeting-room-ai-must-run-on-the-device-2jl0</guid>
      <description>&lt;p&gt;&lt;a href="https://chainofthought.show/guests/tormod-ree/" rel="noopener noreferrer"&gt;Tormod Ree&lt;/a&gt;, chief product and engineering officer at Neat, describes meeting rooms with 11 or more cameras and dozens of microphones. The system has to tell who is present, who is talking, and who is looking at whom, then choose what a remote participant sees and hears. That choice sits on the live media path. Where you run it is the design decision.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why does live audio and video have to run on the device?
&lt;/h2&gt;

&lt;p&gt;Ree ranks the case for &lt;a href="https://chainofthought.show/glossary/edge-ai/" rel="noopener noreferrer"&gt;edge AI&lt;/a&gt; as time sensitivity first, privacy second, and cost third. He places cost behind the other two. Processing on the path of seeing and hearing people has to run on the device. That covers detecting people, detecting who is speaking, picking a camera, and mixing microphones. Neat uses both edge and cloud. The split follows the job.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Yes. So we do a combination of edge and cloud. We sort of do it where it makes sense, but typically sort of arguments for doing it at the edge in probably an order of importance is kind of time sensitivity, privacy and cost.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;em&gt;Tormod Ree, chief product and engineering officer at Neat&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Privacy is a training constraint as well as a runtime one. The devices sit in rooms where the conversations are private. Neat cannot simply collect customer meetings as training data. Ree describes internally sourced material and relevant public datasets, with relatively little synthetic data. He ties that to local processing: what happens locally stays locally and is processed locally.&lt;/p&gt;

&lt;p&gt;Slower work belongs in another bucket. Fleet management can wait. In one mode, audio summaries run in the cloud because they are less time sensitive. Neat processes that audio during the meeting or as the meeting closes. Google Meet, Microsoft Teams, and Zoom remain cloud meeting services. That cloud path is the call. The framing that makes the room watchable stays on the hardware in the room.&lt;/p&gt;

&lt;h2&gt;
  
  
  What counts as too slow when the output is a framing decision?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://chainofthought.show/glossary/latency/" rel="noopener noreferrer"&gt;Latency&lt;/a&gt; for a language model separates time-to-first-token from the time until the model finishes. A framing decision has a different output: which video stream, which crop, which microphone mix. If it lands late, the remote person is looking at the wrong face or hearing the wrong mic. The latency glossary notes that a 100-millisecond interaction and a ten-second one are different products even at identical quality. Ree does not state a millisecond cap for the camera cut. I would set the budget from the failure you can see. If the step must finish while that person is still in frame and still talking, run it on the device next to the sensors. If the user needs the result only after the meeting, cloud is allowed.&lt;/p&gt;

&lt;p&gt;Keep the coordinating device light. Ree describes a captain, usually at the front of the room, with microphones, cameras, speakers, and the screen. Other devices, including a unit at the table, each run their own audio or video inference. They send metadata along with media. The captain selects and mixes from that metadata, and can skip a second inference pass on the incoming streams. Inference and orchestration both stay at the edge. When one chip is not enough, he adds devices. A camera unit or a microphone unit still has compute, so the room picks up more of it.&lt;/p&gt;

&lt;p&gt;The rules that turn those signals into a layout are still mostly deterministic. Someone talks, or the headcount crosses a threshold, and a fixed rule picks the experience.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;the decisions that you make to produce the end, the result experience, those algorithms are still to a large extent deterministic, right?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;em&gt;Tormod Ree, chief product and engineering officer at Neat&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;He expects that director to become a trained model later. The shift has not happened. It needs probably more of this kind of data than most companies have, and a decent amount of compute. The devices are typically Android, in the class of a phone: the mobile compute available when that hardware was designed. A five-year life, which customers often expect, means living with something like a new phone from five years earlier. A Mac Mini with a lot of memory is a richer box, and a cloud GPU is another class entirely. Models he still runs locally have to stay narrow and targeted. I would keep the director as explicit rules until a trained model beats those rules on devices already in rooms.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you test speech and vision apart?
&lt;/h2&gt;

&lt;p&gt;Ree says detectors that find people, and detectors that tell who is talking, have moved a long way. The harder layer is nonverbal signal, such as someone standing or presenting, and combining cameras and microphones so the room acts as one system rather than one powerful device at the front. A speech miss and a bad crop show up in different tests. Score them apart.&lt;/p&gt;

&lt;p&gt;For speech, use &lt;a href="https://chainofthought.show/glossary/word-error-rate/" rel="noopener noreferrer"&gt;word error rate&lt;/a&gt;. Align the recognizer output with a human transcript, count insertions, deletions, and substitutions, and divide by the number of words in the reference. That glossary cites rough bands for one speech service: 5 to 10% as good quality, around 20% as acceptable though it may need more training, and 30% or more as a sign it needs customization. The bands depend on the audio and the task, so treat them as a starting point. I would read the error mix before I read the single percentage. Many deletions usually trace to a weak signal, insertions to noise or crosstalk, and substitutions to domain terms the model has not seen enough of. Word error rate scores words. It can hold steady while the camera frames the wrong person.&lt;/p&gt;

&lt;p&gt;For vision, label the events the product acts on: a person present, a person looking at someone, a person standing, a person presenting. Report misses and false alarms for each event. Room size, acoustics, and how people interact all vary, which is why the test has to be a real room. Ree says meeting-room scenes differ from a security camera, a car, or the sets you typically find online, so the model has to be trained and tested on relevant data.&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;# Sketch only: keep the speech and vision reports separate.&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;speech_report&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;insertions&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;deletions&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;substitutions&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;n_ref&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;wer&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;insertions&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;deletions&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;substitutions&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;n_ref&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;"wer"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;wer&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"deletions"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;deletions&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"insertions"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;insertions&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;vision_report&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;events&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="c1"&gt;# events: name -&amp;gt; (misses, false_alarms, count)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;misses&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;false_alarms&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;count&lt;/span&gt;
        &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;misses&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;false_alarms&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;count&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;events&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;items&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;p&gt;When word error rate moves and the vision rates hold, look at the microphones and the speech model. When a vision event rate moves and word error rate holds, look at that detector. Publish the two reports together.&lt;/p&gt;

&lt;h2&gt;
  
  
  Checklist
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Run every live audio and video step on the device. Leave fleet management and post-meeting audio summaries on a slower path.&lt;/li&gt;
&lt;li&gt;Place each step by time sensitivity, then privacy, then cost.&lt;/li&gt;
&lt;li&gt;Let each device emit metadata, and let one captain select and mix.&lt;/li&gt;
&lt;li&gt;Score speech with word error rate and the error mix. Score each vision event with its own misses and false alarms.&lt;/li&gt;
&lt;li&gt;Keep layout rules deterministic until a trained director wins on hardware already shipped.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The full conversation, with the transcript, is on &lt;a href="https://chainofthought.show/podcast/70-11-cameras-dozens-of-mics-the-ai-that-reads-the-room/" rel="noopener noreferrer"&gt;Chain of Thought&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/jG98xJczygc" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://newsletter.chainofthought.show/subscribe?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=newsletter" rel="noopener noreferrer"&gt;Subscribe to the Chain of Thought newsletter&lt;/a&gt; for new episodes and write-ups like this one.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Drafted with AI assistance from the episode transcripts.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>hardware</category>
      <category>testing</category>
    </item>
    <item>
      <title>When one agent should become several specialists</title>
      <dc:creator>Conor Bronsdon</dc:creator>
      <pubDate>Wed, 18 Nov 2026 20:30:37 +0000</pubDate>
      <link>https://dev.to/conorbronsdon/when-one-agent-should-become-several-specialists-15jk</link>
      <guid>https://dev.to/conorbronsdon/when-one-agent-should-become-several-specialists-15jk</guid>
      <description>&lt;p&gt;Keep one agent on the whole task until the work breaks into specialties that need separate context and instructions. &lt;a href="https://chainofthought.show/guests/mikiko-chandrasekhar/" rel="noopener noreferrer"&gt;Mikiko Chandrasekhar&lt;/a&gt; put a practical size on that split: small agents equipped for one to three tasks, each judged on criteria for its own skill set. After the split, log every handoff so you can see who was called, what crossed between them, and what came back.&lt;/p&gt;

&lt;p&gt;Mikiko Chandrasekhar is Staff Developer Advocate at MongoDB. &lt;a href="https://chainofthought.show/podcast/33-mastering-multi-agent-systems-mongodbs-mikiko-chandrasekhar/" rel="noopener noreferrer"&gt;Chain of Thought episode 33&lt;/a&gt; aired in July 2025. &lt;a href="https://chainofthought.show/guests/giovanna-carofiglio/" rel="noopener noreferrer"&gt;Giovanna Carofiglio&lt;/a&gt; of Outshift by Cisco. &lt;a href="https://chainofthought.show/podcast/31-architecting-reliable-agentic-ai-ciscos-giovanna-carofiglio-on-the-agntcy-collective/" rel="noopener noreferrer"&gt;Episode 31&lt;/a&gt; aired in July 2025.&lt;/p&gt;

&lt;h2&gt;
  
  
  When should you split one agent into several?
&lt;/h2&gt;

&lt;p&gt;Split when one agent is being asked to carry specialties you would staff as different jobs. Mikiko described the practice forming for complex work as a system of small agents. Each one is equipped for a small slice, one to three tasks, with criteria for how that agent performs, and then you look at the group.&lt;/p&gt;

&lt;p&gt;Stay with one agent while the steps share a skill and you can still read one trace from the task, through the tool call, to the answer. She treats agents as software products. One school of thought, in her account, lets agents run because the models are nondeterministic, and catches errors later in the application layer. The school she follows adapts software engineering and MLOps practice and keeps the system as code you can inspect. A second agent, added before that single trace is exhausted, is another component you now have to debug.&lt;/p&gt;

&lt;p&gt;At her lightning talk at the AI Engineer World's Fair, she said basically 80% of the room raised a hand for building an agent, and roughly those same people, maybe one or two fewer, raised a hand for having an agent or multiple agents in production.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;And then I asked them like, how many of you have gotten your agents to work, like, straight off the bat, a 100% of the time? No one raised their hands. No one at all.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;em&gt;Mikiko Chandrasekhar, Staff Developer Advocate at MongoDB, on &lt;a href="https://chainofthought.show/podcast/33-mastering-multi-agent-systems-mongodbs-mikiko-chandrasekhar/" rel="noopener noreferrer"&gt;Chain of Thought ep 33&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;


&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
        &lt;div class="c-embed__cover"&gt;
          &lt;a href="https://podcasts.apple.com/us/podcast/mastering-multi-agent-systems-mongodbs-mikiko-chandrasekhar/id1776879655?i=1000718677758" class="c-link align-middle" rel="noopener noreferrer"&gt;
            &lt;img alt="" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fis1-ssl.mzstatic.com%2Fimage%2Fthumb%2FPodcasts221%2Fv4%2F4d%2F26%2F33%2F4d263388-6475-f30f-3b4f-974f616d9a4b%2Fmza_121482138638298631.jpg%2F1200x1200ECA.PESS01-60.jpg%3FimgShow%3DPodcasts221%2Fv4%2Fee%2Ff2%2F1b%2Feef21b19-f090-f9b4-fc85-ffc84f80fad7%2Fmza_6548396687882944514.jpg" height="800" class="m-0" width="800"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="c-embed__body"&gt;
        &lt;h2 class="fs-xl lh-tight"&gt;
          &lt;a href="https://podcasts.apple.com/us/podcast/mastering-multi-agent-systems-mongodbs-mikiko-chandrasekhar/id1776879655?i=1000718677758" rel="noopener noreferrer" class="c-link"&gt;
            Mastering Multi-Agent Systems … - Chain of Thought | AI Agents, Infrastructure &amp;amp; Engineering - Apple Podcasts
          &lt;/a&gt;
        &lt;/h2&gt;
          &lt;p class="truncate-at-3"&gt;
            Podcast Episode · Chain of Thought | AI Agents, Infrastructure &amp;amp; Engineering · July 23, 2025 · 40m
          &lt;/p&gt;
        &lt;div class="color-secondary fs-s flex items-center"&gt;
            &lt;img alt="favicon" class="c-embed__favicon m-0 mr-2 radius-0" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fpodcasts.apple.com%2Fassets%2Ffavicon%2Ffavicon-32.png" width="32" height="32"&gt;
          podcasts.apple.com
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;A structured workflow, she said, can still differ on one out of 100 runs, or one out of 20, depending on how complex the task is. Another agent adds a place for that spread to show up.&lt;/p&gt;

&lt;p&gt;If you do split, compare configurations of the same specialty before you add a new role. She sketched a hypothetical real-estate system with a listing-research agent whose only job is to crawl listings. An MLS was one source she named. In her example you could stand up five or six of those agents, vary the language model, the reasoning model, and the prompt style, keep the listing data in one store, trace why one configuration performed better, and keep that one.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you judge each agent on its own criteria?
&lt;/h2&gt;

&lt;p&gt;Write a different check for each skill, then read the team against the job. One shared score tells you the run failed. It does not tell you which specialist failed.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Instead of having each agent is compared to the same criteria, instead, like each agent has a different criteria that is focused on like their kind of specific skill set.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;em&gt;Mikiko Chandrasekhar, Staff Developer Advocate at MongoDB, on &lt;a href="https://chainofthought.show/podcast/33-mastering-multi-agent-systems-mongodbs-mikiko-chandrasekhar/" rel="noopener noreferrer"&gt;Chain of Thought ep 33&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;For coding or copilot-style agents, where the output is code, she named signals you can count: accuracy, runtime efficiency, and how often someone accepts a suggestion. Lines of code, she said, is a terrible measure. The pushback she described from a technical leadership track is to measure impact, and sometimes that impact does not encode. Vibe checks are fine up to a point. Past that point she wants quantitative metrics, because you can't improve what you can't measure. The idea that an LM or a VLM doing the reasoning means you skip metrics is, in her words, totally false.&lt;/p&gt;

&lt;p&gt;Giovanna put a limit on the same dashboard. Select good metrics, and not too many, or you confuse the people reading them. The set has to capture the dynamics of the multi-agent system. Predictability, for her, means testing the space of solutions these agents work in and checking that similar inputs produce consistent output. Evaluation has to explain how the system works, because these systems are much more complex than normal application.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you make agent-to-agent handoffs observable?
&lt;/h2&gt;

&lt;p&gt;Log the payload that crosses between agents, along with the final answer. Giovanna wants a view of the agentic graph: how agents communicate, how data passes from one agent to another, and how tools are called. Without that view, a bad handoff and a weak specialist look the same in the final answer.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;... this will give both the developer and the enterprise deploying the application in production the way to understand how the agent communicate, how the data are passed between one agent and another, how the tool are called...&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;em&gt;Giovanna Carofiglio of Outshift by Cisco, on &lt;a href="https://chainofthought.show/podcast/31-architecting-reliable-agentic-ai-ciscos-giovanna-carofiglio-on-the-agntcy-collective/" rel="noopener noreferrer"&gt;Chain of Thought ep 31&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;You can start that log inside one process. A router picks one narrow agent, records the handoff, calls it, and records what came back.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;A minimal sketch to adapt, not a drop-in library.&lt;/em&gt;&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="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;route_task&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;task&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;agents&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;trace&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;pick_agent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;task&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="n"&gt;agents&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="nf"&gt;trace_span&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;trace&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"handoff"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"to"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"task"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;task&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;spec&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;agents&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;call_agent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;spec&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;task&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;passed&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;spec&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;check&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;task&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  &lt;span class="c1"&gt;# this specialty's own criteria&lt;/span&gt;
    &lt;span class="nf"&gt;trace_span&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;trace&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"return"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"from"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"result"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"passed"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;passed&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;passed&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;pick_agent&lt;/code&gt; is your rule for which specialty owns the task. &lt;code&gt;call_agent&lt;/code&gt; runs that specialty with its own instructions, and &lt;code&gt;spec.check&lt;/code&gt; scores the result on that specialty's criteria. &lt;code&gt;trace_span&lt;/code&gt; records who was called, what was sent, what came back, and whether it passed. If the researcher returned a thin brief and the coder still shipped code, the log shows which side to fix. If the brief was fine and the next agent never received it, you have a handoff bug. Tightening the coder's prompt will not touch that.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;When is one agent the wrong shape?&lt;/strong&gt;&lt;br&gt;
When the task is several specialties and one set of instructions is holding all of them. Mikiko sized each small agent at one to three tasks, with criteria for that agent's performance. If you cannot name a separate check for a second agent, you do not have a second specialty yet.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Which numbers are worth tracking on a specialist?&lt;/strong&gt;&lt;br&gt;
For a coding agent she pointed to accuracy, runtime efficiency, and how often a suggestion is accepted. She called lines of code a terrible measure. Giovanna's filter is a small set that shows how the multi-agent system moves, including whether similar inputs stay consistent.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What should a handoff log contain?&lt;/strong&gt;&lt;br&gt;
The agent you called, the task you sent, and the result you got back. That covers who was called and what data passed. Giovanna's agentic graph also includes how tools are called. If you cannot replay the message, you cannot separate a bad specialist from a bad handoff.&lt;/p&gt;
&lt;h2&gt;
  
  
  Takeaway
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Stay on one agent while one trace still explains the run.&lt;/li&gt;
&lt;li&gt;Split into small agents when the work is separate specialties. Mikiko sized each at one to three tasks.&lt;/li&gt;
&lt;li&gt;Give every specialist its own criteria. A single shared score hides which role failed.&lt;/li&gt;
&lt;li&gt;Log each handoff: who was called, what was sent, what came back.&lt;/li&gt;
&lt;li&gt;For coding agents, track accuracy, runtime efficiency, and accepted suggestions. Treat lines of code as a bad metric.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The longer explainer, with the episode clips, is on &lt;a href="https://chainofthought.show/ai-decoded/single-agent-vs-multi-agent-architecture/" rel="noopener noreferrer"&gt;Chain of Thought&lt;/a&gt;. It draws on &lt;a href="https://chainofthought.show/podcast/73-gensparks-bet-ai-agents-become-the-users-of-software/" rel="noopener noreferrer"&gt;this episode&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/ED3m6A7ScKA" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://newsletter.chainofthought.show/subscribe?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=newsletter" rel="noopener noreferrer"&gt;Subscribe to the Chain of Thought newsletter&lt;/a&gt; for new episodes and write-ups like this one.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Drafted with AI assistance from the episode transcripts.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>architecture</category>
      <category>llm</category>
    </item>
    <item>
      <title>Teach your team to review AI code before you roll out an agent</title>
      <dc:creator>Conor Bronsdon</dc:creator>
      <pubDate>Wed, 18 Nov 2026 15:30:08 +0000</pubDate>
      <link>https://dev.to/conorbronsdon/teach-your-team-to-review-ai-code-before-you-roll-out-an-agent-2i8f</link>
      <guid>https://dev.to/conorbronsdon/teach-your-team-to-review-ai-code-before-you-roll-out-an-agent-2i8f</guid>
      <description>&lt;p&gt;It is easy to roll out an AI coding tool with a license and a Slack announcement and leave the training for later. &lt;a href="https://chainofthought.show/guests/rizel-scarlett/" rel="noopener noreferrer"&gt;Rizel Scarlett&lt;/a&gt;, a developer advocate at Block in our January 2025 episode, wants it the other way round. Companies already run new hires through security and harassment training, and she argues they might also need a "how to code with AI" training. Her baseline is short:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Like don't just check-in code, review it just as you would review a co worker's code and stuff like that.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;em&gt;Rizel Scarlett, on Chain of Thought ep 10&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Here is how I'd turn that into a training plan and a merge checklist.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does the agent have access to?
&lt;/h2&gt;

&lt;p&gt;Scarlett works on Goose, Block's open-source, on-machine developer agent. It has a Rust back end and an Electron front end, and you can drive it from the terminal or the app. It connects to your file system and to other tools through Model Context Protocol servers, and Block collaborated with Anthropic on building out MCPs. She describes it as useful for almost any engineering task because it is so extensible.&lt;/p&gt;

&lt;p&gt;That extensibility is the first thing to teach. Before anyone reviews code, they should know what the agent could touch while writing it: which directories, which MCP servers, which credentials sit in the environment. My concern is that a reviewer who only sees the diff may not see what else the agent read or ran. So the first session of the training is an inventory, and the first rule is to start a new agent in a scratch directory with no production data until the team has seen how it behaves.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you keep juniors confident without making them dependent?
&lt;/h2&gt;

&lt;p&gt;Scarlett's favorite argument cuts against the "AI replaces juniors" line. When you are a junior developer, she says, you are scared to ask questions, and sometimes you do not understand the answer when you do. For her, starting out young and as a Black woman engineer added another layer of that fear.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;But I'm like, if I had this when I was a junior developer, this would have made me so much more confident.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;em&gt;Rizel Scarlett, on Chain of Thought ep 10&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Her point is that a junior can ask the tool why it chose something and why a method exists, as many times as they need. It works like a peer programmer. I would build the training around that use: ask why, check the answer against the docs, then write the test yourself. The agent explains; the developer still owns the proof.&lt;/p&gt;

&lt;p&gt;This is also where prompting technique belongs. Show developers few-shot prompting, the prompt-level form of &lt;a href="https://chainofthought.show/glossary/few-shot-learning/" rel="noopener noreferrer"&gt;few-shot learning&lt;/a&gt;: put two or three examples of the code style you want into the prompt. Then show them that a well-prompted answer still needs review.&lt;/p&gt;

&lt;h2&gt;
  
  
  What should the training cover?
&lt;/h2&gt;

&lt;p&gt;Scarlett's list is plain: keep writing tests, keep testing manually, and learn how hallucinations work and how to reduce them. I would teach it in four short sessions:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Access: what the agent can read, run, and change on your machine, and how to scope it.&lt;/li&gt;
&lt;li&gt;Hallucinations: how a model produces plausible code that calls a function that does not exist, and how to catch it.&lt;/li&gt;
&lt;li&gt;Review: read agent output the way you would read a coworker's pull request, line by line.&lt;/li&gt;
&lt;li&gt;Tests: write or extend the tests yourself, then run them and test the change by hand.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://chainofthought.show/glossary/ai-safety/" rel="noopener noreferrer"&gt;AI safety&lt;/a&gt; in a team setting starts with these habits. The guardrails go in before the agent runs, and the review happens before the merge.&lt;/p&gt;

&lt;p&gt;A sketch of the pre-merge procedure you could print on the training's last slide:&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;# Sketch only: a pre-merge procedure for agent-written changes, not a tool.&lt;/span&gt;
&lt;span class="no"&gt;PRE_MERGE&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="s2"&gt;"List the files, servers, and credentials the agent could reach."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"Diff the change against the original file and read every line."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"Check for new dependencies or network calls."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"Run the test suite, then test the behavior by hand."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"Explain the change to a teammate without rereading the prompt."&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;h2&gt;
  
  
  Why does open source change the review job?
&lt;/h2&gt;

&lt;p&gt;Scarlett liked working with GitHub Copilot but did not know what was happening under the hood, and could not have as much influence as she wanted. At Block she can see feedback and push her own code to improve Goose, and so can community members. She also calls open source "authentic marketing": contributors talk about the project at conferences because they feel part of it.&lt;/p&gt;

&lt;p&gt;For a team adopting an open-source agent, that has a practical side. You can read the code and propose fixes, and community contributions keep changing it. Treat each update like any other dependency bump: read the release notes, rerun your checks, and do not let an agent upgrade itself into production. The &lt;a href="https://chainofthought.show/topics/open-source-ai/" rel="noopener noreferrer"&gt;open source AI&lt;/a&gt; topic page has more conversations on how these projects grow.&lt;/p&gt;

&lt;h2&gt;
  
  
  Checklist
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Run a "how to code with AI" session for every new hire, next to security onboarding.&lt;/li&gt;
&lt;li&gt;Inventory what an agent can reach before anyone reviews what it wrote.&lt;/li&gt;
&lt;li&gt;Review agent output like a coworker's pull request, line by line.&lt;/li&gt;
&lt;li&gt;Keep writing tests and testing by hand; do not take the agent's word for it.&lt;/li&gt;
&lt;li&gt;Treat open-source agent updates as dependency upgrades with their own review.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The full conversation, with the transcript, is on &lt;a href="https://chainofthought.show/podcast/10-ai-open-source-and-developer-safety-blocks-rizel-scarlett/" rel="noopener noreferrer"&gt;Chain of Thought&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://newsletter.chainofthought.show/subscribe?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=newsletter" rel="noopener noreferrer"&gt;Subscribe to the Chain of Thought newsletter&lt;/a&gt; for new episodes and write-ups like this one.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Drafted with AI assistance from the episode transcripts.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>opensource</category>
      <category>codereview</category>
    </item>
    <item>
      <title>Resolve entities before your agent calls the API</title>
      <dc:creator>Conor Bronsdon</dc:creator>
      <pubDate>Tue, 17 Nov 2026 20:30:11 +0000</pubDate>
      <link>https://dev.to/conorbronsdon/resolve-entities-before-your-agent-calls-the-api-7cf</link>
      <guid>https://dev.to/conorbronsdon/resolve-entities-before-your-agent-calls-the-api-7cf</guid>
      <description>&lt;p&gt;A lookup poisons an agent when the API cannot filter on the field the task needs, so the model pages through records and fills the window with noise. Match the entity and materialize those rows before the model reasons, then pass only the match. In &lt;a href="https://chainofthought.show/guests/michel-tricot/" rel="noopener noreferrer"&gt;Michel Tricot&lt;/a&gt;'s Gong demo, Claude was already at about 16K tokens at startup, before he asked it for one user's Gong calls since February 1st.&lt;/p&gt;

&lt;p&gt;Tricot, CEO and co-founder of Airbyte, covered this on Chain of Thought in March 2026. He was showing Airbyte's agent engine, then in public beta, and a context store in front of it: source data replicated into a store the agent can search, with a direct API read reserved for when you already know the object id.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you tell poisoned context from a weak model?
&lt;/h2&gt;

&lt;p&gt;Inspect the tool payload before you retune the prompt. Extra or mismatched rows make a capable model answer badly, because the model reasons over what you fed it. Warehouses exist so analysis does not depend on a live API call. Rate limits show up, and many endpoints do not offer the access the question needs. An agent wired straight at those endpoints inherits the same limits, then stuffs the extra pages into context.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;you cannot run an analysis by connecting through an API. you will have issues with API rate limits, you will have issues with, hey, maybe they don't offer the right way to access that data.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;em&gt;Michel Tricot, CEO and co-founder of Airbyte, on &lt;a href="https://chainofthought.show/podcast/52-context-poisoning-is-killing-your-ai-agents-how-to-stop-it/" rel="noopener noreferrer"&gt;Chain of Thought ep 52&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;


&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
        &lt;div class="c-embed__cover"&gt;
          &lt;a href="https://podcasts.apple.com/us/podcast/context-poisoning-is-killing-your-ai-agents-how-to/id1776879655?i=1000757254361" class="c-link align-middle" rel="noopener noreferrer"&gt;
            &lt;img alt="" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fis1-ssl.mzstatic.com%2Fimage%2Fthumb%2FPodcasts211%2Fv4%2F9d%2F7f%2Fba%2F9d7fbaed-8196-3646-515f-84b18f34c961%2Fmza_15848206483333191892.jpg%2F1200x1200ECA.PESS01-60.jpg%3FimgShow%3DPodcasts221%2Fv4%2Fee%2Ff2%2F1b%2Feef21b19-f090-f9b4-fc85-ffc84f80fad7%2Fmza_6548396687882944514.jpg" height="800" class="m-0" width="800"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="c-embed__body"&gt;
        &lt;h2 class="fs-xl lh-tight"&gt;
          &lt;a href="https://podcasts.apple.com/us/podcast/context-poisoning-is-killing-your-ai-agents-how-to/id1776879655?i=1000757254361" rel="noopener noreferrer" class="c-link"&gt;
            Context Poisoning is Killing Y… - Chain of Thought | AI Agents, Infrastructure &amp;amp; Engineering - Apple Podcasts
          &lt;/a&gt;
        &lt;/h2&gt;
          &lt;p class="truncate-at-3"&gt;
            Podcast Episode · Chain of Thought | AI Agents, Infrastructure &amp;amp; Engineering · March 25 · 44m
          &lt;/p&gt;
        &lt;div class="color-secondary fs-s flex items-center"&gt;
            &lt;img alt="favicon" class="c-embed__favicon m-0 mr-2 radius-0" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fpodcasts.apple.com%2Fassets%2Ffavicon%2Ffavicon-32.png" width="32" height="32"&gt;
          podcasts.apple.com
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;Gate every tool result before you trust the answer:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Write down the filter the question implies (user, company, date, or status).&lt;/li&gt;
&lt;li&gt;Check whether the API supports that filter. If it does not, expect pagination.&lt;/li&gt;
&lt;li&gt;Count how many returned rows match the entity. If almost none do, mark the run poisoned and stop.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Why does one user lookup turn into pages of API calls?
&lt;/h2&gt;

&lt;p&gt;The source API often has no filter for the person in the question. Tricot configured a Gong connector and exposed it through MCP. He asked for one user's calls since February 1st. Through the API alone, that lookup paginates, because Gong cannot filter by user.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;when you want to search and get calls for a particular users, well, you cannot filter by the user. So you end up pulling like lists and pages and pages of calls&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;em&gt;Michel Tricot, CEO and co-founder of Airbyte, on &lt;a href="https://chainofthought.show/podcast/52-context-poisoning-is-killing-your-ai-agents-how-to-stop-it/" rel="noopener noreferrer"&gt;Chain of Thought ep 52&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;MCP does not remove that limit. He called it an interconnect, a way to connect an LLM to an external system. A thin wrapper still returns records the task does not need, and those records pollute the window. Replicate into a store and search that copy. Hourly is the default he described, and faster syncs are available on other plans.&lt;/p&gt;

&lt;p&gt;Keep the live API for one object once the id is known. On Stripe, Tricot said that without the id you walk every user, but if the cache says Conor is ID 123 you fetch that id. Put retrieval in its own step so the answering step sees those rows, not the whole block.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you resolve the same company across Zendesk and Salesforce?
&lt;/h2&gt;

&lt;p&gt;Normalize names and join in your own code, then give the agent the joined rows. Tricot used Airbyte as the example. Zendesk might hold a misspelling or "Airbyte Inc." while Salesforce holds "Airbyte". Hitting both APIs to learn that mapping may fail: the API might kick you off, and it might not offer fuzzy search or embeddings.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;maybe it's misspelled on Zendesk, or maybe someone put Airbyte Inc., but on Salesforce it's called Airbyte. doing this type of correlation by just hitting APIs, your agent is in for a treat here. Because it might not work, the API might kick you off, the API might not have fuzzy searches, etc.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;em&gt;Michel Tricot, CEO and co-founder of Airbyte, on &lt;a href="https://chainofthought.show/podcast/52-context-poisoning-is-killing-your-ai-agents-how-to-stop-it/" rel="noopener noreferrer"&gt;Chain of Thought ep 52&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;A minimal sketch to adapt, not a drop-in library.&lt;/em&gt;&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="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;normalize_company&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;cleaned&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;" "&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&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="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;replace&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;replace&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;","&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;split&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;for&lt;/span&gt; &lt;span class="n"&gt;suffix&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;" inc"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;" llc"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;" ltd"&lt;/span&gt;&lt;span class="p"&gt;)&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;cleaned&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;endswith&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;suffix&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;cleaned&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;cleaned&lt;/span&gt;&lt;span class="p"&gt;[&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;suffix&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="nf"&gt;strip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;cleaned&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;_resolve&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;left&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;right&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;paired&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
        &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;b&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;a&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;left&lt;/span&gt;
        &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;right&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"domain"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"domain"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"domain"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="k"&gt;if&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;paired&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;paired&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="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="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;paired&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="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="k"&gt;if&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;left&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="ow"&gt;and&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;right&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;left&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="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;right&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="ow"&gt;not&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"domain"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"domain"&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;return&lt;/span&gt; &lt;span class="n"&gt;left&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;right&lt;/span&gt;  &lt;span class="c1"&gt;# name-only match, no conflicting evidence&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;  &lt;span class="c1"&gt;# conflicting domains or several candidates: send to review&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;join_accounts&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;zendesk_rows&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;salesforce_rows&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;grouped&lt;/span&gt; &lt;span class="o"&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;for&lt;/span&gt; &lt;span class="n"&gt;source_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;rows&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"zendesk"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;zendesk_rows&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="s2"&gt;"salesforce"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;salesforce_rows&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="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;rows&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;key&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;normalize_company&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"company"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="n"&gt;slot&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;grouped&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setdefault&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
                &lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"company_key"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"zendesk"&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="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"salesforce"&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="p"&gt;}&lt;/span&gt;
            &lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="n"&gt;slot&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;source_name&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
                &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"company"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"domain"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"domain"&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="n"&gt;resolved&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;needs_review&lt;/span&gt; &lt;span class="o"&gt;=&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="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;slot&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;grouped&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;values&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;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;slot&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"zendesk"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;slot&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"salesforce"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;continue&lt;/span&gt;
        &lt;span class="n"&gt;picked&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;_resolve&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;slot&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"zendesk"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;slot&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"salesforce"&lt;/span&gt;&lt;span class="p"&gt;]&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;picked&lt;/span&gt; &lt;span class="k"&gt;is&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;needs_review&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;slot&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="k"&gt;continue&lt;/span&gt;
        &lt;span class="n"&gt;resolved&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
            &lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="s2"&gt;"company_key"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;slot&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"company_key"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="s2"&gt;"zendesk"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;picked&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="p"&gt;,&lt;/span&gt;
                &lt;span class="s2"&gt;"salesforce"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;picked&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&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="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;resolved&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;needs_review&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Call &lt;code&gt;join_accounts&lt;/code&gt; before &lt;code&gt;call_model&lt;/code&gt; and pass only &lt;code&gt;resolved&lt;/code&gt; as context. Groups with conflicting domains or several candidates land in &lt;code&gt;needs_review&lt;/code&gt;, not in front of the model. "Airbyte Inc." and "Airbyte" share one key, with both ids attached. The sketch only strips a few suffixes. A typo that misses the key still needs review. Fuzzy matching on structured data already works well, Tricot said, because metadata on a transcript is enough to pull the right one. A RAG chunk needs the same kind of note: the call was about pricing, and who was on it. Without that annotation, reliable filtering on those fields fails and retrieval quality can drop.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;How do I spot context poisoning in a trace?&lt;/strong&gt;&lt;br&gt;
Look for pages of records when the question named one entity, or a filter the API does not support. Gong has no user filter, so the client pulls pages of calls. If those pages fill the window, fix the lookup before you swap models.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is chunk-and-embed enough on its own?&lt;/strong&gt;&lt;br&gt;
Attach the structured fields you will filter on. He walked through a pricing conversation annotated with who was on the call. Without that metadata, search misses. Fuzzy matching can carry structured records, with embeddings added later for unstructured text.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Should memory live in a separate system from other context?&lt;/strong&gt;&lt;br&gt;
He tries not to separate them too early. Memory is a form of context: data that lands in your agent and that you can query and update. The window over which it is remembered may differ.&lt;/p&gt;
&lt;h2&gt;
  
  
  Takeaway
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Confirm the API can filter on the field in the question. If it cannot, do not send the agent off to page.&lt;/li&gt;
&lt;li&gt;Replicate source data on a schedule. Hourly was the default he described. Search that copy to resolve the entity.&lt;/li&gt;
&lt;li&gt;Normalize company names and join systems in code. Pass the joined ids, not both raw extracts.&lt;/li&gt;
&lt;li&gt;When you need a fresh record, fetch one object by id from the API.&lt;/li&gt;
&lt;li&gt;Keep retrieval in its own step so unused pages stay out of the answer window.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The full conversation, with the transcript, is on &lt;a href="https://chainofthought.show/podcast/52-context-poisoning-is-killing-your-ai-agents-how-to-stop-it/" rel="noopener noreferrer"&gt;Chain of Thought&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/tYJmgpIEd-Y" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://newsletter.chainofthought.show/subscribe?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=newsletter" rel="noopener noreferrer"&gt;Subscribe to the Chain of Thought newsletter&lt;/a&gt; for new episodes and write-ups like this one.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Drafted with AI assistance from the episode transcripts.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>rag</category>
      <category>architecture</category>
    </item>
    <item>
      <title>Make pages browser agents can click through</title>
      <dc:creator>Conor Bronsdon</dc:creator>
      <pubDate>Mon, 16 Nov 2026 20:30:07 +0000</pubDate>
      <link>https://dev.to/conorbronsdon/make-pages-browser-agents-can-click-through-5c8a</link>
      <guid>https://dev.to/conorbronsdon/make-pages-browser-agents-can-click-through-5c8a</guid>
      <description>&lt;p&gt;Most websites will never expose APIs for &lt;a href="https://chainofthought.show/topics/ai-agents/" rel="noopener noreferrer"&gt;AI agents&lt;/a&gt;. &lt;a href="https://chainofthought.show/guests/dhruv-batra/" rel="noopener noreferrer"&gt;Dhruv Batra&lt;/a&gt;, co-founder and chief scientist of Yutori, argues that infrastructure changes slowly. The head of the distribution, the top 50, 100, 500 sites holding enterprise and customer data, has the incentive and maturity to build agent pathways or charge tolls for access. The long tail does not. He points to roughly 20,000 to 40,000 school district sites in the US, plus government offices and hundreds of thousands of e-commerce pages, each built for people.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The Golden Gate Park tennis court reservation system website was written by some indie developer. That website has a perfectly functioning calendar view reservation system. It's not going to reinvent itself overnight.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;em&gt;Dhruv Batra, co-founder and chief scientist of Yutori, on Chain of Thought episode 63&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;If you run a site in that long tail, I would make the page workable for a browser agent that acts like a person. Batra's model is pixels in, clicks out. If a machine can perceive the screen and click the buttons, that capability is the API. Some of the holdout, in his words, is socio-political, and pointing coding agents at these sites does not solve that part. Rollout across distributed human organizations takes time. He reaches for autonomous driving: dedicated sensor lanes would make self-driving easy, and that infrastructure is too expensive, so people and autonomous cars share the roads. Thirty years of browsers and websites made rich visual information efficient for the human brain. That shared roadway is what agents will use for a long time.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why would I skip a separate agent API?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://chainofthought.show/glossary/tool-use/" rel="noopener noreferrer"&gt;Tool use&lt;/a&gt;, also called function calling, is how a model outputs a structured request, such as a function name plus arguments, and your code runs it and returns the result. On its own, a language model can only produce text. Tool use is how it acts. Open standards such as the Model Context Protocol exist so the same tools can work across models and apps.&lt;/p&gt;

&lt;p&gt;That design assumes the site exposes a structured endpoint. Batra's bet for the long tail is different. The human-visible screen is the interface, and the site does not have to be rebuilt first. He says the DOM and the accessibility tree are inconsistent, because there is no central owner of the web and no enforced standard. People propose standards, then another standard, and buttons are labeled one way on one site and another way on the next. The source of truth is what a person sees.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;If a machine can perceive pixels and click buttons and do the things and report to you that yes, I'm able to do it. There, that's your API.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;em&gt;Dhruv Batra, co-founder and chief scientist of Yutori, on Chain of Thought episode 63&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What should the agent be able to see and click?
&lt;/h2&gt;

&lt;p&gt;If you can look at a screenshot and know which button to click, that is the operation a browser agent has to perform. I would make that test easy.&lt;/p&gt;

&lt;p&gt;Use a real button, link, or form control, and put the action in visible text. Keep the words stable. "Reserve court" should stay "Reserve court" on every visit. Keep the label in the control. A placeholder that disappears when someone types is a weak label.&lt;/p&gt;

&lt;p&gt;Put the result on the screen. Batra's shipping question is the flow I would design against. He asks what it costs to ship a product to a house, which is separate from the listed price. On many shops that figure shows up only after you add the item to the cart and enter a zip code. There is no API for the question. The agent has to do what a person does, then read the page. If the answer never appears in the document, a pixel agent cannot report that it finished.&lt;/p&gt;

&lt;p&gt;Yutori's Navigator N1.5 can write JavaScript on the fly and fill several fields in one action. The pixels stay the source of truth. Stable ids, names, and label text give that action something steady to aim at. The page contract below is my sketch.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Sketch only. Not a guest's code and not a vendor SDK.&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;reserveCourt&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;fields&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="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"court"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Court"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;control&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"select"&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="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"day"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Date"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;control&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"date"&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="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;submitLabel&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Reserve court"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="c1"&gt;// Show this string in the document after submit.&lt;/span&gt;
  &lt;span class="n"&gt;resultText&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Reservation confirmed"&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;p&gt;Match those strings in the HTML a person sees. After submit, render &lt;code&gt;resultText&lt;/code&gt; in the page. A success code that never becomes text on screen is invisible to this kind of agent.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do I keep the click path short?
&lt;/h2&gt;

&lt;p&gt;Batra argues that a browser agent runs a perceive-act loop over long trajectories. Each step has to be cheap and fast, or the task stops making economic sense. Yutori's Navigator is post-trained in-house for browser and computer use. On the episode he said it was slightly more accurate than Opus 4.7 and GPT-5.5 on standard browser-use benchmarks, and he declined to make much of that gap. He emphasized efficiency: 2 to 3 times faster and 4 to 5 times cheaper, because the model is small and light. N1.5 writes JavaScript so one compound action can replace a run of clicks. A pixel-only model can sit on a date picker clicking next 12 times to reach a date a year out. The code path can set the date in one step. What makes these tasks hard, in his account, is the long horizon, and a compound action cuts the trajectory.&lt;/p&gt;

&lt;p&gt;You do not pick the model that visits you. You pick how many clicks you require. I would put one primary action on each view, ask for fields in a fixed order, and render the outcome in the document when the step fails as well as when it works. If a form can collect the same facts, skip a hover menu or a slider. On a site you own, treat a label change like a broken contract with every return visitor who only has the screen.&lt;/p&gt;

&lt;h2&gt;
  
  
  When should I declare a browser tool?
&lt;/h2&gt;

&lt;p&gt;Ship the click path first. A declared tool is an experiment on top of it. The &lt;a href="https://chainofthought.show/labs/webmcp/" rel="noopener noreferrer"&gt;WebMCP lab&lt;/a&gt; compares buttons with structured WebMCP browser tools in a fictional agent code-review game. I would copy that scope: one task, two interfaces, and the buttons still complete the task.&lt;/p&gt;

&lt;p&gt;Chrome's WebMCP early preview is the lighter middle path in this story. A site can describe its forms and actions to agents without building a separate API. Batra's argument applies there too. It still asks each site to do the work, and most sites will not. Declare only actions you will keep aligned with the visible controls: the same field names, the same button text, the same result string. If the tool is absent, the page should still work. Where an API already exists, use it. Batra's product uses APIs when they are there, and browser agents for the long tail. A site you control can offer the screen for certain, and a description of that screen only where you will maintain it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Checklist
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Assume the long tail, including sites you depend on, will not ship an agent API.&lt;/li&gt;
&lt;li&gt;Put each important action in visible text on a real control, and keep that text stable.&lt;/li&gt;
&lt;li&gt;Render each step's result in the page, in words a screenshot can show.&lt;/li&gt;
&lt;li&gt;Shorten the trajectory: one form and one primary button, when the task allows it.&lt;/li&gt;
&lt;li&gt;If you declare a browser tool, keep the human click path working on its own.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The longer explainer, with the episode clips, is on &lt;a href="https://chainofthought.show/ai-decoded/why-wont-the-web-get-apis-for-ai-agents/" rel="noopener noreferrer"&gt;Chain of Thought&lt;/a&gt;. It draws on &lt;a href="https://chainofthought.show/podcast/63-most-of-the-web-will-never-get-apis-for-ai-agents-dhruv-batra/" rel="noopener noreferrer"&gt;this episode&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/m7yTwkzscWk" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://newsletter.chainofthought.show/subscribe?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=newsletter" rel="noopener noreferrer"&gt;Subscribe to the Chain of Thought newsletter&lt;/a&gt; for new episodes and write-ups like this one.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Drafted with AI assistance from the episode transcripts.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>webdev</category>
      <category>html</category>
    </item>
    <item>
      <title>When to use an open model vs a proprietary LLM</title>
      <dc:creator>Conor Bronsdon</dc:creator>
      <pubDate>Mon, 16 Nov 2026 15:30:08 +0000</pubDate>
      <link>https://dev.to/conorbronsdon/when-to-use-an-open-model-vs-a-proprietary-llm-4bmh</link>
      <guid>https://dev.to/conorbronsdon/when-to-use-an-open-model-vs-a-proprietary-llm-4bmh</guid>
      <description>&lt;p&gt;Pick the model from the constraint the task cannot drop. Open weights fit when you need control over training, control over how your data is used, a zero data retention policy, on-prem hardware, or a specific size and speed. Proprietary models fit when vision quality, time to a first working call, or quality on that task matters more, and &lt;a href="https://chainofthought.show/guests/aishwarya-srinivasan/" rel="noopener noreferrer"&gt;Aishwarya Srinivasan&lt;/a&gt; marks DeepSeek V3 as the point where the performance and price ratio of that open, customized path went up.&lt;/p&gt;

&lt;p&gt;Aishwarya Srinivasan was then Head of AI Developer Relations at Fireworks AI. That conversation aired in October 2025 on &lt;a href="https://chainofthought.show/podcast/42-architecting-ai-agents-the-shift-from-models-to-systems-aishwarya-srinivasan/" rel="noopener noreferrer"&gt;Chain of Thought episode 42&lt;/a&gt;. &lt;a href="https://chainofthought.show/guests/angie-jones/" rel="noopener noreferrer"&gt;Angie Jones&lt;/a&gt; was then VP of Engineering for AI Tools and Enablement at Block. That conversation aired in January 2026 on &lt;a href="https://chainofthought.show/podcast/48-how-block-deployed-ai-agents-to-12-000-employees-in-8-weeks-w-mcp-angie-jones/" rel="noopener noreferrer"&gt;episode 48&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you decide open weights or a proprietary API?
&lt;/h2&gt;

&lt;p&gt;Name the constraint first, then the model. Srinivasan said that after DeepSeek V3, the performance and price ratio of building in a cost efficient, customized way, with full control on an open source model, went up compared with a proprietary model. R1, then V3.1, followed. The jobs where she sees people switch:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Control over how the model is trained.&lt;/li&gt;
&lt;li&gt;Control over how data pushed into the system is used.&lt;/li&gt;
&lt;li&gt;A zero data retention policy.&lt;/li&gt;
&lt;li&gt;Running on prem.&lt;/li&gt;
&lt;li&gt;Customizing size and speed.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Teams still keep proprietary models. Developer experience, and how easy it is to get up and running, still pulls people toward closed APIs. On vision, proprietary models give really good performance, and vision is harder for the open models out there. Public benchmarks still show some performance gap. Enterprises and startups she watches usually do not run open models out of the box. They use supervised fine tuning, reinforcement learning fine tuning, or synthetic data when they lack a dataset.&lt;/p&gt;

&lt;p&gt;Policies differ by provider, but in most cases, as she understands it, a proprietary model does not come with a zero data retention policy.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;after the DeepSeek v3 model came, we did see that inflection point where the performance and price ratio of what you can really build at a very cost efficient and a very customized manner, something that you have full control on with an open source model compared to a proprietary model, it just went up.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;em&gt;Aishwarya Srinivasan, then Head of AI Developer Relations at Fireworks AI, on &lt;a href="https://chainofthought.show/podcast/42-architecting-ai-agents-the-shift-from-models-to-systems-aishwarya-srinivasan/" rel="noopener noreferrer"&gt;Chain of Thought ep 42&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;


&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
        &lt;div class="c-embed__cover"&gt;
          &lt;a href="https://podcasts.apple.com/us/podcast/architecting-ai-agents-the-shift-from-models-to/id1776879655?i=1000730807475" class="c-link align-middle" rel="noopener noreferrer"&gt;
            &lt;img alt="" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fis1-ssl.mzstatic.com%2Fimage%2Fthumb%2FPodcasts211%2Fv4%2F12%2F89%2F8b%2F12898b0b-ea0e-8f10-e50c-5ea0a1ff15d0%2Fmza_564927083176652728.jpg%2F1200x1200ECA.PESS01-60.jpg%3FimgShow%3DPodcasts221%2Fv4%2Fee%2Ff2%2F1b%2Feef21b19-f090-f9b4-fc85-ffc84f80fad7%2Fmza_6548396687882944514.jpg" height="800" class="m-0" width="800"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="c-embed__body"&gt;
        &lt;h2 class="fs-xl lh-tight"&gt;
          &lt;a href="https://podcasts.apple.com/us/podcast/architecting-ai-agents-the-shift-from-models-to/id1776879655?i=1000730807475" rel="noopener noreferrer" class="c-link"&gt;
            Architecting AI Agents: The Sh… - Chain of Thought | AI Agents, Infrastructure &amp;amp; Engineering - Apple Podcasts
          &lt;/a&gt;
        &lt;/h2&gt;
          &lt;p class="truncate-at-3"&gt;
            Podcast Episode · Chain of Thought | AI Agents, Infrastructure &amp;amp; Engineering · October 8, 2025 · 53m
          &lt;/p&gt;
        &lt;div class="color-secondary fs-s flex items-center"&gt;
            &lt;img alt="favicon" class="c-embed__favicon m-0 mr-2 radius-0" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fpodcasts.apple.com%2Fassets%2Ffavicon%2Ffavicon-32.png" width="32" height="32"&gt;
          podcasts.apple.com
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;


&lt;h2&gt;
  
  
  How do you route several models inside one company?
&lt;/h2&gt;

&lt;p&gt;Keep a hosting layer and a default per job, and leave room to change the default. Strengths differ. Anthropic's Claude models are fantastic at software development, so Block's engineers typically stick there. Job functions that rely more on reasoning might want a GPT model. Databricks provides their model hosting service, with Gemini models from Google, GPT models from OpenAI, and the Anthropic models.&lt;/p&gt;

&lt;p&gt;Local open source models are a fan favorite in some niche circles, and they run on the person's machine. Frontier models in the cloud use the provider's resources. For agentic software using some local open models, Jones said larger models were needed, prompting some engineers to upgrade their machines. She called that group a very small percentage.&lt;/p&gt;

&lt;p&gt;Goose, Block's open source agent, is model agnostic because Block is not selling the tokens, so they do not have a dog in the fight. Inside one workflow, a person can switch between GPT and Claude.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;You know, Conor, no one has won this race yet. Um, in any given week, if you say what's the best model out, it'll be from a different provider, right? And so it would be foolish of us to kind of lock in on one specific one.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;em&gt;Angie Jones, then VP of Engineering for AI Tools and Enablement at Block, on &lt;a href="https://chainofthought.show/podcast/48-how-block-deployed-ai-agents-to-12-000-employees-in-8-weeks-w-mcp-angie-jones/" rel="noopener noreferrer"&gt;Chain of Thought ep 48&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What check stops a benchmark from picking the model for you?
&lt;/h2&gt;

&lt;p&gt;Write down the user step and the failure you will measure before you bind a model id. Srinivasan said you cannot look at a model benchmark, decide it is good enough, and tie models together. She can break any model with quirky, twisted prompts. Most of the use cases she sees do not run on one particular model.&lt;/p&gt;

&lt;p&gt;At a Fireworks Dev Day, Notion's head of AI engineering said parts of Notion AI needed latency and response quality they could not get from proprietary models. They fine tuned the models on the Fireworks AI platform and ran them at very low latency and still used a combination of models.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;A minimal sketch to adapt, not a drop-in library.&lt;/em&gt;&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="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;route_model&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;task&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="s2"&gt;"""Hypothetical helper. Labels are local names, not a vendor API."""&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;task&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;control_training&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;task&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;control_data_use&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;task&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;zero_retention&lt;/span&gt;
            &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;task&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;on_prem&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;task&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;tune_size_or_speed&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;"open_weights"&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;task&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;needs_vision&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;task&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;needs_fast_setup&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;"proprietary_api"&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;task&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;job&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"software"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;"software_default"&lt;/span&gt;  &lt;span class="c1"&gt;# Block engineers: Anthropic models&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;task&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;job&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"reasoning"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;"reasoning_default"&lt;/span&gt;  &lt;span class="c1"&gt;# some roles may want GPT&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;"unset"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Should we standardize on one model provider?&lt;/strong&gt;&lt;br&gt;
Jones said no one has won this race yet, and that it would be foolish to lock in on one specific provider. In any given week the best model can come from a different provider, and different jobs want different strengths.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What changed with DeepSeek V3?&lt;/strong&gt;&lt;br&gt;
Srinivasan called V3 an inflection point in the performance and price ratio for cost-efficient, customized, fully controlled open models versus proprietary ones. R1 and V3.1 followed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Are local open models the right default for agent work?&lt;/strong&gt;&lt;br&gt;
Some people use them, depending on their hardware. Jones said agentic software needs the larger local models, and only a very small percentage of engineers had upgraded their machines to run them. Cloud frontier models use the provider's machines.&lt;/p&gt;
&lt;h2&gt;
  
  
  Takeaway
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Write the binding constraint on the task before you choose a model family.&lt;/li&gt;
&lt;li&gt;Use open weights when you must control training, data use, retention, hardware, size, or speed.&lt;/li&gt;
&lt;li&gt;Use a proprietary model when vision, setup time, or quality on that task is the binding constraint.&lt;/li&gt;
&lt;li&gt;Keep more than one provider behind the hosting layer, with a default a person can change.&lt;/li&gt;
&lt;li&gt;Revisit the route when a new open model moves the price and quality line.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The longer explainer, with the episode clips, is on &lt;a href="https://chainofthought.show/ai-decoded/open-source-vs-proprietary-llms/" rel="noopener noreferrer"&gt;Chain of Thought&lt;/a&gt;. It draws on &lt;a href="https://chainofthought.show/podcast/48-how-block-deployed-ai-agents-to-12-000-employees-in-8-weeks-w-mcp-angie-jones/" rel="noopener noreferrer"&gt;this episode&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/O7etCBod2IY" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://newsletter.chainofthought.show/subscribe?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=newsletter" rel="noopener noreferrer"&gt;Subscribe to the Chain of Thought newsletter&lt;/a&gt; for new episodes and write-ups like this one.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Drafted with AI assistance from the episode transcripts.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>opensource</category>
      <category>architecture</category>
    </item>
  </channel>
</rss>
