Agent synthesis
Evals work best as a layered stack of unit tests, model/human eval, and A/B testing, split across separate LLM calls rather than embedded in one prompt, and split again at the call-type level when a single execution fans out. The mechanism is that each layer and each call type carries a distinct cost and cadence: fast, scoped unit tests run on every change, model and human eval runs on a set cadence, and A/B testing is reserved for significant changes, while an agent execution may hide up to seven different kinds of LLM calls behind one user-facing reply. One aggregate pass rate averages away exactly the differences that decide which model wins per call.
Hamel Husain’s “Your AI Product Needs Evals” supplies the layered stack, with product-specific evals over generic benchmarks. Anthropic’s “Building effective agents” supplies the call-separation principle: guardrails and evals work better when they are their own call, with parallelization across independent subtasks. The Asana source supplies the fan-out mechanism: a single AI Teammates execution can involve up to seven distinct types of LLM calls, each with its own prompt, job, and latency-cost-quality weights, so models are evaluated separately per execution type, with a four-stage pipeline (code-run evals, end-to-end benchmarks, roll-up analysis, internal dogfooding) that turns results into per-call-type model recommendations. Asana also holds its models to “fix the mistake with prompts and context before holding it accountable,” since optimizations that worked for older models may not suit newer ones and provider defaults differ.
Together, the three inputs show that separation is a rule at two scales: the layered eval stack separated from the generation call, and the per-call-type split when execution fans out. The practical floor is the code-run eval, which absorbs the simpler, deterministic interactions and produces cost, latency, and correctness summaries fast enough for every change. The split is not worth it for those simple calls; it is worth it for the fan-out, where the aggregate hides the expensive or slow path.
Build the layered stack, run each layer as its own check, give the fan-out its own per-call-type eval surface, and let the cheap code-run stage absorb the simple calls.
Where it comes from
- Your AI Product Needs Evals (Hamel Husain)
- Building effective agents (Anthropic)
- How Asana built a custom LLM evaluation framework for AI Teammates • Asana
What this builds on
- None yet.