Long-horizon agents run for hours, use millions of tokens and take hundreds of steps. You monitor them with judges that read traces, and you keep the cost low by sending each question to the cheapest judge that answers it correctly. Five publishers agree on the shape of this system, and they give numbers for each part.

The sources are two Anthropic engineering posts, four engineering posts from Judgment Labs, the Docent documentation from Transluce, Hex's engineering post on its eval lab, and Shreya Shankar's essay on analytics after AGI. This post merges them into one pattern and ends with the decisions a Director has to make.

Why long traces break the usual judge

An LLM judge reads a trace and answers a rubric question about it. This works on short traces. It fails on long ones.

Judgment Labs reports that 20% of the trajectories on its platform exceed 1M tokens, and the largest exceeds 1 billion. Its evaluation study built 100 synthetic trajectories, 20 each at 100K, 500K, 1M, 1.5M and 2M tokens. Each had planted failures and distractors. Claude Sonnet 5.5 served as the oracle. The rubrics covered hallucination and policy adherence.

Plain LLM judges that read the whole trace scored 0.94 to 0.98 F1 at 100K tokens for GLM 5.3 and Claude Haiku 5.5. By 500K tokens every model had fallen to between 0.61 and 0.68. At 2M tokens, GPT-6 Luna and DeepSeek V4.1 with chunk screening found 55% and 53% of the 120 planted failures.

The better design is an agent-as-a-judge. It does not read the trace. It searches the trace with SQL, code and metadata filters, then judges the evidence it finds. Averaged over GPT-6 Luna, Claude Haiku 5.5, GLM 5.3 and DeepSeek V4.1, it did better and cost less:

Evidence F1 by judge typeAgent judgeLLM judge0.000.250.500.751.00Up to 1M tokens Agent judge: 0.85Up to 1M tokens LLM judge: 0.70Up to 1M tokensAt 2M tokens Agent judge: 0.800.80At 2M tokens LLM judge: 0.600.60At 2M tokensAverage of four models, 100 synthetic trajectories
CHARTEvidence F1 by judge type. Source: Judgment Labs, Evaluating long-horizon agents.

Up to 1M tokens, the agent judge scored 0.85 evidence F1 against 0.70 for the LLM judge, at 42% lower cost. At 2M tokens it averaged 0.80 F1 at $0.49 per evaluation. The LLM judge averaged 0.60 F1 at $1.48. Model choice mattered as well. DeepSeek V4.1 held 0.94 to 0.995 F1 from 100K to 2M tokens as an agent judge, while Haiku 5.5 fell from 0.89 to 0.73.

These are one vendor's synthetic tests, so treat the absolute numbers as a guide. The direction matches Anthropic's finding on its own research agent. In its multi-agent research system post, Anthropic says agents use about 4 times the tokens of chat, and multi-agent systems about 15 times. Longer runs make reading everything a losing plan.

Use four judge tiers, cheapest first

Judgment Labs' Eval Optimizer post describes a routing rule. Use the smallest model and the least compute that still answer the question correctly. It names four tiers:

  1. Deterministic code for exact checks on structured data. Examples are whether the agent called complete_task, how many tool calls it made, and whether tests passed.
  2. Decision model for narrow classification when the evidence fits in a small context.
  3. LLM judge when the evidence needs more context, real reasoning or a written explanation.
  4. Agent judge when the evidence spans a long trajectory or needs a check against an outside system such as a web page, a repository or a database.

A judge moves up a tier when production data outgrows it. The post says these fallbacks are rare. It also says people still write the rubric. The rubric has to agree with human judgment, and that usually takes several rounds of testing.

Anthropic's guide to agent evals gives the same order. Use deterministic graders where possible, LLM graders where needed, and human graders sparingly. It lists code graders as fast, cheap and reproducible but brittle. It lists model graders as flexible but non-deterministic and in need of calibration against humans.

Extract the evidence, then use a small model

The cheapest tier works because most questions need only a small piece of the trace. Judgment Labs' System One post describes code that extracts the evidence for one question. A small decision model, called Jev in the post, then classifies it. The post says evidence has to be addressable, bounded and sufficient. Sufficiency is the hard one, and it must be checked against a reviewer who reads the full trajectory.

The benchmark is SWE-chat: 256 coding-agent trajectories with at least 100 tool calls and at least three user messages each. The median was about 180 tool calls and 117K tokens. Preprocessing cut the median input from about 117K tokens to under 500. Six rubrics gave 1,536 evals per setup, scored against Opus 5.5 gold labels:

Setup Agreement with gold Cost per 1,000 evals Median latency
GPT-6 Luna, full trajectory 79.8% $21.76 6.9 s
GPT-6 Luna, preprocessed 81.4% $0.11 1.7 s
Jev, preprocessed 82.5% $0.04 0.15 s

The small model agreed more often and cost about 540 times less (computed from the table: $21.76 divided by $0.04). It did not win every rubric. On user frustration it scored 73% against 75% for the full-trajectory run. On command purpose it scored 90% against 89%. A per-rubric check matters before you move a judgment down a tier.

The same post reports a customer test on 87 trajectories, the longest near 900K tokens. An agent judge on the full trajectory agreed 86.2% of the time at $0.74 per 1,000 evals. An LLM on the full trajectory agreed 83.8% at $33.70. The small model on the opening question agreed 86.2% at $0.05. The Eval Optimizer post adds a second customer. Its trajectories average about 1 MB. An LLM judge would cost an estimated $0.045 to $0.075 per judgment, and a decision model with preprocessing costs about $0.0016.

The small model has limits. It gives probabilities and a confidence score, but no written explanation. Its default window is 64K tokens. Use it for quick, narrow calls and keep reasoning questions on a larger tier.

Offline evals and online monitoring do different jobs

Anthropic's guide compares the layers directly. Automated evals are fast, reproducible and carry no user risk, and they can run on every commit. They can also give false confidence if the tasks do not match real use. Production monitoring shows real behavior at scale and catches what synthetic tests miss. It is reactive, noisy and has no ground truth. User feedback is sparse and skews toward severe problems. The guide recommends layering all of them, with periodic human review.

Three practices from the sources hold up the offline layer:

  • Start small. Anthropic recommends 20 to 50 simple tasks drawn from real failures. Its research team began with about 20 queries.
  • Grade outcomes. Rigid checks on the order of steps are brittle, because agents find valid paths nobody planned for.
  • Read the transcripts. Anthropic says you cannot tell whether a grader works without reading transcripts and grades from many trials. A 0% pass rate across many trials usually means a broken task, not a weak agent.

Anthropic also separates two reliability numbers. Pass@k is the chance of at least one success in k tries. Pass^k is the chance that all k succeed. A 75% per-trial rate gives about 42% on pass^3. Customer-facing agents need the second number.

Hex's post on its eval lab shows the cost of weak judges. Hex runs evals as pairwise tests of a candidate run against a baseline run, and runs eval sets daily to keep production baselines. Its team says its judges lean toward being overly harsh. In one eval, a judge accepted a 0.01 percentage-point difference (2.03% against 2.04%) 35% of the time. The team also says there is no substitute for looking at traces side by side.

Search the traces with eval indexes

Monitoring tells you a score moved. It does not tell you what to fix. For that you search traces, and long traces make search hard. Keyword search finds only the words you try. Vector search handles wording changes but cannot easily test a question such as whether an agent repeated a mistake after a correction.

Judgment Labs' evals-as-indexes post proposes reuse of the monitoring evals. Store each result as a column. A data agent then filters with SQL on behaviors you already track, instead of reading raw traces.

The test set had more than 4,000 long-horizon traces totaling more than 1B tokens, and more than 50 search questions. The index reused 18 online monitoring evals. That came to 40,482 evals and cost about $60 to build, using MiniMax M3.1 Flash and Jev. In the walkthrough, Sonnet 5.5 went from finding 2 of 9 reference traces (22%) to 7 of 9 (78%). Search time fell from 8.1 to 2.3 minutes in that run. Input tokens fell from 4.3M to 0.6M. Answer quality rose from 71.7% to 80.0%.

Across seven models, relative answer quality rose 22.7% on average, recall rose 54.8% and input tokens fell 23.9%. The gains were uneven. Opus 5.5 recall stayed flat at about 39%. Kimi K3 recall rose from 48.2% to 85.6%, though its cost per search rose from $0.842 to $1.017.

Transluce's Docent documentation describes a similar flow. You filter to the relevant runs, search them with a rubric that a frontier model evaluates, and cluster the matches to see which issues are most common. Docent now recommends that its coding-agent plugin generate the analysis plan instead. Its page says search and clustering are no longer the primary workflow, and keeps them for existing users. The Docent overview lists three uses: tuning prompts and orchestration, comparing training checkpoints, and catching reward hacking and broken environments in benchmarks.

Shankar's essay on analytics after AGI, dated November 30, 2026, places this inside a larger shift. Agents write the code and run the queries, so business reasoning ends up in traces. She calls traces the primary record of business knowledge. She names Docent from Transluce and TracePress from the Laude Institute as early trace-analytics systems, and calls querying very large trace logs an open problem. Her section gives no numbers.

What a Director decides

The sources give a lot of numbers and few rules for sampling and ownership. The table separates what they report from what OpenNash recommends.

Decision What the sources give OpenNash recommendation
What to log Full traces with subagents, tool calls and spans. One Judgment Labs customer's traces average about 1 MB. Log every run in full.
What to judge first 20 to 50 tasks from real failures (Anthropic). Five rubric dimensions in Anthropic's research agent: factual accuracy, citation accuracy, completeness, source quality, tool efficiency. Write 5 to 10 rubrics from your last 50 real failures.
Which model judges Four tiers. Small model $0.04 per 1,000 evals, preprocessed LLM $0.11, full-trajectory LLM $21.76. Start every rubric at the lowest tier that matches human labels on your data.
Sampling rate No source gives one. At $0.04 per 1,000 evals, judging 1M traces costs about $40. At $21.76 it costs about $21,760. Judge every trace at tiers 1 and 2. Sample only at tiers 3 and 4.
Who gets alerts Not stated. Anthropic puts eval infrastructure in a dedicated team and task writing with domain experts. Send alerts to the team that owns the workflow, with the evals team as backup.
Human review Anthropic: spot checks calibrate model graders. Hex: judges can run harsh. Set a fixed weekly sample of traces and disagreements for people to read.

The arithmetic in the sampling row multiplies 1,000,000 traces by the per-1,000 cost for one rubric. A program with ten rubrics multiplies it by ten. Do the sum for your own volume before you decide to sample.

Three more decisions follow from the sources.

Who owns the evals. Anthropic says a dedicated team should own core infrastructure, and domain experts and product teams should add most of the tasks. It adds that writing an eval task tests whether product requirements are concrete. Assign this ownership in writing. Without it, rubrics go stale, and judges drift from what the business wants.

What the budget is per trace. Set a ceiling for judging cost as a share of run cost. Our post on pricing AI work per task covers how to cost an agent run. The judge tiers above let you hold the monitoring share low without dropping coverage.

When a person must approve. Monitoring finds problems after the fact. For actions that cannot be undone, keep a person in the path. See approval fatigue in agent oversight and who signs for AI work.

Build the loop in this order

The chart below shows the loop. Each step has a source.

  1. Trace everything. Anthropic says full production tracing let its team see why agents failed, and that it did this without reading individual conversations, to protect user privacy. Agents differed across runs with identical prompts, and the team could not diagnose complaints until tracing existed.
  2. Write rubrics from real failures, and validate them. Test each rubric against cases a person has already labeled before you rely on it.
  3. Run the cheap tier on all traces. Move a rubric up a tier only when its agreement with human labels falls short.
  4. Index the results. Reuse the monitoring evals as columns so that search starts from judged behavior.
  5. Alert on clusters. Group failures that look alike, and alert on the group size. Docent's clustering does this.
  6. Fix, then rerun offline evals. Anthropic's saturation advice applies. An eval at 100% guards against regressions and gives no signal for improvement, so add harder tasks as agents improve.
  7. Read samples by hand each week. Anthropic found that human testers caught problems automation missed, such as early agents that favored SEO content farms over authoritative sources.
The monitor, judge and fix loopProduction tracessubagents, tool calls, spansevery traceCheap judgescode checks, decision modelhard or long casesLLM judgeAgent judgeAlerts and issueclustersTrace searchsamplesHuman reviewcalibrates the judgesFix, then rerun offline evals
DIAGRAMThe monitor, judge and fix loop

Our own earlier post on evals for API products covers the offline half of this loop in more detail.

What the sources do not settle

Most sources come from tool makers or lab engineers describing their own systems. Judgment Labs sells monitoring, and its benchmarks use its own models and synthetic traces. Re-measure its cost numbers on your data.

None of the sources gives a sampling rate, an alert threshold or a staffing level. Those depend on your volume and your risk. The sources also leave open how to keep rubrics aligned over months, as agents and users change. Hex reports that judge calibration is still hard.

Next step

OpenNash works with VPs and Directors at Fortune 2000 companies to get AI agents into production. We help teams set up the data, pick the right model for each task, build evals first, and ship agents with audit trails and cost controls.

Book a call with an OpenNash forward-deployed engineer (/#book-call) or email [email protected]. The first session reviews your top AI use cases and data, and shows which ones deliver the highest business value and the fastest ROI.

Sources