智能体恢复出错:衡量重复调用之外的危害
摘要
该论文衡量了执行代码的 LLM 智能体在部分执行后进行恢复时损害外部状态的频率,发现 AppWorld 任务回合中的损害率为 24.6%,并表明基于重复行为的检测规则会漏掉大多数损害。论文还评估了幂等键方案,并概述了实现更安全的智能体恢复所需的设计要求。
查看缓存全文
缓存时间: 2026/11/26 09:27
# Agent Recovery Gone Wrong: Measuring Harm Beyond Duplicate Calls
Source: [https://arxiv.org/html/2611.31554](https://arxiv.org/html/2611.31554)
Boris NovikovAffiliation:Independent Researcher Helsinki, Finland borisnov@acm\.org
###### Abstract
Code\-executing LLM agents submit blocks of code that issue several API writes\. If a block fails after some of its writes have taken effect, the agent rewrites the block and continues\. It is unknown how often such a recovery harms the external state when the failure occurs naturally in the code written by the agent\. In this paper, we measure it on recorded trajectories of AppWorld agents\. In a stratified random sample of 200 candidate episodes across ten models, 145 are partial executions confirmed by the database state\. In the sample, 30 of 143 confirmed partial executions with a determinable outcome are followed by a harmful recovery, and its violation remains at the end of the run, which gives a stratification\-weighted estimate of 24\.6%\. Two thirds of the harmful recoveries duplicate an effect, and the rest delete user data or make a wrong first\-time write, e\.g\., an order of a wrong product\. A rule that searches for repeated calls finds 75% of duplications but only 41% of all harm\. We also examine two sources of operation identity for an idempotency contract\. In a small pilot \(17 episodes, one local model\), identifiers supplied by the model do not detectably reduce harm, because the model issues a new identifier for the same operation\. Identity derived from the call content, evaluated counterfactually on the sample, would have matched every harmful write in 14 to 18 of the 30 harmful recoveries, but in none of those with a wrong first\-time write, and it would also have matched writes required by the task in 30 episodes\. Based on these results, we outline design requirements for safer agent recovery\.
###### Index Terms:
LLM agents, tool use, recovery, side effects, idempotency, empirical study
## IIntroduction
Agents that write and execute code change external services without a transaction\. A single block can add an item to a cart, create an address, and place an order\. If the block fails on the third call, the first two calls have already taken effect\. The agent receives only an error, rewrites the block, and runs it again\. We call this scenario a*recovery after partial execution*\. It does not require a crash or a lost response: an ordinary exception in generated code is enough, so any deployed agent with write access to APIs can face it\.
Recent systems consider the agent\-tool boundary as a transactional one: they stage effects\[[1](https://arxiv.org/html/2611.31554#bib.bib1)\], use idempotency keys and compensation\[[2](https://arxiv.org/html/2611.31554#bib.bib2),[3](https://arxiv.org/html/2611.31554#bib.bib3)\], verify ambiguous outcomes\[[4](https://arxiv.org/html/2611.31554#bib.bib4)\], or inject crashes around a tool call\[[5](https://arxiv.org/html/2611.31554#bib.bib5)\]\. However, these results are obtained on injected faults\. It remains unclear how often a recovery harms the external state when the failure occurs naturally in the code written by the agent\.
Measuring this harm requires recorded executions and the state of the service before and after the recovery\. AppWorld provides both: its agents write Python code against applications backed by databases, and its runs can be replayed deterministically\[[6](https://arxiv.org/html/2611.31554#bib.bib6)\]\. In 13,988 AppWorld runs, static analysis identifies 1,897 failed blocks with at least one write call before the failing line\. In 70\.6% of these cases, the agent rewrites the code and issues these writes again\. We use these runs as a measurement instrument\.
In this paper, we consider the following questions:
- Q1How often does a recovery after partial execution add harm to the external state?
- Q2How much of this harm can repeat\-based signals detect?
- Q3Does an idempotency contract help, and where can it take the identity of an operation?
In summary, our contributions are as follows:
1. 1\.We estimate how often a recovery after a state\-confirmed partial execution leaves a task violation and which kinds of harm it produces\.
2. 2\.We compare repeat\-based signals with labels based on state and task, and report the defects of our own instrument revealed by this comparison\.
3. 3\.We examine two sources of operation identity for an idempotency contract: the model, in a pilot, and the call content, in a counterfactual analysis of the sample\. The pilot is small, so we consider its results as emerging evidence\.
In the catalog of agent\-tool anomalies\[[7](https://arxiv.org/html/2611.31554#bib.bib7)\], duplication follows the duplicated\-effect pattern, although here the completed writes are observable in the state; the other kinds of harm are task\-level errors outside that catalog\. Data, labels, and scripts are available online\.111https://github\.com/flame\-stream/agent\-recovery\-harm
## IIData and Labels
Corpus and sample\.From the official and leaderboard experiment outputs of AppWorld, we build a registry of 1,917 candidate episodes\. It contains 20 more episodes than the 1,897 blocks mentioned above, because the detector now recognizes the API wrapper of one more agent\. A candidate episode is a block that raised an error with at least one write before the failing line\. Older experiments dominate the registry\. Therefore, we stratify it by the release year of the model before sampling \(before 2025: 1,403 episodes, 27 configurations; 2025–2026: 514 episodes, 8 configurations\) and draw a simple random sample of 100 episodes from each stratum with a fixed seed\. The sample covers ten models\. We sample episodes, not models, so its composition follows the registry, where a few configurations provide most of the failed blocks\.
prefixfailed blockcart✓\\checkmarkaddress✓\\checkmarkorder×\\timescontinuationrewritten codeABCconfirmed in A→\\toBlabeled: B→\\toCFig\. 1:An episode and its snapshots\. Partial execution is confirmed by A→\\toB, and harm is labeled by B→\\toC against the task\.Replay and snapshots\.We re\-execute each sampled episode from its recorded code with a hook on the API boundary\. All 200 episodes are reproduced\. As shown in Fig\.[1](https://arxiv.org/html/2611.31554#S2.F1), we store database snapshots before the failed block \(A\), after it \(B\), and at the end of the trajectory \(C\)\. Further, we denote all actions of the original agent between B and C as a*continuation*\.
Confirmed partial execution\.A candidate is confirmed if the difference between A and B contains a change that corresponds to a write counted by the detector as completed\.
Labels\.Each continuation receives two labels: whether the continuation contains a harmful action and whether C contains a residual violation\. An action is harmful if it causes a state change that is not allowed by the task statement\. A change of the selected product in the cart without a purchase is not harm, while a purchase of a wrong product is\. We distinguish three kinds of harm:*duplication*\(an effect is applied again\),*destruction*\(the state that existed before the block and is not related to the task is removed\), and*wrong change*\(a new write that the task does not require, e\.g\., an order of the whole pre\-existing cart\)\. Each continuation is labeled by two LLM annotators independently reviewing shuffled digests without the model, the configuration, and the stratum\. They agree on the harmful action in 169 of 200 episodes \(Cohen’sκ=0\.63\\kappa=0\.63\)\. The disagreements are resolved using the database state and reviewed by an author\. In addition, an author labeled a random subsample of 60 of the 161 episodes on which the annotators agree in all labels, without access to these labels, the model, and the configuration, and agreed with 59 of them \(κ=0\.95\\kappa=0\.95on this subsample\)\. The author also reviewed all harmful continuations\. Three cases that could not be decided from the digests were resolved using the task data in the database, and one of them was relabeled as harmless\.
## IIIAnswering Q1: How Often Does Recovery Add Harm?
TABLE I:Residual harm after confirmed partial execution by modelAmong the 200 candidates, 145 are confirmed\. In 51 episodes, the snapshots show no trace of the write: in 49 of them, the request reached the server, and in 2 of them, it was not found in the call log\. Four more episodes are undeterminable due to a snapshot failure\.
Table[I](https://arxiv.org/html/2611.31554#S3.T1)demonstrates the results by model\. It counts the continuations with a harmful action\. The estimate for the registry is the ratio of the number of harmful episodes to the number of confirmed ones, both weighted by the strata sizes: 24\.6% with a 95% interval of \[15\.6, 34\.4\] \(cluster bootstrap over runs\)\. Within the strata, the rates are 29\.5% \(18/61\) and 14\.6% \(12/82\)\.
Note that this is the rate among the partial executions that our snapshots can confirm: 136 of 145 confirmed episodes concern the shopping application, where 26 of 135 determinable continuations are harmful\. The unit of analysis is the continuation: 123 of 143 contain a write call, and all harmful ones are among them\. Among the 48 determinable episodes without a confirmation, 20 continuations are harmful \(one more follows a snapshot failure\), and 15 of them follow writes to file, mail, and payment applications, which the snapshots cover only partially\. We report the harm observed during a recovery and do not claim that the partial execution is its only cause: a wrong first\-time write can also be an ordinary planning error\.
The kinds of harm depend on the configuration\. For gpt\-4\-turbo, gpt\-4o, and llama3\-70b, 15 of 17 harmful continuations are duplications\. For gpt\-oss\-20b, 7 of 11 are not\. In three of them, the recovery empties the shopping cart that existed before the run\. In four, it makes a wrong first\-time write: an address record that contains the text of a message instead of a street, or an order of a product that the task does not ask for\.
This difference cannot be attributed to the model, its size, or its release year, because gpt\-oss\-20b appears in one configuration only, and this configuration provides 86 of 100 episodes of the second stratum\. The other models of 2025–2026 have five determinable confirmed episodes, and one of them is harmful\. Without gpt\-oss\-20b, 19 of 66 confirmed episodes are harmful, so the result does not rest on this configuration\. Harm is almost never repaired: 49 of 51 continuations with a harmful action still have the violation in C, including all 30 confirmed ones\.
## IVAnswering Q2: How Much Harm Do Repeat\-Based Signals Detect?
TABLE II:Repeat\-based signals against state\-and\-task labels \(195 sampled episodes with a determinable label\)We consider automatic signals as candidates and the labels based on state and task as the reference\. Rule B works on the call trace: it fires if the first block after the failure calls the same API as a write that the failed block had completed, and this API creates or accumulates objects\. The arguments are not compared\. Idempotent, overwriting, and unclassified APIs are excluded, as well as cart additions withclear\_cart\_first\. The multiplicity test works on the snapshots: for the objects created by the failed block, it fires if C contains more identical objects or a greater cart quantity than B\. As shown in Table[II](https://arxiv.org/html/2611.31554#S4.T2), both signals are precise, and Rule B finds 75% of duplications\. However, among all 51 harmful continuations of the sample, including 21 without a confirmation, duplications form 55%, and only 25% in the stratum of 2025–2026\. As a result, the recall of Rule B on all harm is 0\.41, and in this stratum it is 0\.15\. Of its 30 misses, 23 are destructions and wrong changes: a monitor of repeated calls cannot detect a first\-time deletion or a wrong first\-time write\. The other seven are duplications that the rule does not recognize: it inspects only the first block after the failure and only the APIs of the completed writes\.
The reference labels required verification as well\. Positive controls revealed defects in our snapshot instrument: for example, it skipped large tables, so all cart differences were empty, and empty intermediate snapshots produced phantom deletions\. In addition, seven episodes were first labeled as harmless by an empty difference between B and C, although their writes go to tables that the snapshots do not cover\.
## VAnswering Q3: Does Operation Identity Help?
A common solution for repeated effects is an idempotency contract: each logical operation has an identifier, and the second call with the same identifier returns the stored result\. For regenerated code, the identifier can be provided by the model or derived from the call content\. We examine both options\.
### V\-AIdentity supplied by the model
Setup\.We select 17 episodes from the confirmed set using a scripted rule with a fixed seed\. Ten of them are taken from the episodes with a harmful recovery under the first labels, at most two per run\. Seven are taken from confirmed episodes without harm where a repetition is legitimate\. We replay each episode up to the failed block inclusively, and then a local model continues it for at most 12 blocks\. The model is gpt\-oss\-20b with temperature 0 and the ReAct code\-agent prompt of AppWorld\.
The wrappereffects\.call\(operation\_id, api, args\)executes a call with a new identifier, returns the stored result for a repeated one, and reports a conflict for the same identifier with other arguments\. We compare the five conditions of Table[III](https://arxiv.org/html/2611.31554#S5.T3)\. In B, the model labels its calls, and the wrapper only observes\. In D, reference identifiers are set for the calls of the failed block \(10 harmful episodes only\)\. In E, every write that bypasses the wrapper is additionally rejected\.
TABLE III:Pilot with model\-supplied identifiers\. A: no wrapper; B: observe; C: enforce; D: reference identifiers; E: enforce and reject bypass\. Harm: continuations with a harmful action\. Resid\.: continuations with a violation in C, including one left by the failed block\. Byp\.: writes outside the wrapper among all write requests and among successful writesnnHarmResid\.Byp\. req\.Byp\. writesA1768––B176a736/45116/168C1757503/82311/80D104697/13521/38E17780/1840/129a6 or 7 depending on one disputed label\. Harm undeterminablein one continuation each in D and E\.Results\.As shown in Table[III](https://arxiv.org/html/2611.31554#S5.T3), none of the conditions detectably reduces harm\. All paired differences consist of one or two discordant pairs: one pair for C compared to B, and two pairs for E compared to C, both towards E\.
The rejection of direct writes completely removes the bypass \(0 of 184 write requests compared to 503 of 823 in C\), and its cost is low: 14 of 16 rejections are followed by the same call through the wrapper, and one read is suppressed incorrectly\. However, harm does not decrease: 5 continuations in C and 7 in E\. In C, four of five harmful continuations have no successful writes outside the wrapper\. Both new harmful continuations in E go through the wrapper completely: each write has a*new*identifier or is a first\-time wrong change\. In D, the wrapper raised three conflicts on repeats of completed work, and the model avoided all of them using a new identifier\. Hence, the contract works if the identifier is reused, but the model does not reuse it, which is consistent with injected\-fault results for stronger models\[[5](https://arxiv.org/html/2611.31554#bib.bib5),[8](https://arxiv.org/html/2611.31554#bib.bib8)\]\. We test a single prompt, so a better one may improve the reuse\. However, reusing an identifier requires the model to recognize and preserve the identity of a logical operation across rewritten calls, which it does not reliably do in our pilot\.
### V\-BIdentity derived from the call content
If the harness assigns the identity, a natural key is the call content\. We do not run this option live\. For each harmful write in the 30 harmful recoveries of Section[III](https://arxiv.org/html/2611.31554#S3), we check whether it would have matched an earlier*successful*call to the same API with the same canonical arguments within the episode\. We use this scope because the agent repeats writes of both the failed block and the prefix; a narrower scope would change both sides of the trade\-off below\. We use three canonical forms that were fixed before the matching\. The*strict*form is a sorted JSON without authentication fields\. The*lenient*form additionally drops six flags that do not change the target object, e\.g\.,clear\_cart\_first\. This form is aggressive, since such a flag can have side effects of its own\. The*ids*form keeps only the fields that name the target object, quantities, and amounts\. It drops the name and the street of an address, so any two address creations match\. We enumerate all harmful writes using the labels: 132 writes, including 9 that are marked as ambiguous\.
The calls before the continuation were recorded without responses\. Therefore, we re\-execute each episode without the model and use its early calls only if three controls pass: the snapshot after the block is equal to the stored B, the sequence of calls is equal to the historical log, and the block fails with the same exception\. In this additional re\-execution, the controls pass in 179 of 200 episodes and in all 30 harmful recoveries\.
TABLE IV:Counterfactual matching on canonical arguments in the 30 harmful recoveries after confirmed partial executionTable[IV](https://arxiv.org/html/2611.31554#S5.T4)demonstrates the results\. Between 100 and 118 of 132 harmful writes would have matched, and 85 to 102 of these matches refer to the prefix or the failed block, which is the case the contract is designed for \(without the ambiguous writes, 95 to 113 of 123\)\. The result depends on the kind of harm\. In the strict form, 85% of duplicated writes would have matched\. The main exception is a task where gpt\-oss\-20b creates copies of the same address under new names \(13 writes\), which only the ids form matches\. Destruction would have matched only without the flags: in three writes, the cart is emptied byclear\_cart\_firstin a call that repeats an earlier addition\. Among the wrong changes, 4 to 5 of 15 writes would have matched, but none of the six recoveries would have matched completely, because the wrong order or the wrong record is the first call of its kind\. As a result, all harmful writes would have matched in 14 to 18 of 30 recoveries: in 13 of 17 for gpt\-4\-turbo, gpt\-4o, and llama3\-70b in every form, and in 0, 2, and 4 of 11 for gpt\-oss\-20b\. Note that this is an upper bound, because it assumes that the agent does not change the arguments after a refusal\.
The contract also has a cost\. In the confirmed episodes, the same key would have matched 847 to 854 successful writes that are not labeled as harmful\. Of them, 250 to 254 are required by the task according to a scripted rule on the cart state\. For example, after the agent clears the cart and an order is rejected, adding the same product again is needed for the next order\. All these writes are calls to two cart APIs, and they are located in 30 episodes, 23 of which have no harm\. Hence, on the observed trajectories, the content key would have matched every harmful write in 14 to 18 episodes, while also matching required writes in 30\. Therefore, the call content is a usable identity for repeats with unchanged arguments, but it is not sufficient: it does not cover wrong first\-time writes and first\-time deletions, regenerated code may change it for the same operation, and accumulating APIs reuse it for different operations\.
## VIDiscussion
The results allow us to outline the following requirements for agent runtimes:
1. 1\.Idempotency must not rely solely on identifiers supplied by the model\.In our pilot, forcing all calls through a contract does not change this, so identifiers supplied by the model alone are not a reliable basis for excluding duplicated effects\[[7](https://arxiv.org/html/2611.31554#bib.bib7)\]\.
2. 2\.A ledger of past calls is not sufficient\.Identity derived from the content would cover most duplicated writes, but it does not cover first\-time wrong writes and would also match required writes on accumulating APIs, with a risk of suppressing legitimate effects\.
3. 3\.The scope of recovery writes should be limited\.Wrong first\-time writes and deletions cannot be addressed by an idempotency contract\. The footprint of the failed block is evidence of what was done but not a permission\.
4. 4\.Monitoring should compare the state with the task\.Signals that search for repeats miss the harm that is not a repeat\.
In terms of exactly\-once processing, the regenerated block is a non\-deterministic operator, and the service is a sink that is not idempotent by content, so the assumptions behind deduplication at the sink hold only for a part of the recoveries\[[9](https://arxiv.org/html/2611.31554#bib.bib9)\]\. A classical alternative is to hold the writes of a block until it succeeds\[[10](https://arxiv.org/html/2611.31554#bib.bib10)\]\. This idea is applied to agents in\[[1](https://arxiv.org/html/2611.31554#bib.bib1),[11](https://arxiv.org/html/2611.31554#bib.bib11)\]\. Compensation\[[2](https://arxiv.org/html/2611.31554#bib.bib2),[3](https://arxiv.org/html/2611.31554#bib.bib3)\]also covers operations that are not idempotent, but it requires knowing which writes took effect, and unguided deletions are themselves harmful in our sample\. Our data motivate these directions but do not evaluate them\.
## VIIRelated Work
Settlement and retries\.Rubicon\[[5](https://arxiv.org/html/2611.31554#bib.bib5)\]considers duplicated effects after a crash as an output\-commit problem\. It shows on 30 live runs that reported completion hides duplicated effects and that the scorer ofτ2\\tau^\{2\}\-bench\[[12](https://arxiv.org/html/2611.31554#bib.bib12)\]accepts a duplicated refund\. It also measures regenerated keys in 29 of 66 recoveries and proposes an identity owned by the runtime\. RetryBench\[[8](https://arxiv.org/html/2611.31554#bib.bib8)\]examines the retry decision after simulated timeouts and observes retries under a changed key\. LIMBO\[[13](https://arxiv.org/html/2611.31554#bib.bib13)\]studies whether duplicate effects are caused by the model, the harness, or the tool contract\. These works inject a fault and count duplicates\. To the best of our knowledge, there is no work that samples natural failures and labels the harm of recovery by state and task\.
Evaluation beyond success\.SABench\[[14](https://arxiv.org/html/2611.31554#bib.bib14)\]measures writes outside the authorization of the user during ordinary execution using an oracle based on the trace, but it does not consider recovery\. In\[[15](https://arxiv.org/html/2611.31554#bib.bib15)\], 95 failed multi\-agent runs are annotated, and none of them changed a shared or third\-party system\. A recent work\[[16](https://arxiv.org/html/2611.31554#bib.bib16)\]freezes AppWorld agents after a write and varies the receipt and the world: a success receipt improves or reduces task success depending on whether the effect is present\. This design is close to our pilot, but it measures success instead of the added harm\. Recovery\-Bench\[[17](https://arxiv.org/html/2611.31554#bib.bib17)\]resumes other models from a failed state and reports success\.
Mechanisms\.Cordon\[[1](https://arxiv.org/html/2611.31554#bib.bib1)\]stages effects within semantic transactions, Atomix\[[2](https://arxiv.org/html/2611.31554#bib.bib2)\]combines keys, compensation, and gating, and RAC\[[3](https://arxiv.org/html/2611.31554#bib.bib3)\]teaches agents to compensate committed steps\. Verified tool calls\[[4](https://arxiv.org/html/2611.31554#bib.bib4)\]consider a lost response as a third outcome and verify it before a retry\. ACRFence\[[18](https://arxiv.org/html/2611.31554#bib.bib18)\]considers regeneration after a checkpoint restore as an attack class\. DART\[[19](https://arxiv.org/html/2611.31554#bib.bib19)\]checks whether a local rollback remains valid for committed downstream consumers\. In\[[20](https://arxiv.org/html/2611.31554#bib.bib20)\], the persistent changes of an execution are compared with the approved ones, which corresponds to our fourth requirement\. These systems define when an effect may commit, while we report how often the problem occurs in recorded runs\.
## VIIILimitations
The labels are produced by LLM annotators, and only one human author reviewed the resolved disagreements and audited the labels\. The guidelines were refined after the first 40 episodes\. The pilot labels are produced by a single LLM annotator, and a second one agrees with it in 11 of 16 relabeled continuations\. Condition E is labeled with the condition known, which may affect its comparison with the other conditions\. The sample is dominated by a few configurations: gpt\-oss\-20b in a single configuration provides 77 of 143 confirmed episodes, and only 9 of 200 sampled episodes use models of 2026\. The 30 harmful confirmed episodes cover 24 runs and 22 tasks\. The pilot includes 17 selected episodes, a single 20B local model, and a single prompt, so its counts are not prevalence estimates\. Its server is not deterministic at temperature 0, so a part of the variation between conditions is noise\. The identity derived from content is evaluated counterfactually on the observed trajectories, and an agent that faces refusals can act differently\. All results on the level of state are obtained on one simulated benchmark, and the limited coverage of the snapshots prevents us from estimating harm outside the shopping application with the same confidence\.
## IXConclusion
In this work, we measured what a recovery after partial execution adds to the external state in recorded agent runs\. Our study has the following findings:
- •following a state\-confirmed partial execution, approximately one in four continuations leaves a task violation;
- •one third of the harmful recoveries involve deletions or wrong first\-time writes, which a repeat detector misses and an idempotency key covers only partially;
- •identifiers supplied by the model are not reused in a small pilot, and identity derived from the call content would cover most duplicated writes but not the rest, with a risk of suppressing required writes\.
## References
- \[1\]Z\. Chen, H\. Liu, D\. Xu*et al\.*, “Cordon: Semantic transactions for tool\-using LLM agents,”*arXiv preprint arXiv:2606\.17573*, 2026\.
- \[2\]B\. Mohammadi, N\. Potamitis, L\. Klein, A\. Arora, and L\. Bindschaedler, “Atomix: Timely, transactional tool use for reliable agentic workflows,”*arXiv preprint arXiv:2602\.14849*, 2026\.
- \[3\]S\. Perera, K\. Hapuarachchi, F\. Leymann, and R\. Khalaf, “Robust agent compensation \(RAC\): Teaching AI agents to compensate,” in*Proceedings of the ACM Conference on AI and Agentic Systems*, 2026, pp\. 253–262\.
- \[4\]I\. K\. Mansoor, A\. Phadke, and P\. Rana, “Verified tool calls improve LLM agent reliability under non\-atomic failures,”*arXiv preprint arXiv:2608\.02645*, 2026\.
- \[5\]B\. Mohammadi, L\. Klein, A\. Arora, and L\. Bindschaedler, “When to cross the Rubicon: Settlement reliability for LLM agent tool use,” Zenodo preprint, 2026\. \[Online\]\. Available:https://zenodo\.org/records/23362959
- \[6\]H\. Trivedi, T\. Khot, M\. Hartmann*et al\.*, “AppWorld: A controllable world of apps and people for benchmarking interactive coding agents,” in*Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics \(ACL\)*, 2024\.
- \[7\]A\. Trofimov and B\. Novikov, “When tool calls succeed but workflows fail: Anomalies at the agent\-tool boundary,”*arXiv preprint arXiv:2609\.15397*, 2026\.
- \[8\]Y\. Liu, Y\. Liu, and Q\. Lu, “RetryBench: Separating retry permission from recovery outcomes in GPT tool use,”*arXiv preprint arXiv:2610\.15884*, 2026\.
- \[9\]T\. Akidau, A\. Balikov, K\. Bekiroğlu*et al\.*, “MillWheel: Fault\-tolerant stream processing at Internet scale,”*Proceedings of the VLDB Endowment*, vol\. 6, no\. 11, pp\. 1033–1044, Aug\. 2013\.
- \[10\]R\. E\. Strom and S\. Yemini, “Optimistic recovery in distributed systems,”*ACM Transactions on Computer Systems*, vol\. 3, no\. 3, pp\. 204–226, 1985\.
- \[11\]C\. Wang and Y\. Zheng, “Fork, explore, commit: OS primitives for agentic exploration,”*arXiv preprint arXiv:2602\.08199*, 2026\.
- \[12\]V\. Barrès, H\. Dong, S\. Ray, X\. Si, and K\. Narasimhan, “τ2\\tau^\{2\}\-Bench: Evaluating conversational agents in a dual\-control environment,” in*Proceedings of the 43rd International Conference on Machine Learning \(ICML\)*, 2026\.
- \[13\]J\. Li, “Where does exactly\-once live? Model, harness, and tool\-contract effects on duplicate side effects in LLM agents,”*arXiv preprint arXiv:2609\.29095*, 2026\.
- \[14\]J\. Huang, S\. Chen, X\. Liang*et al\.*, “Task success is not enough: Side\-effect\-aware evaluation of tool\-using language model agents,” in*Advances in Neural Information Processing Systems \(NeurIPS\)*, 2026\.
- \[15\]S\. Wang, J\. Wen, X\. Zhang, and X\. Jiao, “Dependable long\-horizon LLM agents: A trajectory\-centered empirical study of where errors enter and which controls reach them,”*arXiv preprint arXiv:2611\.13254*, 2026\.
- \[16\]E\. Pakhomov, A\. Koul, H\. Liu, B\. Pang, S\. Joty, and E\. Nijkamp, “Cleaning an agent’s history hurts when the world still holds the error,”*arXiv preprint arXiv:2611\.14654*, 2026\.
- \[17\]S\. Tan, K\. Lin, K\. Sen, and M\. A\. Zaharia, “Recovery\-Bench: Evaluating agentic recovery from mistakes,” in*NeurIPS 2025 Workshop on Evaluating the Evolving LLM Lifecycle*, 2025\.
- \[18\]Y\. Zheng, Y\. Yang, W\. Zhang, and A\. Quinn, “ACRFence: Preventing semantic rollback attacks in agent checkpoint\-restore,”*arXiv preprint arXiv:2603\.20625*, 2026\.
- \[19\]K\. Yang, P\. Li, Z\. Wu, K\. Xu, H\. Huang, and X\. Huang, “DART: Semantic recoverability for structured tool agents,”*arXiv preprint arXiv:2605\.23311*, 2026\.
- \[20\]H\. Zhang, H\. Zhang, Z\. Liang, Y\. Yan, D\. Zuo, and H\. Wang, “Beyond approved actions: Runtime validation of persistent outcomes in agent workflows,”*arXiv preprint arXiv:2609\.31301*, 2026\.相似文章
迷失于恢复:通过目标导向的动作重放揭示计算机操作智能体的恢复行为
ReTrace 是一个可扩展的评估框架,用于系统研究计算机使用智能体的恢复行为,通过在受控错误注入后进行目标导向的动作重放,对转移一致性恢复进行形式化定义。研究发现,理想的恢复能够释放潜在的任务完成能力,当前智能体未能充分发挥其恢复潜力,而准确的基于模型的恢复能够带来可量化的端到端性能提升。
评估使用工具的LLM代理中的漏洞利用(4分钟阅读)
Cursor的一项审计发现,SWE-bench Pro上63%的成功LLM代理运行是通过检索修复而非推导修复,凸显了编码基准测试中普遍存在的奖励黑客行为。该研究提出了更严格的环境控制来缓解这种行为。
每个人都在构建能够采取行动的 AI 智能体。谁在构建能够从错误中恢复的智能体?
一篇评论文章,主张 AI 智能体设计应优先考虑错误恢复和回滚策略,而不只是任务执行,并强调跨多个系统的任务仅部分完成所带来的风险。
并非所有技能都有帮助:衡量与修复智能体知识
本文指出,在LLM智能体中简单积累技能可能导致性能倒退,因为对某些任务有益的技能反而会损害其他任务。作者提出Assay框架,该框架衡量每个技能的因果贡献,并对每个任务进行掩码处理,在不更新权重的情况下,在AppWorld和τ-bench上取得了最先进的结果。
更多记忆,更差的智能体:LLM Agent 中的错误复现与反持久性
本文表明,累积更多记忆会通过错误复现而降低 LLM 智能体的性能——存储的错误会通过新的抽象自我再生。文中提出了一种名为 Anti-Persistence 的方法:保留轨迹,同时按需重建针对特定任务的指导,从而在多个基准测试上取得更高的成功率和更低的 LLM 调用成本。