BCBCBCBC TechnologiesPortfolio← Back to Dexter

Project Plan A: Deterministic Agent Mock & Replay Harness (VCR for AI Agents)

Overview

A lightweight, high-performance recording and replay harness designed to eliminate non-determinism, third-party API costs, and network latency during AI agent CI/CD testing. Inspired by VCR-style HTTP mocking, this tool intercepts tool calls and external API interactions during an initial agent run, serializing them into deterministic test fixtures for rapid offline regression testing.

Key Technical Objectives

System Architecture & Workflow

[ Agent Under Test ] 
        |
        v  (Outbound Tool Request)
+-----------------------------------------------------------+
|                   Mock & Replay Proxy                     |
|                                                           |
|  Mode: RECORD  ---> Save request/response to local trace  |
|  Mode: REPLAY  ---> Match against fixture & inject response|
+-----------------------------------------------------------+
        |                                    |
        v (RECORD Mode)                      v (REPLAY Mode)
[ Live External API ]              [ Saved Local Fixtures ]
      

Core Components

  1. Interceptor Proxy Engine: Middleware interceptor written in Go or Python that acts as a local gateway for outbound agent tool execution.
  2. Fixture Serialization Engine: Converts execution traces into structured, version-controlled mock files containing sequence indexes and payload hashes.
  3. Sequence Matcher: Ensures tool invocations happen in the exact expected sequence, raising immediate regression flags if an agent skips steps or changes tool call order.

Deliverables & Milestones

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