How to Build and Maintain an Agentic Evaluation: Hugging Face's Eight-Step Guide
Hugging Face published a guide on 23 November 2026 titled "How to build and maintain an agentic evaluation" that walks through eight steps for constructing a trustworthy agentic benchmark, from defining the claim to comparing models, and illustrates each step with a Raman-spectroscopy task adapted from Terminal-Bench. The central argument: benchmarks should be built openly and released component by component, so that tasks, harnesses, verifiers and traces remain reusable and auditable even after a benchmark saturates.
The guide is both a methodology document and a case study. It reports the numbers from an actual evaluation run, including a grader that a shortcut solution defeated, and a model that declared tasks complete before reading any output.
The three eras of AI evaluation
Evaluation design has moved through three forms as language models became more capable: question-answer benchmarks, agentic benchmarks, and team or swarm benchmarks. Each step adds software that can change the score.
Question-answer benchmarks such as MMLU (2020) and GPQA (2023) measure knowledge and reasoning through the text a model returns. Agentic benchmarks such as SWE-bench and WebArena expand the scope to resolving software issues and completing tasks on websites, so the evaluation must account for the environment the system operates in and the changes it makes. The newest research direction covers multi-agent systems: decentralized swarms, teams managed by an orchestrator, and specialized agents collaborating on scientific work.
Hugging Face focuses the guide on agentic evaluations for two reasons: they are becoming the most prominent type in model release announcements because of enterprise interest in agentic deployment, and they are a useful starting point for understanding how evaluation design affects measured performance. The guide notes that in an audit of Terminal-Bench, researchers kept the model fixed and changed the agent harness; accuracy varied by up to 29.9 percentage points.
The anatomy of an agentic evaluation
An agentic evaluation has separable parts, and each part can be published, inspected and reused independently. A task gives the agent its instruction. The agent harness wraps the model and its tools and lets it work inside a pinned environment. During one rollout, the agent attempts the task from start to finish, possibly running several commands and retrying. The evaluation harness runs several rollouts per task, the verifier grades the environment's final state, and the trace records the model's messages, tool calls and observations. Traces and scores together become the published evidence.
Hugging Face's hub now supports the relevant abstractions: traces for storing an agent's work in a reviewable form, benchmarks for datasets used to evaluate models with leaderboards, and environments for datasets used as agentic RL or evaluation environments. The hub hosts around 3,500 eval leaderboards, and eval datasets on the hub grew about 16X in the past year, to roughly 17,000 datasets.
Why benchmark release decisions matter
Independent, verifiable evaluation is in demand but largely absent: 98.2% of model-benchmark scores are reported by only one party, and researchers have argued that in-house evaluation is not enough.
More benchmarks are withholding test items to reduce contamination, where questions or solutions enter training data and scores reflect prior exposure. Artificial Analysis says 60% of its Intelligence Index v5, announced in October 2026, rests on evaluations with private test sets or held-out answers. Google DeepMind has piloted double-blind evaluations in which a secure enclave hides an outside evaluator's test prompts from the model provider and the model's weights from the evaluator.
Hugging Face argues that privacy alone does not guarantee quality, and withholding supporting materials can make expert review harder. Builders can still share infrastructure, grading methods and evidence about task design, while using controlled review where public release is unsuitable.
Eight steps for building an agentic evaluation
The guide follows one task through eight steps: define the claim, find a starting task, run it unchanged, adapt it, check the evaluation, run it and read the traces, report the score, and compare models. The worked example is a physics lab that wants an agent to fit peaks in a Raman spectrum of graphene, fit the D and G peaks, calculate the D-to-G intensity ratio that can indicate defects, and save accurate results consistently.
Starting from a reusable task
The example reuses the Harbor task format and Terminal-Bench's raman-fitting task rather than starting from scratch. Harbor is an open-source evaluation harness; Terminal-Bench is an open benchmark of tasks an agent completes in a terminal. Harbor ran inside an HF Job, each rollout used its own HF Sandbox, and Inference Providers supplied model responses through a router. Only the agent harness, Terminus-2, needed no new work.
Baseline failures visible only in traces
With the original task unchanged, gpt-oss-120b passed 0 of 3 rollouts. In two rollouts it declared completion before observing relevant output; in the third it could not read the data file, which uses decimal commas that the reference solution converts before loading. The score alone could not distinguish these failures from an incorrect fit. The traces could.
Adapting the task
The adapted evaluation, raman-lab, is eight synthetic graphene spectra with known parameters and varied noise and defect levels. It fits three peaks instead of two and reports a defect ratio. The authors used an agent to help generate spectra, reviewed them by hand, and wrote new instructions, reference fits and output checks. The eight tasks form a development set, not a final test set.
The original instruction asked for parameters named x0, gamma, amplitude and offset without defining them or their units. The adapted instructions state units, parameter definitions and output format, so the verifier's requirements are visible to the agent.
Checking the evaluation before trusting it
Before further model runs, the authors tested the evaluation itself with three agents: the reference solution (oracle), a no-op agent that does nothing, and a shortcut that skips required work. The oracle should pass every task and the other two should fail.
The shortcut read the tallest point of each peak directly from the data, guessed peak widths, and divided the D height by the G height. It returned the expected defect ratio on all eight tasks without fitting any spectrum, so a grader that checked only the ratio would have given it full marks. The authors added checks on each fitted peak, and the final verifier rejects the shortcut.
Reported scores and their uncertainty
On the eight adapted tasks with three rollouts each, the adapted setup passed 11 of 24 rollouts. In 19 of 24, the model called mark_task_complete in its first response; 11 of those attempts produced no results file. Several failures began with a script failing because NumPy or SciPy was missing, which the task expects the agent to install. Only two of the 13 failed rollouts failed the fit check.
The results were pass@3 of 7/8, meaning seven tasks succeeded at least once, and pass^3 of 1/8, meaning one task succeeded every time. Retries may be acceptable when a person reviews output; unattended processing needs consistency, so pass^3 matters more for that use. Clustering rollouts by task gave a mean success rate of 0.46 with a standard error of about 0.11. A repeat run passed 10 of 24. With eight development tasks, the authors caution against generalizing either result to new spectra.
Comparing models on the same tasks
Six models were compared on the same eight tasks, with one provider pinned per model because providers can serve the same open-weight model with different quantization and context limits. With DeepInfra pinned, gpt-oss-120b passed 13 of 24 rollouts, compared with 11 of 24 in the earlier default-provider run.
Only gpt-oss-120b declared completion in its first response, in 22 of 24 rollouts in the pinned-provider run; none of the other five models did so in any rollout. Qwen3.8-27B, DeepSeek-V4.1-Flash and MiniMax-M3.1-Flash passed all 24 rollouts, which means the development set cannot rank them. Inference for all six models cost under $5 at the router's list prices, and the median rollout used about 6,000 tokens for gpt-oss-120b and about 90,000 for MiniMax-M3.1-Flash.
When a benchmark is wrong
Errors in tasks and graders are common and can move scores substantially. A review of agentic benchmarks found that flaws in task setup or reward design can shift measured performance by up to 100% in relative terms.
The raman-lab shortcut illustrates the general lesson: test what the output demonstrates, not just whether the final number matches. A faster valid method should pass; a method that skips a required skill should not. Domain experts can help set tolerances so the verifier accepts alternative correct fits without accepting work that misses the point of the task.
Public review is how such errors are found. Terminal-Bench 2.1 fixed 28 of its 89 tasks after user reports, including one whose tests expected Spark SQL while its instructions asked for PostgreSQL; agent rankings stayed stable through the correction. CritPt keeps its reference solutions private, so the physicists who audited it had to solve the problems themselves before finding errors in 21 of the 56 challenges they reviewed, after which the authors released a corrected version. OpenAI's audit of SWE-bench Verified found material issues in 59.4% of the 138 problems it examined. In July 2026 OpenAI estimated that about 30% of SWE-bench Pro tasks were broken and withdrew its recommendation to adopt it.
Construct validity and contamination
A consistent score can still measure the wrong thing. Measuring what Matters, a review of 445 LLM benchmarks by 29 expert reviewers, found recurring patterns in tasks and metrics that undermine construct validity, meaning whether the tasks and metrics support claims about the intended capability. Harder Than the Task extends the concern to organizational work, where authority, distributed knowledge and dependencies can decide success; its authors find that fewer than one quarter of prominent benchmarks claim to cover any such dimension.
The SWE-bench Verified audit also found contamination: every frontier model tested could reproduce the reference patch or verbatim problem details for some tasks. But hiding the test set does not by itself prevent saturation. A study of 60 language model benchmarks found similar saturation in public and private benchmarks and concluded that hiding test data does not prevent saturation once a benchmark is widely adopted. What corresponded to lower saturation was expert curation and a larger test set. Of the 60 benchmarks studied, 29 were rated highly saturated, with rates rising with age.
Open sourcing an evaluation strategically
Openness does not have to be all-or-nothing. Benchmark creators can release content part by part, protecting active test items from leakage while sharing infrastructure, grading methods and reference examples that allow external audit.
Existing benchmarks span a range. ARC-AGI-2 publishes a training set and a 120-task evaluation set and holds back semi-private and private sets of 120 tasks each. AILuminate keeps official prompts confidential but publishes its methods and taxonomy, with underlying evidence available for controlled review by authorized auditors. Terminal-Bench publishes its tasks and marks their files with a canary string asking that they stay out of training corpora.
Hugging Face's table maps each component of an agentic evaluation to what can be open, how to share it on the Hub, and what can stay protected with an alternative review route:
- Task: publish specifications, categories, construction methods and a public development split as a dataset repository with a dataset card; keep active test items and answers in a separate gated dataset with manual approval of access requests.
- Environment: publish container definitions, build files, pinned dependencies and synthetic fixtures; keep private data, credentials, licensed assets or dangerous details protected, and document how public substitutes differ.
- Agent harness and tools: publish the agent-loop code, tool interfaces, adapters, permissions and budgets, with the pinned harness version recorded next to each score; keep secrets, private services and sensitive tool implementations protected with safe substitutes and authorized inspection.
- Rollout and trace: publish public-task traces, reviewed excerpts and analysis code, linking scores to traces; keep traces that expose protected tasks or restricted model behavior under protected analysis.
- Reference solution and verifier: publish solution methods, rubrics, grader code, tolerances and worked examples for public tasks; keep solutions for protected items and let authorized reviewers check disputed judgments.
- Claims and task design: publish intended use, selection rationale, contextual assumptions and validation evidence in the dataset card and a Hub Collection; redact sensitive source material.
- Results: register the dataset as a Hub Benchmark, put scores in each model repo's
.eval_results/folder as a pull request, and link to the trace dataset; publish safe summaries where detail would reveal tasks. - Corrections: keep a correction history naming affected versions through pull requests, discussions and a change log; still record which versions a protected correction affected.
The raman-lab release follows this approach: the eight tasks are a dataset on the Hub with environment, reference fit, verifier and tolerances; the raw rollouts for all six models are a separate dataset; and the spectrum generator, analysis code and results are in a companion GitHub repository so both harnesses can be inspected and rerun. In a more sensitive domain such as clinical evaluation, the environment, harness, tool interfaces and grading framework could be open with synthetic development cases, while patient records and reference answers stay under controlled access.
Release checklist
Before releasing or retiring an evaluation, Hugging Face recommends checking that another builder can:
- Identify what the evaluation measures, its intended use, and the conditions it leaves out.
- Find the reusable artifacts, their licenses and versions, and a way to report problems.
- See how a do-nothing agent scores and, where possible, how a human expert does.
- Read each score with its uncertainty and guidance on what known flaws mean for it.
- Learn which flaws were found, how they were handled, and how far they could move results.
- Know how and when tasks will be refreshed to limit contamination and overfitting.
Why open evaluations outlive their leaderboards
Benchmarks are built, adopted, optimized against, and eventually stop separating the systems they were made to compare. Saturation is not a failure in itself, since it can mean the capability has arrived; 29 of the 60 benchmarks in the saturation study were rated highly saturated.
What a benchmark leaves behind depends on how open it was. Publishing only scores leaves future builders little to run or adapt. When tasks, environments, verifiers and traces are open, each keeps working after the leaderboard stops: a solved task becomes a regression check for a new harness, and its environment and verifier can seed a harder successor. Open benchmarks also get repaired and reissued, as MMLU's questions became MMLU-Redux and Terminal-Bench 2.0 became 2.1 through community contributions. The raman-lab example is itself a case of this afterlife: it began as one task in a benchmark built for general terminal work.