<?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 Tripti Vishwakarma on Medium]]></title>
        <description><![CDATA[Stories by Tripti Vishwakarma on Medium]]></description>
        <link>https://medium.com/@tripti.vishwakarma?source=rss-03da074eed6c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Kx9pBbYShRiPEyI1B5DFoQ.png</url>
            <title>Stories by Tripti Vishwakarma on Medium</title>
            <link>https://medium.com/@tripti.vishwakarma?source=rss-03da074eed6c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 06:55:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tripti.vishwakarma/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[Your AI Agent Isn’t Broken. It’s Confidently Wrong.]]></title>
            <link>https://medium.com/@tripti.vishwakarma/your-ai-agent-isnt-broken-it-s-confidently-wrong-1eb34ed0e9fc?source=rss-03da074eed6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/1eb34ed0e9fc</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Tripti Vishwakarma]]></dc:creator>
            <pubDate>Thu, 30 Apr 2026 20:32:54 GMT</pubDate>
            <atom:updated>2026-04-30T20:46:30.453Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aVI4vh-B2VuRsFtqVzII5g.jpeg" /></figure><p><em>Why the failure modes of autonomous LLM agents demand a fundamentally different approach to evaluation, architecture, and trust.</em></p><p>Standard software fails in ways we were trained to handle. An exception is thrown. A null pointer. A network timeout. These failures are <em>honest</em>; they announce themselves with stack traces and error codes. You know something went wrong because something stopped working.</p><p>Large language models operating as autonomous agents fail in different ways. There is no exception. No traceable stack. The agent simply continues, confidently, fluently, and catastrophically wrong. It doesn’t know it’s wrong. It doesn’t signal it’s wrong. It generates the next token with the same assured cadence, whether it’s retrieving a real file path or hallucinating one that has never existed.</p><blockquote><em>“The model was not lying. It was doing exactly what it was trained to do: complete the sequence. The context just happened to be wrong.”</em></blockquote><p>This is the foundational challenge facing every engineer and product manager building agentic systems today. And the research landscape in 2025–2026 makes clear: we’re still underestimating the depth of the problem.</p><h3>The agentic context is not the chat context</h3><p>When you query a frontier model in a chat window, the failure surface is bounded. The user reads the response and applies judgment. They notice if something seems off. They ask a follow-up. The human is in the loop, not formally, but pragmatically.</p><p>In an agentic pipeline, that corrective layer disappears. The model isn’t answering a user; it’s issuing actions. It’s calling tools, writing files, queuing API requests, and making decisions that cascade through downstream systems. The output of step three is the input to step seven. Errors don’t stay local; they compound.</p><p><strong>Key insight:</strong> The fundamental problem with multi-step agentic sequences is that every individual action taken at steps 3-5 in a long task pipeline directly shapes the context by the time the model reaches steps 8-10. Early hallucinations don’t stay isolated; they become ground truth for later reasoning.</p><p>This is what makes agentic evaluation so different from benchmark evaluation. The standard prompt-response paradigm measures accuracy at a single decision point. Agentic pipelines require measuring trajectory coherence, whether the agent can maintain factual, causal, and contextual consistency across a sequence of interdependent decisions with a live, mutating context window.</p><h3>Four failure modes engineers keep underestimating</h3><p><strong>Failure mode 01: Structural hallucination. </strong>The model generates plausible-looking artifacts, file paths, API responses, and database schemas that are syntactically correct but factually invented. The structure passes validation. The content is fiction.</p><p><strong>Failure mode 02: Context window collapse.</strong> As the task grows and the context window fills with intermediate outputs, the model begins to “forget” early constraints. Instructions given at step 1 erode in influence by step 15. The agent drifts from its original objective without noticing.</p><p><strong>Failure mode 03: Confident ambiguity resolution.</strong> When the agent encounters an ambiguous decision point, it resolves it unilaterally and proceeds. It doesn’t pause, flag, or ask. The standard prompt for most frontier models is effectively trained toward fluency rather than honest uncertainty expression.</p><p><strong>Failure mode 04: Judge agent contamination.</strong> Systems that use LLMs to evaluate other LLMs inherit the same hallucination patterns. A judge model trained on benchmark data develops calibrated confidence for benchmark-shaped tasks, and miscalibrated confidence for everything else.</p><h3>The benchmark trap</h3><p>Here’s the uncomfortable reality that recent research has surfaced: the models scoring highest on agentic benchmarks are not necessarily the most reliable in production agentic contexts. Benchmark tasks are structurally bounded. They have fixed start states, known answer distributions, and evaluation criteria that are themselves partly shaped by what models are already good at.</p><p>When you deploy that same model into a real-world multi-step task, with live API dependencies, ambiguous user intent, and no predefined success criterion, the benchmark score stops predicting much of anything. The model that scored 0.87 on your eval harness may hallucinate an intermediate file path on task attempt seven because the internal state it’s tracking diverged from reality three steps earlier, and nothing in its training prepared it to notice that divergence.</p><blockquote><em>“Benchmark scores measure how well a model performs on benchmark-shaped problems. Production agentic reliability is a different variable entirely.”</em></blockquote><p>This isn’t an argument against benchmarks. It’s an argument for understanding what they measure and building an evaluation infrastructure that goes beyond them. The researchers who built the TANGLED-LANG evaluation framework were specifically targeting this gap: can we measure whether a model’s intermediate reasoning steps are causally coherent, not just whether its final output matches a gold label?</p><h3>What the research actually says about self-correction</h3><p>A natural response to agentic hallucination is to add a self-correction loop: have the model review its own outputs before acting on them. This intuition is sensible. The empirical results are sobering.</p><p>Models are poor self-editors of their own hallucinations precisely because the same mechanisms that produce the hallucination also produce the confidence that the output is correct. When a model generates a plausible-looking intermediate result, it doesn’t generate doubt alongside it. It generates the next token based on the assumption that the previous output was valid.</p><p>Self-correction works best when the error is syntactic or format-based, something the model can identify by pattern. It works poorly when the error is semantic or factual, particularly for facts that weren’t well-represented in training data or that depend on the specific state of the live environment the agent is operating in.</p><p><strong>For engineers building agentic systems:</strong> Self-correction loops are not a substitute for external verification. Treating the model’s self-assessment as ground truth replicates the original failure mode. The corrective signal needs to come from outside the model’s reasoning chain: from tool outputs, environment state, structured assertions, or human checkpoints.</p><h3>The architecture implications</h3><p>If you’re building agentic products today, these failure patterns have concrete architectural consequences.</p><ol><li><strong>Don’t treat the context window as a scratch pad you can trust.</strong> The model’s internal state is not a reliable record. Use explicit, structured state management outside the model, such as a database, a task graph, or a typed event log, that the model reads from rather than reconstructs from memory.</li><li><strong>Build decision boundaries into the task graph.</strong> Identify the specific points in your agent’s execution path where an incorrect assumption would be catastrophic if undetected. Put hard checkpoints there, human review, deterministic assertions, or external validation, before the agent proceeds.</li><li><strong>Design for uncertainty expression, not just uncertainty tolerance.</strong> The default training objective pushes models toward fluent completion. Build system prompts and task framing that explicitly reward the agent for flagging ambiguity rather than resolving it unilaterally. This is a prompt engineering problem with architectural implications.</li><li><strong>Separate orchestration from agency.</strong> The model that decides what to do next is not necessarily the model that should execute the action. Architectures that separate planning (high-level reasoning, intent understanding, step decomposition) from execution (tool calls, file writes, API requests) give you more control over where to inject verification and rollback.</li><li><strong>Instrument at the intermediate step level, not just the final output.</strong> If your observability only captures the final agent response, you’re flying blind. Every tool call, every intermediate generation, and every context-state change should be logged and inspectable. You need a trace, not a result.</li></ol><h3>The human-in-the-loop question is not binary</h3><p>Every team building agentic products eventually faces the question: how much human oversight do we need? The framing is usually presented as a dial between full automation and constant supervision, and the answer is almost always somewhere in the middle, with the team arguing over where to set it.</p><p>The more productive frame is: at which specific decision points in this specific task graph does a human signal add enough error-correction value to justify the latency cost? For a file-renaming workflow, the cost of a bad decision is low and reversible; automate it entirely. For a workflow that triggers financial transactions or modifies customer-facing data, even one step of human verification may be worth the friction.</p><p>The 2026 research on Human-in-the-Loop orchestration for agentic use cases is converging on a clear principle: HITL is most valuable not as a general oversight mechanism but as a targeted intervention at high-consequence decision nodes. The goal is not to have a human watching the agent. It’s to have a human positioned exactly where the agent’s failure modes are most likely to produce irreversible consequences.</p><blockquote><em>“Human oversight is most valuable not as a watch, but as a lock, placed at exactly the right doors.”</em></blockquote><h3>What self-learning doesn’t solve (yet)</h3><p>There’s a recurring optimism in the community that agentic self-learning, having agents improve from their own trajectories, will close the reliability gap over time. The intuition is appealing: if the agent can learn from its own failures, doesn’t the system become more reliable over time?</p><p>The challenge is that self-learning in agentic systems inherits the same evaluation problem. To learn from a failure, the agent needs to know it failed. That signal, the failure label, has to come from somewhere. If it comes from the model itself, you’ve reinstituted the judge contamination problem. If it comes from human labelers, you have a scalability bottleneck. If it comes from environment feedback (the action produced an error, the tool returned null), you can only learn from the subset of failures that produce observable negative outcomes, which may be a small fraction of the failures that actually matter.</p><p>Self-learning in agentic contexts is a genuinely promising direction. It is not, today, a substitute for the architectural discipline of building reliable agentic systems from the ground up.</p><h3>Building toward reliability</h3><p>The engineer’s instinct when encountering a new class of failure modes is to find the fix, the architectural pattern, the prompting strategy, the evaluation harness that addresses the problem cleanly. With agentic LLM systems, that instinct is right, but the implementation is harder than it looks.</p><p>The honest position is: we’re in the early innings of understanding how to build reliably on top of probabilistic systems that operate autonomously across multi-step tasks. The research is catching up. The tooling is maturing. The community’s collective understanding of where and how these systems fail is meaningfully better in 2026 than it was eighteen months ago.</p><p>But the path to reliable agentic products runs through rigorous intermediate-step evaluation, disciplined state management, honest expression of uncertainty, and targeted human oversight, not through benchmark scores and optimism about self-correction loops. The systems that get this right in the next two years will be the ones that took the failure modes seriously from the beginning.</p><h3>Sources</h3><p><a href="https://arxiv.org/abs/2410.10934">1</a> · <a href="https://arxiv.org/pdf/2510.04550">2</a> · <a href="https://arxiv.org/pdf/2408.03138">3</a> · <a href="https://arxiv.org/pdf/2601.22269">4</a> · <a href="https://arxiv.org/pdf/2604.10015">5</a> · <a href="https://arxiv.org/pdf/1902.06977">6</a> · <a href="https://arxiv.org/pdf/2604.04269">7</a> · <a href="https://ijctjournal.org/wp-content/uploads/2026/04/Human-in-the-Loop-HITL-Orchestration-for-Agentic-Use-Cases.pdf">8</a> · <a href="https://www.reddit.com/r/temm1e_labs/comments/1sezbm5/i_believe_selflearning_in_agentic_ai_is/">9</a> · <a href="https://galileo.ai/blog/agent-failure-modes-guide">10</a> · <a href="https://latitude.so/blog/best-ai-agent-observability-tools-2026-comparison">11</a> · <a href="https://langfuse.com/guides/cookbook/example_pydantic_ai_mcp_agent_evaluation">12</a> · <a href="https://wallaroo.ai/ai-production-experiments-the-art-of-a-b-testing-and-shadow-deployments/">13</a> · <a href="https://en.wikipedia.org/wiki/Template:Machine_learning_evaluation_metrics">14</a> · <a href="https://kidukkang.github.io/blog/metrics/">15</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1eb34ed0e9fc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Red Teaming - AI Security]]></title>
            <link>https://medium.com/@tripti.vishwakarma/red-teaming-ai-security-2f46c13b4286?source=rss-03da074eed6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/2f46c13b4286</guid>
            <dc:creator><![CDATA[Tripti Vishwakarma]]></dc:creator>
            <pubDate>Sat, 14 Jun 2025 06:21:40 GMT</pubDate>
            <atom:updated>2025-06-14T06:21:40.019Z</atom:updated>
            <content:encoded><![CDATA[<p>When you’re building something as complex and powerful as Artificial Intelligence (AI), simply assembling the pieces and hoping it’s secure is far from enough. The real challenge lies in figuring out how someone might try to break it — finding its weak spots or making it do things it shouldn’t. That’s where AI red teaming comes into play. AI security isn’t just about building walls; it’s about constantly poking at those walls from the outside, looking for cracks before others do. It’s about adopting an adversarial mindset — thinking like the bad guys — and that’s exactly what we’re diving into today. Let’s explore what AI red teaming is, why it’s so crucial, and how organizations can effectively use it to secure their systems.</p><p>In traditional security, red teaming involves skilled professionals simulating attackers to probe for vulnerabilities in a system. For AI, red teaming takes the same concept but applies it specifically to the AI model — its data, design, and interaction points. Unlike general security testing, which might focus on network flaws or database vulnerabilities, AI red teaming targets the unique characteristics of AI systems. The goal is to deliberately trick, mislead, or exploit the AI itself. The objective is to find and fix weaknesses before malicious actors can exploit them. In essence, it’s a necessary stress test for AI.</p><p>AI systems, especially advanced ones like deep learning models, are fundamentally different from traditional software. AI has unique weak spots. Adversarial examples, for instance, involve tiny, imperceptible changes to inputs — like adding “invisible” noise to an image — that can lead an AI to make completely wrong predictions, such as misidentifying a stop sign as a speed limit sign. Prompt injection is another example, where cleverly crafted inputs can trick large language models (LLMs) into bypassing safety rules or generating harmful content. Data poisoning occurs when attackers inject malicious data during training to create biases, backdoors, or poor performance in specific scenarios. There is also the risk of model stealing, where attackers analyze outputs to reverse-engineer proprietary AI models, essentially cloning them.</p><p>The stakes for AI security are incredibly high. AI is being integrated into critical systems across industries, and vulnerabilities in these systems can have far-reaching consequences, from misinformation to financial losses and even safety hazards. Unlike traditional software, AI doesn’t follow rigid instructions — it learns patterns from data. This statistical nature makes it susceptible to manipulation in ways that are fundamentally different from coding bugs. Moreover, with growing public scrutiny and emerging regulations around AI safety, organizations must ensure their AI systems meet security, fairness, and transparency standards.</p><p>AI red teams target specific areas to uncover vulnerabilities in AI systems. They look at system integrity to ensure the AI behaves as expected, even under unusual or adversarial conditions. They test adversarial robustness to see how well the AI resists subtle, crafted inputs designed to fool it. They investigate data privacy and security to uncover risks of sensitive training data being leaked or inferred from the model’s outputs and assess how the data lifecycle — storage, transfer, usage — is secured. They also audit for bias and ethical concerns, testing whether the AI produces biased or harmful results and whether it treats different groups fairly. Transparency is another area of focus, as understanding how and why the model makes decisions can help uncover hidden vulnerabilities. Additionally, red teams test system integration, as AI doesn’t operate in isolation. They examine how the AI interacts with other components, such as APIs or hardware, to uncover issues that arise in real-world use.</p><p>Red teams employ a variety of strategies and tools to assess AI systems. Adversarial testing involves crafting inputs, such as adversarial examples, to trick the AI and test its robustness. Data security testing examines how training data is stored, transferred, and used to identify risks of leaks or re-identification attacks. Model exploitation simulates attacks like membership inference, which checks if specific data was used for training, or model inversion, which reconstructs input data from model outputs. Bias auditing tests predictions for fairness across different demographic groups. System integration testing simulates real-world scenarios to evaluate how the AI operates within its broader ecosystem. Tools like IBM’s Adversarial Robustness Toolbox and Google’s CleverHans help generate adversarial examples and measure robustness. Custom attack scenarios are often tailored to the specific AI system being tested.</p><p>However, AI red teaming is no small feat. One major challenge is the evolving nature of AI threats. The landscape of attacks is constantly changing, with new vulnerabilities and methods emerging regularly. Another challenge is the lack of universal standards for AI red teaming. While frameworks are emerging, there’s no globally accepted playbook, and organizations are often pioneering methods as they go. Finally, the complexity of AI models, particularly deep learning models with millions or billions of parameters, makes it difficult to trace vulnerabilities. These models are often black boxes, and understanding why they behave in certain ways can feel like finding a needle in a haystack.</p><p>To make AI red teaming effective, collaboration is key. Red teams (attackers) and blue teams (defenders) should work together in a feedback loop. Red teams find vulnerabilities, and blue teams patch them, creating a cycle of continuous improvement. Continuous testing is essential, as AI models evolve and threats change over time. Regular assessments — not one-off audits — are needed to stay ahead of attackers. Using interpretable models makes it easier to identify and fix vulnerabilities, so organizations should prioritize explainability. Finally, simulated attacks must be conducted responsibly and within legal frameworks, especially when sensitive data or systems are involved.</p><p>Real-world examples of AI red teaming include adversarial examples, where slightly modified images that look identical to humans completely fool a vision model (e.g., a cat being classified as guacamole). Another example is prompt injection, where chatbots are tricked into revealing confidential information by cleverly crafted input prompts. These examples highlight how easily AI can be manipulated in unexpected ways.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V8Wyxn85WTV1qZ-cqAUx6Q.png" /><figcaption>The image illustrates an AI system (represented as a brain within a shield) being attacked by various threats including Data Poisoning, Prompt Injection, Model attacks, Bias Exploitation, and Model Stealing.</figcaption></figure><p>As AI becomes woven into everything we do, its security becomes not just a challenge but a necessity. However, given the pace of AI advancements and the sophistication of emerging threats, can we ever truly say an AI system is 100% secure? Or is it a never-ending race to stay one step ahead of adversaries? AI red teaming represents a critical step in that race. By adopting the attacker’s mindset, organizations can build systems that are more robust, secure, and trustworthy. The stakes are high, but so is the potential to create AI systems that benefit society without compromising safety. So, next time you think about AI security, ask yourself: Are you just building walls, or are you actively testing them for cracks?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f46c13b4286" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>