Status and scope

This paper specifies a benchmark protocol and reports a small pilot that ran it on three open-source frameworks. The pilot used deterministic stub models, hand-written plans and sandboxed stand-in tools. Its numbers describe that setup only. Claims about production systems and other planners are hypotheses, and statements about prior work cite their source.

Problem

Several lines of work bring database-style guarantees to multi-agent LLM systems:

  • SagaLLM adds the Saga transactional pattern, automated compensation and independent validation to multi-agent planning [1].
  • ALAS records a versioned execution log with restore points and repairs locally under explicit policies, including idempotency keys and compensation [2].
  • A position paper argues that many multi-agent failures are concurrency-control problems [3].
  • A vision paper argues that agents must “transact” and should be described by the state they read and write [4].
  • MemTX gates irreversible tool calls on committed beliefs [5].
  • Janus makes a signed log record of a step a precondition for releasing its effect [6].

These designs share an assumption: a committed step that turns out to be wrong can be compensated. Atomix makes the question explicit. It distinguishes bufferable, reversible and irreversible effects, and lets irreversible effects through only at commit [7]. Work on exactly-once behaviour shows that duplicate side effects depend heavily on the tool contract [8]. What we did not find is a measurement of how much of a plan can actually be undone, and of what blocks the rest.

Protocol

Compensation labels. Each tool operation is labelled empirically:

  • the operation is applied, its inverse is applied immediately, and the state is compared with a snapshot;
  • the same is repeated with the inverse applied after a time window.
LabelMeaning
fullBoth inverses restore the snapshot.
partialAn inverse exists but leaves residue, for example a revert commit or a tombstone.
windowedOnly the immediate inverse restores the snapshot.
irreversibleNo inverse exists.

Failure injection. For each plan, each step in turn fails in one of two ways:

  • pre: the tool raises before its effect;
  • post: the effect is applied, then the tool raises, as in a timeout after a write.

Recovery. Three recovery modes are compared:

  • none;
  • a saga over the steps the framework’s own history reports as successful (trace);
  • a saga over an oracle log of every applied effect (effect log).

Each run ends in one of three outcomes:

  • clean (state equals the pre-plan snapshot);
  • residue;
  • stuck (an irreversible inverse or a closed window was hit).

Ordering rule. Plans are re-run with irreversible steps moved to the end, related to commit-time release in [7].

Pilot setup

  • Frameworks: LangGraph 1.2.17 (create_react_agent with an in-memory checkpointer), AG2 1.2.1 (Agent with a stub client) and CrewAI 1.15.30 (one agent, ReAct text mode). Python 3.13.5, git 2.47.3.
  • Model: each framework received a deterministic stub chat model. It requests the next plan step and stops when a tool result reports the injected fault.
  • Sandbox:
    • a real git repository (work tree, bare remote, and a mirror that fetches without pruning);
    • SQLite;
    • an outbox whose messages dispatch once pending for 3 logical ticks;
    • chat with tombstones, a calendar, SMS, webhooks and a payment ledger with refunds.
  • Plans: three hand-written six-step plans (release, order, meeting).
  • Runs: 3 frameworks × 3 plans × 2 orders × 6 steps × 2 fault kinds × 3 recovery modes = 648 runs. A window sweep re-ran LangGraph at windows of 1, 6 and 12 ticks.

Results

Labels (11 operations). 4 operations were fully compensable, 4 partial, 1 windowed and 2 irreversible.

LabelOperations
fullgit branch create, database insert, database update, calendar create
partialgit commit (the revert stays in history), git push (the mirror keeps the ref), charge (the refund leaves ledger rows), chat post (a tombstone remains)
windowedemail send
irreversibleSMS, webhook

Native handling of a tool exception (72 runs per framework).

  • LangGraph re-raised it from invoke in 72 of 72 runs; its checkpoint kept the successful steps.
  • AG2 raised in 0 of 72 runs: it returned the error to the model as a tool-error event.
  • CrewAI executed the faulting tool 8.67 times on average (maximum 30), that is six times per model-issued call. This produced duplicate effects, such as six SMS or six charges, in 28 of 72 runs.

Post-effect faults. The framework’s history omitted the applied effect in 108 of 108 runs (36 of 36 per framework). A trace-driven saga therefore never reached a clean state after a post-effect fault (0 of 108).

Recovery outcomes (108 runs per cell, window 3).

RecoveryOrderCleanResidueStuck
traceoriginal215037
traceirreversible last215631
effect logoriginal322947
effect logirreversible last323541

Excluding runs where nothing had been applied, clean rollback was 12.1% for trace and 23.2% for the effect log (n = 99). Over all compensation attempts:

  • 1,060 inverses succeeded;
  • 84 hit an irreversible operation;
  • 154 hit a closed email window;
  • 30 failed, all of them on CrewAI’s duplicated effects.

The most common residue after effect-log recovery was:

  • delivered email (76 runs);
  • chat tombstones (72);
  • revert commits (66);
  • ledger rows (54).

Window sweep (LangGraph, effect log, 33 non-trivial runs). Stuck runs fell as the window grew, and clean runs rose from 6 to 10 between windows of 1 and 6 ticks.

Window (ticks)Stuck, original orderStuck, irreversible last
11917
31513
695
1293

At every window, the ordering rule converted stuck runs into residue rather than clean rollbacks.

Discussion

  • H1 (partly informed). In this sandbox, most stand-in operations were not fully compensable, so even oracle-driven sagas rarely restored the exact prior state. Whether real service APIs look similar is untested.
  • The trace gap. The 108-of-108 omission follows directly from how the three frameworks record a raised tool call. It suggests (hypothesis) that compensation needs an effect log written by the tool, not by the agent loop.
  • H3 (partly informed). Ordering reduced stuck runs but did not raise clean rollbacks; extra retries were not compared. CrewAI’s built-in retries were harmful for non-idempotent tools here, consistent with [8].
  • H2 (untested). Whether planners place irreversible steps early was not tested, because the pilot plans were hand-written.

Limitations

  • Scope of the inputs:
    • Hand-written plans, a stub policy and stand-in tools: no number here estimates production behaviour.
    • Labels are properties of the stand-in inverses; real refund or git-host APIs may differ.
    • Windowed outcomes depend on the tick model (see the sweep).
  • Framework artefacts:
    • LangGraph and AG2 gave identical recovery outcomes because the stub stops at the first error; they differ only in how the error surfaces.
    • The mechanism behind CrewAI’s six-fold re-execution was observed but not isolated. The retry loop is in crewai/tools/tool_usage.py.
    • Eight CrewAI runs ended in ToolExecutionFailedError. These are partly an artefact of the stub, which re-requested a step after a non-fault error.
  • Single run: the pilot ran once on one machine and was not independently replicated.

Relation to nearest work

  • Atomix [7] is the closest mechanism. This paper proposes no runtime; it measures how much a plan can be undone.
  • LIMBO [8] measures duplicate side effects. We observed the same failure through framework retries.
  • UndoBench [9] measures recovery success across enterprise domains, reporting 46.72% conditional recovery. This paper asks a prior question, how much of each plan is compensable at all, and isolates the trace gap.
  • Pattern catalogues [10] recommend placing irreversible actions late. The pilot shows that this ordering avoids stuck runs but not residue.
  • SagaLLM [1] and ALAS [2] are candidate subjects for a full run.

Reproducibility

Local scripts are in research/pilots/saga/, with exact versions in results/environment.json:

  • src/sandbox.py: the sandbox and labelling;
  • src/plans.py: the plans;
  • src/harness.py: fault injection and recovery;
  • src/fw_langgraph.py, src/fw_ag2.py, src/fw_crewai.py: the stub models;
  • src/run_pilot.py, src/analyze.py, src/window_sweep.py: running and analysis.

Commands:

  • python src/run_pilot.py --out ../results (run from src/);
  • python src/analyze.py;
  • python src/run_pilot.py --frameworks langgraph --window W --out ../results/window_sweep_WW;
  • python src/window_sweep.py.

Raw per-run logs are in results/runs.jsonl (648 rows) and the sweep directories.

Code: https://github.com/buildngrowsv/pubroot-pilots/tree/main/saga (MIT license; deterministic stub models, no API keys required; reproduces all 648 pilot runs and results/summary.md).

Novelty was checked with all-MiniLM-L6-v2 against an 810-paper zoom map, OpenAlex and a web search, with the too-close threshold at 0.71. The nearest neighbours are Atomix [7] and UndoBench [9].

References

  1. Chang, Geng (2025). SagaLLM: Context Management, Validation, and Transaction Guarantees for Multi-Agent LLM Planning. Proceedings of the VLDB Endowment. https://doi.org/10.14778/3750601.3750611
  2. Geng, Chang (2025). ALAS: Transactional and Dynamic Multi-Agent LLM Planning. https://doi.org/10.48550/arxiv.2511.03094
  3. Yang, Li, Ji, Zhang, Jiang (2026). Position: Multi-Agent Systems Should Prioritize Concurrency Control. https://doi.org/10.48550/arxiv.2608.18092
  4. Mraz, Serban, Psarakis, Kulahcioglu Ozkan, Katsifodimos (2026). Tracking State Footprints: How Agents Can Transact. https://doi.org/10.48550/arxiv.2610.03140
  5. Li et al. (2026). MemTX: Transactional Belief Commit for Stateful Agent Memory. https://doi.org/10.48550/arxiv.2607.23929
  6. Arslan (2026). Janus: Evidence-Before-Effect Sagas and Offline-Verifiable Provenance for Agentic LLMs. https://doi.org/10.48550/arxiv.2609.38266
  7. Mohammadi, Potamitis, Klein, Arora, Bindschaedler (2026). Atomix: Timely, Transactional Tool Use for Reliable Agentic Workflows. https://doi.org/10.48550/arxiv.2602.14849
  8. Li (2026). Where Does Exactly-Once Live? Model, Harness, and Tool-Contract Effects on Duplicate Side Effects in LLM Agents. https://doi.org/10.48550/arxiv.2609.29095
  9. Sah, Sah, Jain, Sah (2026). UndoBench: Separating Task Competence from Recovery Capability in Tool-Using AI Agents. https://doi.org/10.48550/arxiv.2610.05622
  10. Agent Patterns Catalog. Compensating Action. https://agentpatternscatalog.github.io/patterns/patterns/compensating-action.html