Questions · Agent Assurance

How many runs per probe do I need to spot a real regression?

Updated December 2026 · Markdown

Short answer

Never rely on a single pass or fail. Run 3 to 5 attempts per probe per run to catch consistent patterns during local testing, and compare repeated runs before and after a change with 95% bootstrap confidence intervals to separate genuine regressions from normal variance.

LLM rule compliance is probabilistic: an agent that drops from 94% compliance to 50% still passes a single manual spot-check half the time—and passes two consecutive checks 25% of the time.

What sample sizes resolve in practice

Across VAIL’s empirical studies, two sampling patterns cleanly match two different engineering workflows:

Workflow Sampling pattern What it resolves VAIL study reference
Pre-release local hardening 5 attempts per probe per model (e.g., 180 runs across 3 models before and after fixes) Exposes consistent failure modes, compares models side by side, and catches regressions caused by fixes (e.g. a routine control dropping from 4/5 to 2/5) Hardening a new AI agent
Model swap & production monitoring 3 attempts per scheduled run across repeated runs (~86 baseline vs ~44 post-swap runs per probe; 913 runs / 2,699 attempts total) Resolves large behavioral shifts cleanly with 95% bootstrap CIs (e.g. −44 pts [−59, −28] and −17 pts [−28, −6]), while flagging shifts of a few points as noise Model-swap study

Why a timeline matters as much as sample size

Comparing a single before-snapshot against a single after-snapshot can still mislead you if a probe was already drifting before you changed models:

  • Continuous baselines isolate the real cause. In VAIL’s model-swap study, a recency-search check (company-recency-window) dropped from 7% to 0%—but hourly runs showed it had stopped passing on September 5, three days before the September 8 model swap. Because the baseline was continuous, that pre-existing failure was cleanly excluded rather than blamed on the new model.
  • Confidence intervals prevent chasing noise. Requiring the 95% bootstrap confidence interval on the before/after difference to exclude zero keeps teams focused on real regressions instead of flipping prompts over a 3-point fluctuation.
  • Small per-step failure rates compound. Even a 5% per-step error rate compounds across a multi-step agent workflow: a rule kept on 95% of steps holds across an entire 40-step task roughly one run in eight.

Practical rules of thumb

  1. Use 1 pilot run only to verify that the probe harness, tools, and scoring logic execute without infrastructure errors.
  2. Use 5 attempts per probe per candidate model before shipping a new agent, prompt edit, or tool fix—and re-run both vulnerabilities and controls so a fix does not quietly break routine behavior.
  3. Use 3 attempts per scheduled run in ongoing monitoring so every run gives a stable compliance estimate while rolling windows accumulate enough runs to compute tight confidence intervals around model swaps or silent provider updates.

How VAIL automates this

The VAIL Agent Assurance Engine runs multi-attempt probes on a recurring schedule and tracks per-rule failure rates, trends, and failing transcripts over time—or runs the exact same probe matrix locally across candidate models from your coding agent over MCP.

Related questions

How do I detect behavior changes in my agent after a model update?
The five-step before/after probing workflow for catching model-swap and silent provider regressions.
Why do text-only evals miss regressions after a model swap?
Why grading final replies misses forbidden tool calls and dropped memory writes even when text checks pass 100%.
What should I do when a faster or cheaper model breaks a policy rule?
When to move a broken rule into tool code, when to adjust prompts and re-probe, and when to keep the stronger model.

← All questions · Markdown version · Model-swap case study · About Agent Assurance