TL;DR
Verifying the complex, multi-file outputs of AI agents is a major bottleneck in AI development. This paper introduces Gandalf, an open-source "agentic verifier" that uses reactive reasoning and direct environment access to grade agent performance more accurately and at a fraction of the cost (up to 80% cheaper) of existing methods.
What Problem Does This Paper Address?
As AI agents move beyond simple chat to complex tasks—like building financial models in Excel or managing calendars—measuring their success becomes incredibly difficult. Standard "exact match" or unit test evaluations fail because these tasks are open-ended.
Researchers have turned to rubric-graded environments, where an LLM "judge" evaluates an agent's work against a list of natural-language criteria. However, these judges often struggle with "hallucinations" because they only see a text summary of the agent's work, rather than the actual files (like spreadsheets or slide decks) produced. This paper addresses the lack of a systematic way to design and evaluate these verifiers.
Methods
The authors propose three core design principles for building reliable verifiers, which they implement in their new tool, Gandalf:
- Reactive Verification (P1): Instead of a fixed grading script, the verifier is itself an autonomous agent. It looks at a rubric criterion and decides which files to open or tools to call to find the evidence it needs.
- Environment Alignment (P2): The verifier runs in the exact same environment as the agent it is grading. It has read-only access to the filesystem and specialized tools (via the Model Context Protocol) to inspect complex artifacts like Excel formulas or PowerPoint layouts.
- Domain Guidance (P3): The verifier is provided with a "guidance channel"—a set of domain-specific conventions (e.g., financial accounting rules) that aren't explicitly stated in every single rubric task.
Gandalf is built on the open-source OpenHands SDK, allowing it to act as a reactive agent with a terminal and file editor to perform its judging duties.
Datasets
The study utilizes two primary datasets:
- BankerVerifierBench (BVB): A new meta-evaluation dataset introduced in this paper. it contains 2,464 rubric criteria across 24 complex investment banking tasks. Crucially, every criterion has been judged by two human domain experts and adjudicated by a senior reviewer to create a "ground truth" for verifier accuracy.
- OpenClaw (OPC): An internal dataset focused on personal productivity (scheduling, messaging, etc.) used to test how well verifiers generalize to different domains.
Key Insights and Ideas
- The "Text Flattening" Trap: Most existing verifiers fail because they "flatten" complex data into text summaries. If a verifier only sees a screenshot of a spreadsheet, it can't check if the underlying formulas are correct. Gandalf’s direct environment access solves this.
- Agentic Judges are More Efficient: By allowing the judge to be "reactive" (deciding what to look at), it avoids processing irrelevant data. This leads to massive cost savings.
- Taxonomy of Verification: The authors derived a nine-capability taxonomy for what a verifier actually does (e.g., "Audit quantitative metric calculation," "Inspect visual presentation"). This helps identify exactly where different models and architectures fail.
Key Results
Gandalf consistently outperformed existing baselines like Archipelago and AutoRubric in both accuracy and cost-efficiency.
- Cost vs. Accuracy: On the BVB benchmark, Gandalf using Gemini 3 Flash matched the accuracy of the best baseline while being 5x cheaper.
- Performance Gains: When using GPT-5.4 models, Gandalf improved the F1 score (a measure of accuracy) by over 0.12 compared to baselines, even at a lower total cost.
- Generalization: On the OpenClaw dataset, Gandalf achieved the highest F1 score (0.955), proving its principles work outside of the financial domain.
Limitations and Future Work
- Single Rollout: The BVB dataset currently only contains one agent "rollout" (attempt) per task. Future versions should include multiple attempts to see how verifiers handle different types of agent failures.
- RL Impact: While the paper proves Gandalf is a better judge, it hasn't yet demonstrated if using Gandalf as a reward signal in Reinforcement Learning (RL) actually results in better-trained agents.
- Task Scale: The evaluation was limited to 24 tasks per environment; larger-scale testing is needed to ensure these results hold across thousands of diverse scenarios.
Summary updated