Skip to main content
#ai-benchmark#model-evaluation#agent#testing

AI Benchmark 04 — Evaluation harness, scaffold and verifier

Design agent evaluation inputs, states, tools, sandbox, independent verifier and budgets for reproducible experiments.

Series map

AI Benchmark

8 of 40 chapters published · Six parts

Part I. Evaluation foundations 6/6
  1. 01 How do we measure AI intelligence?
  2. 02 Accuracy, Precision, Recall, F1, Elo, AUC
  3. 03 Pass@k, Pass^k, confidence intervals and repeated trials
  4. 04 Evaluation Harness, Scaffold, Verifier
  5. 05 Contamination, reward hacking and evaluation bias
  6. 06 Artificial Analysis Index and Vals Index
Part II. Knowledge, reasoning and mathematics 2/7
  1. 07 MMLU, MMLU-Pro, GPQA Diamond
  2. 08 GSM8K, MATH, AIME, MathArena Apex
  3. 09 Humanity's Last Exam and HLE-Diamond · Planned
  4. 10 ARC-AGI 1 & 2 and novel rule induction · Planned
  5. 11 CritPt, ProofBench, MysteryMechanism, RiemannBench · Planned
  6. 12 AA-Omniscience, SimpleQA and hallucination evaluation · Planned
  7. 13 IFEval, IFBench, ComplexConstraints · Planned
Part III. Coding and autonomous research 0/8
  1. 14 HumanEval, MBPP, LiveCodeBench, Codeforces · Planned
  2. 15 The SWE-bench family · Planned
  3. 16 DeepSWE, FrontierCode, FrontierSWE · Planned
  4. 17 Terminal-Bench 1–4 and execution environments · Planned
  5. 18 CursorBench, SWE-sweep, SWE Marathon · Planned
  6. 19 Vibe Code, ProgramBench, NL2Repo, Code Migration · Planned
  7. 20 PMPP-Hard and GPU kernel optimization · Planned
  8. 21 MLE-Bench, NanoGPT, PostTrainBench and scientific research · Planned
Part IV. Agents and professional work 0/8
  1. 22 BrowseComp, DeepSearchQA, WANDR · Planned
  2. 23 BFCL, MCP Atlas, Toolathlon · Planned
  3. 24 τ-bench, AgentBench, EnterpriseOps-Gym · Planned
  4. 25 WebArena, OSWorld, ScreenSpot · Planned
  5. 26 GDPval, AA-Briefcase, JobBench, Agents' Last Exam · Planned
  6. 27 Finance Agent, AA-AnalystAgent, Diligence, Tax · Planned
  7. 28 AutomationBench, Remote Labor Index, LifeVal · Planned
  8. 29 METR Time Horizon, Vending-Bench and long-horizon autonomy · Planned
Part V. Vision, memory and robotics 0/8
  1. 30 MMMU-Pro, MathVision, PerceptionBench · Planned
  2. 31 OmniDocBench, OCRBench, GDP.pdf, OfficeQA · Planned
  3. 32 Chartography, CharXiv, BabyVision, ZeroBench · Planned
  4. 33 ScreenSpot-Pro, GroundingME, SAGE · Planned
  5. 34 MuirBench, LVBench, Blender-VideoBench, Code2Video · Planned
  6. 35 LongBench, MRCR, GraphWalks, AA-LCR · Planned
  7. 36 LongMemEval, BEAM and long-term memory · Planned
  8. 37 BenchCAD, RoboDojo, VLA, Decision models · Planned
Part VI. Safety and practice 0/3
  1. 38 FORTRESS, StrongREJECT, HoneyBench, Misbehavior · Planned
  2. 39 AgentDojo, prompt injection, safety and risk evaluation · Planned
  3. 40 Build your own AI agent benchmark harness · Planned

A single model API call differs from an agent that carries out real work. Examine what an evaluation harness fixes and what it allows to vary.

#1. Evaluation execution architecture

The following explanatory design is inspired by the Inspect AI Task abstraction. Dataset, solver and scorer are core components; tools, sandbox and constraints can be added as required.

task manifest + dataset snapshot
              |
              v
       evaluation harness
              |
              v
       agent / solver <---- tool results
              |                   ^
              v                   |
       isolated environment ------+
              |
              v
       independent scorer
              |
              v
       trace + aggregate score
ComponentResponsibility
HarnessInitialize environment, enforce limits, manage trials, collect outcomes
ScaffoldPrompting, memory, planning, tool use and iteration
SandboxIsolate files, processes and network
VerifierCheck success and constraint violations
ReporterDisclose denominators, errors, time, cost and versions

Harness and scaffold terminology overlaps across projects. Inspect which component performs each function rather than relying on the names.

#2. How to test a single task

Hypothetical coding issue: fix a parser for empty input while preserving the existing API and normal-input behavior. The model receives a workspace and the problem description. The runner provides terminal and editing tools; grading occurs in a separate test environment.

StageVerification
PreparePin baseline commit, environment image and task ID
ExecuteRead/edit code, run public tests, enforce time limit
CollectSave final patch, tool calls and termination reason
VerifyApply patch to fresh environment; run hidden tests
AggregateRecord success, failure, errors and cost

SWE-bench evaluates real repository issues using code changes and tests. Completion is determined by the grader, not the model’s confidence or final message.

The Terminal-Bench creators explain how to verify work performed in a terminal. Adapt the idea to a small data-cleaning task. Ask an agent to group sensor readings by date and save a CSV. Start each run with the same input and an empty output directory, and stop on submission or timeout. A verifier reopens the result and independently recomputes the expected row count and sum for each date. The trace preserves the steps for diagnosis, while the score comes from comparing the file with those values. A different sequence of commands can therefore receive full credit. Guest lecture slides · Verifier discussion at 1:10:01

#3. Pin the evaluation specification

The following YAML is a custom evaluation example, not an official benchmark configuration. Record not only the model ID but the actual responding model, system prompt version, tool permissions and budget.

benchmark: toy-repository
dataset_revision: v1
model_snapshot: pinned-model-id
scaffold_revision: scaffold-v1
environment_image: example-image-digest
grader_revision: grader-v1
tools:
  - read_workspace
  - edit_workspace
  - run_public_tests
network: disabled
timeout_seconds: 600
max_tool_calls: 50
attempts_per_task: 3
seed_policy: recorded_if_supported
infrastructure_retry: at_most_once
score: hidden_tests_all_pass

For real environment images, record a digest rather than a mutable tag. If API model updates cannot be pinned, retain execution time and the model ID returned by the API. Even when seeds are supported, external services are not necessarily deterministic.

#4. Separate model and system effects

Design a hypothetical 2×2 comparison with two models and two harnesses.

Hypothetical scoreH1 common environmentH2 extended tools
Model A40%65%
Model B50%60%

A is ten percentage points below B in H1 but five above in H2. The harness gain is 25 points for A and ten for B. The simple difference-in-differences is 15 points, summarizing the model-harness interaction in this design. Statistical conclusions require repeated trials and paired-task analysis.

The real Inkling 2 Mini model card likewise distinguishes the original Chartography condition and one with Python. Change non-model variables one at a time. Report equal-budget comparisons separately from comparisons of each model’s best configuration.

#5. Why the runner and grader must be separated

The evaluated agent performs only permitted work. Do not provide grader answers, hidden tests, result records or verifier execution privileges to the agent. Reset the initial state for each attempt and transfer only the artifacts needed for verification.

Distinguish failure types. Incomplete tasks, timeouts, policy violations, initialization failures and grader errors are different. Preregister exclusion rules and disclose total counts and reasons. Do not relax the success criterion opportunistically when a problem occurs during evaluation.

For practice, inspect Inspect AI or the LM Evaluation Harness and locate the dataset, solver and scorer of a task. The next chapter examines where this architecture can become contaminated or exploited.

#References

Connect