Project Plan B: Dual-Layer Automated Agent Regression & Evaluation Suite

Overview

An end-to-end evaluation pipeline built to detect performance, accuracy, and behavioral regressions in multi-step AI agents. By combining fast, low-cost deterministic assertions with an automated LLM-as-a-Judge semantic evaluator, this suite provides comprehensive pass/fail metrics across model fine-tunes, prompt revisions, and framework updates.

Key Technical Objectives

Evaluation Layer Architecture

Evaluation Layer Scope & Target Execution Mechanism Key Metrics & Assertions
Layer 1: Deterministic Gates Structure, Schema & Safety Code Assertions & Schema Matching Step-count bounds, OpenAPI argument validation, Tool sequence DAG, DB state diffs
Layer 2: Semantic Gates Accuracy, Trajectory & Quality Embedding Models & LLM-as-a-Judge Cosine text similarity, rubric score variance, tool hallucination rate, factual correctness

Core Components

  1. Trajectory Collector: Captures full execution trees, including thoughts, tool inputs, outputs, execution latencies, and final system states.
  2. Deterministic Assert Engine: Evaluates tool call sequence accuracy, schema validity, and max-step limits in milliseconds.
  3. Semantic Rubric Judge: Sends execution traces and rubrics to an evaluation model, outputting normalized scores (0.0–1.0) with detailed reasoning logs.
  4. Diff & Reporting Generator: Produces side-by-side terminal and HTML diff reports comparing baseline vs. candidate trajectories.

Deliverables & Milestones