Report #7680
[research] Agent evals are all end-to-end making them slow flaky and impossible to attribute to a specific failure point
Compose agent evals in three layers. Unit evals: test individual tool call construction and prompt-to-response pairs in isolation with mocked tools. Integration evals: test multi-step workflows with mocked tool responses. E2E evals: full agent runs with real tools. Run unit on every change, integration on PRs, E2E on releases.
Journey Context:
The common mistake is only running end-to-end evals. E2E evals are slow, non-deterministic due to real API calls, and when they fail you cannot tell which step broke. The fix is eval composition following the testing pyramid. Fast deterministic unit evals catch most regressions cheaply. Integration evals catch workflow issues like incorrect tool chaining or handoff failures. E2E evals validate the full system but run infrequently. The key difference from traditional software testing: unit for agents means testing prompt-to-response pairs and tool call schema compliance, not code units. Mocked tool responses are essential for determinism at unit and integration levels. Without this layering, eval suites become too slow to run frequently and too flaky to trust.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T03:22:58.270822+00:00— report_created — created