Robust Agent Compensation (RAC): Teaching AI Agents to Compensate
Srinath Perera (WSO2), Kaviru Hapuarachchi (WSO2), Frank Leymann (University of Stuttgart), Rania Khalaf (WSO2)
Architectural Patterns & Composition
Robust Agent Compensation (RAC) is an architectural extension that adds automatic rollback and recovery to existing agent frameworks, providing a log-based safety net for unintended side effects without requiring agents to be rewritten. It's compatible with most major frameworks via existing extension points and validated on τ²-bench and REALM-Bench.
Presentation
Talk
Paper Session 1: Agent Design
Wednesday, May 27 · 11:45 AM – 11:55 AM
Bayshore Ballroom
Poster
Wednesday, May 27 · 5:15 PM – 6:45 PM
Carmel / Monterey
Abstract
We present Robust Agent Compensation (RAC), a log-based recovery paradigm (providing a safety net) implemented through an architectural extension that can be applied to most Agent frameworks to support reliable executions (avoiding unintended side effects). Users can choose to enable RAC without changing their current agent code (e.g., LangGraph agents). The proposed approach can be implemented in most existing agent frameworks via their existing extension points. We present an implementation based on LangChain, demonstrate its viability through the τ²-bench and REALM-Bench, and show that when solving complex problems, RAC is 1.5-8X or more better in both latency and token economy compared to state-of-the-art LLM-based recovery approaches.