Hugging Face researchers published a practical guide for building and maintaining agent evaluations, showing how the harness, the verifier, and even a clever shortcut can inflate a score without the agent having done the real work.

- Reading
- 8 min
- Tables
- 1
Hugging Face researchers published a practical guide for building and maintaining agent evaluations, showing how the harness, the verifier, and even a clever shortcut can inflate a score without the agent having done the real work.
On November 23, 2026, Hugging Face published a guide authored by Avijit Ghosh, Ben Burtenshaw, and Irene Solaiman on how to build and maintain AI agent evaluations. It's not a product announcement: it's an eight-step framework, tested on a real case (an agent that analyzes laboratory spectra), that exposes where most agent evaluations fail without anyone noticing.
The starting point is uncomfortable for anyone who already trusts agent benchmarks as a definitive number. In a Terminal-Bench audit, researchers kept the model fixed and changed only the agent harness, the software layer that wraps the model and its tools. Accuracy varied by up to 29.9 percentage points. The model was the same; what changed was everything around it.
Anatomy of an agent evaluation
The guide separates an agent evaluation into pieces that can be published, inspected, and reused separately:
- Task: the instruction the agent receives.
- Agent harness: the software that wraps the model and its tools inside a fixed environment.
- Rollout: a complete attempt by the agent, from start to finish, which can run commands and retry before stopping.
- Evaluation harness: the orchestrator that runs multiple rollouts per task.
- Verifier: what evaluates the final state of the environment at the end of the rollout.
- Trace: the record of everything the agent did, reviewable by humans afterward.
Hugging Face hosts about 3,500 evaluation leaderboards and saw a 16-fold growth in evaluation datasets on the hub over the past year, reaching about 17,000. The hub has also started supporting agent-specific abstractions: Traces, Benchmarks, and Environments, designed to store and compare this kind of evidence.
Eight steps, tested in a real lab
To show the framework in action, the team built an evaluation for a concrete case: an agent that fits peaks in a Raman spectrum (a measurement that reveals a material's properties, in this case graphene) and calculates the D/G ratio, an indicator of defects. The eight steps are: define the claim, find an existing task, run it unmodified, adapt it, check the evaluation, read the traces, report the score, and compare models.
Instead of starting from scratch, the researchers reused Harbor's task format (an open-source evaluation harness) and the Terminal-Bench raman-fitting task. They ran the reference solution, which passed, and then ran the original task three times with the Terminus-2 harness and the open model gpt-oss-120b, using HF Jobs, HF Sandbox, and Inference Providers. The baseline result: zero successes in three rollouts. In two, the model declared the task complete before even observing the relevant result; in the third, it failed to read the data file, which uses a decimal comma.
From there, the team built raman-lab: eight synthetic spectra with known parameters and varying levels of noise and defect, with new instructions that make explicit the units and definitions that the original task only left implicit.
Testing whether the verifier falls for a trick
Before running more models, the researchers tested the evaluation itself with three probes: the reference solution (should always pass), an agent that does nothing (should always fail), and a deliberate shortcut (should also fail). The shortcut was a short script that read each peak's height directly from the data, guessed the widths, and calculated the D/G ratio without fitting any curve.
The shortcut got the expected ratio right on all eight tasks. A verifier that only checked the final result would have given a perfect score to a method that skipped the real work. The team then added checks on the fit of each individual peak, and only then was the shortcut rejected.
A consistent score can still measure the wrong thing.
Avijit Ghosh, Ben Burtenshaw, and Irene Solaiman, authors of the Hugging Face guide
pass@3 is not pass^3
With the adapted evaluation running three rollouts per task, gpt-oss-120b passed in 11 of 24 rollouts. In 19 of them, the model called mark_task_complete already in its first response, and 11 of those attempts generated no result file at all, often because the script failed for lack of NumPy or SciPy, which the agent was supposed to install on its own.
The guide separates two metrics that are often treated as synonyms: pass@3 (the task succeeded in at least one of the three attempts) scored 7 of 8; pass^3 (the task succeeded in all three attempts) scored only 1 of 8. The average success rate was 0.46, with a standard error of about 0.11 when the rollouts are grouped by task. A repeat of the experiment passed in 10 of 24.
In short: if someone reviews the agent's output before using it, pass@3 already tells you something useful, because you can try again. If the process runs unsupervised, what matters is pass^3, because there's no second chance.
The inference provider also shifted the score. With the provider fixed on DeepInfra, gpt-oss-120b passed in 13 of 24 rollouts, versus 11 of 24 with the default provider, because different providers serve the same open model with different quantization and context limits. When comparing six models on the same eight tasks, only gpt-oss-120b declared the task complete on the first response (in 22 of 24 rollouts); none of the other five did so in any rollout. Three models, Qwen3.8-27B, DeepSeek-V4.1-Flash, and MiniMax-M3.1-Flash, passed all 24 rollouts: the task was too easy to tell them apart, a sign that the eight-task development set needs to grow.
When the benchmark is wrong
Errors in tasks and graders are common and shift scores for real. Terminal-Bench 2.1 corrected 28 of its 89 tasks after user reports, including one whose tests expected Spark SQL while the instructions called for PostgreSQL; the agents' ranking remained stable after the fix. CritPt, meanwhile, keeps its reference solutions private, which forced physicists auditing the benchmark to solve the problems themselves before finding errors in 21 of the 56 challenges reviewed.
An OpenAI audit of SWE-bench Verified, working with open tasks and tests, found material problems in 59.4% of the 138 problems examined, plus contamination: every frontier model tested managed to reproduce the reference patch or literal problem details on some tasks. In July 2026, OpenAI estimated that about 30% of SWE-bench Pro's tasks were broken and withdrew its recommendation to adopt the benchmark.
The Measuring What Matters review, with 445 LLM benchmarks assessed by 29 experts, found recurring patterns that compromise construct validity, that is, whether the task actually measures the capability it claims to measure. The Harder Than the Task paper goes further: fewer than a quarter of relevant benchmarks claim to cover dimensions such as authority, knowledge distributed across people, or organizational dependencies, the kind of difficulty that shows up in real work and disappears when the task already hands everything over ready-made at the start.
Hiding the test doesn't solve everything
Today, 98.2% of model-benchmark pairs are reported by a single party, which makes independent evaluation rare. Artificial Analysis reported that 60% of its Intelligence Index v5, announced in October 2026, relies on evaluations with private test sets or withheld answers. Google DeepMind recently tested double-blind evaluations, in which a secure enclave hides the test prompts from the model's provider and the model's weights from the external evaluator.
But privacy alone doesn't guarantee quality. A study of 60 language benchmarks found similar saturation in public and private benchmarks, concluding that hiding the test set doesn't prevent saturation once a benchmark becomes a market reference. What actually reduced saturation was expert curation and a larger test set, not secrecy itself.
What to open and what to protect
The guide proposes treating openness as a piece-by-piece decision, not an all-or-nothing one. For the task component, for example, the recommendation is to publish specifications, categories, construction method, and a public development split, while keeping active test items and answers in a dataset with access controlled by manual approval.
Existing benchmarks already adopt different degrees of this standard:
| Benchmark | What's public | What's protected |
|---|---|---|
| ARC-AGI-2 | Training set and 120 evaluation tasks | Semi-private and private sets, 120 tasks each |
| AILuminate | Methods and taxonomy | Official prompts, with evidence for controlled review |
| Terminal-Bench | Complete tasks, with a canary string against training use | No test item is kept closed |
Without access to a given component, no external reviewer can check that item, so whatever stays closed needs its own review route, such as controlled access for trusted auditors.
What changes for those building agents here
In my reading, the guide's greatest practical value isn't the Raman spectrum case, but rather the checklist that comes before trusting any score: run the reference solution, run an agent that does nothing, and actively try to trick the verifier itself with a shortcut. If the shortcut passes, the problem isn't the model, it's the evaluation.
For those measuring agents in production in Brazil, three things from this framework are worth taking away: reuse open task formats instead of reinventing the harness from scratch, explicitly decide whether your use case tolerates retries (pass@k) or requires success every time without supervision (pass^k), and fix the inference provider when comparing models, because different quantization and context limits already shifted the score by about 8 percentage points (from 45.8% to 54.2% success) in Hugging Face's own experiment. Publishing the traces, even when the full test set needs to stay closed, is what remains as reviewable evidence for any team.
Translated from the Brazilian Portuguese original · Read the original
mod_wsgi creator uses AI to reinvent the Python application server in Rust
Graham Dumpleton, who created mod_wsgi about 20 years ago, has been publicly documenting since November 4, 2026 the building of Muru, a Rust server for running WSGI and ASGI apps with heavy AI assistance.





