# From Faulty Memories to Corrected Actions: Dependency-Guided Rollback Repair for Memory-Augmented Agents

DevFeed: [From Faulty Memories to Corrected Actions: Dependency-Guided Rollback Repair for Memory-Augmented Agents](<https://devfeed.tech/articles/from-faulty-memories-to-corrected-actions-dependency-guided-rollback-repair-for-memory-augmented-agents-97961.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2608.10502>)

Author: Yiqi Wang, Caili Yu, Jiaqi Zhang, Yiqun Duan, Mingkai Zheng, Zhangkai Wu, Kaize Shi, Taotao Cai

Published: 2026-10-23T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>)

Topics: [Error Handling](<https://devfeed.tech/topics/error-handling.md>), [LLM security](<https://devfeed.tech/topics/llm-security.md>), [long-running](<https://devfeed.tech/topics/long-running.md>)

Tags: [actions](<https://devfeed.tech/tags/actions.md>), [agents](<https://devfeed.tech/tags/agents.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [dependency](<https://devfeed.tech/tags/dependency.md>), [memory](<https://devfeed.tech/tags/memory.md>), [recovery](<https://devfeed.tech/tags/recovery.md>), [repair](<https://devfeed.tech/tags/repair.md>), [rollback](<https://devfeed.tech/tags/rollback.md>)

## AI overview

Dependency-guided rollback repair recovers answers after faulty memories affect an agent, while retaining unaffected work. It builds a typed memory-to-action graph from runtime provenance, follows downstream dependencies, preserves candidates with independent trusted support, deactivates unsupported state, and selectively replays affected answer-relevant computation. In a 150-case controlled benchmark, it achieved 85.3% immediate recovery versus 77.3% for LLM-judge repair, preserved all benign memories, and used 41.8% fewer LLM calls. The trade-off was higher recurrence: 26.6% versus 12.1%. On a 50-case trajectory-derived stress test adapted from LongMemEval-V2, recovery was 68.0% versus 54.0% for the next-best method, with 5.9% recurrence.

## Source excerpt

arXiv:2608.10502v2 Announce Type: replace Abstract: Persistent memory lets language model agents reuse information across sessions, but it also makes errors durable: a poisoned, stale, or misattributed record can alter reasoning, tool use, answers, and subsequent memory writes. Existing defenses mainly detect or delete suspicious memories, or revise the current response. Deleting the source leaves already propagated claims, actions, and derived memories active, whereas resetting the store or replaying the full trace destroys benign state and repeats unnecessary computation. We therefore formulate post-failure memory recovery: given a failed execution and diagnosed faulty memories, regenerate the answer and clean up affected persistent state while retaining unaffected work. Our dependency-guided rollback repair builds a typed memory-to-action graph from runtime provenance, traces explicit downstream dependencies, preserves candidates with independent trusted support, deactivates unsupported memory state, and selectively replays only answer-relevant affected computation. We evaluate this approach on a 150-case controlled benchmark spanning three tool-use domains and four memory failure types, and on a 50-case trajectory-derived stress test adapted from LongMemEval-V2. On the controlled benchmark, it achieves 85.3% immediate recovery versus 77.3% for LLM-judge repair, the strongest baseline, while preserving all benign memories and using 41.8% fewer LLM calls. Selective replay, however, leaves higher recurrence than LLM-judge repair (26.6% vs. 12.1%), exposing a trade-off between targeted repair and broader recomputation. On the adapted subset, it reaches 68.0% recovery versus 54.0% for the next best method, with 5.9% recurrence. Code and data are available at https://github.com/xiaoqi-7/memory-rollback.