Vestrum: Learning the Verification, Retrieval and Structure of Agent Harnesses from a Few Long Episodes
Jayant Parashar, Eugene F. Douglass, William C. Bastian, Suchendra M. Bhandarkar
Abstract
Agent harnesses decide what the model retrieves, decomposes, remembers and verifies, and most people use harnesses that are pre-built and fixed, such as Claude Code or a published memory system. Harness optimizers rewrite their own harness code rather than editing pre-built systems, and they learn from tens to hundreds of tasks, while long-horizon work offers a handful of episodes, each hundreds of tool calls long. We present Vestrum, which improves existing harnesses component by component. It reads full raw traces, states each failure as a recognizable class, and changes the one component where the error arose (a self-verification, a retrieval view, a decomposition step or a memory operation). Each change targets a failure that recurs across tasks of the same kind. Before anything runs, a generalization filter refuses changes that copy facts from the development tasks. Vestrum learns from one to ten long development episodes and improves tasks it has never seen in all five settings. On Claude Code, Vestrum raises Terminal-Bench 4 Hard from 63.7% to 70.3% of test checks at 1.03x the test cost. It raises expert cell-type agreement from 67.5% to 77.8% on held-out sections of one slide. On the GAM memory system, it raises UltraHorizon from 47.6 to 59.8, AMA-Bench from 64.2% to 74.2% and LoCoMo from 71.5% to 74.9%. It beats the GEPA prompt search we ran on the same data in every paired evaluation, and these gains hold under a test model different from the one Vestrum's search used. Across the searches, every self-verification the loop kept acts early: it checks an intermediate result against recorded evidence before the result is committed, or, on Terminal-Bench, requires an invariant and a probe before the first edit. In development, auditors that re-examined every finished answer broke more correct answers than they fixed, and the loop did not keep them.
Create a lesson
Metadata
- Comments
- 27 pages, 2 figures, 20 tables. Under review
Related papers
Preflight: Agentic Last-Mile Verification for AI Software Supply Chains
Shared title terminologycs.AIYaman Jandali, Nojan Sheybani, Farinaz Koushanfar et al.
DMC-5: Dual-Model Collaboration with Cache-aware Context Compression for Long-horizon Agents
Shared title terminologycs.AIHaochen Li, Xiaobing Tu, Yinggui Wang et al.
Post-Training Agents for Long-Document Reasoning
Shared title terminologycs.AISushant Mehta, Logan Ritchie, Edwin Chen
WebPageBench: Event-Level Verification and Controlled UI-Variant Generation for Web Agents
Shared title terminologycs.AIAnton Emelyanov, Maria Tikhonova, Zaven Martirosian et al.
SIPO: Selective-Inference Policy Optimization for Tree-Structured Agentic RL
Shared title terminologycs.AIZenghuang Fu, Ningqi Chen, Mingda Jia et al.
BEHAVE: Functional Behavior Modeling Enables Self-Improving Agents for Hardware Design and Verification
Shared title terminologycs.AIYuheng Wu, Berk Gokmen, Sujeeth Jinesh et al.