Skip to main content
Yuming Yang

Projects / benchlint

benchlint

Which agent-benchmark tasks can be passed without doing the task?

A model-free linter for agent benchmarks. It reads τ-bench and τ²-bench task files as data, scores degenerate agents with the benchmark's own grading rules, perturbs gold answers, and runs static checks, in under a second and with no API key. It reproduces published defects and matches an independent hand audit exactly.

RepositoryPython · LLM agents · evaluation · static analysis
19 / 50
τ-bench airline tasks a do-nothing agent passes, matching the published 38%
29 / 29
Tasks in an independent τ²-bench hand audit that benchlint's do-nothing agent passes, with none outside the list
4 / 5
Statically detectable fixes in τ²-bench v1.0.0 caught on the previous release

01Problem

An agent benchmark is only as good as its grader. If a task can be passed by an agent that does nothing, or the grader rejects an equivalent answer, the leaderboard measures something other than what it claims. Published audits keep finding these flaws after the fact:

  • an agent returning empty responses passes 38% of τ-bench airline tasks (ABC, Zhu et al.);
  • the official τ-bench few-shot agent's demonstrations contained test tasks (HAL);
  • 59.4% of 138 audited SWE-bench Verified problems had flawed tests or statements (OpenAI).

benchlint finds this class of flaw before anyone pays for a rollout.

02How it works

  • Tasks are data. τ-bench's Python task files are parsed with ast, literals only; τ²-bench's JSON is read directly. The benchmark's own code is never imported or run.
  • Degenerate agents. A do-nothing agent, an agent that repeats the instruction, one that dumps the database, and a random one, each scored with the benchmark's grading rules re-implemented from the upstream source.
  • Grader perturbations. Equivalent renderings of a gold answer the grader rejects, and near misses it accepts.
  • Static checks. Few-shot data that reproduces test tasks, split overlap, gold actions that reference missing records or write a no-op, and criteria the reward never grades.

Each finding carries a severity and a basis: proven when it follows from the grader code and task data, heuristic when it needs a human look. It has no runtime dependencies beyond the Python standard library, so it fits in a benchmark's own CI.

03Results

CheckPublishedbenchlint
Do-nothing agent, τ-bench airline38%19 of 50 = 38.0%
"List all answers" agent, τ-bench airline40%20 of 50 = 40.0%
Few-shot data contains test tasksyes (HAL)yes
τ²-bench do-nothing passes (issue #384)23 airline, 6 retailthe same 29 tasks, none outside the list
τ²-bench v1.0.0 statically detectable fixes54 caught on v0.2.0, all gone in v1.0.0
Planted defects, 13 checks3939 found, 0 findings on 46 clean tasks
  • Labels before detectors. Each of the 56 τ²-bench v1.0.0 fixes was classified from its changelog text before any detector was written: 5 a static check should catch, 2 that need the gold actions executed, 49 policy judgements out of scope.
  • The miss is a date-of-birth fix that no check covers.

04Design trade-offs

  • Never run the benchmark's code. Benchmarks pull in model clients and simulators; a linter that imports them is neither safe nor cheap in CI. The cost: results that need gold replay are lower bounds or "undetermined", never guesses.
  • A relative leak test. A few-shot demonstration counts as leaked only if it is closer to a test task than to every train or dev task, because sharing a customer with training data is normal.
  • Refusal tasks count as defects. Where a task expects a refusal, a do-nothing agent passes and benchlint reports it, as the published audits do; the grader cannot tell a refusal from inaction. A maintainer may consider that pass intended.

05Limitations

  • Lower bounds. benchlint assumes every gold write changes the database, so a do-nothing pass that depends on a failed write is missed. This is why τ-bench retail lands at 5 of 115 rather than about 7.
  • Policy defects are out of scope. 49 of the 56 τ²-bench fixes need a human or a model.
  • Small field recall set. Four of five, and the few-shot leak rule was designed after looking at τ-bench's few-shot data, so that row is not a held-out test.
  • Two formats. τ-bench and τ²-bench airline and retail only; other benchmarks need a loader.

06Status

Version 1 is public under the MIT licence. CI fetches the pinned benchmark checkouts and re-checks every number above on each push.

← All projects