Agent evaluation framework
Agent evaluation framework: cross-repo pattern analysis, commonality detection, and regression identification
- Tool-mediated execution is the single universal architectural pattern across all eight surveyed agent frameworks and is the necessary precondition for any systematic evaluation: without discrete, logged tool calls, agent actions cannot be traced, replayed, or compared across versions. Confidence: high
- Trajectory capture — recording the full sequence of tool calls, state transitions, and intermediate outputs for each agent run — is the evaluation primitive that all other evaluation techniques depend on, and it is present in five of the eight surveyed frameworks but implemented in incompatible ways with no shared format across implementations. Confidence: high
- The practitioner consensus in 2025 is that automated evaluation runs gated on quality thresholds ("evals as unit tests") are expected CI infrastructure for production LLM agents, but fewer than half of the surveyed frameworks provide integrated eval tooling, forcing teams to rely on separate tools such as DeepEval, TruLens, or agentevals. Confidence: high
- The measurement gap between what practitioners want to measure (holistic quality including goal alignment, safety, and factuality) and what they actually measure in CI (task pass rate, latency, cost) persists because holistic metrics require LLM-as-judge evaluation — expensive, inconsistent without structured rubrics, and not integrated into most CI pipelines. Confidence: high
- LangGraph achieves approximately 94% task completion on complex branching workflows in cross-framework benchmarks and is the only orchestration framework with built-in time-travel debugging via DAG checkpoints, making it the strongest surveyed choice for workflows where traceability, rollback, and auditability are required. Confidence: medium (performance figure from secondary sources; architectural uniqueness from primary docs)
- Pydantic AI is the only surveyed framework that applies type-constrained output validation at every agent-tool boundary as a structural control, preventing Layer 1 generation failures by construction rather than by post-hoc parsing — a genuine architectural novelty absent from all other surveyed frameworks. Confidence: high
- OpenHands demonstrated that inference-time scaling with a learned critic model increases SWE-bench Verified resolution from 60.6% (one attempt) to 66.4% (five attempts), establishing that sampling strategy at inference time is a first-class optimisation lever independent of model capability or prompt quality. Confidence: high
- METR's time-horizon-of-completion metric — the maximum human-hours task duration at which an agent achieves at least 50% success, currently doubling approximately every seven months — characterises the agent's capability envelope rather than performance on a fixed benchmark, making it the most future-proof effectiveness signal identified in the survey. Confidence: high
Research Question
What evaluation framework allows systematic comparison of agent implementations across multiple repositories — identifying what problems each is solving, whether concepts are used idiomatically or in novel ways, whether the agent is effective, and how to detect whether a change to an agent made it better or worse — and what would a minimal viable implementation of such a framework look like?
Findings
Executive Summary
No universally adopted evaluation framework for cross-repo agent comparison exists in early 2026, but the field has converged on a coherent set of practices. Tool-mediated execution is the single universal architectural pattern across all surveyed frameworks and is the precondition for any systematic evaluation. The critical gap is between the metrics practitioners want (holistic quality: goal alignment, safety, factuality) and what they actually measure in CI (task pass rate, latency, cost), because holistic metrics require LLM-as-judge evaluation that most frameworks do not integrate by default. A minimal viable evaluation framework requires five components: a versioned scenario registry, a two-layer metric stack (code-based + LLM-as-judge with structured rubric), trace capture, a CI regression gate with thresholds, and a gold dataset refresh protocol.
Key Findings
-
Tool-mediated execution is the single universal architectural pattern across all eight surveyed agent frameworks and is the necessary precondition for any systematic evaluation: without discrete, logged tool calls, agent actions cannot be traced, replayed, or compared across versions. Confidence: high.
-
Trajectory capture — recording the full sequence of tool calls, state transitions, and intermediate outputs for each agent run — is the evaluation primitive that all other evaluation techniques depend on, and it is present in five of the eight surveyed frameworks but implemented in incompatible ways with no shared format across implementations. Confidence: high.
-
The practitioner consensus in 2025 is that automated evaluation runs gated on quality thresholds ("evals as unit tests") are expected CI infrastructure for production LLM agents, but fewer than half of the surveyed frameworks provide integrated eval tooling, forcing teams to rely on separate tools such as DeepEval, TruLens, or agentevals. Confidence: high.
-
The measurement gap between what practitioners want to measure (holistic quality including goal alignment, safety, and factuality) and what they actually measure in CI (task pass rate, latency, cost) persists because holistic metrics require LLM-as-judge evaluation — expensive, inconsistent without structured rubrics, and not integrated into most CI pipelines. Confidence: high.
-
LangGraph achieves approximately 94% task completion on complex branching workflows in cross-framework benchmarks and is the only orchestration framework with built-in time-travel debugging via DAG checkpoints, making it the strongest surveyed choice for workflows where traceability, rollback, and auditability are required. Confidence: medium (performance figure from secondary sources; architectural uniqueness from primary docs).
-
Pydantic AI is the only surveyed framework that applies type-constrained output validation at every agent-tool boundary as a structural control, preventing Layer 1 generation failures by construction rather than by post-hoc parsing — a genuine architectural novelty absent from all other surveyed frameworks. Confidence: high.
-
OpenHands demonstrated that inference-time scaling with a learned critic model increases SWE-bench Verified resolution from 60.6% (one attempt) to 66.4% (five attempts), establishing that sampling strategy at inference time is a first-class optimisation lever independent of model capability or prompt quality. Confidence: high.
-
METR's time-horizon-of-completion metric — the maximum human-hours task duration at which an agent achieves at least 50% success, currently doubling approximately every seven months — characterises the agent's capability envelope rather than performance on a fixed benchmark, making it the most future-proof effectiveness signal identified in the survey. Confidence: high.
-
Safety evaluation is the largest unaddressed gap in the surveyed evaluation ecosystem: none of the frameworks integrate OWASP LLM Top 10 checks (prompt injection, guardrail bypass, excessive agency) as first-class CI evaluation targets, despite these being documented production failure modes affecting all agent architectures. Confidence: medium (inferred from absence of evidence in framework documentation).
-
LLM-as-judge evaluation without a structured rubric produces irreproducible results; all reliable implementations require a coded evaluation prompt with explicit scoring dimensions that is itself version-controlled and subject to regression testing, functioning as a machine-readable specification of what "good output" means. Confidence: high.
-
Benchmark saturation is a structural property of all fixed agent benchmarks, and SWE-bench Verified is already approaching 70% resolution for top agents, prompting the creation of SWE-bench-Live; any evaluation framework must include a benchmark refresh mechanism as a design principle rather than treating the initial benchmark as a permanent standard. Confidence: high.
-
A minimal viable evaluation framework for a research loop agent requires five components: a versioned scenario registry, a two-layer metric stack (code-based + LLM-as-judge with structured rubric), trace capture, a CI regression gate with explicit failure thresholds, and a gold dataset refresh protocol — with shadow testing and A/B testing as production-grade extensions. Confidence: high (inference synthesised from primary practitioner and framework sources).
Assumptions
- A1: The eight surveyed frameworks are representative of the 2025 agent framework landscape. Justification: they cover the major OSS frameworks by practitioner adoption (AutoGen, CrewAI, LangGraph dominate practitioner comparisons); Pydantic AI and Agno cover type-safe and multi-modal niches; OpenHands/SWE-bench cover the SE-agent benchmark class; Anthropic harness covers the production research-loop pattern. Commercial frameworks (Copilot Coding Agent, Claude Code) are partially covered via prior research.
- A2: Secondary framework performance figures (94%/91%/89% task completion) are accurate as relative indicators even without primary empirical papers. Justification: multiple independent secondary sources agree on the ranking and approximate magnitude; the architectural explanation (LangGraph's state management reducing a class of failures) is mechanically plausible.
Analysis
The central tension in agent evaluation is the determinism-capability trade-off: more capable agents produce more variable outputs, making deterministic unit-test-style assertions inadequate and requiring probabilistic evaluation. This explains the convergence on evals-as-code with LLM-as-judge.
The divergence across frameworks in evaluation depth reflects design philosophy differences. Pydantic AI prioritises prevention (structural controls at every boundary); LangGraph prioritises operational debuggability (time-travel, checkpoints); OpenHands prioritises benchmark reproducibility (published trajectory datasets). Agno is the only framework that treats evaluation as a first-class framework concern with four distinct built-in eval types.
For a research loop agent, the architectural implication is clear: the primary evaluation mechanism must be LLM-as-judge with structured rubrics (since outputs are long-form research, not structured data or code patches). The secondary mechanism is trajectory analysis (did the protocol get followed?). The tertiary mechanism is internal consistency checking (do §2 claims appear in §6? Are sources cited?). These three mechanisms correspond exactly to the three layers of the five-component MVF specification.
Risks, Gaps, and Uncertainties
- Benchmark saturation: Fixed benchmarks are gamed or saturated. Any evaluation framework must budget for benchmark refresh as infrastructure cost, not a one-time task.
- LLM-as-judge drift: Judge model updates can change evaluation results without any change to the agent being evaluated, creating phantom regression signals. Judge model versioning is a required mitigation.
- Safety evaluation gap: No surveyed framework integrates safety evals in CI. This is an active risk for production agents, including the research loop.
- Shadow testing evidence: The shadow testing pattern for LLM agents is practitioner-documented but not peer-reviewed in the agent-specific context. Confidence is medium.
- Missing frameworks: Mastra, Google ADK, and Microsoft Copilot Studio were not surveyed in depth; they may introduce additional patterns not captured here.
Open Questions
- Research loop evaluation rubric: What structured rubric should be used to LLM-judge the outputs of this repository's research loop agent? This is a direct follow-on backlog item (priority: high; blocks: implementation of any research loop eval gate).
- Trajectory similarity metric: Can the research loop agent's trajectory (tool call sequence, sources consulted, protocol adherence) be compared automatically across agent versions to detect regressions without full LLM-as-judge evaluation?
- Benchmark refresh for research agents: How should a gold dataset of research questions with known-good answers be curated and maintained for research loop evaluation? SWE-bench-Live's continuous update model offers a design pattern.
- Safety eval integration: What would it take to add OWASP LLM Top 10 checks to the CI pipeline for this repository's research loop agent?
Output
- Type: knowledge, backlog-item
- Description: Structured evaluation framework specification covering 8-framework cross-repo analysis, pattern taxonomy, effectiveness signal survey, and 5-component MVF specification. Generates one follow-on backlog item: research loop evaluation rubric specification.
- Key sources:
- Yehudai et al. "Survey on Evaluation of LLM-based Agents" arXiv:2503.16416 (2025) — arxiv.org/abs/2503.16416
- Hamel Husain "Your AI Product Needs Evals" — Hamel Husain "Your AI Product Needs Evals"
- METR "Measuring AI Ability to Complete Long Tasks" — METR (Model Evaluation and Threat Research) task standard
sources
- [x]
Research/completed/2026-03-08-ai-coding-harnesses-agent-philosophy.md - [x]
Research/completed/2026-03-05-general-agent-optimization-framework.md - [x]
Research/completed/2026-03-04-sdlc-ai-prompt-patterns.md - [x]
Research/completed/2026-03-10-formal-spec-intent-alignment-agentic-coding.md - [x]
Research/completed/2026-03-10-ai-concept-classification-taxonomy.md - [x] AutoGen repo — multi-agent conversation framework
- [x] CrewAI repo — role-based agent orchestration
- [x] LangGraph repo — stateful agent graphs
- [x] Pydantic AI repo — type-safe agent framework
- [x] Agno repo — multi-modal agent framework
- [x] OpenHands (previously OpenDevin) — software engineering agents
- [x] SWE-bench — benchmark for software engineering agents
- [x] Yehudai et al. "Survey on Evaluation of LLM-based Agents" arXiv:2503.16416 (2025)
- [x] Mohammadi et al. "Evaluation and Benchmarking of LLM Agents: A Survey" arXiv:2507.21504 (2025)
- [x] METR (Model Evaluation and Threat Research) task standard
- [x] Hamel Husain "Your AI Product Needs Evals"
- [x] langchain-ai/agentevals