ai, agents, deep dive,

Deep Dive: Building and Maintaining an Agentic Evaluation, the Hugging Face Playbook

Cui Cui Follow Nov 29, 2026 · 9 mins read
Deep Dive: Building and Maintaining an Agentic Evaluation, the Hugging Face Playbook
Share this

Hugging Face published How to build and maintain an agentic evaluation (Nov 23, 2026). It is a guide with a worked example: an agent that fits peaks in a Raman spectrum for a physics lab. The example is small on purpose. The value is in the method for building an evaluation you can trust, and in a table of what to open when you publish one.

This is a reading of the article. I did not run Harbor or the raman-lab tasks. Facts come from the article. Where I add interpretation, I say so.

The workflow in motion

Animated workflow of building an agentic evaluation: define the claim, find a starting task, adapt it, check the evaluation, read traces, report and compare, then loop back to fix flaws

Example: my grouping of the article’s eight steps into six stages. The article does not draw the final loop back as a step, but it says to repeat the checks after adapting.

Three eras of evaluation

The article describes three forms of evaluation as models became more capable:

  1. Question answer, such as MMLU and GPQA: check the answer against a key.
  2. Agentic, such as SWE-bench and WebArena: check what the agent changed in an environment.
  3. Teams or swarms: score what a group of agents produced.

It focuses on the second, and leaves team evaluations out of scope. Its reason: once an agent uses tools, every part of the surrounding software can move the score. It cites an audit of Terminal-Bench in which researchers kept the model fixed, changed only the agent harness, and saw accuracy vary by up to 29.9 percentage points.

Anatomy of an agentic evaluation

In the article’s words, a task gives the instruction, the agent harness wraps the model and tools inside a pinned environment, the evaluation harness runs several rollouts per task, the verifier grades the environment’s final state, and traces plus scores become the published evidence. Each part can be published, inspected and reused separately.

My interpretation: this decomposition is the most reusable idea. When a score surprises you, you now have nine places to look instead of one.

The eight steps

The article builds raman-lab on top of Terminal-Bench’s raman-fitting task, using the open Harbor harness. The agent harness is Terminus-2 and the first model is gpt-oss-120b.

  1. Define the claim. A plain statement of what the agent can do. Theirs is deliberately narrow: fit the specified peaks, compute the D-to-G ratio, and save accurate results consistently. Domain experts help choose noise levels, tolerances and available software.
  2. Find a starting task. Look under Benchmark and Environment datasets on the Hub, and inspect the instructions, environment, reference solution and tests. Even a task models already solve gives you infrastructure.
  3. Run it unchanged. Run the reference solution (the oracle) first, because if it fails the fault is in the task, environment or verifier. Then run the model several times. gpt-oss-120b passed 0 of 3, and the traces showed why: early completion and an unreadable data file with decimal commas.
  4. Adapt the task. Eight synthetic spectra with known parameters, three peaks instead of two, a defect ratio, and new instructions that define units and parameters the original left implicit.
  5. Check the evaluation. Before more model runs, test the evaluation itself (details below).
  6. Run it and read the traces. Read successes and failures, and group failures by cause.
  7. Report the score. Pick the metric for the decision, and show uncertainty.
  8. Compare models. Run more models on the same tasks to separate model, harness and evaluation problems.

Step 5: attack your own grader

This is the part I would copy first. The article runs three checks:

Check Expected result
Oracle (known solution) passes every task
No-op agent (does nothing) fails every task
Shortcut (skips the required work) fails every task

Their shortcut read each peak’s height straight from the data, guessed widths, and divided D by G. It returned the expected defect ratio on all eight tasks without fitting anything, so a ratio-only grader would have given it full marks. They added checks on each fitted peak. The article also warns to try plausible wrong answers and alternative correct methods, to catch false passes and false failures.

Three verifier rules from the article: grade what the agent produced rather than its claim to be done, state every checked fact in the instruction (units, conventions, tolerances, fields), and generate synthetic data from known parameters so the reference answer exists.

Step 6: traces explain what the score cannot

On the adapted tasks, 11 of 24 rollouts passed. In 19, the model called mark_task_complete in its first response, and 11 of those produced no results file. Several started with a script failing because NumPy or SciPy was missing, which the task expects the agent to install. Only two of the 13 failures failed the fit check. So most failures were early stopping or a missing package, not bad fits.

The article notes that preinstalling packages changes the evaluation condition, so keep model, harness, tasks and rollout count fixed when comparing the two setups.

Step 7: report pass@k and pass^k

  • pass@3 asks whether at least one of three rollouts succeeds: 7/8 here.
  • pass^3 asks whether all three succeed: 1/8.

The article’s guidance: retries may be acceptable when a person reviews output, but unattended processing needs consistency, so the second measure matters more. The mean pass rate was 0.46 with a standard error of about 0.11, clustered by task because rollouts of the same task are not independent. A repeat run passed 10 of 24, and the authors say to be cautious generalizing from eight development tasks.

Step 8: compare models, and notice the ceiling

With one provider pinned per model (providers can differ in quantization and context limits), gpt-oss-120b passed 13 of 24. It called mark_task_complete in its first response in 22 of 24 rollouts, while none of the other five models did. Three models passed all 24 rollouts, so the tasks cannot rank them. The article says inference for all six models cost under $5 at list prices.

When a benchmark is wrong

The article collects evidence that errors are common:

  • A review of agentic benchmarks found flaws in task setup or reward design can shift measured performance by up to 100% in relative terms.
  • Terminal-Bench 2.1 fixed 28 of its 89 tasks after user reports, and agent rankings stayed stable through the correction.
  • Auditors of CritPt, which keeps reference solutions private, had to solve problems themselves and found errors in 21 of the 56 challenges they reviewed.
  • OpenAI’s audit of SWE-bench Verified found material issues in 59.4% of 138 examined problems, and also found contamination.
  • OpenAI estimated in July 2026 that about 30% of SWE-bench Pro tasks were broken.

Two more points stand out. Check the claim as well as the code: fitting synthetic spectra does not show an agent can review lab reports, since every task supplies a usable spectrum. And hiding test data does not by itself prevent saturation: a study of 60 benchmarks found similar saturation in public and private ones, with expert curation and a larger test set corresponding to lower saturation.

What to open, and what to protect

The article rejects all-or-nothing openness. Its Table 1 goes component by component: task, environment, agent harness and tools, rollout and trace, reference solution, evaluation harness, verifier, claims and task design, results, corrections. For each it lists what can be open, how to share it on the Hub, and what can stay protected with an alternative review route.

Examples it gives: ARC-AGI-2 publishes a training set and a 120-task evaluation set, and holds back semi-private and private sets. AILuminate keeps official prompts confidential but publishes methods. Terminal-Bench publishes tasks with a canary string asking that they stay out of training data. The principle in its words: whatever stays closed needs a review route of its own.

Its release checklist asks whether another builder can see what the evaluation measures, find reusable artifacts and report problems, see how a do-nothing agent scores, read scores with uncertainty, learn which flaws were found, and know how tasks will be refreshed.

Design ideas worth borrowing

These are my interpretation.

  1. Test the test. Oracle passes, no-op fails, shortcut fails. It is cheap and it caught a real hole.
  2. Grade state, not claims. The agent declaring victory is not evidence. The saved output is.
  3. Keep traces next to scores. Without them, 0 of 3 looks like a bad model. With them, you see early completion and a decimal-comma parsing failure.
  4. Report consistency, not only capability. pass^k and pass@k answer different deployment questions.
  5. Fix one variable at a time. Model, harness, provider and rollout count all move scores, so pin and record them.
  6. Treat openness as a per-component decision. Share the grader and the evidence, protect active test items, and name a review route.

Where I would push back

  • The worked example is tiny: eight synthetic tasks, a development set. The article says so itself, and the statistics are accordingly loose.
  • Three of six models passed every rollout, so the example cannot show how the method behaves on a hard, discriminating benchmark.
  • Several steps lean on Hugging Face infrastructure (Hub datasets, Jobs, Sandboxes, Inference Providers). The ideas transfer, but the commands in the article are written for that stack.
  • The shortcut test needs someone to imagine the shortcut. It finds the cheats you think of.

Takeaways

  • An agentic score depends on the whole stack. Decompose it before you trust it.
  • Build the checks that try to break the grader before you run models.
  • Read traces, report uncertainty, and keep a correction history.

Source: Hugging Face, How to build and maintain an agentic evaluation.

Building evaluations for your own agents? Get in touch.

Join Newsletter
Get the latest news right in your inbox. We never spam!
Cui
Written by Cui Follow
Hi, I am Z, the coder for cuizhanming.com!

Click to load Disqus comments