Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

agent-verify-gate

A tax benchmark just put frontier models at an 11% pass rate on real professional work. This repo shows the one trajectory check that would have caught the failure mode behind it.

📖 Read the write-up: The Dayjob Tax Benchmark: AI Agents Pass Under 11%

The problem

Surge AI's Dayjob: Tax benchmark (2026-10-28) ran Claude Sonnet 5.5, Claude Fable 5.1, and Claude Opus 5.5 on 50 real professional tax assignments — 1,789 workspace files across eight practice areas, graded by licensed tax experts against rubrics that require a 95% match to pass. Pass@1 rates:

Model Pass rate
Claude Sonnet 5.5 10.8%
Claude Fable 5.1 9.6%
Claude Opus 5.5 9.2%

The case studies in the writeup aren't arithmetic failures. In one, a model missed an eligibility deadline in all five attempts while a different model caught it in all five. In another, a model based its recommendation on an unverified assumption about the client's status in all five attempts instead of checking the evidence files. The failure mode isn't "the model can't do tax law." It's the agent answered before it checked a fact it had the means to check.

That failure mode is not graded by a benchmark day. It's graded by whatever evaluates your agent every time it runs in production — and the SurgeHQ methodology (expert-reviewed rubric, pass/fail against expected behavior, graded from what the agent actually did) is exactly the pattern agentevals exists to run continuously, from the OpenTelemetry traces your agent already produces.

What this demo shows

A toy "tax advisor agent" gets asked whether a client can still elect out of installment-method reporting on a property sale, and by when. The correct answer depends on a fact the agent has to check (whether the client's return extension was filed) — it is not knowable from general tax-law knowledge alone.

Two recorded traces, same question, same agent:

  • traces/pass_verified_deadline.json — the agent calls check_filing_deadline against the client's file before answering, gets back the real due date, and answers correctly (extension filed → later deadline).
  • traces/fail_unverified_deadline.json — the agent skips the tool call and answers from the general rule, giving the wrong (earlier, unextended) deadline.

eval_sets/eval_set_deadline_check.json specifies check_filing_deadline as the required tool call before the final answer. Scoring both traces against it with agentevals' deterministic tool_trajectory_avg_score evaluator tells them apart without re-running either agent and without an LLM judge, continuously rather than on a one-day benchmark run.

Both traces and the eval set are original to this repo (not SurgeHQ's benchmark content) — a minimal, generic stand-in for the class of failure the benchmark surfaced.

Quickstart

Requires Python >= 3.11 (agentevals-cli's stated minimum).

python3.13 -m venv venv
source venv/bin/activate
pip install agentevals-cli

Score the trace that verified first — passes:

agentevals run traces/pass_verified_deadline.json \
  --eval-set eval_sets/eval_set_deadline_check.json \
  -m tool_trajectory_avg_score

Score the trace that skipped verification — fails, and says why:

agentevals run traces/fail_unverified_deadline.json \
  --eval-set eval_sets/eval_set_deadline_check.json \
  -m tool_trajectory_avg_score

The failing run's output names the expected tool call and shows the actual trajectory had none — the same gap a human reviewer would flag, produced from telemetry with no extra agent run and no LLM-as-judge call.

Architecture

agent trace (OTLP/Jaeger JSON)  +  golden eval set
              |
              v
        agentevals CLI
   (tool_trajectory_avg_score)
              |
              v
     PASS / FAIL + reasoning
   (optionally --emit-otel back
    to your tracing pipeline)
  • traces/ — two hand-built Jaeger-JSON traces, same shape as agentevals' own samples/ format: an invoke_agent root span, a call_llm span, and (in the passing trace) an execute_tool child span carrying gen_ai.tool.name / gen_ai.tool.call.id.
  • eval_sets/ — one golden eval case describing the expected tool call and final answer.
  • No LLM calls, no API keys, no cluster. This is pure trace-replay scoring, which is the point: evaluation that doesn't cost agent tokens and can be re-run on the same recording as the eval set evolves.

In a real deployment the traces come from your agent's own OTel instrumentation (any framework following the OpenTelemetry GenAI semantic conventions) rather than hand-built JSON, and agentevals serve scores live sessions instead of recorded files. See agentevals-otel-roundtrip for the live OTel Collector round trip.

Why a trajectory check, not just an LLM judge

An LLM judge grading "did the agent give good tax advice" would have to re-derive the entire election-deadline rule to catch the fail case — expensive, and only as reliable as the judge's own tax knowledge. A trajectory check doesn't need to know tax law at all: it only needs to know that this class of question requires this tool call before an answer is trustworthy. That is a cheaper, more auditable gate, and it is exactly the kind of check that scales past one benchmark day into every production run.

License

Apache-2.0. See LICENSE.

Topics

ai-agents agent-evaluation opentelemetry llm-eval agentevals mcp

Releases

Packages

Contributors