Manuscript Offprint

arXiv:2609.31301

Beyond Approved Actions: Runtime Validation of Persistent Outcomes in Agent Workflows

Haoran Zhang, Hengtong Zhang, Zhiyu Liang, Yu Yan, Decheng Zuo, Hongzhi Wang

Haoran Zhang, Hengtong Zhang, Zhiyu Liang, Yu Yan, Decheng Zuo, and Hongzhi Wang, Senior Member, IEEE

Abstract—Large language model agents increasingly act on software systems, no longer merely generating text but also changing databases and online services. However, an approved database update may succeed yet leave an unapproved notification because execution can produce persistent effects beyond the requested change. Current safeguards can approve an action or record its aftermath, but without checking the persistent result before continuation, an unapproved outcome can be accepted as success and propagated to later steps. We present EffectMatch, a runtime that collects persistent changes within a controlled execution boundary and compares them with what the application approved for the current state and execution. The comparison governs commit and dependent execution. In comparative evaluation on 206 public business tasks, EffectMatch preserved all clean executions and prevented all tested incorrect commits. Six 20-run ablations exposed the failure caused by each removed mechanism, while 80 task-topology cases preserved truthful handoffs and blocked invalid continuation. Together, these results show that EffectMatch blocks the silent acceptance and downstream propagation of persistent outcomes inconsistent with application approval.

Index Terms—LLM agents, authorization, runtime enforcement, persistent-outcome validation, transactions, software safety, agent tool use.

I. INTRODUCTION

LARGE language model agents are moving from content-generation tools into active participants in software workflows. They can read business records and then modify databases, send messages, or invoke external services; whether these operations can be delegated safely will determine how far agents can enter real software systems. In the intuitive execution model, an application reviews a call proposed by an agent, the runtime checks its target, arguments, and authority, and the workflow continues when the backend reports success. This model works naturally when a call produces only the result it directly describes. Once agents modify persistent state, however, that assumption no longer holds: a call can be approved and return success while leaving an outcome the application never approved, and later tasks may proceed without knowing it.

Existing research and deployed systems already protect agent actions before, during, and after execution. They check whether requests comply with authority and policy [1], [2], [3], prevent operations from completing only partially or being repeated by retries [4], [5], [6], and later reread or record

Figure

Fig. 1. Normal and fault-detour paths can reach the same downstream component, exposing stale approval, hidden effects, and uncertain completion.

system state [7], [8], [9]. These safeguards are necessary: they can establish that a call was permitted, that execution did not obviously fail, or that a record remains for later inspection. They still do not establish that every change ultimately left in the system was within the application's approval. A call can therefore pass its checks and return success while also producing an unapproved change.

Figure 1 follows an agent processing invoice 4711. The application approves changing its database status to paid; on the ordinary path, the backend performs the update, reports success, and the workflow moves to dependent reconciliation tasks. Yet approval, execution, and continuation can still come apart in three ways:

  1. The approval may become stale before execution. If the vendor is blocklisted after approval, the same update no longer has current authority.

  2. A database trigger can insert an unapproved notification together with the requested update, so the call returns success but leaves an additional persistent result.

  3. A remote payment request may be dispatched while its response is lost. Retrying it or releasing dependent tasks without knowing the outcome can duplicate the payment and propagate incorrect state.

At the call level, all three executions may appear approved, successful, or dispatched. Safe continuation therefore requires one judgment spanning whether the approval still applies to this execution, what persistent outcome it actually left behind, and whether later work may proceed.

To connect these judgments, the application’s approval must continue to constrain both the operation’s actual outcome and the handling of that outcome. EffectMatch carries the

Haoran Zhang, Hengtong Zhang, Zhiyu Liang, Yu Yan, Decheng Zuo, and Hongzhi Wang are with the Faculty of Computing, Harbin Institute of Technology, Harbin 150001, China. E-mail: zhr@stu.hit.edu.cn, {hengtong, zyliang, yuyan, zuodc, wangzh}@hit.edu.cn.

Corresponding author: Hongzhi Wang

This work has been submitted to the IEEE for possible publication. Copyright may be transferred without notice, after which this version may no longer be accessible.

application-approved result through execution. Before execution, the application states the changes that the operation may leave in the system. Specifically, 1) the runtime binds that approval to its source, current state, plan revision, and one occurrence to prevent stale reuse; 2) it first checks whether routes to persistent changes are covered by observation or blocked, then stages or controls the operation, collects the actual changes, and compares them with the approval to expose hidden effects; and 3) it persists the resulting decision to govern commit, retry, and dependent work. Only an execution with a matching outcome and current one-use approval propagates as success. We call this cross-stage constraint over approval, execution, validation, and continuation the Effect Commit Contract.

We evaluate EffectMatch on public database tasks from MCPMark [10] and business tasks spanning shopping, customer support, and travel. On twelve business tasks with approved outcomes independently specified from requests and initial state before execution, EffectMatch preserved all clean executions and rejected the mismatches in all 39 task-fault combinations, each repeated three times. Further experiments cover reference-based comparisons on 206 public tasks, live execution with three agent configurations, cross-process recovery, and multiple database and service backends.

This paper makes three contributions:

  1. We formulate persistent-outcome validation for agent workflows and introduce the Effect Commit Contract, which binds application approval, actual outcomes, and continuation to the same execution.

  2. We design and implement EffectMatch to establish what an operation actually leaves behind and use the comparison result to govern commit and continuation.

  3. We validate outcome checking and execution binding through controlled comparisons and ablations on public tasks, and assess system behavior through live-agent integration, cross-process recovery, and cross-backend experiments.

References (79)