arXiv(opens in a new tab)cs.CRAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.29381

Safe to Resume? Breaking Execution Continuity of Agent Execution via Rollback

Guanlong Wu, Dahui Li, Ke Jiang, Jianyu Niu, Cong Wang, Yinqian Zhang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Guanlong Wu*, Dahui Li*, Ke Jiang*, Jianyu Niu†, Cong Wang†, Yinqian Zhang*, *Southern University of Science and Technology, †City University of Hong Kong

Abstract—AI agents are moving toward persistent, stateful execution across various applications, accumulating execution state and external effects that are costly to reconstruct after failures. Checkpoint and rollback (C/R) are becoming essential for recovery, yet their security implications remain largely unexplored. Correct rollback does not imply secure recovery: a faithfully restored checkpoint may resume an execution whose states, assumptions, and external effects never coexisted in any valid history. In this paper, we present the first systematic security study of checkpoint and rollback in existing agent systems. By examining representative agent C/R systems, we characterize the design space of existing C/R mechanisms and develop a general execution model that captures their recovery boundaries and state dependencies. From this model, we identify five fundamental failure modes spanning incomplete or inconsistent internal state, stale external dependencies, nondeterministic replay, and unrecorded external effects. We further demonstrate their security impact through three end-to-end attacks on Hermes, Cline, and LangGraph, enabling malware-verification bypass, unauthorized mail forwarding, and double payment. To systematically study these failures in practice, we develop a multi-agent analysis pipeline that reconstructs execution semantics, identifies violations of the five failure conditions, and validates them through actual rollback. Across five representative frameworks, our evaluation shows that these failures recur across heterogeneous C/R designs and stem from a common gap between the state restored by a checkpoint and the dependencies required for secure continuation.

I. INTRODUCTION

AI agents are moving from short-lived interactions toward persistent, stateful execution across autonomous research [1], coding [2], and enterprise services [3]. This shift is already visible in production: Tata Steel reports deploying over 300 specialized agents, while Cognizant operates more than 200 agents serving 350,000 employees [4], [5]. Yet reliability remains a major concern: a 2026 enterprise survey found that 79% of respondents had reversed an agent action and 42% reported revenue loss from agent failures [6]. As long-running executions accumulate state and external effects, restarting from scratch becomes increasingly costly. Checkpoint and rollback (C/R) are therefore becoming a basic recovery mechanism, with modern systems checkpointing framework state [7], workspaces [8], and execution environments [9].

C/R periodically records selected execution state and restores a prior checkpoint after interruption, which has long been studied for reliable recovery and state continuity maintenance [10], [11], [12], [13]. Recent systems have begun optimizing C/R specifically for agent execution: CRAB improves recovery through semantics-aware checkpointing [14], while DeltaBox provides low-latency sandbox checkpoint and rollback [15]. Concurrently, recent studies have begun examining the semantics and security of agent recovery, including valid resume behavior, recovery consistency, and semantic rollback attacks [16], [17]. These advances establish both the practical importance and security relevance of agent recovery, but leave a broader question open: when rollback carries forward a security-relevant fact, what dependencies must remain valid for that fact to be safely reused?

This question is fundamental because recovery carries forward security-relevant facts established earlier in execution: an artifact has been validated, an operation authorized, a resource binding remains valid, or an external effect has not yet occurred. Yet the validity of these facts may depend on state distributed across framework components, files and runtimes, nondeterministic decisions, and external services, which do not necessarily share the same recovery scope. Thus, a checkpoint's recovery boundary may not cover the full set of security dependencies on which the restored state relies. Correct rollback does not imply secure recovery: every recorded state may be restored faithfully while the relationships that made those states security-valid are broken.

Consider a coding agent tasked with removing malware from a repository before release. The agent removes the malicious payload, scans the cleaned repository, and records the passing result. If recovery restores the pre-cleanup workspace while retaining the post-scan agent state, the agent may release the malicious repository as verified. Neither the checkpoint nor the scan result is forged; rollback has rebound a genuine security judgment to an artifact it never validated. We call the underlying requirement execution continuity: security-relevant states, decisions, assumptions, and effects carried across recovery must remain jointly consistent with the valid execution history that justifies them.

In this paper, we conduct a systematic cross-system security study of checkpoint and rollback in agent systems. We first examine representative agent C/R systems and characterize their designs by three recurring recovery boundaries: framework state, workspace state, and OS/VM state. This study motivates a general execution model that captures independently evolving internal states, nondeterministic execution, checkpoints with partial recovery boundaries, and an outside world that does not roll back with the agent.

Using this model, we identify five recurring ways in which rollback can break execution continuity: incomplete internal state coverage, inconsistent checkpoint state, external state mismatch, unbound nondeterministic replay, and unrecorded external effects. These failures capture how a legitimately restored checkpoint can invalidate the state, context, or effects that justify security-relevant decisions carried across recovery. Importantly, they do not require checkpoint corruption or a compromised recovery mechanism.

We demonstrate the security impact of these failures through three end-to-end attacks on Hermes, Cline, and LangGraph, causing malware-verification bypass, unauthorized mail forwarding, and duplicate payment, respectively. We further develop a trace-based framework that reconstructs execution dependencies, detects candidate recovery failures, and validates them through native rollback and re-execution. Across 347 benchmark traces from TerminalBench and AgentBench, yielding 1,735 framework-task executions over five representative C/R systems, our evaluation shows that recovery failures are common but exhibit distinct profiles across different recovery boundaries, and reveals recurring factors involving external dependencies, nondeterministic replay, and persistent effects. Contributions. Main contributions are listed as follows:

• Agent recovery abstraction. We characterize representative agent C/R systems and develop a execution model that captures heterogeneous recovery boundaries, nondeterministic execution, and an independently evolving outside world.

• Security characterization and attacks. We introduce execution continuity and identify five recurring ways in which legitimate rollback can invalidate security-relevant state or transitions. We demonstrate their practical impact through three end-to-end attacks on real agent frameworks.

• Systematic detection and validation. We develop and evaluate a trace-based methodology for detecting recovery failures and validating them through actual rollback, providing an empirical characterization of how these failures manifest across representative agent C/R designs.

References (56)