Evidence-guided recovery for agents under ambiguous tool outcomes and partial executionEvidence-Guided Recovery for AI Agents with Ambiguous Tool Outcomes and Partial Execution
The authors propose an evidence-guided recovery framework after tool timeouts: in 58 paired local-model experiments, planning suggestions certified completion in 30 cases and evidence hints in 9 cases.
The victim system is an AI agent workflow spanning multiple independent services; tool timeouts make action outcomes ambiguous (failed, committed, or in flight) and some steps already completed. The recovery controller receives only the approved task, public capability contracts, public observations, and a given finite transition model, and does not receive the realized latent state assignment or private effect ledger; the goal is to choose forensics, wait, retry, continue, compensate, or hand off, certifying safe completion rather than fabricating success.
- After a tool timeout, the agent cannot distinguish whether the action failed, was committed, or is still in flight, while other workflow steps may have completed; blindly retrying would duplicate irreversible effects, and stopping outright would leave approved obligations unfulfilled.
- The authors formalize recovery as partially observable planning under a known model: using all states compatible with public evidence for a joint admissibility check, then using finite-horizon observation-conditional planning to choose among forensics, wait, retry, continue, compensate, and hand off, and using terminal certificates to distinguish true goal satisfaction from publicly supportable safe completion.
- In the deterministic study of 37 assignments, planning and the three active controls each certified completion on 28 cases; in the local model comparison on 58 held-out assignment pairs, planning assistance certified 30 cases and the evidence prompt 9 cases, a difference of 36.2 percentage points, with a registered test p = 0.0078.
- The authors state that the results are limited to known finite provider models, author-constructed scenarios, a shared shield, and a single local runtime; the unknown-latency sentinel is a conservative abstraction and does not cover arbitrary remote latency, unmodeled failures, shared mutable goals, or real third-party sandboxes.
- Evaluated models
- openai/gpt-oss-20bzai-org/glm-4.7-flash
- Benchmarks
- 37-assignment controlled workload (20 public templates)58 paired model-by-assignment units across 19 task familiesnative durable-executor qualification (8 cases)pinned Atomix demopinned UndoBench smoke run
- Metrics
- certified safe completionprivate goal satisfactionnewly introduced violationshandoffsynthetic fee unitslogical actionslogical timemodel proposalsrejected unsafe proposalsfalse completion claimsobserved tokensselection wall time
The paper proposes an evidence-guided task recovery method that handles the unclear outcomes and partial execution left to agents by tool timeouts; recovery is based on approved obligations, provider capabilities, and states compatible with public evidence, a unified admission check covers key expiration, authorization timing, dependencies, and residual effects, and termination certificates distinguish actual goal achievement from safe completion supported by public evidence. In a limited study of 37 tasks, planning and three active controls each certified 28 completions, saving 4 synthetic cost units but adding computation. A preregistered task holdout comparison was run on 58 paired units across two local model combinations and 19 task families; planning recommended certifying 30 completions versus 9 for the evidence prompt, a difference of 36.2 percentage points (exact family sign-flip p=0.0078), with 272 versus 399 proposals, and all 116 trajectories passed independent replay. The authors note that this comparison measures only the recommendation interface under shared guardrails, and that the guarantees are tied to declared provider capabilities rather than third-party exactly-once execution.
Paper analysis
What problem does this paper attempt to solve?
Addresses how an agent should safely decide to continue, gather evidence, compensate, or hand off when tool results are ambiguous after a timeout and partial execution has already occurred.
The core question is: when tool timeouts cause ambiguous tool results and partial execution, how should a recovery controller choose remaining actions under a fixed provider contract. The authors emphasize that the problem is not only avoiding writing again, but determining which remaining obligations can still be safely completed.
- Where it arises: In cross-service workflows such as creating tickets, updating business records, and notifying customers, a timeout may mean failure, already committed, or still in flight; a batch update may complete only part, and a notification may have been delivered but its confirmation lost.
- Why it matters: Repeating the entire workflow may duplicate irreversible effects; stopping outright may leave legitimate obligations incomplete. The authors argue that an HTTP error is not itself a certificate of a negative effect.
- Shortcomings of existing methods: RIFL, Beldi, and others depend on participant infrastructure; Saga compensation cannot erase the fact that the original action occurred; local transactions cannot make an uncooperative remote service atomic.
- Core observation: Recovery should distinguish true goal satisfaction, publicly evidence-supported safe completion, unknown outcomes, and handoff; probabilities can guide selection but cannot turn a low-probability forbidden transition into an admissible action.
- The paper proposes: An evidence-guided recovery decision interface, including obligations, provider capabilities, public evidence, shared admissibility checks, terminal completion certificates, known-model planning, and independent effect-history adjudication.
- Threat model:
- Adversary/failure source: The paper does not posit a malicious adversary; risk comes from tool timeouts, lost confirmations, late commits, partial batch execution, and missing provider capabilities.
- Controller knowledge: Receives the approved task, public capability contracts, public observations, and a given finite transition model; does not receive the realized assignment or the private effect ledger.
- Controllable actions: query, write, wait, compensate, and handoff; each action consumes declared fees, time, and call resources.
- Victim system and success criterion: The victim system is an agent workflow across independent services; success is safe completion certified through public evidence within the deadline, not a plausible-looking success message.
What related research exists?
Related work covers remote call semantics, durable execution, Saga and agent transactions, recovery evaluation, runtime constraints, and partially observed planning.
Remote Effects and Durable Execution
- Birrell and Nelson (1984): The RPC design makes explicit the failure semantics of remote execution; the end-to-end principle of Saltzer et al. (1984) states that application correctness requires support from the relevant endpoints.
- RIFL (2015) and Beldi (2020): Provide durable request identity, completion records, or controlled logs in cooperative storage systems and stateful serverless workflows, respectively; the paper treats them as positive examples of stronger guarantees when infrastructure is available.
- Paper's positioning: This paper treats third-party tool contracts as input, and the controller cannot supply a missing receiver-side atomic deduplication record through local durable requests.
Compensation and Agent Transactions
- Sagas (1987): Splits long transactions into subtransactions and compensating actions; compensation is an independently executed operation and need not reverse all external consequences.
- SagaLLM (2025): Targets multi-agent LLM planning, combining durable context, verification, and compensation recovery.
- Atomix (2026): Distinguishes transaction settlement from execution progress and coordinates different effect classes; the paper states that its reported scope already includes ambiguous confirmations and partially irreversible settlement.
Recovery Evaluation and Runtime Constraints
- LIMBO (2026): Varies models, harnesses, and tool contracts to study duplicate side effects, late commits, and limited read paths; the paper uses it to set a strong verify–wait–key control.
- UndoBench (2026): Uses paired normal/fault executions to distinguish nominal task capability from recovery capability and emphasizes effect-history checks; this paper retains that distinction but does not restrict the primary denominator to each method's own normal successes.
- AgentSpec (2026) and DART (2026): The former specifies runtime constraints such as stopping, requesting user input, and replanning; the latter studies semantic recoverability and rollback certificates for structured tool agents. The paper states that a local rollback certificate cannot prove that an unknown remote request has terminated.
Partially Observed Planning and Language Agents
- Kaelbling et al. (1998) and constrained POMDPs (2008): Provide frameworks for maintaining possible states, selecting actions by observation, and resource-constrained decision-making; the paper separates hard support checks from the weighted planning objective.
- ReAct (2023) and Reflexion (2023): Alternate reasoning/acting or use language feedback to improve subsequent decisions; the paper states that they can inspire model recovery control, but reflection is not a provider receipt.
- Baselines and benchmarks: The deterministic comparison uses immediate stop, verify–wait rules, capability rules, greedy selection, and joint planning; the model comparison uses the evidence prompt and planning assistance. The controlled workload is 37 assignments enumerated from 20 public templates, and the model confirmation experiment is 58 paired units across 19 task families.
The authors position this paper as choosing evidence-gathering and continuation actions under fixed, possibly incomplete provider contracts; standard search, compensation, and guardrail components retain existing research sources, and what is new is the recovery formalization, auditable conditional execution, and model-interface effects.
How does the paper address this problem?
Constrain all policies with shared safety checks and terminal certificates, then perform observational-condition search on a known finite model, and adjudicate the effect history by an independent implementation.
The overall idea is to formulate recovery as partially observed planning under a known model: all policies share the same action interface and admissibility checks, and only the selection mechanism differs; completion must be supported by public evidence, not by private truth or plausible messages.
Task, Contract, and Evidence Model
- Approved obligations: The task is a finite directed acyclic dependency graph, object-level goals, a deadline, and resource limits; each operation is bound to a target, a request intent, and an available idempotency key.
- Goal predicate:
G(s)=\bigwedge_i (x_i(s)=g_i), where xi is the object/effect count of an operation and gi∈{0,1}; the authors use it to distinguish append effects, replace effects, and dual obligations such as "retire then activate". - Provider capabilities: Table 2 lists deduplication, query, commit bound, final response, compensation, authorization timing, and resources; missing capabilities cannot be fabricated from local logs.
- Public and private state: The public history ht contains the task and action/observation pairs; the hidden state contains actual counts, in-flight effects, visibility history, key records, and attempt locations. The belief support Bt retains all hidden states compatible with ht.
- Transition inputs: The given model includes candidate initial commit times, complete future write/compensate outcome sequences, and weights; the paper states these are strong known transition inputs, not provider guarantees inferred from timeouts.
Shared Action Admissibility
- Action interface: query, write, wait, compensate, handoff; waiting is charged according to the public resource model, and handoff consumes resources but by definition does not resolve the goal.
- Check method: For each candidate action, enumerate the full current support, evaluate the declared transition and remaining resources, and settle finite in-flight effects in both the no-new-action reference state and the action-outcome state.
- Rejection conditions: An action is rejected if it introduces a modeled violation in any compatible state, or increases duplicate, dependency, or compensation risk covered by the unknown-latency sentinel; safety checks do not sample the support and do not omit low-weight states.
- Contract differences: Under a valid atomic same-key receiver contract, duplicate attempts may be allowed; an expired key cannot prove that a retry is safe. Compensation is checked as an ordinary external effectful action, and its timeout creates a new evidence problem.
Observational-Condition Search and Matching Control
- Branch construction: For action a, model states predicted to produce the same complete public observation are grouped into branches, with branch probabilities from positive weights; subsequent actions are evaluated recursively within the outcome belief.
- Objective value: The implementation uses a lexicographic value, optimizing in order the certified completion probability, approved-obligation satisfaction, and negative recovery cost; cost includes declared fees and a fixed short-duration tie-breaker.
- Search settings: Iterative-deepening expectimax, at most 6 decisions, 128 non-leaf belief expansions; only the root-action layer with a complete backup at the same depth can replace a previous choice.
- Control policies: capability rules, verify–wait rules, greedy selection, and joint planning use the same support, actions, and checks; immediate stop is only a diagnostic control. The capability-rule control can also query, wait, safely retry, compensate, and hand off.
Completion Certificate, Execution, and Adjudication
- Terminal certificate: C(ht) requires that every state in Bt satisfies the approved goals, resource limits, and terminal safety; the finite tail additionally requires that goal and effect constraints still hold after each accepted future effect prefix.
- Control objective: maxπ∈Πadm Prb0,π[∃τ≤ T: G(sτ)∧ C(hτ)∧ I(Hterminal)]; the meaning is to maximize the publicly supported probability of safe completion within the deadline, and to check late effects with an explicit effect history.
- Unknown outcomes: An in-flight event with commitAt null is the unknown-latency sentinel; the executor does not advance it to a concrete commit, and refuses certified completion as long as the sentinel exists.
- Execution loop: The controller executes one public action at a time, records observations, updates the full support, and replans; when it cannot certify, it returns unresolved, an explicit handoff, a model contradiction, or a resource/decision-limit result.
- Implementation and adjudication: A JavaScript module implements the provider model, public belief update, and recovery policies; an independent Python program reconstructs observations, effects, costs, terminal states, and public certificates, and does not import the JavaScript policies or goal predicates.
What experiments did the paper conduct?
The experiments consist of a deterministic 37-assignment enumeration, development diagnostics, native persistence qualification, and a local model confirmation comparison on 58 held-out assignment pairs.
Experimental Setup
- Models under test: The local model confirmation experiments use openai/gpt-oss-20b and zai-org/glm-4.7-flash; both run via LM Studio SDK 2.0.0 with temperature 0.
- Deterministic policies: immediate stop, verify–wait rules, capability rules, greedy selection, joint planning; all active policies share the action interface and admissibility checks.
- Workload: 20 public templates enumerate all 37 initial implicit-support combinations, and the five policies produce 185 records; the model confirmation experiment takes the exhaustive complement of the 8 pilot assignments, i.e., 29 assignments × 2 models × 2 policies = 116 episodes, 58 pairs.
- Model conditions: The evidence prompt exposes public recovery evidence and the action schema; planning assistance additionally provides the next-action suggestion from a bounded planner. In both conditions the model proposes actions, and the shared deterministic shield determines admissibility.
- Metrics and criteria: The primary metric is certified safe completion within the deadline; it also reports private goal satisfaction, existing absolute violations, newly introduced violations, handoff, unresolved, cost, actions, logical time, number of proposals, number of rejections, false completion claims, and observation tokens.
- Resources and repetition: The confirmation experiment has an input limit of 2,048 tokens, an output limit of 96 tokens, a request reasoning budget of 128, and at most 8 model proposals per episode; the paper does not report independent repeated sampling for the same model condition.
Main Results
Swipe horizontally to read the table
Study/Policy Certified safe completion Private goal satisfaction Handoff Proposals/cost Source Immediate stop 2/37 9 0 0 fee Table 3 Verify–wait rules 28/37 30 6 191 fee Table 3 Capability rules 28/37 30 6 192 fee Table 3 Greedy selection 28/37 30 6 195 fee Table 3 Joint planning 28/37 30 6 188 fee Table 3 Evidence prompt 9/58 15/58 0/58 399 proposals Table 6 Planning assistance 30/58 33/58 4/58 272 proposals Table 6 - Deterministic study: The authors state that the four active policies have the same number of certified completions on the 37 assignments, so the active-policy comparison focuses on resource and decision behavior at the same completion count.
- Model confirmation study: The paired difference of planning assistance relative to the evidence prompt is 36.2 percentage points; of the 19 families, 8 are nonzero and all favor planning assistance, with a registered exact test p = 0.0078.
- Authors' interpretation: The model comparison measures the advice interface under the shared shield; the authors explicitly state that it is not a search-versus-rule advice comparison and does not isolate the causal mechanism of multi-step search or advice grounding.
Resource, Compute, and Cost Trade-offs
- What was measured: Table 4 records episode/selection wall-clock time, per-decision median/p95, search truncation, and rule fallback in the full enumeration; Table 10 preserves fee savings, action savings, and extra selection seconds by template.
- Results: Joint planning's total selection time is 9531.66 ms and capability rules' is 139.83 ms; selection p95 is 288.53 ms and 3.55 ms, respectively. Joint selection has 83 planner-selected actions, 20 rule-fallback actions, and 90 decisions with truncated search.
- Authors' interpretation: In the third set, joint planning saves 4 synthetic fee units and 2 actions but adds 9.585 seconds of selection time; the symbolic break-even is pF/pS > 2.396 seconds per fee unit. The authors state this does not prove a monetary net benefit or Pareto improvement after accounting for compute.
Model Qualification Pilot and Confirmation Breakdown
- What was measured: The pilot in Table 5 uses 8 authored profiles, one implicit assignment per profile, two policies, and two local model packages, for 32 cells in total; Table 8 gives the post hoc stratification of the confirmation experiment.
- Results: In the pilot, the evidence prompt certifies 2/16 and planning-assisted certifies 7/16; proposal counts are 114 vs 79, and rejection counts are 111 vs 51. In the confirmation experiment, gpt-oss-20b is 5/29 vs 15/29 and glm-4.7-flash is 4/29 vs 15/29.
- Authors' interpretation: The authors state that the pilot is development qualification evidence and does not support significance tests or general conclusions; the confirmation breakdown shows the advantage is concentrated in specific recovery structures, with stock-diamond contributing 6 net completions and expired-key-recovery contributing 4, while the remaining 11 families are tied at 9/30 across 30 pairs.
Independent Adjudication, Diagnostics, and Native Qualification
- What was measured: An independent Python replay of 116 model trajectories; development diagnostics exhaustively evaluate root-action values on 21 parameterizations and 63 task–horizon pairs; a native durable executor runs 8 persistence/evidence cases.
- Results: All 116 trajectories pass independent replay; 408 admissible root-action values agree with the independent Python three-component vector. The native executor passes 8 local checks, and a lost confirmation handler produces one synthetic effect and then remains in manual review.
- Exceptions and negative results: The initial sequential depth-first planner has only 27 safe completions, 218 fee, 130 actions, and 140 time; the authors attribute this to uneven evaluation depth under a shared expansion budget. The revised version selects only from complete same-depth layers, but the authors state this is a development-revision result, not independently confirmed benefit.
Other Ablations and Analyses
- Goal–certificate gap: Each active arm has 30 private goal satisfactions but only 28 certified completions; one reason is that public evidence still permits missing or in-flight substitute states, and another is that commit-time authorization is not enforced, forming an absolute violation.
- Template coverage: In Table 9, no–query–unknown, late–commit–after–deadline, existing–duplicate–risk, authorization–at–commit–unenforced, and budget–limited–independent all have 0 certified completions under Rules/Greedy/Joint.
- Model resources: In Table 7, unsafe proposals drop from 317 to 123 and false claims from 218 to 76; prompt tokens are 273,983 vs 196,822 and completion tokens are 8,310 vs 5,686.
- Pairing structure: Of the 58 pairs, 9 are completed by both policies, 28 by neither, 21 by planning assistance only, and 0 by the evidence prompt only; the McNemar sensitivity result is 9.54 × 10−7.
- UndoBench smoke: The pinned UndoBench command completes, but its report records 1 of 2 normal conditions passing, 0 fault conditions passing, and 1 pair with duplicate effects; the authors state it is not used for ranking.
What are some points that can be further explored?
The authors explicitly limit the conclusions to the known finite model, the shared shield, author-constructed scenarios, and a single local runtime.
Limitations noted by the authors and future directions
- The known-model assumption is strong: Section 8.2 states that the study uses an explicit, finite, known provider model that includes candidate future attempt sequences; this provides much more predictive information than normal capability declarations.
- Model coverage risk: Section 8.2 states that real services may change contracts, introduce unmodeled failures, share mutable goals, or use batch semantics beyond the item-level profile; unobservable omitted alternative states may still break retention and safety assumptions.
- The unknown-delay abstraction is limited: Sections 3.4 and 8.2 state that the unknown-sentinel mechanism is a conservative containment abstraction, not a complete ordering model of arbitrary unknown remote delays; harmless residual work or stronger concretization abstractions are separate qualification targets.
- Zero new violations does not equal zero risk: Section 8.2 states that the joint safety checks are evaluation controls, and zero newly introduced violations in the recorded set covers only these checks and executions, not zero operational risk.
- Deployment economics are not closed: Sections 7.4 and 8.2 state that savings of four synthetic fee units do not prove net monetary benefit after accounting for compute; isolated-host timing, provider pricing, end-to-end latency, and integration cost measurements are needed.
- Transfer evidence remains to be done: Section 8.3 states that unseen task families, independent runtimes, and real provider sandboxes are separate transfer tests; the native demo remains qualification evidence until there are matching interfaces and outcome coverage.
Experimental coverage
- Deterministic study coverage: 37 assignments enumerated from 20 public templates, five policies, 185 records; at most 12 operations per task and at most 4,096 initial support combinations.
- Model study coverage: two local model packages, two suggestion conditions, 116 episodes, and 58 paired units; the held-out axis is the latent assignment, while 19 public task families, the planner, the provider model, and the shield were used during development.
- Defense/safety mechanism: all model proposals go through the same deterministic shield for admissibility checks; the paper does not run ReAct or Reflexion as model conditions, and scripted policies are not counted as executions of these two language-agent methods.
- Native and upstream qualification: the native durable executor has 8 persistence/evidence cases; there is also a pinned Atomix demo and a pinned UndoBench smoke run, but the authors state that these are separate qualification tracks.
- Not reported in the paper: model conditions were not independently repeatedly sampled; the model study has no per-episode search-time measurement; the paper does not report real third-party provider sandboxes, real communication, or real billed deployments.
Summarize the main content of the paper
The paper presents an evidence-guided recovery interface after tool timeouts, and evaluates the value of its suggestions using deterministic enumeration and local-model comparisons on held-out assignments.
This is a systems/defense paper on agent tool recovery: the authors formalize ambiguous outcomes after timeouts and partial execution as partially observed decision-making under a known finite model, rather than treating HTTP errors as failure certificates.
- Problem: In cross-service workflows, an action may have failed, already committed, or still be in flight; blind retries duplicate irreversible effects, while stopping leaves approved obligations incomplete.
- Method: All policies share query, write, wait, compensate, and handoff interfaces and full support safety checks; joint planning uses iterative-deepening expectimax to select actions over observation branches, and the terminal certificate requires that all compatible states and finite effect tail prefixes support safe completion.
- Deterministic results: On 37 assignments enumerated from 20 templates, joint planning, capability rules, verify–wait rules, and greedy selection each certified completion on 28/37; joint planning used 188 synthetic fee units and capability rules used 192, but total selection time was 9531.66 ms vs 139.83 ms.
- Model results: On 58 held-out assignment pairs, planning assistance certified completion on 30/58 and the evidence prompt on 9/58, a difference of 36.2 percentage points; the registered family-level exact test gave p = 0.0078, and all 116 trajectories passed independent Python replay.
- Negatives and exceptions: The initial planner completed only 27 because evaluation depth was uneven under a shared budget; the revised version matched the strong control, but the authors state this is a development-revision result. The model advantage is concentrated in specific structures such as stock-diamond and expired-key-recovery, while the remaining 11 families were tied at 9/30.
- Authors' conclusion: Recovery should continue approved work when public evidence and contracts support it, and otherwise retain an explicit unknown or handoff; the authors state the conclusions are limited to the shared shield, author-constructed scenarios, known provider models, and a single local runtime, and that transfer to new task families, independent runtimes, and third-party providers requires corresponding evidence.