arXiv(opens in a new tab)cs.AISep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.05019

TROVE: Adaptive Agent Skill Orchestration via Trace-Grounded Route Validation and Editing

Tianxing Wang, Mingming Zhao, Shuai Huang, Huiyang Xu, Chaoyue Niu, Shengzhong Liu, Fan Wu

Abstract

Agents tend to optimize, select, or constrain execution structures before decisive runtime outcomes are observed. However, such pre-execution commitment creates an orchestration bottleneck: when intermediate evidence invalidates the pending continuation, agents must either execute stale steps or re-plan broadly, compounding errors, wasting computation, and discarding progress. We thus propose Trace-grounded Route Orchestration via Validation and Editing (TROVE), which revises only what runtime evidence invalidates. Offline, TROVE distills evaluated workflow-search traces into atomic and composite skills and an outcome-conditioned transition graph, preserving stable fragments while exposing outcome-dependent decisions. Online, it treats a planned route as provisional: after committing one top-level skill, the controller retains a valid continuation, inserts a trace-supported local response, or replaces only the invalid suffix. Evaluations across code-generation, question-answering, and math reasoning benchmarks with different LLM backbones show that TROVE delivers a stronger quality-efficiency trade-off than existing baselines of dataset-level optimization, query-level architecture selection, and graph-constrained scheduling. Quality gains are largest when outcomes change the appropriate continuation, whereas early termination yields substantial efficiency gains on near-saturated tasks. Ablations further show that composite skills capture most offline benefits, insertion enables local correction, and suffix replacement primarily improves efficiency. These findings establish selective route editing as a general principle for adaptive agent orchestration.

1 Introduction

Agents increasingly solve complex tasks by orchestrating multiple reasoning, generation, verification, and tool-use steps. The task performance depends not only on the capability of each component, but also on when and in what order those components are invoked. A strong solver may need a critic only when its answer is uncertain; a generated program may require repair only after a failed test; and a planned verification step becomes redundant once an earlier skill has already produced a valid final answer. Agent workflow orchestration is therefore not merely a mechanism for composing model calls. It determines whether intermediate evidence is converted into useful computation or ignored by a stale execution path.

Existing work has substantially improved how agent workflows are constructed, but places most structural decisions

Figure

Figure 1: Motivating HotpotQA example. After review (2) detects missing evidence in draft (1), AFlow still executes its fixed format suffix and scores 0. Our TROVE instead applies INSERT to add revise (3), followed by REPLACE to substitute stop (4) for the obsolete suffix, preserving the useful prefix and raising the score to 1.

before the outcomes that matter become observable. For example, AFlow selects a dataset-level workflow (Zhang et al. 2025b); MaAS chooses a query-specific architecture before execution (Zhang et al. 2025a); and LAS adapts only within a predefined graph (Xiang et al. 2026). However, as execution unfolds, a queued continuation can become stale: review may demand revision, success may render verification redundant, or tool failure may invalidate downstream steps. Executing that continuation compounds errors and wastes computation.

Such runtime mismatch motivates the new requirement of adaptive route validation and editing: after each execution boundary, validate the pending route and edit it at the smallest sufficient scope. Unlike restarting or regenerating the entire future, this strategy preserves the executed prefix and artifacts, retains valid steps, repairs local mismatches, and replans only an invalid suffix. Figure 1 illustrates the idea on HotpotQA: review exposes missing evidence, but AFlow still executes the queued format step and fails. We instead insert revise and replace the obsolete suffix with stop, preserving the useful draft-review prefix while changing only what the new evidence invalidates.

Building on this insight, we propose Trace-grounded

Route Orchestration via Validation and Editing, TROVE for short. Offline, TROVE distills evaluated workflow search traces into a skill registry and a transition graph: stable fragments become executable composite skills, whereas outcome-dependent continuations remain explicit. Online, a planner proposes a short route, but the controller commits to only its first top-level skill. After observing outcome, TROVE retains the planned successor if it remains valid, inserts a local response if the downstream intent remains sound, or invokes an LLM to replace only the invalid suffix. TROVE thus separates planning from commitment: its proposal horizon spans multiple skills, while its commitment horizon remains one action.

We summarize the contributions of this work as follows:

  • We identify a fundamental agent orchestration challenge: adapting a workflow when runtime outcomes invalidate what it planned to do next.

  • We propose TROVE, which distills evaluated search traces into executable composite skills and an outcome-conditioned transition graph, then combines one-step commitment with different route revisions to preserve useful structure and artifacts.

  • We evaluate TROVE on 6 code, question-answering, and mathematics benchmarks with 3 LLMs. Across 18 backbone-benchmark settings, TROVE achieves the best or tied-best task score in 15 and the shortest online time in 16. Relative to AFlow, TROVE improves task score in 16 settings (by up to 31.37%) and reduces time in 16 (by up to 86.7%).

References (26)