<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Pradeep on Medium]]></title>
        <description><![CDATA[Stories by Pradeep on Medium]]></description>
        <link>https://medium.com/@pradeep11?source=rss-6a961888bc02------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*B7wI1nrbIqrKiu7ccqmeQQ.jpeg</url>
            <title>Stories by Pradeep on Medium</title>
            <link>https://medium.com/@pradeep11?source=rss-6a961888bc02------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 19:28:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pradeep11/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Open-Weight vs. Open-Source AI: What “Open” Actually Means]]></title>
            <link>https://pradeep11.medium.com/open-weight-vs-open-source-ai-what-open-actually-means-6cf122645c7a?source=rss-6a961888bc02------2</link>
            <guid isPermaLink="false">https://medium.com/p/6cf122645c7a</guid>
            <dc:creator><![CDATA[Pradeep]]></dc:creator>
            <pubDate>Wed, 26 Aug 2026 07:16:05 GMT</pubDate>
            <atom:updated>2026-08-26T07:16:05.222Z</atom:updated>
            <content:encoded><![CDATA[<h4>Why Gemma, Llama, DeepSeek and Qwen are all called “open source” — and why the answer depends on what exactly was released</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zgpQC_dh9ZZWRe6l6FFSxw.png" /></figure><h4>I used to think these models were open source</h4><p>For a long time, I assumed <strong>Gemma, Llama, DeepSeek, Qwen and similar models were simply open-source AI models.</strong></p><p>If the weights were available, I could download them, run them locally, fine-tune them, and build applications around them.</p><p>So in my head, the logic was pretty straightforward:</p><p><strong>If I can download the model and use it myself, it’s open source.</strong></p><p>I don’t think I was alone in thinking that.</p><p>I’ve seen the same terminology used across AI tutorials, YouTube videos, blog posts, documentation and social media.</p><p>So I never really questioned it.</p><p>Until I looked more closely at <strong>Google’s Gemma 4 model card.</strong></p><p>Google describes Gemma as <strong>a family of open models</strong>.</p><p>But in the same description, Google specifically says that the release includes <strong>open-weight models</strong>.</p><p>And the model card lists the license as <strong>Apache 2.0</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A244ZHaBXqRRy-c6KAyMBA.png" /></figure><p>That made me pause.</p><p>Why say <strong>“open models”</strong> and then specifically <strong>“open-weight models”</strong>?</p><p>Were those just two ways of saying the same thing?</p><p>Or was there actually a distinction I had been missing?</p><p>So I started looking into it.</p><p>And that’s where things got interesting.</p><h4>First, what is an open-weight model?</h4><p>Let’s start with the simplest part.</p><p>An <strong>open-weight model</strong> is a model where its trained parameters, or weights, are made available under some set of terms.</p><p>That can allow you to:</p><ul><li>Download the model</li><li>Run it locally</li><li>Deploy it yourself</li><li>Fine-tune it</li><li>Quantize it</li><li>Build applications around it</li></ul><p>But here’s the important part:</p><p><strong>Having access to the weights doesn’t automatically tell you everything about the model’s legal or technical openness.</strong></p><p>You still need to ask:</p><ul><li>What license applies?</li><li>What uses are permitted?</li><li>Can modified versions be redistributed?</li><li>Are there restrictions on commercial use?</li><li>What information is available about the training data?</li><li>Is the relevant training code available?</li></ul><p>So <strong>open-weight tells you something important about what was released.</strong></p><p>It doesn’t, by itself, answer every question about whether the AI system is Open Source AI.</p><h4>Then what does Open Source AI mean?</h4><p>This is where the Open Source Initiative’s <strong>Open Source AI Definition, or OSAID</strong>, becomes important.</p><p>OSI released version 1.0 of the definition in October 2024.</p><p>The definition carries over the core freedoms associated with open source:</p><p><strong>Use. Study. Modify. Share.</strong></p><p>But AI creates a problem that traditional software doesn’t have in quite the same way.</p><p>With ordinary software, the source code is generally the key artifact needed to study and modify the program.</p><p>With machine-learning systems, there are additional artifacts.</p><p>OSI’s OSAID says the preferred form for modifying a machine-learning system includes three major categories:</p><p><strong>Data Information</strong></p><p>Information detailed enough for a skilled person to build a substantially equivalent system, including information about provenance, scope, characteristics, selection, labeling, processing and filtering.</p><p><strong>Code</strong></p><p>The complete source code used to train and run the system, including relevant data-processing, filtering, training, validation, testing and inference code.</p><p><strong>Parameters</strong></p><p>The model parameters, including weights and other configuration settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LvtBc8Fj-Pj4OH49Lkyycg.png" /></figure><p>This gives us a much better mental model:</p><p><strong>Open-weight:</strong><br> The trained model parameters are available.</p><p><strong>Open Source AI:</strong><br> The AI system is made available with the relevant materials and legal freedoms needed to use, study, modify and share it.</p><p>And there’s an important detail here.</p><p>OSI explicitly says that <strong>“Open Source models” and “Open Source weights” must include the data information and code used to derive those parameters.</strong></p><p>That’s why simply asking:</p><p><strong>“Can I download the weights?”</strong></p><p>isn’t enough.</p><h4>The Gemma case gets interesting</h4><p>Gemma is where this distinction became much more concrete for me.</p><p>The reason is simple:</p><p><strong>Google’s licensing terms changed between Gemma generations.</strong></p><p>Google’s current Gemma Terms page says the listed older Gemma models are covered by the Gemma Terms of Use and explicitly directs readers to a separate license for Gemma 4.</p><p>The current appendix includes Gemma 1, 1.1, 2, 3, 3n and several related models.</p><p>That immediately gives us a useful rule:</p><p><strong>Never ask whether an entire model family is “open” without checking the exact release.</strong></p><h4>What did the older Gemma terms actually contain?</h4><p>The older Gemma terms were not simply a standard permissive software license.</p><p>The archived April 2024 agreement included specific conditions around redistribution.</p><p>For example, anyone redistributing Gemma or model derivatives had to carry forward the use restrictions and provide downstream recipients with the agreement.</p><p>And Section 3.2 contained a particularly interesting provision.</p><p>Google reserved the right to restrict usage <strong>“remotely or otherwise”</strong> when it reasonably believed the agreement had been violated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8347Mih1bXJ9NaVoJ-E7cQ.png" /></figure><p>This is the part I find more useful than a generic “open vs closed” argument.</p><p>It demonstrates something concrete:</p><p><strong>Downloadable weights and unrestricted open-source licensing are not automatically the same thing.</strong></p><p>You can have access to model weights while still being governed by contractual restrictions.</p><p>That’s why the actual license matters.</p><h4>Then Gemma 4 changed the licensing picture</h4><p>Now we get to the interesting part.</p><p>Google’s current Gemma 4 model card lists:</p><p><strong>License: Apache 2.0</strong></p><p>It also explicitly describes the release as containing <strong>open-weight models</strong>.</p><p>Gemma 4 is available in several sizes, including <strong>12B</strong>, alongside E2B, E4B, 26B A4B and 31B.</p><p>So the licensing picture can be simplified like this:</p><p><strong>Earlier Gemma releases</strong></p><p>Custom Gemma Terms</p><p>↓</p><p>Use restrictions</p><p>↓</p><p>Redistribution requirements</p><p>↓</p><p>Remote-restriction language</p><p><strong>Gemma 4</strong></p><p>Separate Gemma 4 license</p><p>↓</p><p>Apache 2.0</p><p>↓</p><p>Open-weight models</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3IAhjjf7jJGtz22hcDGh6A.png" /></figure><p>That is a real change.</p><p>And it leads to a lesson that applies far beyond Gemma:</p><p><strong>“Open” isn’t necessarily a permanent property of a model family.</strong></p><p>Licenses change.</p><p>Releases change.</p><p>Terms change.</p><p>So when someone asks:</p><p><strong>“Is Gemma open source?”</strong></p><p>the first question should actually be:</p><p><strong>“Which Gemma?”</strong></p><h4>But does Apache 2.0 automatically make Gemma 4 Open Source AI?</h4><p><strong>No — not by itself.</strong></p><p>This is probably the most important distinction in the article.</p><p>There are two different questions.</p><h4>Question 1: What license covers the released model?</h4><p>For Gemma 4:</p><p><strong>Apache 2.0.</strong></p><p>Apache 2.0 is an OSI-approved open-source license.</p><p>So the licensing of the released model artifact is substantially different from the custom Gemma terms used for earlier releases.</p><h4>Question 2: Does the complete AI system satisfy the OSAID?</h4><p>That’s broader.</p><p>The OSAID doesn’t stop at asking whether a model has a permissive license.</p><p>It asks whether the preferred form for modifying the AI system includes the relevant <strong>data information, code and parameters</strong>, under appropriate terms.</p><p>Google’s Gemma 4 documentation does provide substantial information about training data and describes preprocessing and filtering.</p><p>But there’s an important distinction:</p><p><strong>Providing information about training data is not the same claim as saying that the complete training dataset has been released.</strong></p><p>And:</p><p><strong>Describing the training process is not automatically the same thing as releasing all of the relevant source code used to process the data and train the model.</strong></p><p>So I would describe Gemma 4 carefully:</p><p><strong>Gemma 4 provides open-weight models under Apache 2.0. Whether the complete AI system satisfies every requirement of the OSAID is a separate question.</strong></p><p>That is more precise than either extreme:</p><p><strong>“Gemma 4 is fully Open Source AI.”</strong></p><p>or:</p><p><strong>“Gemma 4 isn’t open source.”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5b0a1YgVCY0LWbvC0eVNlQ.png" /></figure><p>The important thing is not to turn this into a binary argument where every model must be either “open” or “closed.”</p><p>There are multiple dimensions of openness.</p><h4>And Gemma isn’t the only example</h4><p>Once I started checking individual releases instead of trusting the label attached to them, the same pattern appeared elsewhere.</p><p>But there is one rule worth keeping:</p><p><strong>Don’t classify an entire company or model family without checking the exact release.</strong></p><h4>Llama</h4><p>Llama is probably one of the most famous examples of the terminology problem.</p><p>The models are downloadable, which is why they are often described as open-source models in everyday AI discussions.</p><p>But the Open Source Initiative’s validation work did not find <strong>Llama 2</strong> compliant with the OSAID criteria.</p><p>OSI lists Llama 2 among systems that did not pass because of missing required components and/or incompatible legal agreements.</p><p>The lesson isn’t:</p><p><strong>“Llama is fake.”</strong></p><p>It’s:</p><p><strong>Downloadable weights don’t automatically settle the Open Source AI question.</strong></p><h4>DeepSeek-R1 is a useful counterexample</h4><p>DeepSeek-R1 is where we need to be especially precise.</p><p>DeepSeek itself describes R1 as a <strong>fully open-source model</strong>, and its official repository says that the code repository and model weights are licensed under the <strong>MIT License</strong>.</p><p>The project also explicitly says the R1 series supports commercial use, modifications and derivative works.</p><p>So I would <strong>not</strong> write:</p><p><strong>“DeepSeek-R1 is not open source.”</strong></p><p>That would be misleading.</p><p>A better statement is:</p><p><strong>DeepSeek-R1 is released as open source under the MIT License, but an MIT license on the released code and weights is not, by itself, the complete test for OSAID compliance.</strong></p><p>That’s an important distinction.</p><p>And it shows why this article isn’t about trying to label models as “good” or “bad.”</p><p>It’s about understanding <strong>which claim we’re actually making.</strong></p><h4>Qwen shows why the exact release matters</h4><p>Qwen is another useful example.</p><p>Current Qwen3 documentation states:</p><p><strong>“All our open-weight models are licensed under Apache 2.0.”</strong></p><p>But Qwen has had different licensing arrangements across different releases.</p><p>That’s why a statement such as:</p><p><strong>“Qwen has a user-count restriction.”</strong></p><p>can become misleading if the model version isn’t specified.</p><p>The better habit is:</p><p><strong>Check the exact Qwen release you’re using.</strong></p><p>Model family names are not enough.</p><h4>Mixtral is another useful case</h4><p>Mixtral demonstrates a different part of the problem.</p><p>As part of OSI’s validation work, Mixtral was analyzed against the Open Source AI Definition.</p><p>OSI lists Mixtral among the systems that did not pass the validation phase.</p><p>The important point is not:</p><p><strong>“Every Mistral model is closed.”</strong></p><p>That’s much too broad.</p><p>The useful point is:</p><p><strong>A model’s openness is a property of a specific release, its artifacts and its legal terms.</strong></p><p>Not simply the company name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ycvHyP_gDWYu63cpkFJfog.png" /></figure><h4>So are there actually Open Source AI systems?</h4><p><strong>Yes.</strong></p><p>And this matters.</p><p>Otherwise the conclusion becomes:</p><p><strong>“Everything called open source is actually closed.”</strong></p><p>That’s not true.</p><p>OSI’s validation work identified systems that passed its validation phase, including:</p><p><strong>Pythia — EleutherAI</strong></p><p><strong>OLMo — AI2</strong></p><p><strong>Amber — LLM360</strong></p><p><strong>CrystalCoder — LLM360</strong></p><p><strong>T5 — Google</strong></p><p>OSI also identified systems that could potentially pass if their licensing or legal terms changed, including:</p><p><strong>BLOOM — BigScience</strong></p><p><strong>StarCoder2 — BigCode</strong></p><p><strong>Falcon — TII</strong></p><p>And systems that did not pass the validation phase included:</p><p><strong>Llama 2 — Meta</strong></p><p><strong>Grok — X/Twitter</strong></p><p><strong>Phi-2 — Microsoft</strong></p><p><strong>Mixtral — Mistral</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*TGAjaJbhOdzAdvoaMc-lKg.png" /></figure><p>There’s an important caveat here.</p><p><strong>OSI says these results are part of its validation and definitional process, not permanent certifications of individual models.</strong></p><p>That distinction matters because AI systems change.</p><p>Licenses change.</p><p>Documentation changes.</p><p>New versions are released.</p><p>A classification should therefore always be tied to the <strong>specific system and release being evaluated</strong>.</p><h4>What exactly can be “open”?</h4><p>This is the question I now find much more useful.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4iR7DPYcUuQBCIPaLfBxxA.png" /></figure><p>Think about openness across several dimensions.</p><h4>Weights</h4><p>Are the model parameters available?</p><h4>Code</h4><p>Is the relevant source code available?</p><h4>Data information</h4><p>Is there meaningful information about the data used to train the model?</p><h4>License</h4><p>What legal permissions and restrictions apply?</p><h4>Rights</h4><p>Can you use, study, modify and share the system?</p><p>A model can be open in <strong>one dimension without being open in all of them.</strong></p><p>That’s why:</p><p><strong>“Can I download the weights?”</strong></p><p>is only the beginning of the investigation.</p><h4>My 7-question check before calling an AI model “open source”</h4><p>The next time you see:</p><p><strong>“New Open Source AI Model!”</strong></p><p>I would check these seven things.</p><h4>1. Which exact model or version is this?</h4><p>Gemma 3 ≠ Gemma 4.</p><p>DeepSeek-V3 ≠ DeepSeek-R1.</p><p>Older Qwen ≠ Qwen3.</p><h4>2. Are the weights actually available?</h4><p>If yes, you’re at least dealing with an <strong>open-weight release</strong>.</p><h4>3. What is the actual license?</h4><p>Don’t rely only on the phrase <strong>“open model”</strong> on a marketing page.</p><p>Find the actual license.</p><h4>4. Are there usage restrictions?</h4><p>Look for:</p><ul><li>Prohibited-use policies</li><li>Commercial restrictions</li><li>Field-of-use restrictions</li><li>Geographic restrictions</li><li>Redistribution requirements</li><li>User-count thresholds</li></ul><h4>5. Can modified versions be redistributed?</h4><p>Don’t assume.</p><p>Check the actual terms.</p><h4>6. What training/data information is available?</h4><p>Look for meaningful information about:</p><ul><li>Data sources</li><li>Provenance</li><li>Filtering</li><li>Preprocessing</li><li>Selection</li></ul><h4>7. Is the relevant training/running code available?</h4><p>Could another researcher actually understand and reproduce the relevant process used to derive the model?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iypNcDV6oFsDviRuCB87uw.png" /></figure><p>Here’s the shortcut:</p><p><strong>If all you checked was whether the weights were downloadable, you checked whether it was open-weight.</strong></p><p>You haven’t necessarily established that it is Open Source AI.</p><h4>The terminology problem is bigger than Gemma</h4><p>At this point, it’s tempting to ask:</p><p><strong>“So are all those AI creators who call these models open source wrong?”</strong></p><p>I wouldn’t frame it that way.</p><p>When someone says:</p><p><strong>“Gemma is an open-source model.”</strong></p><p>they may simply mean:</p><p><strong>“You can download the model and run it yourself.”</strong></p><p>That’s common shorthand in AI discussions.</p><p>But the Open Source Initiative uses <strong>Open Source AI</strong> in a much more specific sense.</p><p>So two people can use the same words while answering different questions.</p><p>One person may be asking:</p><p><strong>“Can I download and run this model?”</strong></p><p>Another may be asking:</p><p><strong>“Does this AI system satisfy the Open Source AI Definition?”</strong></p><p>Those are not necessarily the same question.</p><p>And that’s where much of the confusion comes from.</p><h4>The takeaway</h4><p>The question I now find much more useful than:</p><p><strong>“Is this AI model open source?”</strong></p><p>is:</p><h4>“What exactly is open?”</h4><p>Are the:</p><p><strong>Weights open?</strong></p><p><strong>License permissive?</strong></p><p><strong>Training-data information available?</strong></p><p><strong>Relevant code available?</strong></p><p><strong>Modification allowed?</strong></p><p><strong>Redistribution allowed?</strong></p><p>And most importantly:</p><h4>Which exact version are you talking about?</h4><p>Gemma made me notice this distinction.</p><p>Looking at the actual terms made it clearer.</p><p>Looking at OSI’s definition made the distinction broader.</p><p>And checking other models showed that the answer can change from one release to another.</p><p>Gemma 4 is a good example: Google describes it as a family of open models, explicitly says the release includes open-weight models, and lists Apache 2.0.</p><p>DeepSeek-R1 shows another side of the story: DeepSeek itself calls it fully open-source and releases its code and weights under MIT.</p><p>Llama shows that downloadable weights don’t automatically settle the Open Source AI question.</p><p>Qwen shows why the exact release matters.</p><p>And OLMo and Pythia show that broader Open Source AI is possible.</p><p>So the next time you see:</p><p><strong>“New Open Source AI Model!”</strong></p><p>don’t just ask:</p><p><strong>“Can I download it?”</strong></p><p>Ask:</p><h4>“What exactly did they open?”</h4><h4>Sources and Further Reading</h4><p><a href="https://ai.google.dev/gemma/docs/core/model_card_4"><strong>Google — Gemma 4 Model Card</strong></a></p><p><a href="https://ai.google.dev/gemma/terms"><strong>Google — Current Gemma Terms of Use</strong></a></p><p><strong>Google — </strong><a href="https://ai.google.dev/gemma/terms-archive/terms_04_01_24"><strong>Archived Gemma Terms of Use, April 2024</strong></a></p><p><a href="https://opensource.org/ai/open-source-ai-definition"><strong>Open Source Initiative — Open Source AI Definition 1.0</strong></a></p><p><a href="https://opensource.org/ai"><strong>Open Source Initiative — Open Source AI</strong></a></p><p><a href="https://opensource.org/ai/faq"><strong>Open Source Initiative — OSAID FAQ</strong></a></p><p><a href="https://opensource.org/ai/final-board-report"><strong>Open Source Initiative — Final Board Report</strong></a></p><p><a href="https://deepseek.com/en/news/deepseek-r1/"><strong>DeepSeek — DeepSeek-R1 Release</strong></a></p><p><a href="https://github.com/deepseek-ai/DeepSeek-R1"><strong>DeepSeek-R1 — Official GitHub Repository</strong></a></p><p><strong>Qwen3 — Official GitHub Repository</strong></p><p><a href="https://github.com/QwenLM/Qwen3">GitHub - QwenLM/Qwen3: Qwen3 is the large language model series developed by Qwen team, Alibaba Cloud.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6cf122645c7a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Branches Aren’t the Output: Building a Reasoning Agent That Actually Commits]]></title>
            <link>https://pradeep11.medium.com/the-branches-arent-the-output-building-a-reasoning-agent-that-actually-commits-1a8f32ef5374?source=rss-6a961888bc02------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a8f32ef5374</guid>
            <dc:creator><![CDATA[Pradeep]]></dc:creator>
            <pubDate>Fri, 14 Aug 2026 04:56:39 GMT</pubDate>
            <atom:updated>2026-08-14T04:56:39.323Z</atom:updated>
            <content:encoded><![CDATA[<h4>Doctor Strange saw 14 million timelines. Iron Man’s one action, in one timeline, is what saved the universe.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H4Xk41rnWz48xhZrdIcWAA.png" /></figure><p>That distinction has been on my mind a lot while building reasoning agents — because it maps almost exactly onto a real architectural problem: <strong>exploration vs. convergence.</strong></p><p>Most “multi-path reasoning” agents stop at exploration. They fan out into a few plausible hypotheses, gather a bit of evidence on each, and hand the options back to whoever’s waiting on an answer. That’s not a decision. It’s a report.</p><p>The harder — and more useful — problem is convergence: taking all those branches and reliably eliminating the wrong ones, then committing to the one action that’s actually correct.</p><p>This post is about why that distinction matters, and how I’ve been building toward it.</p><h3>The problem with single-path reasoning</h3><p>Picture a support ticket: <em>“VPN not connecting.”</em></p><p>A single-path reasoning agent picks the first plausible explanation — say, expired credentials — and runs with it. Sends a reset link. Ticket closed.</p><p>Except the actual problem was a stale client config. The user tries again, it still fails, and now there’s a second ticket, a frustrated user, and a wasted execution cycle.</p><p>The ambiguity here isn’t rare — it’s the default state of most real-world problems. “VPN not connecting” could be credentials, network, client config, account lockout, or a dozen other things. A system that reasons down one path and hopes it’s right is going to be wrong often enough to matter.</p><h3>Why exploration alone doesn’t fix it</h3><p>The obvious fix is: don’t just guess one path, explore several. Fan out into multiple hypotheses, gather evidence on each, and see what holds up.</p><p>This is a real improvement — but only if something eventually collapses the branches back into a single answer. Otherwise you’ve just built a more expensive way to say “it could be A, B, C, or D,” which is exactly as useless to the end user as a single wrong guess, just with more compute spent getting there.</p><p><strong>Exploring more possibilities isn’t the hard part. Reliably eliminating the wrong ones and committing to the right action is.</strong></p><p>That’s the sentence this whole architecture is built around.</p><h3>The pipeline</h3><p>What I’ve been building follows five stages:</p><pre>Exploration → Validation → Pruning → Convergence → Execution</pre><p>Broken down:</p><ul><li><strong>Nodes</strong> = individual hypotheses (a possible explanation or root cause)</li><li><strong>Branches</strong> = the reasoning paths extending from each hypothesis</li><li><strong>Grounding</strong> = validating each branch against live evidence — in my case, using LiteLLM for orchestration and real web search for grounding, rather than letting the model reason purely from parametric knowledge</li><li><strong>Backtracking</strong> = rejecting branches once evidence contradicts them, rather than letting weak hypotheses ride through to the end</li><li><strong>Resolver</strong> = the final step that picks the surviving path — critically, it doesn’t just pick the highest-scoring branch, it can state <em>why</em> the other branches were eliminated</li><li><strong>Execution</strong> = committing to and shipping the action tied to the surviving hypothesis</li></ul><p>In pseudocode, the shape looks roughly like this:</p><p>python</p><pre>def resolve(problem):<br>    hypotheses = generate_candidate_hypotheses(problem)  # exploration<br>    branches = []</pre><pre>    for h in hypotheses:<br>        evidence = ground_with_search(h)                 # validation<br>        if not supports(evidence, h):<br>            continue                                       # pruning<br>        branches.append((h, evidence))</pre><pre>    survivor, eliminated = converge(branches)              # convergence<br>    return execute(survivor), explain(eliminated)           # execution</pre><p>This isn’t full tree search — that would be far too expensive for a production system answering real requests. It’s bounded, shallow exploration: a handful of branches, pruned early, converged quickly. Even that shallow version catches a class of errors that pure greedy, single-path agents miss entirely.</p><h3>Convergence is the hard part, not exploration</h3><p>It’s tempting to think convergence just means “pick whichever branch scored highest.” In practice, that’s not enough. A resolver that can only say <em>“B won”</em> isn’t meaningfully more trustworthy than a black box.</p><p>What makes convergence actually useful is when the resolver can say:</p><blockquote><em>“B is the strongest hypothesis. Evidence X and Y eliminate A, C, and D. Here’s the fix.”</em></blockquote><p>That’s a fundamentally different output than “A, B, C, or D could be it.” One is a menu. The other is a decision — with the reasoning exposed enough to be checked, but not so exposed that the user has to wade through the entire search tree themselves.</p><p>The tree is internal machinery. Nobody needs to see 14 million timelines. They need the one action that follows from them.</p><h3>The cost tradeoff — because this isn’t free</h3><p>This is worth being upfront about: multi-path exploration means multiple LLM calls per decision instead of one. Token usage goes up compared to greedy single-path reasoning, and pretending otherwise would be dishonest.</p><p>A few constraints keep this manageable:</p><ul><li><strong>Bounded branching</strong> — shallow, limited depth, not exhaustive tree search</li><li><strong>Early pruning</strong> — weak paths get cut as soon as evidence contradicts them, before they burn more tokens downstream</li><li><strong>Selective triggering</strong> — multi-path exploration only kicks in on genuinely ambiguous cases; straightforward requests still resolve through simple single-path reasoning</li></ul><p>The way I think about it: for high-ambiguity, high-stakes decisions, the extra token cost is cheap insurance — a wrong single-path answer is more expensive than a few extra model calls, especially once you count the cost of the <em>second</em> ticket that gets filed when the first fix doesn’t work. For simple, unambiguous cases, there’s no reason to pay the exploration tax at all.</p><p><em>Still refining this. More on the implementation as it develops.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a8f32ef5374" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Planted Fact Test: How to Catch a Dead Memory Layer Before Production Does]]></title>
            <link>https://pradeep11.medium.com/the-planted-fact-test-how-to-catch-a-dead-memory-layer-before-production-does-c5f51c57b6ad?source=rss-6a961888bc02------2</link>
            <guid isPermaLink="false">https://medium.com/p/c5f51c57b6ad</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[agentic-ai-evaluation]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[multi-agent-systems]]></category>
            <dc:creator><![CDATA[Pradeep]]></dc:creator>
            <pubDate>Tue, 11 Aug 2026 17:52:13 GMT</pubDate>
            <atom:updated>2026-08-11T17:52:13.939Z</atom:updated>
            <content:encoded><![CDATA[<h4>Your agent can pass every test and still forget everything that matters</h4><p>In an earlier piece, I wrote about layer-isolated evaluation — the idea that end-to-end pass rates can mask a broken component, because other layers quietly compensate for the failure. A conversation that followed pointed at the layer where this masking is most dangerous: <strong>memory.</strong></p><p>Here’s why memory is the scariest case.</p><h4>The Compensation Nobody Notices</h4><p>If your agent’s memory layer is broken — it’s not actually storing or retrieving past turns correctly — you often won’t see it fail. Not because it’s working, but because the model doesn’t need it to work yet. For short tasks, everything relevant is still sitting in the active prompt. The model just re-derives context directly from what’s visible, without ever needing to pull from memory at all.</p><p>So your evals pass. Your demo looks flawless. The memory layer could be completely dead and nothing in your test suite would notice — until a task runs long enough that the original detail has scrolled out of the active context window. Only then does the gap become visible, and by then it’s a production incident, not a caught regression.</p><p>This is the same masking problem from end-to-end evaluation, just with a nastier trigger condition: <strong>it only shows up on long-running tasks, which are exactly the tasks least likely to be in your regression suite.</strong></p><h4>The Fix: Plant a Fact and Test for It Later</h4><p>The test for this is simple, cheap, and doesn’t need any special tooling:</p><ol><li>At an early turn (say, turn 2), plant a specific, arbitrary detail — a name, a number, a preference the user stated once.</li><li>Let the conversation continue naturally for many turns — enough that the detail would fall out of the active prompt window under normal operation.</li><li>At a much later turn (say, turn 30), ask for that detail back, or make a decision that depends on it.</li><li>If the model can’t recall it, you’ve isolated the failure to <strong>retrieval from history</strong>, not reasoning or model capability.</li></ol><p>The important part: this test tells you <em>where</em> the failure lives. If the model fails to recall, you know it’s not a “the model is dumb” problem — it’s a “the memory system didn’t actually persist or retrieve that data” problem. That’s a completely different fix.</p><h4>Where This Actually Breaks: Summarization</h4><p>Most systems don’t keep raw turn history forever — token limits force some form of compression, usually rolling summarization. This is exactly where the planted-fact test earns its keep, because summarization is a lossy step by design. The question isn’t whether you summarize — most systems have to — it’s whether your summarizer is reliably preserving the <em>specific facts that later turns depend on</em>, or just producing a plausible-sounding gist.</p><p>Run the planted-fact test against the <strong>summarized state</strong>, not the raw conversation. If your summarizer compresses away the planted detail during a routine pass, that’s your dead-memory case, caught in a controlled test instead of a live conversation with a real user.</p><h4>The Broader Pattern</h4><p>This is really the same principle as layer-isolated evaluation applied to one specific, high-risk layer: don’t just check the final answer, check what the component actually retained and can produce on demand. Memory failures are worse than routing or escalation failures because they’re time-delayed — they wait for the task to outlive the window before they show up, which means your test suite needs to deliberately create that condition instead of waiting for it to happen naturally.</p><p>If you’re running multi-agent or long-context systems in production, it’s worth asking: does your eval suite include any task that intentionally runs long enough to force a memory recall, or does every test case stay comfortably inside the active context window?</p><p>This piece builds on “<a href="https://medium.com/@pradeep11/your-agents-94-pass-rate-might-be-lying-to-you-9d5016a8689d"><strong>Your Agent’s 94% Pass Rate Might Be Lying to You</strong></a>” — on why end-to-end evaluation can mask exactly the failures you need to catch.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c5f51c57b6ad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Your Agent’s 94% Pass Rate Might Be Lying to You]]></title>
            <link>https://pradeep11.medium.com/your-agents-94-pass-rate-might-be-lying-to-you-9d5016a8689d?source=rss-6a961888bc02------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d5016a8689d</guid>
            <category><![CDATA[multi-agent-systems]]></category>
            <category><![CDATA[llm-evaluation]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[ai-engineering]]></category>
            <category><![CDATA[llm-failures]]></category>
            <dc:creator><![CDATA[Pradeep]]></dc:creator>
            <pubDate>Tue, 11 Aug 2026 04:40:14 GMT</pubDate>
            <atom:updated>2026-08-11T04:40:14.958Z</atom:updated>
            <content:encoded><![CDATA[<h4>Why end-to-end evaluation hides the exact failures you need to catch</h4><p><strong>TL;DR<br></strong>End-to-end pass rates on multi-agent systems can stay high even when individual layers are broken. A recent paper showed that deliberately degrading one architectural layer often drops the aggregate score by only a few points — small enough to look like noise — while the layer-specific tests crater. The fix: add fast, deterministic, no-LLM contract tests for each layer alongside your end-to-end suite.</p><p>If you’re building multi-agent systems, you probably have some version of this test loop: run N test cases through the full pipeline, check whether the final output matches expected, report a pass rate. 94% passing feels like a green light to ship.</p><p>A recent paper (“<strong><em>Layer-Isolated Evaluation</em></strong>,” <strong>arXiv:2606.11686</strong>) tested that assumption directly — and the result should change how you think about agent testing.</p><h4>The Experiment</h4><p>The researchers took a production ordering agent and decomposed it into its architectural layers — ontology, intent, routing, decomposition, escalation, safety, memory, and a few cross-cutting ones. For each layer they wrote deterministic assertion tests that run without any LLM call: given a fixed input, does this specific component produce the exact expected output. Pure unit tests, not “run it and eyeball the response.”</p><p>Then they did something most eval work never does: they deliberately degraded one layer at a time and watched what happened to the end-to-end pass rate.</p><p>It barely moved.</p><p>Even with a layer clearly broken, the aggregate score typically dropped only 1.7–5.9 percentage points. Small enough to vanish into normal noise. Meanwhile the matching layer-specific slice cratered by 25–91 points.</p><h4>Why This Happens</h4><p>Imagine your test suite has 100 cases. 94 pass. Comfortable margin.</p><p>But only a minority of those cases actually touch your escalation logic — the rest resolve without ever needing to escalate. If escalation is quietly broken (wrong confidence threshold, wrong routing target), your overall score might drop from 94% to 91%. That reads as normal variance, not a regression. You’d ship it. Nobody would know escalation was broken until it failed in production, on a real ticket, in front of a real user.</p><p>This is the blind spot in aggregate evaluation: a single number tells you <em>whether</em> something regressed, never <em>where</em>.</p><h4>The Fix: Test Contracts, Not Just Outcomes</h4><p>Instead of relying purely on end-to-end evals, define a contract for each agent (or layer) in your pipeline and test it in isolation:</p><pre># Planning agent — no LLM call, pure logic check<br>def test_planning_resolves_step_reference():<br>    input_state = {&quot;step_1&quot;: {&quot;host&quot;: &quot;srv-01&quot;}}<br>    plan = planning_agent.resolve(input_state, &quot;{{step_1.host}}&quot;)<br>    assert plan == &quot;srv-01&quot;<br><br># Execution layer — deterministic dispatch check<br>def test_execution_targets_correct_host():<br>    command = execution_agent.build_command(resolved_input)<br>    assert command.host == &quot;srv-01&quot;<br>    assert command.credential_source == credential_provider.get(&quot;srv-01&quot;)<br><br># Escalation logic — threshold check<br>def test_escalation_triggers_below_confidence_threshold():<br>    decision = escalation_agent.route(confidence_score=0.42)<br>    assert decision == &quot;escalate&quot;</pre><p>None of these need an LLM in the loop. They run in milliseconds, cost nothing, and importantly, they’re deterministic. There’s no flakiness, no non-reproducible failures, and no waiting on API latency to find out if your CI broke. <br>In the paper, the full pure suite (238 cases across 23 slices) ran in about 2.4 seconds and checked every change in CI against a locked per-slice baseline.</p><h4><strong>What This Changes</strong></h4><p>End-to-end eval tells you the plane is flying. <br>Layer-isolated eval tells you which engine just failed.</p><p>You still need the end-to-end test; it’s your ground truth for whether the system actually works for the user. But it should exist alongside a fast, deterministic, per-component suite that catches regressions that the overall number will never show. <br>If you’re building agentic systems and your only regression signal is a single pass/fail percentage, it’s worth asking how many of your test cases actually check each individual agent. If the answer is “not evenly,” your safety margin might be smaller than it appears.</p><p><strong>Paper: </strong><a href="https://arxiv.org/abs/2606.11686"><strong>https://arxiv.org/abs/2606.11686</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d5016a8689d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>