<?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 Rakshitpandhi on Medium]]></title>
        <description><![CDATA[Stories by Rakshitpandhi on Medium]]></description>
        <link>https://medium.com/@rakshitpandhi2802?source=rss-09291c706c11------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*aMsia-vsCaPNMAFn</url>
            <title>Stories by Rakshitpandhi on Medium</title>
            <link>https://medium.com/@rakshitpandhi2802?source=rss-09291c706c11------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 11:37:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rakshitpandhi2802/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[From Failure to Improvement: Making Memory-Augmented AI Agents More Reliable]]></title>
            <link>https://medium.com/@rakshitpandhi2802/from-failure-to-improvement-making-memory-augmented-ai-agents-more-reliable-7893c47e5bb7?source=rss-09291c706c11------2</link>
            <guid isPermaLink="false">https://medium.com/p/7893c47e5bb7</guid>
            <category><![CDATA[recursive-language-models]]></category>
            <category><![CDATA[failure-analysis]]></category>
            <category><![CDATA[mitigation]]></category>
            <category><![CDATA[fastworkflow]]></category>
            <dc:creator><![CDATA[Rakshitpandhi]]></dc:creator>
            <pubDate>Wed, 01 Jul 2026 11:16:36 GMT</pubDate>
            <atom:updated>2026-07-01T11:16:36.816Z</atom:updated>
            <content:encoded><![CDATA[<h4>Improving Memory-Augmented AI Agents: Lessons from Failure Analysis</h4><h4>Brief recap and what this article delivers</h4><p>Across this series, we framed a problem and diagnosed it. Article 1: conversational agents drown in their own tool outputs, and because success is measured by exact database state, lossy summarization is not an option, so we offloaded large observations to an <strong>RLM-backed memory layer</strong> that retrieves by writing and executing code. Article 2: We opened the failed trajectories and found that code-based retrieval doesn’t eliminate errors; it relocates them into <strong>RLM</strong>, <strong>Planner</strong>, and <strong>Execution Agent</strong> failures.</p><p>For further understanding, refer to <a href="https://medium.com/@rakshitpandhi2802/the-memory-problem-nobody-designs-for-until-it-breaks-4b44a423b889?sharedUserId=rakshitpandhi2802">Article 1</a> and <a href="https://medium.com/@rakshitpandhi2802/the-failure-modes-of-memory-augmented-ai-agents-7cc078bc529a">Article 2</a>.</p><p>This article is the turn from diagnosis to treatment. For each failure mode we identified, we describe the mitigation we thought would work, and also a revised failure taxonomy, and score on those 15 tasks we tested.</p><h4><strong>Iterative improvements: failure modes and mitigations</strong></h4><p><strong>1. Repeated “not found” retrieval loops → expose the full key index</strong></p><p><strong>The failure.</strong> The RLM would fixate on a small preview of memory and search for a key format it invented, “order #W1603792” when the real key was “order details for #W1603792 — …”. The substring never matched, the code cleanly returned None, and the RLM submitted <strong>“not found”</strong> for data that was sitting right there.</p><p><strong>The fix.</strong> We changed the retrieval interface to hand the RLM the <strong>complete list of available keys</strong> and the <strong>total entry count</strong> on every call. The model no longer guesses what keys might exist; it sees exactly what does.</p><p>For example,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*Wkt2SVGl2sHUfiyfJSfWhw.png" /></figure><p><strong>2. Schema-agnostic retrieval errors → give the RLM the schema</strong></p><p><strong>The failure.</strong> Even when the RLM found the right entry, it queried the JSON with <strong>wrong attribute names</strong>, because it had no model of the τ²-bench retail schema. It would reach for a field that didn’t exist, or the wrong nesting, and silently return nothing useful.</p><p><strong>The fix.</strong> We provided a <strong>schema representation</strong> of the retail database to the RLM. Retrieval is now grounded: the model generates attribute references it knows are valid.</p><p><strong>3. Schema awareness across all components → ground the Planner and Agent too</strong></p><p><strong>The failure.</strong> We initially treated schema knowledge as a retrieval concern. But the trajectories showed schema-shaped failures in the Planner and Execution Agent, plans that referenced invalid attributes or built malformed query structures, which then propagated into the RLM and surfaced as retrieval failures. The fault looked like the RLM’s; the origin was the Planner’s. This is the cascade pattern from Article 2, with a schema gap as the seed.</p><p><strong>The fix.</strong> We pushed the <strong>same structured schema</strong> to the Planner and the Execution Agent, not just the RLM. Now every layer shares one understanding of the data.</p><p><strong>4. Context compression hurting planner performance → maintain separate planner and execution views</strong></p><p><strong>The failure.</strong> Before introducing the RLM, tool outputs were stored directly in the trajectory, allowing the planner to inspect the full context when generating execution plans. After introducing memory retrieval, the trajectory contained only keys and concise retrieved answers. While this reduced context length, it also removed supporting information that the planner had previously relied on, possibly leading to planning errors despite successful retrieval.</p><p><strong>The fix.</strong> We maintained two trajectory views: a compressed memory-centric view for the execution agent and a full tool-output view for the planner. This allowed execution to remain context-efficient while preserving the richer information needed for effective planning.</p><h4><strong>Results:</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*ipdjBpMRXPx9TUDycbEEqA.jpeg" /></figure><p><strong>Revised Failure Taxonomy</strong></p><p>Following the mitigations discussed above, we revisited the failure analysis to understand how the distribution of errors had changed. The revised failure taxonomy below updates the taxonomy presented in Article 2, highlighting which failure modes were reduced, which persisted, and where further improvements are still needed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IntQqC9GB6o06cBqZh19pA.png" /></figure><p>The proposed mitigations successfully reduce several failure modes. However, for some tasks, the original failure no longer occurred, but a different failure mode surfaced instead. In other words, while the task continued to fail, the underlying reason for the failure shifted after the mitigations.</p><p>This may be because the planner, execution agent, and memory layer are tightly coupled, so changes in one component can influence the behavior of the others, as well as the higher inference variance exhibited by smaller language models.</p><h4><strong>Insights</strong></h4><ul><li><strong>Progress, Not Perfection</strong></li></ul><p>Even after applying the mitigations, several failure modes continued to persist, highlighting that the current RLM implementation remains far from optimal. However, the progression from 0 successful tasks to 2, and subsequently to 5, demonstrates that many failures are addressable through better memory design rather than being fundamental limitations of the approach.</p><p>More importantly, these improvements validate the core premise behind the RLM: memory can be a meaningful enabler for long-horizon agentic workflows. While the current implementation leaves significant room for improvement, the results suggest that the right retrieval strategies, memory representations, and planning interfaces can unlock substantially better performance. The lesson is not that the RLM should be discarded, but that it remains a promising direction whose full potential has yet to be realized.</p><ul><li><strong>Variance in Failure Modes</strong></li></ul><p>Since the planner, execution agent, and memory layer are tightly coupled, task outcomes can vary across runs. A task that previously failed due to one component may later fail because of a different component, or even a task that had passed earlier may fail after a mitigation. This behavior was more noticeable with smaller models, whose higher reasoning variability makes such shifts more common.</p><ul><li><strong>Reproducibility</strong></li></ul><p>Another interesting observation was that the two tasks that passed in the initial evaluation were not among the five tasks that passed after the mitigations. Instead, a different set of tasks succeeded. This suggests that, in addition to improving specific failure modes, the system exhibits noticeable run-to-run variance when using smaller models. It also indicates that improving reproducibility remains an important direction for future work.</p><ul><li><strong>Performance Trade-offs</strong></li></ul><p>While the RLM enables retrieval, it also introduces additional computational overhead. Retrieving information often requires multiple RLM calls, increasing execution time (typically <strong>500+ seconds</strong>, around <strong>10 minutes</strong> per task) as well as token consumption. Although the token overhead is currently modest due to the limited scale of the benchmark, both latency and retrieval cost are important considerations as memory-augmented systems scale to larger workloads.</p><h4><strong>Recommendations</strong></h4><p>For practitioners building memory-augmented agents:</p><ul><li><strong>Ground every component in one schema.</strong> Not just the retriever, the planner, and the executor, too. Schema drift between layers may lead to errors.</li><li><strong>Treat retrieval as a decision.</strong> Let the agent choose when to recall and compose the query with full context.</li><li><strong>Instrument the code path.</strong> Log the content in, the code generated, and the value submitted. Silent failures demand visible internals.</li></ul><h4><strong>Future work</strong></h4><p>The current system demonstrates that memory-augmented, code-based retrieval is feasible and improvable. Several directions remain open:</p><ul><li><strong>Agentic planning.</strong> The planner invocation is currently deterministic. An agentic planner capable of iterative reasoning and self-correction could improve plan quality, adaptability, and overall reliability and would directly attack the planner failures of Article 2.</li><li><strong>Task decomposition for long-horizon problems.</strong> Explicit decomposition into finer-grained subtasks would improve execution and sharpen retrieval by giving the RLM smaller, better-scoped targets.</li><li><strong>Domain-specific RLM fine-tuning.</strong> The RLM currently relies on a general-purpose GPT-OSS-20B. Fine-tuning on workflow-specific interactions, memory structures, and benchmark data of any larger/frontier model could turn a generalist into a domain expert and eliminate several failure modes.</li><li><strong>Adaptive memory strategies.</strong> Dynamically adjusting memory organization, retrieval depth, and archival policy based on task complexity would make long-term memory use more efficient.</li><li><strong>Planner and Execution Alignment.</strong> Future work could leverage GEPA, distillation, or carefully designed few-shot examples to better steer the planner and execution agent on complex multi-step tasks, improving reasoning quality and tool-call selection even when the required information has been retrieved correctly.</li><li><strong>Performance Optimization.</strong> Future work should focus on reducing the end-to-end execution time of memory-augmented agents, enabling faster task completion while preserving retrieval and reasoning quality.</li></ul><h4><strong>In Conclusion</strong></h4><p>At the start of this project, we wanted to help agents reason over long, information-dense trajectories of structured JSON tool outputs, where relevant information was easily lost among many observations. Our initial hypothesis was to treat memory for structured data as a programmatic retrieval problem, with the RLM generating code to retrieve exactly what was needed. Through this work, we realized that memory is better understood as a systems problem than a retrieval problem. Once retrieval becomes reliable, the bottleneck shifts from finding information to ensuring that downstream components reason over and act on it correctly. Building robust memory-augmented agents, therefore, requires designing memory, planning, and execution as a single, co-evolving system.</p><h4><strong>Acknowledgements</strong></h4><p>Rakshit Pandhi principally authored this article. Sanchit Satija and Sharvil Oza are contributing authors who contributed to the implementation, experimentation, and review of this work.</p><p>The authors would like to thank Dhar Rawal for his guidance and technical mentorship throughout the project. This work was funded and supported by Radiant Logic.</p><h4>References</h4><ol><li><strong>Recursive Language Models (RLM):</strong> Zhang, E., Kraska, T., &amp; Khattab, O. <em>Recursive Language Models: Let the Model Find Its Own Context.<br></em>Paper:<a href="https://arxiv.org/abs/2512.24601"> https://arxiv.org/abs/2512.24601</a></li><li><strong>fastWorkflow:</strong> Satija, S., Bhatt, A., Jani, P., &amp; Rawal, D. <em>fastWorkflow: Closing the Performance Gap Between Small and Frontier Language Models for Conversational Agents.<br></em>Paper: <a href="https://dl.acm.org/doi/10.1145/3786335.3813158">https://dl.acm.org/doi/10.1145/3786335.3813158</a></li><li><strong>τ²-Bench:</strong> Barres, V., Dong, H., Ray, S., Si, X., &amp; Narasimhan, K. <em>τ²-Bench: Evaluating Conversational Agents in a Dual-Control Environment. </em>Paper:<a href="https://arxiv.org/abs/2506.07982"> https://arxiv.org/abs/2506.07982</a></li></ol><h3>Appendix</h3><p>Beyond the 15-task failure analysis presented in this series, we also evaluated the RLM-enabled system along with the mitigations shown above, on the full τ²-Bench benchmark and compared it against the original fastWorkflow implementation without the RLM memory layer. The objective of this comparison was not only to identify newly passing tasks, but more importantly, to understand why certain tasks regressed after introducing memory.</p><p>A detailed inspection of the regressed tasks led us to identify the following recurring failure categories:</p><ul><li><strong>Planner Errors (4 tasks): </strong>Several regressions originated from incorrect plans, particularly where the planner generated an incorrect cancellation reason. Although the downstream execution followed the generated plan faithfully, the incorrect planning decision ultimately resulted in task failure. Previously, the correct cancellation reason or any other values were correctly communicated by the planner, but have regressed now.</li><li><strong>Planner / Execution Agent Workflow Deviation (5 tasks): </strong>A number of regressions occurred because the planner or execution agent deviated from the expected workflow despite having the necessary information. For example, when a user requested an exchange for a pending order (an unsupported operation), the correct behavior was to modify the order instead. Instead, the agent either reported that the request could not be completed or selected an incorrect alternative, such as cancellation. Previously, in the non-RLM setup, this did not happen for these tasks, and it worked fine.</li><li><strong>Incomplete Execution (2 tasks): </strong>A number of tasks failed because the execution agent performed only a subset of the planned actions while still reporting successful completion, which was not the case in the non-RLM setup for these tasks.</li><li><strong>Schema Awareness Issues (2 tasks):</strong> Several regressions arose because required attributes or filters were omitted during reasoning. For example, the RLM failed to apply the appropriate availability filter before selecting candidate items, leading to incorrect items being selected despite the required information being present. In the original fastworkflow pipeline, the complete tool outputs remained available in the trajectory, which allowed downstream reasoning over the retrieved information without requiring such filters to be made.</li><li><strong>RLM / Database Value Awareness (2 tasks).</strong> A few failures highlighted the interaction between retrieval and database conventions rather than retrieval quality itself. For example, one task asked to exchange a <strong>Google Home</strong>, whereas the product was stored in the database as <strong>Google Assistant</strong>. The RLM, therefore, generated a strict lookup for <em>Google Home</em> and failed to retrieve the intended item. Here, too, as the schema issues, in the original fastWorkflow pipeline, the complete tool outputs remained available in the trajectory, allowing downstream reasoning over the retrieved information without requiring an exact retrieval query.</li><li><strong>RLM Retrieval Error (1 task):</strong> Another failure originated inside the RLM’s recall step rather than the plan or the agent. Even when the required data was fully present in the RLM’s context, a code generation bug in the generated retrieval logic failed to surface it, inspecting the wrong part of the document, or matching values as literal strings rather than applying the intended semantic or numeric comparison(for example, when asked for a “shorter” option, the generated code matched the length as a literal string like “28-inch” against the stored “28 inch” and had no notion of “shorter than” as a numeric comparison). These code generation bugs produced false negatives that the agent accepted as ground truth, leading it to act on incomplete information and ultimately fail the task. This failure was purely because of the RLM in place, which was not the case in the non-RLM setup, mainly because the whole tool output was present in the trajectory to reason over.</li><li><strong>Execution Agent Error(1 task):</strong> Another failure occurred where both the plan and the RLM behaved correctly, but the execution agent committed to an action prematurely. The agent gathered only partial information before acting, rather than completing the enumeration or verification the situation required, and as a result missed expected branches such as disambiguation or confirmation.</li></ul><p>Overall, the regression analysis suggests that introducing the RLM surfaced a distinct set of memory-related failures, including schema awareness issues, retrieval errors, and mismatches between retrieval queries and database conventions. The remaining regressions primarily stem from planning and execution agent behavior rather than the retrieval mechanism itself. This distribution indicates that the RLM, planner, and execution agent are tightly coupled, such that changes or improvements in one component can influence the behavior of the others. Finally, since the system relies on relatively small language models, some regressions may also be attributable to inherent model variance, where outputs differ across runs despite the RLM, planner, or execution logic working fine.</p><p><strong>Analysis of Newly Passed Tasks</strong></p><p>Beyond the regression analysis, the RLM-enabled system also successfully completed several tasks that had previously failed in the original fastWorkflow setup. Although many new tasks passed after introducing the RLM, not all of them were directly attributable to the memory architecture. Some succeeded due to unrelated improvements, such as fixes to the user simulator or validation logic. In this appendix, we focus on the newly passing tasks that provide meaningful insights into the effects of the RLM, planner, and execution agent, as these are most relevant to understanding the architectural changes.</p><ul><li><strong>Execution Agent Improvements (2 tasks)</strong>: In the original setup, the execution agent either hallucinated successful completion without performing all requested actions or acted prematurely without exhaustively checking all relevant orders before taking an action. These tasks were completed successfully in the RLM-enabled system, indicating improved execution behavior.</li><li><strong>Planner / Execution Agent Workflow Deviation (6 tasks):</strong> Several tasks that previously failed because the planner or execution agent selected an incorrect workflow have now been completed successfully. For example, when an exchange request for a pending order could not be performed directly, the agent previously transferred the user to a human agent, rejected the request, or selected an incorrect alternative, such as cancellation. After the changes made to the original fastworkflow pipeline, the agent instead followed the intended workflow by transitioning to the appropriate alternative action (e.g., modifying the pending order).</li><li><strong>RLM-Assisted Planning (1 task).</strong> One task previously failed because the planner incorrectly assumed that two tablets had to belong to the same order, whereas they were actually present across two different orders. The RLM’s targeted retrieval surfaced the correct evidence, enabling the planner to generate the correct tool call and successfully complete the task.</li></ul><p>Overall, the newly passed tasks provide further evidence that changes across retrieval, planning, and execution can collectively influence agent behavior. Studying these cases complements the regression analysis by highlighting where the RLM-enabled architecture and the surrounding agent pipeline behaved as intended.</p><p><strong>Conclusion from this analysis</strong></p><p>Taken together, the regression and newly passing analyses reinforce several observations made throughout this work. Failure modes such as planner/execution workflow deviation and incomplete execution appeared in both analyses, indicating that the same class of errors can either surface or disappear across runs. This suggests that, when working with small language models, a degree of behavioral variance remains inevitable; a task that previously failed due to one component may later fail for a different reason, or even complete successfully. More importantly, these observations further support the view that memory, planning, and execution form a tightly coupled system, where changes to one component can shift failures to another, reinforcing the cascading effect observed throughout this study.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7893c47e5bb7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Failure Modes of Memory-Augmented AI Agents]]></title>
            <link>https://medium.com/@rakshitpandhi2802/the-failure-modes-of-memory-augmented-ai-agents-7cc078bc529a?source=rss-09291c706c11------2</link>
            <guid isPermaLink="false">https://medium.com/p/7cc078bc529a</guid>
            <category><![CDATA[failure-analysis]]></category>
            <category><![CDATA[recursive-language-models]]></category>
            <category><![CDATA[fastworkflow]]></category>
            <dc:creator><![CDATA[Rakshitpandhi]]></dc:creator>
            <pubDate>Mon, 29 Jun 2026 04:09:48 GMT</pubDate>
            <atom:updated>2026-07-04T10:11:04.541Z</atom:updated>
            <content:encoded><![CDATA[<h4>Dissecting the failure modes of memory-augmented AI agents</h4><h4><strong>Brief recap and what this article delivers</strong></h4><p>In Article 1 of this series, we made a case and a bet. The case: conversational agents drown in their own observations, and lossy summarization is fatal when success is measured by byte-exact database state. The bet: offload large structured tool outputs to an RLM-backed memory layer that retrieves not by embedding similarity but by writing and executing Python code against the archived content, buying precision at the cost of a new failure surface.</p><p><em>For a detailed understanding, refer to </em><a href="https://medium.com/@rakshitpandhi2802/the-memory-problem-nobody-designs-for-until-it-breaks-4b44a423b889?sharedUserId=rakshitpandhi2802"><em>Article 1</em></a><em>.</em></p><p>This article investigates the effectiveness of that bet<strong>.</strong> We work from a deliberately chosen slice of the τ²-bench retail domain: <strong>15 tasks, hand-selected because an initial pass flagged them as failures most likely attributable to memory/context size.</strong> This is not a random sample; it’s an enriched one, picked precisely to put the memory system under maximum stress.</p><p>One insight quickly became clear while analyzing the failed tasks: not every failure was a memory failure. In many cases, the RLM retrieved the correct information, yet the planner or execution agent made a mistake. We found that introducing memory created a <strong>cascading effect</strong> across the agent pipeline — changes in retrieval influenced downstream planning and execution. Understanding these interactions became the motivation for building the failure taxonomy presented in this article.</p><p>The good news is that nothing is hidden: because we can see the whole trajectory, the code the model wrote, the data it read, and the answer it returned, these quiet failures are actually straightforward to catch once you know to look for them.</p><p>What you’ll get below is a three-layer taxonomy, mapped one-to-one onto the stack: failures inside the RLM, failures in the planner or execution agent, and schema awareness issues. Each mode is explained with a concrete trace from these 15 tasks.</p><h4>Failure Mode Taxonomy</h4><p>The benchmark revealed that memory failures were not concentrated in a single component. Instead, they emerged at multiple components of the agent stack, ranging from retrieval-time reasoning mistakes to downstream planning and execution errors. To better understand these breakdowns, we grouped the observed failures into three categories: Intrinsic RLM Failures, Cross-Layer Failures, and Schema Awareness Issues.</p><p>In this section, we dive into each failure mode, explain how it manifests in practice, and illustrate it with real execution traces from the benchmark.</p><h4><strong>Intrinsic RLM Failures</strong></h4><p>These failures originate inside the Recursive Language Model (RLM) itself. In other words, the memory layer had access to the information required to complete the task, but failed due to its own reasoning or retrieval behavior.</p><p><strong>1. RLM Reasoning Issues</strong></p><p>One of the most surprising failure modes involved the RLM correctly identifying the answer but failing to return it through the intended workflow.</p><p>Instead of invoking the required SUBMIT action, the model only printed it repeatedly. From the system’s perspective, the answer never left the RLM and was therefore invisible to downstream components.</p><p>This failure highlights an important distinction between <em>knowing the answer</em> and <em>successfully participating in an agent workflow</em>. In agentic systems, correct reasoning is not sufficient; the reasoning must also be expressed through the expected protocol.</p><p><strong>Example of this failure:</strong></p><ul><li>The RLM’s reasoning mentions five steps in correct hierarchy but only mentions printing the results, whereas it requires to call SUBMIT inorder to communicate and return the answer which wasn’t done.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*goRxSmEHPdJPEDugziaVuA.png" /></figure><ul><li>Thus, the max iterations of 20 were reached, and it used the extract method to return the answer, which was wrong because the retrieved answer from the code was not communicated.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*U7txnQfCOIk3Nl4txH7dqg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/681/1*KXE2MLgofwZpYiMbvk4P9g.png" /></figure><p><strong>2. Repeated “Not Found” Loops</strong></p><p>In this failure mode, the RLM prematurely concluded that the requested information did not exist.</p><p>Rather than exhaustively exploring the available memory space, it repeatedly issued responses indicating that no matching key could be found. Inspection of the logs showed that the desired information was often present in memory, but the retrieval process became trapped in a narrow search pattern and failed to expand its exploration.</p><p>This behavior resembles a local-search failure because of the preview the RLM sees and decides that information is not available: the information exists, but the retrieval strategy never reaches it.</p><p><strong>Example of this failure:</strong></p><ul><li>The data is in the content (the index lists #W1994898, and its full record incl. the Washington, DC address, is present):</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*zDHywOYn9gFdF0y3X7bUwA.png" /></figure><ul><li>The RLM prints “not found” every iteration:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*WOkzP34S5WBHjrnQduQZ5g.png" /></figure><p>Order #W1994898 and the Washington, DC address, the task required was present in the content. The RLM hallucinated a 3-key index, printed “not found” across the iterations.</p><h4>Cross-Layer Failures</h4><p>Not all failures originated in the memory layer itself. In many cases, retrieval succeeded, but downstream components misused or ignored the retrieved information.</p><p><strong>3. Execution / Planner Mistakes</strong></p><p>In these cases, the RLM successfully retrieved the correct evidence, but the planner mentioned the wrong value.</p><p>Sometimes the plan itself was under-specified or misinterpreted the request. When a user asks to change a single attribute of an item (for example, its color), the unchanged attributes are expected to stay fixed, a domain convention the user rarely states explicitly. The planner, lacking this rule, would reduce the request to the single-mentioned attribute and instruct the system to “find the matching variant” without constraining the rest. The plan was therefore wrong before any action was taken, and the downstream stages faithfully executed a flawed instruction.</p><p>In other cases, the plan was correct, but the execution agent picked the wrong item while carrying it out. The RLM surfaced a set of valid candidates, and the agent reasoned over a long context containing the schema, prior trajectory, and the full candidate list, anchored on the most recently mentioned attribute, and lost the constraints buried earlier in the context. The selected item satisfied the requested change but violated an attribute the user never intended to alter.</p><p>This failure demonstrates that retrieval quality and task success are not equivalent. Even perfect retrieval can fail if subsequent reasoning stages misinterpret the retrieved context.</p><p><strong>Example of this failure:</strong></p><ul><li>The user’s request</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*OoZ628c4NhD3X8tpJvWu8Q.png" /></figure><ul><li>The original item being changed<strong>:</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*-BFi2VsEw0ZefuTSjkB3IQ.png" /></figure><ul><li>The planning step containing the error</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*JgOnZWyBz8U8qh0hc2k_jg.png" /></figure><ul><li>The variants available, what retrieval actually returned, three red variants were available, including the correct one:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*fgn6Piq35TpRg340mdq2sA.png" /></figure><ul><li>The tool call the agent made<strong>:</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*W6tbx8Ck4MZAtNKQE06r4g.png" /></figure><p>The original luggage set was a 2-piece set; the user asked only to change its color to red. The plan instructed the system to “identify the variant where “<em>options.color == red”</em>, constraining color and nothing else, even though three red variants existed. The agent selected 9956648681 (4-piece, red, hardshell), silently changing the piece count the user never mentioned, instead of 8964750292 (2-piece, red, hardshell), the only variant that changes color alone.</p><p><strong>4. Incomplete Execution</strong></p><p>Another class of failures appeared during execution.</p><p>Here, the planner generated a largely correct sequence of actions, but the execution agent completed only a subset of those actions. Despite the incomplete execution, the agent reported that all requested tasks had been completed successfully.</p><p>This failure is particularly concerning because it creates the illusion of success. Unlike retrieval failures, which are often visible, execution failures can silently produce incomplete outcomes while appearing correct to the user.</p><p><strong>Example of this failure:</strong></p><ul><li>The plan correctly mentions the three steps to execute.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*a-blaXhercRrtTm9wP4D7g.png" /></figure><ul><li>It correctly performs the first two steps, but doesn’t execute the last step and still mentions that all the user’s requests have been fulfilled.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*kFUmVTM2sDeDPSjG9KWLCA.png" /></figure><p><strong>5. Planner/Execution Agent Deviation</strong></p><p>In this failure mode, the planner/execution agent correctly recognizes that the requested action cannot be performed directly, but fails to preserve the user’s underlying intent.</p><p>For example, a user may request cancellation of a specific item within an order. When item-level cancellation is unavailable, the planner/agent identifies an alternative action, such as canceling the entire order, but neglects other valid pathways that better align with the expected resolution. In our benchmark, the ground-truth behavior required modifying the order, whereas the planner/agent prematurely converged on full order cancellation as the only available option.</p><p>The planner/agent substitutes the user’s goal with a nearby but incorrect objective, resulting in an incorrect outcome relative to the benchmark specification.</p><p><strong>Example of this failure:</strong></p><ul><li>The deviation reasoning:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/671/1*3L9_l0TlIibUWCnFHF0QUQ.png" /></figure><ul><li>The substituted action:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*OrmfPuinqF5gnW9Q0DMnig.png" /></figure><p>Ground truth required <em>modify_pending_order_items</em> on the pending order. The agent treated the pending as a blocker and substituted a full cancellation.</p><h4>Schema Awareness Issues</h4><p>The final category of failures stemmed from insufficient understanding of the underlying data structure.</p><p><strong>5. Schema Hallucination</strong></p><p>Several failures stemmed from incorrect assumptions about the underlying data schema made by the RLM, planner, or execution agent. In some cases, non-existent fields were referenced; in others, relevant attributes were omitted, or relationships between fields were misinterpreted. Although the required information was present, these schema mismatches led to incorrect retrieval, flawed planning decisions, or invalid execution actions. Such failures became increasingly prevalent as the complexity and diversity of structured data grew.</p><p><strong>Example of this failure:</strong></p><ul><li>Example of schema hallucination where the model queried non-existent fields due to an incorrect schema assumption. There is no attribute name <em>product_type_id</em>; it is <em>product_id</em> instead.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/681/1*RCemu_YfRdI5O_MUtJSoWA.png" /></figure><ul><li>Example of schema hallucination, in the sense of lack of schema awareness, where the execution agent assumes that the puzzle with the fewest pieces is the easiest, whereas in the retail database for jigsaw puzzles, there is an attribute of difficulty level present.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*qZv_K3_7VwUMxYWmFkHPQw.png" /></figure><p><strong>Note:</strong> Log traces for the 15 tasks run are available in this repo.</p><p><a href="https://github.com/Programiz-007/fastworkflow_RLM_Traces/">GitHub - Programiz-007/fastworkflow_RLM_Traces</a></p><h4><strong>Summary of the failure modes:</strong></h4><p>The table below summarizes the taxonomy along with the frequency of each failure mode.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/598/1*rz8VDjQf9FD5vsMgOf7lWA.png" /></figure><p>A key takeaway from the taxonomy is that retrieval-related failures were comparatively fewer than planning and execution failures. This suggests that the RLM was largely successful at retrieving the required information, but its introduction created a <strong>cascading effect</strong> across the agent pipeline. Since the system operates as a tightly coupled planner–execution loop, changes in the form or representation of retrieved information can propagate downstream, influencing planning quality and execution behavior. This highlights that memory systems should be designed and evaluated at the system level, with retrieval, planning, and execution evolving together rather than in isolation.</p><h4>Looking Ahead</h4><p>Overall, only <strong>2 of the 15 analyzed tasks passed end-to-end</strong>. While the score is modest, the failure analysis revealed that many unsuccessful runs stemmed from a small set of recurring and actionable issues rather than fundamental limitations of the architecture.</p><p>These findings provided a clear roadmap for improvement. In Article 3, we introduce targeted mitigations for each failure mode, evaluate their impact on benchmark performance, and analyze how the score changes after addressing some of the identified weaknesses. We also discuss the broader lessons these improvements reveal about memory system design, remaining challenges, and future directions for building more reliable memory-augmented agents.</p><p>For article 3 refer: <a href="https://medium.com/@rakshitpandhi2802/from-failure-to-improvement-making-memory-augmented-ai-agents-more-reliable-7893c47e5bb7">Article 3</a></p><h4>Acknowledgements</h4><p>Rakshit Pandhi principally authored this article. Sanchit Satija and Sharvil Oza are contributing authors who contributed to the implementation, experimentation, and review of this work.</p><p>The authors would like to thank Dhar Rawal for his guidance and technical mentorship throughout the project. This work was funded and supported by Radiant Logic.</p><h4>References</h4><ol><li><strong>Recursive Language Models (RLM):</strong> Zhang, E., Kraska, T., &amp; Khattab, O. <em>Recursive Language Models: Let the Model Find Its Own Context.<br></em>Paper:<a href="https://arxiv.org/abs/2512.24601"> https://arxiv.org/abs/2512.24601</a></li><li><strong>fastWorkflow:</strong> Satija, S., Bhatt, A., Jani, P., &amp; Rawal, D. <em>fastWorkflow: Closing the Performance Gap Between Small and Frontier Language Models for Conversational Agents.<br></em>Paper:<a href="https://dl.acm.org/doi/10.1145/3738331.3738402"> https://dl.acm.org/doi/10.1145/3738331.3738402</a></li><li><strong>τ²-Bench:</strong> Barres, V., Dong, H., Ray, S., Si, X., &amp; Narasimhan, K. <em>τ²-Bench: Evaluating Conversational Agents in a Dual-Control Environment. </em>Paper:<a href="https://arxiv.org/abs/2506.07982"> https://arxiv.org/abs/2506.07982</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7cc078bc529a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Memory Problem Nobody Designs For Until It Breaks]]></title>
            <link>https://medium.com/@rakshitpandhi2802/the-memory-problem-nobody-designs-for-until-it-breaks-4b44a423b889?source=rss-09291c706c11------2</link>
            <guid isPermaLink="false">https://medium.com/p/4b44a423b889</guid>
            <category><![CDATA[retrieval]]></category>
            <category><![CDATA[recursive-language-models]]></category>
            <category><![CDATA[fastworkflow]]></category>
            <category><![CDATA[ai-memory]]></category>
            <dc:creator><![CDATA[Rakshitpandhi]]></dc:creator>
            <pubDate>Sun, 28 Jun 2026 12:53:24 GMT</pubDate>
            <atom:updated>2026-07-04T10:14:23.242Z</atom:updated>
            <content:encoded><![CDATA[<h4>Rethinking memory for conversational agents through retrieval and code.</h4><h3>Motivation</h3><p>When people build tool-using conversational agents, they obsess over the reasoning, the planner, the prompt, the chain of tool calls. Almost nobody designs for the thing that actually kills these agents in production: <strong>the agent drowns in its own observations.</strong></p><p>Consider a single, unremarkable turn in a customer-service workflow. The user asks to return a bookshelf. The agent calls get_order_details and gets back this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*Y4Qor36qk6pf906KorqSVw.png" /></figure><p>That’s one tool call. A real task involves five or six orders, several product-detail lookups (each with nine or more variants), and a handful of write operations whose responses echo the entire order object back. A single get_product_details for a luggage set returns nine fully-specified variants. By the third or fourth turn, the agent is carrying tens of thousands of tokens of structured JSON that it looked at once and will mostly never need again.</p><p>This is the part that’s easy to underestimate: <strong>most of those tokens are dead weight.</strong> The agent needed one field, an item_id, a status, and a tracking_id out of an 800-character blob. But the whole blob sits in the context window, turn after turn, crowding out the conversation, the instructions, and the planner’s own reasoning.</p><h3><strong>What happens when you don’t solve this</strong></h3><p>Before we added a memory layer, the agent kept every raw observation in line. Three failure modes showed up immediately:</p><ol><li><strong>Trajectory overflow.</strong> Multi-step tasks blew past the context limit mid-conversation. The agent would authenticate the user, fetch four orders, and then simply run out of room before it could act; the earliest and most important instructions silently scrolled out of the window.</li><li><strong>Attention dilution.</strong> Even when everything fit, burying the one relevant item_id inside thousands of tokens of irrelevant JSON measurably degraded the model’s ability to find and use it.</li></ol><p>The naive fix, “just summarize the history,” is worse for this class of task. Summarization is lossy, and these workflows are exact. The benchmark doesn’t care whether the agent broadly understood the order; it checks whether the agent entered 8964750292, not 9956648681, into the database. Lose one digit to summarization, and the whole task fails. You cannot afford a lossy memory when the success criterion is byte-exact database state.</p><p><strong>The idea: treat memory as retrieval, and retrieval as code</strong></p><p>So we offload. When a tool response exceeds a size threshold, we don’t keep it inline, we <strong>archive</strong> it under a short, descriptive key and hand the agent back a tiny pointer:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*n5SmCyMerJuEMKFrtPkNTA.png" /></figure><p>The agent’s context now holds a one-line reference instead of an 800-character object. When it later needs a field, it asks for it in plain language: <em>“items list for order #W6239298,”</em> and a retrieval layer goes and gets exactly that.</p><p>The interesting design choice is how that retrieval works. Instead of embedding-based semantic search, we use a <strong>Reasoning Language Model (RLM)</strong> that retrieves by <strong>writing and executing Python code</strong> against the archived content. Want the items in an order? The RLM writes <em>json.loads</em>, finds the right key, extracts the items list, and returns it. This is precise in a way that vector similarity is not, and, as we’ll see across the next two articles, it introduces a brand-new and fascinating category of failure: the retrieval code itself can be subtly wrong, run without error, and confidently return the wrong answer.</p><p><strong>Scope: Conversational agents</strong></p><p>This series is about <strong>conversational, tool-using agents</strong> that hold a multi-turn dialogue with a user, call workflow APIs, and must maintain exact state across turns. The memory pressure, the exactness requirement, and the failure dynamics we describe are characteristic of this setting, and our claims apply specifically to conversational agents that we tested.</p><h3><strong>Implementation</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*DrnmmX83x888PdJrOdWehg.jpeg" /></figure><p>The system follows a planner–executor architecture augmented with a retrieval-based memory mechanism. When a user submits a query, the Planner analyzes the request and generates an execution plan. This plan is then passed to the Workflow Agent, which invokes the appropriate tools required to fulfill the task. Once a tool returns its output, the system evaluates the output size against a predefined threshold τ (tau), measured in tokens.</p><p>If the tool output contains fewer than τ tokens, it is considered lightweight and is inserted directly into the execution trajectory, allowing the workflow agent to continue processing without additional storage overhead. However, when the output exceeds τ tokens, the result is archived in a Memory Store rather than being injected directly into the context. This prevents context-window saturation and reduces unnecessary token consumption.</p><p>To access archived information, the Workflow Agent issues a search query to the Smart Retriever (RLM). The retriever searches the Memory Store, identifies the most relevant content, and returns a concise and precise response to the agent. By storing only large outputs and retrieving them on demand, the architecture maintains scalability, improves context efficiency, and enables handling of tool outputs that exceed the practical limits of the model’s active context window.</p><h3><strong>Methodology</strong></h3><p><strong>Study design</strong></p><p>Our goal was not to report a single accuracy number. It was to <strong>attribute every failure to a specific layer of the stack</strong> so that mitigations could be targeted rather than guessed at. That goal drove every methodological choice below.</p><p>The system under study is a three-layer stack:</p><ul><li><strong>Planner</strong> — a single LLM call that produces an execution plan based on the user’s query. The planner is conditioned on a fixed set of 27 distilled planning insights (e.g., “after <em>find_user_id</em>, always call <em>get_user_details”; “</em>for pending-order item changes, call <em>modify_pending_order_items</em> exactly once after explicit confirmation<em>”</em>) to improve planning consistency.</li><li><strong>Execution Agent</strong> — translates the planner’s intent into concrete workflow commands, formatting parameters as XML (<em>&lt;order_id&gt;#W4860251&lt;/order_id&gt;</em>).</li><li><strong>RLM (memory/retrieval)</strong> — when an observation is archived, the RLM retrieves specific fields by generating and running Python in a sandbox, terminating with a SUBMIT() call carrying the answer.</li></ul><p><strong>Benchmark: τ²-bench (retail)</strong></p><p>We evaluate on the <strong>retail domain of τ²-bench</strong>, a benchmark purpose-built for tool-using conversational agents. We chose it for three reasons:</p><ol><li><strong>Exact, programmatic scoring.</strong> Each task has a ground-truth set of database writes. Scoring is not a judge model’s opinion; it’s a deterministic check of whether the resulting database state matches expectation. This is what lets us say a task failed with zero ambiguity.</li><li><strong>Realistic observation pressure.</strong> Retail tasks naturally produce the large, structured tool outputs (order details, product catalogs with many variants) that create exactly the memory problem this series is about.</li><li><strong>A simulated user.</strong> Tasks are multi-turn dialogues with a user simulator, so the agent must gather information, confirm actions, and act, the full conversational loop, not a single API call.</li></ol><p>A critical scoring nuance we lean on throughout: <strong>the task-level reward is binary and conjunctive.</strong> An agent can get most of a task right, authenticate correctly, return two of three items correctly, update the right address, and still score <strong>0.0</strong> because one write was wrong. The benchmark surfaces per-action checks (so we can see “3 of 5 writes correct”), but the headline reward is all-or-nothing. This is what makes single-digit errors so consequential and makes layer attribution worth doing carefully.</p><p><strong>Models</strong></p><p>Every role in the stack: planner, execution agent, and the RLM’s code generation is driven by <strong>gpt-oss-20b served on Groq</strong>. Using one model for all roles is deliberate: it removes “we used a stronger model for the hard layer” as a confound, so any difference in failure rate across layers reflects the task structure of that layer, not the model assigned to it. Note that no temperature was fixed, so the model is <strong>non-deterministic,</strong> which is precisely why reproducibility is part of the methodology rather than an afterthought.</p><h3><strong>How we attribute a failure to a layer</strong></h3><p>This is the core of the methodology. For every failed task, we reconstruct the full trajectory and walk it step by step, classifying the failure into exactly one of three layers using these criteria:</p><ul><li><strong>RLM failure</strong>: the retrieval layer returned wrong or “not found” data when the correct data was demonstrably present in the store. The cause is a generated code block whose logic is subtly wrong (a bad substring search, a skipped “json.loads”, a miscount) that runs cleanly and submits a wrong answer. We confirm by inspecting the exact content sent to the RLM and the exact code it generated.</li><li><strong>Execution Agent failure</strong>: the planner’s intent was correct, and the data was correct, but the command was malformed (e.g., using a wrong XML tag name for a parameter). Or execution not performing the steps mentioned in the plan.</li><li><strong>Planner failure:</strong> the retrieved data was correct and available, but <strong>the plan produced for the task was incorrect.</strong> The planner reasoned to the wrong course of action, choosing the wrong tool, the wrong item, an incomplete set of steps, or a wrong conclusion drawn from correct information.</li></ul><p><strong>Note.</strong> During the analysis, we also identified <strong>schema awareness</strong> as a recurring cross-cutting cause of failures. Rather than treating it as a separate layer, we attributed each failure to the architectural layer in which it first manifested (RLM, Planner, or Execution Agent) while additionally noting whether incorrect or incomplete schema understanding contributed to the failure.</p><p>We don’t infer the failure category from the final score; we identify the <strong>exact log lines</strong>, the content that went into the RLM, the code it generated, the value it returned, the planner’s verbatim plan, and the final command.</p><h3><strong>What does RLM do?</strong></h3><p>Recursive Language Models (RLMs) introduce a different approach to reasoning by treating information as an external environment rather than forcing all of it into a single context window. Leveraging iterative interactions through a REPL-style execution loop, an RLM can inspect relevant portions of data, decompose a task into smaller subtasks, recursively invoke itself when needed, and combine intermediate results into a final answer. This enables reasoning over information that may be significantly larger than the model’s context window while avoiding context overload. In our system, this capability is further leveraged to retrieve specific information from structured JSON-based tool outputs, allowing targeted access to relevant fields and records instead of processing entire raw outputs.</p><h3><strong>Why RLM?</strong></h3><p>One might argue that introducing an RLM does not eliminate the need for a language model, since the RLM itself is powered by GPT-OSS-20B. However, the key advantage lies in how information is accessed. Without an RLM, large tool outputs — often represented as structured JSON documents — must be appended directly to the agent’s context, quickly consuming the model’s limited context window.</p><p>In contrast, an RLM treats archived data as an external environment rather than part of the active prompt. Through its REPL-style execution loop, it can inspect relevant portions of the stored data, perform targeted retrieval over specific JSON fields and records, and recursively refine its search when necessary. Importantly, the archived content is never fully injected into the context of the RLM itself; only the information required for the current query is processed and returned.</p><p>This enables two key benefits: preventing large tool outputs from flooding the context window of a compact model such as GPT-OSS-20B, and providing more precise retrieval over structured JSON data instead of reasoning over entire raw outputs. As a result, the system achieves scalable memory access and efficient long-context reasoning without requiring a larger model or context window.</p><h3><strong>Why We Chose an RLM Instead of Other Memory Architectures?</strong></h3><p>The choice of memory architecture should be driven by the nature of the data being stored. In our case, the memory consisted primarily of structured JSON records rather than natural language conversations, documents, or user preference histories.</p><p>This made retrieval fundamentally different from traditional RAG-style systems. Vector search excels when semantic similarity is the primary retrieval signal, but many of our queries required exact reasoning over attributes, identifiers, nested fields, and structured relationships. Similarity-based retrieval can struggle when the objective is to locate a precise value rather than semantically related content.</p><p>We also considered memory systems such as Mem0, Supermemory, and Graph-based approaches. However, these systems are primarily designed around long-term natural language conversational memory, user preferences, knowledge retrieval, or relationship tracking across entities. Our problem was closer to querying a structured database than recalling conversational context.</p><p>An RLM offered several advantages for this setting:</p><ul><li>Direct reasoning over structured JSON fields and nested attributes.</li><li>Deterministic retrieval based on queries rather than similarity scores.</li><li>Better handling of IDs, codes, numerical values, and exact-match lookups.</li><li>Explainable retrieval trajectories that can be inspected and debugged.</li><li>Reduced retrieval noise by returning targeted records instead of semantically similar chunks.</li></ul><p>Most importantly, the RLM aligned with the benchmark’s core requirement: retrieving the correct structured information, not merely the most semantically similar information.</p><h3><strong>Contributions and Roadmap</strong></h3><p>This is, to our knowledge, one of the first <strong>layer-attributed failure studies of RLM-as-memory in conversational agents</strong>. Concretely, the series delivers:</p><ol><li><strong>A working architecture</strong> for offloading large tool observations to an RLM-backed memory layer, where retrieval happens through generated, executed code rather than embedding similarity, preserving the byte-exact precision that database-writing agents require.</li><li><strong>A three-pillar failure taxonomy</strong> (Article 2) that separates intrinsic RLM failures and bugs inside the retrieve-via-code loop from cross-layer interface failures between the planner and the execution agent, and the schema issues. Each failure mode is quantified and traced to exact log lines, not asserted from final scores.</li><li>A<strong> reproducible attribution methodology</strong>, line-level trajectory analysis under pass^k on τ²-bench that pins every failure to a specific component of the system (the RLM, the planner, or the execution agent) and, crucially, exposes cascading failures.</li></ol><h4><strong>Next in the series</strong></h4><ul><li><strong>Article 2: A Failure Taxonomy for RLMs in Agent Conversational Tasks.</strong> We open the trajectories and name the failure modes: the silent wrong-substring search, the skipped deserialization, the large-content miscount, and the planner’s confusion of pending vs delivered state. Each mode gets a frequency, a worked example, and a root cause. For article 2, refer to <a href="https://medium.com/@rakshitpandhi2802/the-failure-modes-of-memory-augmented-ai-agents-7cc078bc529a">Article 2</a>.</li><li><strong>Article 3: Mitigations and a Path Forward.</strong> We present targeted mitigations for each failure mode identified in the taxonomy, evaluate their impact on benchmark performance, and analyze the broader lessons they reveal about designing reliable memory layers for agentic systems. Beyond immediate fixes, we discuss remaining challenges, failure modes yet to be captured, and key research directions for building memory architectures that are correct not merely on average, but consistently under real-world conditions. The article concludes with recommendations for future evaluation frameworks, memory system design, and agent reliability at scale. For article 3, refer to <a href="https://medium.com/@rakshitpandhi2802/from-failure-to-improvement-making-memory-augmented-ai-agents-more-reliable-7893c47e5bb7">Article 3</a>.</li></ul><h3>Acknowledgements</h3><p>Rakshit Pandhi principally authored this article. Sanchit Satija and Sharvil Oza are contributing authors who contributed to the implementation, experimentation, and review of this work.</p><p>The authors would like to thank Dhar Rawal for his guidance and technical mentorship throughout the project. This work was funded and supported by Radiant Logic.</p><h3>References</h3><ol><li><strong>Recursive Language Models (RLM):</strong> Zhang, E., Kraska, T., &amp; Khattab, O. <em>Recursive Language Models: Let the Model Find Its Own Context.<br></em>Paper: <a href="https://arxiv.org/abs/2512.24601">https://arxiv.org/abs/2512.24601</a></li><li><strong>fastWorkflow:</strong> Satija, S., Bhatt, A., Jani, P., &amp; Rawal, D. <em>fastWorkflow: Closing the Performance Gap Between Small and Frontier Language Models for Conversational Agents.<br></em>Paper:<a href="https://dl.acm.org/doi/10.1145/3786335.3813158"> https://dl.acm.org/doi/10.1145/3786335.3813158</a></li><li><strong>τ²-Bench:</strong> Barres, V., Dong, H., Ray, S., Si, X., &amp; Narasimhan, K. <em>τ²-Bench: Evaluating Conversational Agents in a Dual-Control Environment. </em>Paper:<a href="https://arxiv.org/abs/2506.07982"> https://arxiv.org/abs/2506.07982</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4b44a423b889" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>