MODULE 10 // 22:00

Building Deterministic Agent Evaluation Harnesses

Measure both final task completion (Pass@1) and intermediate tool-selection efficiency across versioned benchmark datasets.

// KEY ARCHITECTURAL TAKEAWAYS

  • Grade deterministic artifacts with code assertions before using LLM-as-a-Judge.
  • Track step count, token cost per solved task, and tool error rates.
  • Gate prompt and model upgrades on automated CI regression suites.
REFERENCE IMPLEMENTATION // SNIPPET
def evaluate_run(trace, expected_output):
    assert trace.final_output == expected_output
    assert trace.tool_errors == 0
    assert trace.total_tokens < 15000