← All entries
Paper2026#1272

Sentry: Learning to Recover from LLM Agent Failures at Test Time

Summary

Test-time framework for recovering LLM agents from failures, from Stanford's ACE (Agentic Context Engineering) team. Core finding: failure knowledge is conditional — how it reaches the agent matters as much as what it contains. Failure lessons kept in context misfire when their failure is absent: ACE-style memory that keeps past failure lessons in context for every task distracts the agent (e.g., on WebShop the agent found the right product then kept comparing alternatives and never acted); simply removing failure lessons improves ACE by +17% on WebShop and +14% on Mind2Web Replay. Conversely, runtime-intervention methods (AgentGuard) act only on failure but learn nothing — fixed rules can fire at the wrong time (a 'no progress' warning made the agent abandon correctly picked product options). Sentry combines both: it learns from experience like ACE, but keeps failure knowledge in a separate playbook outside the agent's main context; a failure detector watches for failures, retrieves failure-specific guidance (hard repair for invalid actions, soft repair with hints), and a verifier checks recovery without access to task rewards — the playbook is updated only if recovery succeeded. Results on WebShop, AppWorld, SWE-bench Lite, Mind2Web Replay: +37% over the best runtime-intervention baseline on average (up to +77% on WebShop), +39% over ACE; ACE+Sentry combined performs best overall, with task-level and failure-level learning as complementary. Learned lessons transfer to held-out tasks; controlled experiments confirm exposing the full playbook hurts even when relevant lessons remain available on demand. CC BY 4.0 license. Directly relevant to the user's agent app (memory design: storing knowledge is easy, deciding when the agent sees it is what matters) and to Launch Helm's intervention/control angle.

Venue
arXiv 2610.02994 [cs.LG], submitted 2 Oct 2026, preprint
Source
x
Access
free
Language
en
Added
Oct 6, 2026
Verified
Oct 6, 2026
Found via
#random-papers

Tags

sentryagent-failure-recoverytest-timeacestanfordplaybookverifier

Topics

agent failure recovery, test-time recovery, agent memory, runtime intervention, playbook, ACE

Research notes

  • Discovery: @Changxiu_leo_ji (Changxiu Ji, Stanford Math & CS sophomore, author) X 8-post thread 2026-10-05 1:00 PM ET (https://x.com/Changxiu_leo_ji/status/2107153972859695222), 16.8K views, 91 likes, 88 bookmarks
  • Code: https://github.com/nuglifeleoji/Sentry (full release next week per thread)
  • Blog post coming
  • Related: 920 (multi-harness RL), 1552 (harness anatomy), 1570 (SelfSearch), 1577 (Agent Memory Repo — pairs on the memory/conditional-exposure design question)

Similar entries