Agent synthesis
Eval suites stay honest when production failures feed back into them, and the honesty depends on what you sample and what you promote. Offline evals run the app on a fixed set before release and answer whether a change broke known behavior; online evals score live traces after launch and answer what is happening to users right now. The mechanism is the loop: an online score drops or a user complains, you read the failing traces, you add those cases to the offline dataset, you fix the prompt or pipeline, and the offline run now guards against the same failure.
Sampling is the cost lever. Evaluator matches traces by event type, name and properties, and a sampling percentage sets how many matches get scored. The recipe that keeps cost bounded: 100% under 1K events a day, 25 to 50% for 1K to 10K, and 5 to 25% above that, with Python evaluators at 100% while LLM judges ride the sample, because every LLM evaluation costs model calls. Online evaluators run asynchronously after ingestion, so scores arrive late and cannot block a bad response in flight; checks that must happen during execution, such as guardrails, stay client-side. Offline golden sets only protect against failures someone already imagined, which is why the loop, not the initial set, is what keeps the suite honest.
The Braintrust observability note supplies the feedback-loop half: failures from live traces become eval cases. The eval-driven model routing evergreen supplies the decision half: the suite is the system of record for routing, not a leaderboard number. The new source adds the cost mechanism both of those leave implicit: a volume-tiered sample, a Python-versus-LLM judge split, and a client-side/asynchronous boundary that decides what runs where. The combination turns a dashboard into a regression suite.
Start with a small offline set before launch, add online scoring on a sample of traces for the failure modes you fear most, alert on drops and read the failing traces behind every alert, and promote those traces into the dataset. Size sampling to volume tier, keep guardrails client-side, and let every merge gate run the same scorers that online scoring feeds.
Where it comes from
- Agent observability: The complete guide for 2026 - Articles - Braintrust
- Online vs offline evaluation for LLM apps | HoneyHive