Don't Trust Your AI Agents. Test Them Like a Scientist — Stephanie Jarmak, Omni Analytics

17:123 min readAI Engineer10/23/2026Computing/Software

Key Takeaway

Effective AI agent evaluation requires testing configurations that reflect actual production workloads and independent trace auditing rather than relying on public benchmark scores or untrustworthy agent logs.

Highlights

  • Modifying an initial agent prompt reduced run costs by 28% without resolving the agent's failure to invoke the target code search tool.

  • Swapping the agent harness from OpenHands to Astra changed task effectiveness by over 30% using the identical underlying model.

  • A search tool retrieval query returned 295 files when only 6 files were necessary, demonstrating a severe precision deficit.

  • Independent traffic record audits detected injected security issues that successfully bypassed internal agent hash checks and execution traces.

  • Building accurate evaluation harnesses requires anchoring tests in internal production workload data rather than relying solely on public benchmark scores.

Timeline

  1. Tool Use Failures and Prompt Alterations

    Initial testing of code search MCP tools reveals that superficial optimizations like cost reduction do not correlate with functional tool utilization. Comprehensive trace analysis is necessary to determine whether agents receive necessary context and why they fail to execute specific actions.

    • Initial prompt modifications reduced run costs by 28% without altering the agent's failure to invoke the code search tool.
    • Agent evaluation requires examining complete execution traces to isolate why tool calls are skipped despite available context.
  2. The Impact of Harness Configurations

    Third-party comparisons on Terminal Bench 4 demonstrate that harness selection introduces massive variance in agent capabilities. Evaluating models inside a configuration that mirrors the target production environment prevents misleading performance expectations from public rankings.

    • Swapping agent harnesses from OpenHands to Astra shifted task effectiveness by over 30% using the same underlying model.
    • Model performance changes drastically depending on the enclosing harness environment.
  3. Interpreting Public Benchmarks versus Internal Evals

    Public benchmarks help map the broader AI landscape, but organizations must avoid over-indexing on them due to non-representative task distributions. Internal evaluations must mirror actual operational workloads and iterative organizational feedback loops.

    • Public benchmarks serve primarily as high-level reference sets to generate shortlists rather than exact predictors of internal utility.
    • Model training spikiness causes public benchmark scores to diverge from specialized organizational requirements.
  4. Applying a Scientific Approach to Variable Testing

    Rigorous evaluation treats system changes like a scientific experiment by isolating variables such as task coverage, run variance, and configuration interactions. Comprehensive workload clustering ensures code understanding and bug fixing are measured independently.

    • Workload coverage requires clustering tasks across the entire software development life cycle rather than focusing solely on bug fixes.
    • Non-deterministic model behavior necessitates running multiple iterations to measure performance variance and interaction effects.
  5. Observability and Precision Metrics in Search Tools

    Debugging agent failures requires following the complete execution trail to identify where instructions or tool outputs break down. Optimizing metrics like the F1 score prevents tools from pulling excessive, irrelevant data that degrades overall system efficiency.

    • Execution pipelines must be audited step-by-step from context availability down to returned values and final outcomes.
    • Grep-based searches retrieving 295 files for a task requiring only 6 files highlight the need to optimize for precision alongside recall.
  6. Quality Gates, Human Review Load, and Trace Trustworthiness

    Autonomous software factories require strict boundary enforcement because agents lack reliable internal stop mechanisms when errors occur. Furthermore, agent-generated traces can be tampered with or fail to record injected vulnerabilities, necessitating independent traffic history audits.

    • Automated quality gates require hard-coded enforcement mechanisms rather than relying on agents to self-enforce stops.
    • A 1% false alarm rate in automated reviews can generate thousands of alerts that overwhelm domain expert review capacity.
    • Independent record comparisons can catch injected security issues that successfully bypass agent execution traces and hash checks.
  7. Representative Workloads and Production Autonomy

    Effective evaluation anchors on real-world production proxies categorized by complexity, ranging from basic Q&A to full application building. Establishing rigorous operational boundaries allows systems to automate low-risk decisions safely while retaining human oversight for critical thresholds.

    • Production traffic and internal usage data serve as the ultimate truth for building representative evaluation harnesses.
    • Defining clear risk boundaries determines when an agent can autonomously execute tasks versus when it must escalate to a human.

Description

Stephanie Jarmak, a former astronomer who now builds evals at Omni Analytics after building a large coding benchmark at Sourcegraph, argues that most agent evaluations are easy to misread. She shows how swapping only the harness moved results by 30%, why public benchmarks are for shortlisting rather than decisions, and how to design your own evals like an experiment: realistic tasks, repeated runs, full traces and a measurement that matches what you care about. She also covers quality gates that actually stop work, the human review bottleneck, agent records you can't trust, and why production is the final test. Chapters: - 00:00 Intro - 01:11 When the agent ignores your tool - 02:47 The harness changes the results - 03:51 Public benchmarks vs. your own evals - 05:34 Designing evals like a scientist - 07:05 Trace the whole pipeline - 08:50 Choose what you measure - 09:48 Quality gates that actually stop work - 11:20 The human review bottleneck - 12:20 When the agent's record can't be trusted - 13:21 Production is truth - 15:05 When to escalate to a human Stephanie Jarmak, Omni Analytics: https://omni.co Join us in SF for the second annual AIE CODE summit: https://aie.codes our last flagship summit of 2026. Applications live now!

Write about this video