Manuscript Offprint

arXiv:2609.00643

REVISE: Validity-Guided Recovery for Online Revisions in Agent Workflows

Ruoling Qi, Xuaner Wu, Penghang Liu, Jian Chen, Yirui Liu

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

Abstract

Agent revisions expose a fundamental correctness–efficiency trade-off during concurrent execution. Discarding ongoing work preserves latest-version correctness but wastes progress that may remain valid, whereas reusing prior work preserves efficiency but risks propagating stale state into outputs and tool effects. Existing recovery strategies resolve this trade-off in an imbalanced way with coarse-grained policies: they either favor efficiency by allowing potentially stale work to continue, or favor correctness by restarting the workflow or recomputing a linear suffix from the earliest conflict, thereby discarding unaffected progress. We present REVISE, a validity-guided runtime for fine-grained recovery in structured agent workflows. When a revision arrives, REVISE first intersects its delta with recorded data and control dependencies and propagates the resulting impact through the partially executed DAG to identify affected work. It then stops invalid work, preserves validity-established progress beyond the earliest conflict, and recomputes only the affected region. Incomplete provenance conservatively expands recovery, while reused results are revalidated before commit. Analysis of real coding-agent traces show online recovery opportunities: 118 sessions retain observable work before a queued later message is delivered; across 167 overlapping assistant responses, enqueue-to-completion overlap reaches 56.55 s at p95. Across 300 challenging revision/commit executions, REVISE matches a latest-version oracle with no stale outputs or effects. On unmodified LangGraph and LLMCompiler applications using Qwen3-14B, it reduces model calls by 40.6–56.0% relative to full restart and by 31.3–43.6% relative to suffix recomputation. Under serving pressure, it further reduces revision-to-correct-completion tokens by 13.26% and improves SLO goodput by 3.07–5.43%.

1 Introduction

Multi-turn agent workflows are becoming increasingly interactive: users can provide new instructions, corrections, or clarifications while model and tool calls from an earlier turn are still in flight [1]. These inputs may change requirements, intermediate results, or control decisions on which ongoing or completed tasks depend. We call such an event a revision. When a revision arrives during ongoing agent execution, the runtime faces a fundamental correctness–efficiency trade-off. Delaying intervention allows potentially stale in-flight work to continue, wasting computation after the revision arrives; full restart preserves latest-version correctness but discards all prior progress; and recomputing a linear suffix from the earliest conflict is more selective yet can still redo unaffected work beyond that point. The central challenge is therefore to determine fine-grained execution validity after a revision, so invalid work can be stopped while valid progress is preserved, balancing latest-version correctness with recovery efficiency.

Preprint.

Existing systems address different aspects of this trade-off, but do not provide a mechanism for fine-grained recovery after online revisions. Workflow and serving runtimes schedule structured model and tool execution [2, 3, 4], but do not determine how a revision changes the validity of partially executed work. Reversible execution identifies an earliest conflict and rolls back the subsequent trace [5], but its linear recovery boundary can discard unaffected work beyond that conflict. Transactional runtimes protect externally visible effects [6, 7], but do not decide which prior computation can be safely retained. What remains unresolved is a fine-grained recovery mechanism over a partially executed DAG: which work is invalidated, and which progress can still be preserved.

We present REVISE, a validity-guided runtime for fine-grained recovery in structured agent workflows. When a revision arrives, REVISE intersects its delta with recorded data and control dependencies and propagates the resulting impact through the executed DAG to identify affected work. It then stops invalid work, preserves proven-valid progress beyond the earliest conflict, and recomputes only the affected region. Fine-grained provenance enables selective recovery; when provenance is incomplete, REVISE conservatively expands recovery toward a suffix or full restart. Reuse remains provisional: outputs and staged tool effects are revalidated against intervening revisions before commit.

Analysis of real coding-agent traces shows opportunities for online intervention: among 5,825 analyzable sessions, 118 retain observable work before a queued later message is delivered; across 167 overlapping assistant responses, enqueue-to-completion overlap reaches 56.55 s at p95. Across 300 adversarial executions, REVISE matches a latest-version oracle without stale outputs or effects. On unmodified LangGraph and LLMCompiler applications using Qwen3-14B, it reduces model calls by 40.6–56.0% relative to full restart and by 31.3–43.6% relative to suffix recomputation. Under GPU serving pressure, it further reduces revision-to-completion tokens by 13.26% and improves SLO goodput by 3.07–5.43%. These results show that timely intervention avoids obsolete work, while provenance-guided selective recovery preserves additional progress when revisions are local.

In summary, our contributions are as follows:

  • an online execution validity abstraction for determining which completed, running, and pending work remains valid after a revision;

  • a validity-guided, fail-closed recovery protocol that identifies affected work from revision deltas and dynamic data/control dependencies, selectively preserves valid progress, and revalidates outputs and effects before commit;

  • an evaluation demonstrating real online revision opportunities, latest-version correctness across challenging event orderings, and lower recomputation with serving gains under contention.

References (20)