Agent regression test framework

How to prove that a change to an agent's model, instructions, tools or knowledge has not made it worse — what counts as a change, suite tiers, the golden set, non-determinism, comparison rules, the gate and starting thresholds.

  • Evaluation kit
  • 7 min read
  • Sep 24, 2026
  • Advanced
  • Evaluation kit

An agent that passed its evaluation last month has not necessarily passed this month. Someone edited the instructions to fix one complaint. The provider updated the model. A tool's API started returning a new field. A policy document was rewritten. Each change was small and sensible, and together they can break something nobody tested. This framework answers one question every time anything changes: is the candidate at least as good as the version in production, on everything that matters?

It turns the monitoring and regression part of Evaluation Kit 001 into a working system. The thresholds are recommended starting points to calibrate. They are not results.

Chapter 01

What the framework contains

PartWhat it gives you
Change registerWhat counts as a change, and what to record
Suite tiersSmoke, release, scheduled and production
Golden set rulesWhere scenarios come from and how they are kept honest
Non-determinismRepeat runs, pass^k and the noise floor
Comparison rulesHow a candidate is judged against production
Starting thresholdsMust-pass, graded and guardrail levels to calibrate
Regression report templateOne page per gate decision
Chapter 02

What counts as a change

ChangeExamples
ModelA new version; a provider update; a different model for one step
InstructionsThe system prompt, examples, policy text in the prompt
ToolsA new tool; a changed description, schema or API behaviour
KnowledgeSources added or retired; chunking, embeddings or retrieval settings
MemoryThe write policy; retrieval rules; expiry
SettingsSampling parameters, context limits, routing between models
EnvironmentLibraries, integrations, endpoints

In machine-learning systems, changing anything changes everything: a prompt edit for one case can break another, and published studies have documented behaviour shifting between versions of models served under the same name. So every change goes through the same gate, however small — and the unchanged agent is re-tested on a schedule, because providers and data move underneath it.

A translucent cyan lattice figure on a plinth, linked by light conduits to seven small brass vessels around it

Record a configuration fingerprint with every run: the version of each item in the table. A result without one cannot be compared with anything.

Chapter 03

Suite tiers

TierWhen it runsContentsPurpose
SmokeEvery change, before reviewAll must-pass scenarios and a sample of each categoryCatch obvious breaks within minutes
ReleaseBefore any change reaches productionThe full library, including knowledge, tool and escalation setsThe regression gate
ScheduledOn a fixed cadence, with no changeThe release suite against the production configurationDetect drift from providers and data
ProductionContinuouslyThe same measures on live work, sampledConfirm the evaluation predicts reality

No change reaches production without the release suite — including the "quick" instruction edit made directly in a console.

Four chambers in a row joined by a cyan conduit, growing from a tiny cabinet to a glass tower over a lit city
Chapter 04

The golden set

Scenarios come from the original evaluation set; every production failure, which becomes at least one scenario before the incident is closed; near misses that people caught; confirmed missed escalations; and adversarial cases from security reviews.

Each scenario records an identifier, an owner, its origin, the date added, a must-pass flag, tags (dimension, request type, risk), the expected behaviour and the pass condition.

Keep it honest:

  • Never edit a scenario to make it pass. If the scenario is wrong, fix it deliberately, with a reason, and re-run the baseline.
  • Retire with a reason, when policy or product changes — never silently.
  • Keep known failures visible. Mark them; do not delete them.
  • Hold out a set that is never used to tune instructions.
Chapter 05

Non-determinism

Agents do not give the same output twice, so a single run proves little.

Five faint overlapping copies of a cyan figure while a Wizard's hands measure the blur with brass calipers
  • Must-pass scenarios use pass^k: the scenario passes only if every one of k runs passes.
  • Measure the noise floor. Run the production baseline twice. The difference between two runs of the same version is noise; a candidate's drop smaller than that is not evidence of anything.
  • Compare scenario by scenario. Use the same scenarios for both versions, and look at what changed: newly failing (passed before, fails now), newly passing, still failing. Newly failing scenarios matter more than the net rate.
  • Mind the sample size. On two hundred scenarios, a rate of 90% carries a standard error of about two points, so a two-point drop can be noise and an eight-point drop rarely is.
  • Quarantine flaky scenarios with an owner and a date. A flaky must-pass scenario still blocks.
Chapter 06

Comparison rules

Run the baseline — the production configuration — on the same suite, the same day, with the same number of repeats. Report by dimension and by category, not only overall: an overall gain can hide a loss in one category. Then apply four rules:

A brass balance in a lamp-lit hall with two identical cyan figures on its pans and a Wizard at the pivot
  1. Any newly failing must-pass scenario blocks the release.
  2. A graded drop beyond tolerance blocks, unless a named person signs the trade-off.
  3. An improvement does not count if a guardrail — cost, latency, escalation rate — worsens beyond tolerance.
  4. A person reads every newly failing scenario.
Chapter 07

Starting thresholds

Warning — These are recommended starting points, not measured results or industry standards. Set tolerances per mission and per suite size, before the run, and never widen one after seeing the result.

MeasureRecommended starting thresholdType
Must-pass scenariospass^k = 100%; k ≥ 3 for smoke, k ≥ 5 for releaseMust-pass
Newly failing must-pass scenarios0Must-pass
Open flaky must-pass scenarios0Must-pass
Drop in any graded dimensionWithin the noise floor; larger needs a signed trade-offGraded
Drop in any category of 20+ scenariosWithin the noise floor; larger needs a signed trade-offGraded
Cost per missionNo more than 10% above baselineGuardrail
Latency, 95th percentileNo more than 20% above baselineGuardrail
Escalation rateWithin 5 points of baseline, or explainedGuardrail
Chapter 08

The gate

Every release suite ends in one of three signed outcomes. Pass — the change proceeds to staged rollout. Pass with sign-off — a named person accepts a documented trade-off. Block — the failures are listed with the fixes required.

Aerial view of three stone canal locks, one small barge of cyan light ahead and a flotilla waiting, a Wizard at a lever

A pass is not the end. Release in stages: a canary on a small share of traffic, live measures compared with the baseline, widening only on evidence, and a rollback that is one action.

Chapter 09

Running it

  1. Record the fingerprint of the production configuration and the candidate.
  2. Run the smoke suite on every change; fix before review.
  3. Run baseline and candidate on the release suite, with the same repeats.
  4. Compare with the rules above, by dimension and category.
  5. Read every newly failing scenario, and decide.
  6. Sign the gate, and store the report with both fingerprints.
  7. Canary, then widen.
  8. Add new production failures to the golden set.
  9. Run the scheduled suite even when nothing has changed.
Chapter 10

Checklist

  • Every kind of change in the register triggers the release suite.
  • Every run stores a configuration fingerprint.
  • Smoke, release and scheduled tiers exist and run automatically.
  • Every production incident adds at least one scenario.
  • Must-pass scenarios use pass^k.
  • The noise floor is measured before tolerances are applied.
  • Results are compared by dimension and category, scenario by scenario.
  • Every newly failing scenario is read by a person.
  • Guardrails on cost, latency and escalation are part of the gate.
  • Rollback is tested and takes one action.
Chapter 11

Worked example

Illustrative example, not a client engagement.

Suppose a support agent's model is to be upgraded. The release suite shows the overall rubric score up, and cost per mission down. By category, refunds have dropped: the new model is more willing to grant exceptions. One must-pass scenario — a refund above the limit — fails in one of five runs. The gate blocks.

The team enforces the refund limit in the tool rather than relying on the instructions, re-runs baseline and candidate, and finds no newly failing scenarios and every guardrail within tolerance. The gate passes; the canary starts with a small share of conversations, and the refund scenario stays in the smoke suite for good.

Chapter 12

Regression report template

FieldEntry
ChangeWhat changed, and why
FingerprintsProduction and candidate configurations
Suite and repeatsTier, number of scenarios, k
Noise floorDifference between two baseline runs
Must-passPass^k result; newly failing scenarios
GradedChange per dimension and per category
GuardrailsCost, latency, escalation rate against baseline
Newly failingEach one, read, with a cause
DecisionPass, pass with sign-off, or block
Signed byName and date

In the Guild, Oracle owns regression performance on the scorecard, and regression tests are part of the deployment stage Sentinel owns in the Evaluation Lab.

Build with the Guild

Need this capability inside your business?

The Guild builds what the guides describe.