ReLevel: A Framework for Adaptive Self-Reflection in Multi-Level Planning for Long-Horizon Agents
Abstract
We present ReLevel, a framework for adaptive reflection-level selection that decides at which level of an agent's plan to reflect when a failure occurs. Modern agents decompose a complex task into a hierarchy of sub-tasks down to individual actions and reflect when an action fails. The choice of reflection-level is significant: reflecting at the failed action alone is cheap but lets errors propagate to sibling steps that share the same flawed assumption, while re-planning the whole task fixes the error but discards already completed work. ReLevel instead derives three signals from each failure to adaptively select the reflection-level: the scope of invalidated assumptions, the level the model's sampled attribution points to, and the cost--benefit of regenerating each candidate level. It treats each signal as a lower bound on how coarse the reflection must be and reflects at the tightest level that satisfies all three. The lowest common ancestor of the affected steps sets a correctness floor, raised only when confidence or cost--benefit shows that a globally unsound design or an unreliable local fix requires more. An accompanying interactive system visualizes the plan tree, the failure, the three signals, and the selected level, letting users compare action-level, plan-level, and adaptive strategies on the same failure. Across six language models, ReLevel matches the repair success of whole-plan re-planning while re-executing about a third of the actions, whereas action-level reflection leaves the failure unrepaired.