<?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 Animesh Dutta on Medium]]></title>
        <description><![CDATA[Stories by Animesh Dutta on Medium]]></description>
        <link>https://medium.com/@animesh_dutta?source=rss-5c708cd63ead------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*ukaqF_aVo6BEw5gN3ULwEQ.jpeg</url>
            <title>Stories by Animesh Dutta on Medium</title>
            <link>https://medium.com/@animesh_dutta?source=rss-5c708cd63ead------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 20:58:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@animesh_dutta/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[The 99% Trap: Why AI Agents Still Fail in Production]]></title>
            <link>https://medium.com/@animesh_dutta/the-99-trap-why-ai-agents-still-fail-in-production-8674882d2dca?source=rss-5c708cd63ead------2</link>
            <guid isPermaLink="false">https://medium.com/p/8674882d2dca</guid>
            <category><![CDATA[ai-agents-in-action]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[llm-evaluation]]></category>
            <dc:creator><![CDATA[Animesh Dutta]]></dc:creator>
            <pubDate>Mon, 23 Nov 2026 16:37:18 GMT</pubDate>
            <atom:updated>2026-11-23T16:37:18.646Z</atom:updated>
            <content:encoded><![CDATA[<p><em>An AI agent can succeed at 99% of its steps and still have a nearly 40% chance of encountering a failure. Here’s why reliability is more than just model accuracy.</em></p><p>We’re getting remarkably good at building AI agents that can reason, use tools, and execute complex workflows.</p><p>But there’s a problem we don’t discuss enough.</p><p><strong>What happens when an agent needs to get 50 things right instead of just one?</strong></p><h3>The surprising math behind AI agent failures</h3><p>Imagine an AI agent planning your vacation.</p><p>It searches flights, compares hotels, checks availability, makes reservations, and processes payments.</p><p>Let’s say the entire workflow involves 50 steps, and each step has a 99% probability of succeeding.</p><p>Sounds reliable, right?</p><p>Here’s the catch.</p><p><strong>0.9⁹⁵⁰ = 60.5%</strong></p><p>That means there’s only a 60.5% chance of completing every step without a single failure.</p><p>Or, put differently, <strong>a 39.5% chance of at least one step failing.</strong></p><p>And that’s assuming the steps are independent, with no recovery mechanisms.</p><p>Here’s how reliability changes as workflows grow:</p><p>Number of stepsAll steps succeed199.0%1090.4%2081.8%5060.5%10036.6%</p><p>The lesson?</p><p><strong>A reliable step doesn’t guarantee a reliable system.</strong></p><h3>Why this matters for AI agents</h3><p>Unlike many traditional workflows, AI agents can make decisions dynamically.</p><p>They choose tools, interpret responses, and decide what to do next.</p><p>That introduces additional failure modes.</p><p>An agent might receive a successful API response but misunderstand its meaning. It might retry an operation that already succeeded or continue executing based on incorrect information.</p><p>Consider an agent processing a payment.</p><p>The API times out.</p><p>Did the payment fail, or did the response simply get lost?</p><p>If the agent blindly retries, the user might be charged twice.</p><p>The individual tool calls could be technically valid, yet the overall outcome could be wrong.</p><p><strong>Tool execution success isn’t the same as task success.</strong></p><h3>What research tells us</h3><p>The paper <a href="https://arxiv.org/abs/2406.12045">τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domains</a> explores this challenge through realistic airline and retail tasks.</p><p>One particularly interesting idea is <em>pass^k</em>, a metric measuring whether an agent successfully completes the same task across multiple independent attempts.</p><p>In the original experiments, even strong models struggled with consistency. A GPT-4o-based agent configuration achieved a pass⁸ score below 25% in the retail environment.</p><p>The takeaway isn’t that agents can’t complete complex tasks.</p><p>It’s that <strong>succeeding once and succeeding consistently are two very different things.</strong></p><h3>Three engineering practices that make agents more reliable</h3><h3>1. Verify outcomes, not just tool calls</h3><p>A 200 OK response doesn&#39;t necessarily mean the intended action was completed.</p><p>If an agent creates a GitHub pull request, verify that the PR exists and contains the expected changes.</p><p>Don’t just check whether the API returned success. Check the actual system state.</p><h3>2. Retry safely, not blindly</h3><p>Retries help with temporary failures, but repeating an action can introduce new problems.</p><p>For operations such as payments, use idempotency keys where supported and verify the transaction state before retrying.</p><p><strong>Recovery shouldn’t create more damage than the original failure.</strong></p><h3>3. Build checkpoints and recovery paths</h3><p>If an agent completes 18 out of 20 steps, a failure at step 19 shouldn’t automatically restart the entire workflow.</p><p>Persist execution state, identify completed actions, and resume safely where possible.</p><p>This becomes especially important for long-running agents interacting with external systems.</p><h3>The bigger lesson</h3><p>We’re investing heavily in making AI models smarter.</p><p>But as agents move from demos into production, the challenge extends beyond reasoning quality.</p><p>We need systems that can verify outcomes, recover from failures, respect permissions, and behave consistently across repeated executions.</p><p>A successful demo proves an agent <em>can</em> complete a task.</p><p>A production system needs to demonstrate that it can complete the task <strong>reliably, repeatedly, and safely.</strong></p><p><strong>The next leap in agentic AI won’t come from smarter models alone. It will also come from better engineering around them.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iQIXiQ7matuWEA3z8g3DCQ.png" /></figure><p><em>I write about agentic AI, context engineering, and the engineering challenges behind production AI systems. If these topics interest you, follow along for more practical insights.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8674882d2dca" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[System Failure Prediction using log analysis]]></title>
            <link>https://medium.com/data-science/system-failure-prediction-using-log-analysis-8eab84d56d1?source=rss-5c708cd63ead------2</link>
            <guid isPermaLink="false">https://medium.com/p/8eab84d56d1</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[lstm]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[system-failure-prediction]]></category>
            <category><![CDATA[recurrent-neural-network]]></category>
            <dc:creator><![CDATA[Animesh Dutta]]></dc:creator>
            <pubDate>Thu, 19 Dec 2019 11:16:56 GMT</pubDate>
            <atom:updated>2021-08-10T14:08:39.758Z</atom:updated>
            <content:encoded><![CDATA[<h3>System failure prediction using log analysis</h3><h4>A Deep Learning approach to predict failure in a system using Recurrent Neural Network(LSTMs)</h4><p>In modern days, system failure is a grave issue and needs to be dealt with. IT companies or various research organizations can be highly benefited if an accurate system failure prediction can be obtained. The adverse effect of computer failure is somewhat mitigated if a proper prediction is made beforehand. The usage of resources, applications and other memory consuming processes can be limited if such a case is about to occur thus preventing the system breakdown.</p><p>Achieving accurate predictions with adequate time left is quite difficult. In this blog, I present a simple approach to detect the failure by parsing the log files quite in advance. We generate an early warning before a failure condition arises. To serve our purpose, we have used a Recurrent Neural Network, namely, Long Short-Term Memory. The approach in this paper uses a sliding window to fetch the desired results. The important factors taken into account are RAM, CPU and Hard Disk utilization.</p><p>The given figure shows the approach used:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CmngCSyQUogc4VxhegAV0A.png" /><figcaption><strong>Methodology</strong></figcaption></figure><p>System Failure Prediction is essential in many applications like where a computer needs to perform high computations. Very high usage of hard disk or crash of RAM can prevent the applications being executed on HPC. High-Performance Computing is the use of parallel programming to run complex programs efficiently. The recovery of HPC can take long or even might not be possible at times. The use of time series forecasting has been common too but it didn‘t include the parameters that we are going to state next which can be beneficial.</p><p>Log files obtained from systems comprises of information on the status and memory consumption of a system. We know that three main utilizations of a computer are CPU, RAM, and hard disk utilization. These log files can provide us with timestamps and the exact utilization of resources on definite timestamps. We have taken into account the values at timestamps with the same interval. We had a data comprising of the log files of a system generated in the past five days in .nmon format. The timestamp variation considered is fixed and has a fixed gap of 10 minutes.</p><p>We had .nmon files that were converted to .csv for proper study. We can also visualize the data using nmon visualizer tool. The parameters we are considering for CPU, RAM and Hard disk utilization are listed below:</p><h3>CPU utilization:</h3><p>User%: This states that the processor is spending x% of its time running user space processes. A userspace process is one that doesn‘t use kernel. Some common user-space process includes shells, compilers, databases and all programs related to desktop. If the processor isn‘t idle then usually the majority of CPU time is used to run user space processes.</p><p>Sys%: This states that the processor is spending x% of its time running system processes. System processes comprise of kernel space programs</p><p>Wait%: This states that the processor is spending x% of its time running kernel processes. All the processes and system resources are handled by the Linux kernel. The kernel performs tasks like running system processes managing hardware devices like a hard disk in kernel space.</p><p>Idle%: This shows what percentage of CPU is waiting for other processes to complete. At times, the processor might initiate a read/write operation and needs to wait for other processes to finish.</p><p><strong>CPU utilization = User% + Sys% + Wait%</strong></p><h3>RAM utilization:</h3><ul><li>MemTotal: Total usable memory</li><li>MemFree: The amount of physical memory not used by the system</li><li>Buffers: Memory in buffer cache, so relatively temporary storage for raw disk blocks</li><li>Cached: Memory in the page cache (Diskcache and Shared Memory)</li><li>MemUsed = MemTotal-MemFree-Buffers-Cached</li></ul><p>% of used RAM at a particular timestamp = (MemUsed/MemTotal) * 100</p><h4>Hard Disk utilization:</h4><p>Hard disk utilization %= (Hard disk space used/ total hard disk space) *100</p><h4>PCA:</h4><p>Now we have our values for CPU, RAM and hard disk utilization for timestamps. We apply PCA to get a single reduced value out of these 3 parameters. As we know PCA or Principal Component Analysis is a way to deal with highly correlated variables. We can get a single value for all the utilizations stated above. We can then apply univariate time series forecasting to predict a single value for the future timestamps.</p><p>Steps for applying PCA:</p><p>a) Standardized the data. b) Calculate the eigenvalues and eigenvectors from the covariance matrix. c) Sort the eigenvalues in decreasing order to rank corresponding eigenvectors. d) Select 1 eigenvector corresponding to the largest eigenvalue. This gave us the reduced parameter for each timestamp.</p><h4>LSTM model:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1021/1*JM04VYWpfxwVXraT_Szc1w.png" /><figcaption><strong>LSTM architecture</strong></figcaption></figure><p>The steps we followed:</p><p>i) A moving forward window of size 50, which means we used the first 50 data points as out input X to predict Y i.e. 51st data point. Using the window from 1st to 51st point next, we forecast for the 52nd point.</p><p>ii) A two-layered LSTM model combined with a dense output layer was used to make the prediction. iii) We used the following two approaches to predict the output —</p><p>a) We forecasted the value for each item in the test dataset.</p><p>b) We feed the forecast which was made previously back to the input window by moving it a step forward and make a forecast at the timestamp needed. We have a 3D input vector for the LSTM comprising of several samples, several timestamps, number of features. After saving the weights for the model trained, we plot the predicted values to visualize the trend in data. We have the model with a 2 layered LSTM and a dense output layer at the end as shown in table 3 below. We use dropout in between as it is a regularization technique that is used to prevent over-fitting while we train our LSTM model.</p><p>The model summary:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/1*MvgJNtYRo71ZfHUDWglKKQ.png" /><figcaption>Model summary for LSTM</figcaption></figure><h3>Results:</h3><p>The figure below displays the graphical view of predicted values and actual values to find the trend. Despite the less amount of training data, we got the desired variations in output. Our model was able to capture the trend. With more training data, more accurate results can be predicted. The green line represents the actual values while the blue line represents the predicted values. On X-axis, we have the dates with a timestamp gap of 10 minutes. The Y-axis is the PCA reduced value which we earlier obtained. The saved weights help us to predict the reduced values for future timestamps. Having the timestamps and PCA reduced value for failure cases (can be noted for some cases where actual system failure took place), we can correctly classify whether the predicted value falls in failure class or not. We used the Logistic regression classification algorithm to serve our purpose</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*buvz31772K7J5-rpAn6FBA.png" /></figure><p>This blog will help users to prevent system failure as it can send an alert mail or SMS to the person before the actual failure takes place. The user can then limit the number of running processes on the system by terminating redundant processes. Using LSTMs for time series forecasting helped us to get the reduced values for future timestamps. Then that value can be used to classify for Normal or Failure class using the Logistic Regression Classification model.</p><h3>Conclusion:</h3><blockquote>This project was done as a part of an internship at Celebal Technologies, Jaipur.</blockquote><p>This approach will help users to prevent system failure as it can send an alert mail or SMS to the person before the actual failure takes place. The user can then limit the number of running processes on the system by terminating redundant processes. Using LSTMs for time series forecasting helped us to get the reduced values for future timestamps. Then that value was classified as Normal or Failure class using the Logistic Regression Classification model. This work can be extended if we can add some more features to the existing list. We have just considered CPU, RAM and Hard Disk utilization for our research. Parameters such as Input/output data transfers i.e. rate at which data is written on the hard disk, time for which a particular process is running can also be taken into consideration to obtain better accuracy.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8eab84d56d1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/system-failure-prediction-using-log-analysis-8eab84d56d1">System Failure Prediction using log analysis</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>