Contents (7)
AI agent regression testing is the check that a change to an agent's prompt, model, tools or skills did not make it worse at tasks it already handled. It compares the changed agent with repeated runs of the old one, scenario by scenario, and returns a verdict a merge gate can act on.
Suppose a pull request adds a skill to a support agent and the eval pass rate moves from 82% to 79%. Regression, or noise? Both figures are invented for this example, and the question is the same one a release team faces.
There are two ways to get it wrong. The three-point dip may be ordinary run-to-run variance, since FAULTLINE recorded pass rates from 0.60 to 0.87 for the same model on the same inputs (Regression or noise?). Or the average may hide a slice of tasks that collapsed, since six injected regressions moved the aggregate by -1.7 to -5.9 percentage points (pp) while the matching slice fell by -25 to -91 pp (Layer-Isolated Evaluation). A skill can also change behaviour just by sitting in context, even when the agent never calls it (The Regression Tax). Either mistake costs you: a good change blocked, or a broken task shipped. This guide covers why regressions hide, what today's CI tools compare, and the merge gate that answers the question. For the wider test-layer view, see how to test AI agents.
01 / One pass rate tells you that the agent regressed, not where
An aggregate pass rate can barely move while a whole slice of tasks collapses. That is the finding in Layer-Isolated Evaluation, a single-team 2026 preprint that degraded one layer at a time across seven non-safety layers of a production agent and reported six local regressions. The aggregate pass rate moved by -1.7 to -5.9 pp. The matching slice fell by -25 to -91 pp (Layer-Isolated Evaluation). A team reading only the top-line number sees a dull afternoon. The tasks in that slice stopped working.
The paper's own suite shows the shape of the fix. It holds 238 cases across 23 slices, and 225 of them run in 2.39 s in CI on every change against a locked per-slice baseline (Layer-Isolated Evaluation). Fast enough to gate a commit, fine-grained enough to name what broke.
That granularity matters beyond one team's harness. Compressing agent behaviour into a single success metric obscures critical operational flaws, and the same metric ignores whether agents behave consistently across runs (Towards a Science of AI Agent Reliability). A regression belongs to a scenario. The corpus average only dilutes it. If your gate reports one number, it can tell you that something moved. It cannot tell you which behaviour to inspect.
02 / Prompt and skill changes break tasks the agent already solved
A regression is a task the agent solved before the change and failed after it. A residual failure is a task that fails both ways (The Regression Tax). That definition is worth keeping literal, because it separates a regression from the failures the agent already had.
The Regression Tax measured the effect across nearly 6,000 runs, two office automation benchmarks and three model harness stacks, comparing agents with and without skills (The Regression Tax). It is a single-team 2026 preprint, like the layer study above. Its conclusion is uncomfortable for anyone shipping a new capability: the best performing skills outperform others primarily by regressing less (The Regression Tax). The gains matter less than the regressions avoided. A skill that lifts the average can still break more tasks than it fixes.
The paper names three mechanisms. Skill description osmosis is a skill changing the agent's behaviour simply by being present in context, even when it is never invoked. Grounding displacement is a skill's prescribed procedure overriding how the agent interprets its inputs. Verification displacement is that procedure suppressing checks the agent would otherwise run on its outputs (The Regression Tax). Each one can damage a task the agent used to pass without any explicit call to the new code.
The practical consequence is to keep the old scenarios in the suite and report gains and regressions as separate numbers. Procedural skills should be judged by decomposing their net effect into gains and regressions, not by aggregate improvement alone (The Regression Tax). The aggregate reports the net gain. The regression list reports what broke, and the trade is only visible when both are on the table.
03 / Run-to-run noise looks exactly like a regression
Picture the same model running the same thirty inputs five times. In FAULTLINE P11, pass rates ranged from 0.60 to 0.87, a twenty-seven point swing (Regression or noise?). Same model, same inputs. Historical baselines for the exact same R2 model ranged across runs from 0.6000 to 0.8667 (Research). The P11 sample is small, thirty inputs in one setup, so treat the size as a warning rather than a constant. The direction does not depend on the sample.
The serving path can move the score too. FAULTLINE P07 sent the same gemini-3.7-flash model through two gateways, 150 tasks each. One passed 144 of 150, a rate of 0.96. The other passed 134 of 150, a rate of 0.8933 (P07 README). An exact McNemar test, a paired significance test, put the difference at p=0.0308837890625, with 14 versus 4 discordant pairs (P07 README). Nothing about the agent changed. The route to the model did.
Cheap substitutes do not rescue a single run. A single-rollout proxy fails to substitute for repeated runs, with a Spearman rank correlation of 0.417 (Beyond Pass@k). In a synthetic multi-rollout benchmark, counting unit tests inside one submission as independent attempts inflated reported scores by 0.85-0.97 in absolute terms, with 0.96-0.98 reported against 0.00-0.12 corrected (Beyond Pass@k). The reported number tracked test-suite size more than agent reliability.
This is why tau-bench proposed pass^k, a metric that asks whether every one of k trials succeeds (tau-bench). Even gpt-4o succeeded on under 50% of tau-bench tasks and was inconsistent across trials, with pass^8 under 25% in retail (tau-bench). A model that fails more than half its tasks and clears eight consecutive tries less than a quarter of the time cannot be judged on one run. Pass^k and agent reliability covers what to do with that distribution once you have it.
Noise is not an excuse to ignore the result. It sets the size of the sample. A merge decision needs a baseline wide enough to contain normal variation and a test that says whether the candidate fell outside it. That is the job the noise band does, and it makes the number of baseline runs a design parameter.
04 / What CI eval tools compare today, and what they leave to you
The tools reviewed here compare a candidate against a baseline case by case. Their docs, as of 2026-11-26, leave the noise-aware decision rule to the team.
promptfoo runs each test case once by default, because the configuration reference says the number of times to run each test case defaults to 1 (promptfoo configuration reference). Its GitHub Action runs a full before/after comparison on every pull request that modifies a prompt (promptfoo GitHub Action docs). The default is not a limit on what you can configure. It is a statement about what a team gets without extra work.
DeepEval plugs into pytest through assert_test() and the deepeval test run command, so every push or pull request runs the same evals you run locally (DeepEval CI docs). That makes the checks cheap to wire in. The comparison is still a comparison, and a threshold is still a threshold.
LangSmith's comparison view identifies differences, regressions and improvements between experiments (LangSmith docs). It colours runs that regressed on any feedback key against the source experiment and counts them per key (LangSmith docs). It can also filter runs by success or error status (LangSmith docs). What the reviewed page does not define is how large a drop has to be before the red highlight is a release blocker.
Braintrust identifies which test cases improved or regressed between runs (Braintrust docs). Sorting tells you that a case regressed, while diff mode tells you why (Braintrust docs). Grouped trials expose inputs where the model behaves inconsistently, instability that a single-run comparison would miss (Braintrust docs). Its CI action comments improvements and regressions against the baseline on the pull request (Braintrust docs).
None of this is a criticism of the products. Per-case comparison is the necessary first half of the job, and each tool does it. The missing half is the decision rule: how many baseline runs define normal variation, how large a per-scenario drop counts as real, and what the gate does when the sample cannot tell. Threshold versus band compares the two approaches directly.
05 / A merge gate with three verdicts: PASS, FAIL, INCONCLUSIVE
The workflow that holds up has seven steps, each tied to a failure above.
- Run the fast, no-model checks on every change. faultgate-zero checks agent runs inside existing pytest tests with no tracing setup, no collector, no account, no network and no LLM judge (faultgate-zero). It looks for loops on empty results, repeated identical calls, tool errors the agent ignored, provider outages hidden behind fallback text, answers cut short at token limits, and policy violations (faultgate-zero). The Layer-Isolated harness shows the speed target: 225 cases in 2.39 s (Layer-Isolated Evaluation).
- Build the baseline from 3 or more runs. With two, the run-to-run variance is a guess, and faultgate warns (Gate & Statistics). One run per side cannot estimate the spread it is supposed to compare against.
- Apply the same checks to both sides. faultgate labels six dimensions BETTER, SAME, WORSE or INCONCLUSIVE: correctness, consistency (pass^k), approach, cost, speed and safety (faultgate). A comparison that changes the checks between sides measures the checks.
- Between the PASS and FAIL thresholds, run a one-sided significance test and size the needed scenarios at power 0.80 (faultgate). When the sample cannot decide, say so and print the number required.
- List the scenarios that were clean in every baseline and are not clean now (Gate & Statistics). This is the readable output an engineer acts on, and it is where per-scenario comparison pays for itself.
- Fail on a business-rule violation regardless of the band. A run whose clean rate sits inside the measured band still fails if the policy check fired on any trace (Business Rules). As the docs put it, noise explains a flaky answer, not a refund over the limit (Business Rules).
- Return exit code 1 on FAIL and 0 on PASS and INCONCLUSIVE (Regression or noise?). The CI job then blocks on evidence.
The commands come from the faultgate docs. Build the band, then check a candidate against it:
When the sample is too small to decide, the docs show the gate saying so and naming the sample it needs:
The INCONCLUSIVE line is a request for data. It says the current sample cannot separate a 0.07 drop from noise and names 89 scenarios as the requirement. Re-run the candidate with 59 more scenarios and the gate can answer.
faultgate is FAULTLINE's open-source gate, built for this workflow. You can install it with pip install faultgate, and version 0.5.0 adds faultgate compare, which takes repeated baseline and candidate runs and returns SHIP, REVIEW or BLOCK (faultgate). The toolkit is free and the code is on GitHub. Its limit is scope: it checks structural failures and business policy from recorded traces (faultgate). A tone shift or a subtly worse answer with clean structure needs your own judge or a human read.
06 / What to change on Monday
Stop reading a single pass-rate delta as a release decision. Require a verdict with a sample size behind it.
The decision: every pull request that touches a prompt, model, tool or skill runs against a baseline of 3 or more runs (Gate & Statistics) and is judged per scenario (Layer-Isolated Evaluation, Gate & Statistics). Business rules such as refund limits become hard FAILs (Business Rules). Then decide explicitly what INCONCLUSIVE does to a merge. The default action exits 0 (Regression or noise?), so the team either merges with a follow-up ticket or blocks until the required sample is run. Both are defensible. Leaving it undefined is not, because the gate will quietly pass.
The owner: the engineering lead who owns the agent's release gate. The product owner writes the business rules, since a refund limit is a policy decision rather than a test detail.
The metric: per-scenario regressions per merged pull request (The Regression Tax, Gate & Statistics), plus the share of verdicts that came back INCONCLUSIVE and the sample each one requested, tracked per month. A second metric is wall time of the fast pytest layer per change, which Layer-Isolated Evaluation showed can run in seconds (225 cases in 2.39 s) (Layer-Isolated Evaluation). If the fast layer slows to the point where engineers skip it, the gate has already failed.
The first week is small. Pick one slice of the agent's tasks that moves money or changes data. Record three baseline runs. Add the policy check. Run one candidate against the band and read the verdict.
Questions#
What is AI agent regression testing?
AI agent regression testing is the practice of checking that a change to a prompt, model, tool or skill did not break tasks the agent solved before. You compare the candidate with repeated baseline runs scenario by scenario, not only by the aggregate pass rate. A regression is a task that was clean in every baseline run and is not clean now.
How many runs do you need to detect an LLM agent regression?
Build the baseline from at least three repeated runs, because two runs make the run-to-run variance a guess. The number of scenarios depends on the drop you need to detect. For a drop of 0.07, faultgate reports 89 scenarios at alpha 0.05 and power 0.80. promptfoo runs each test case once by default.
Why do my agent evals pass and fail on the same code?
Run-to-run variance. FAULTLINE recorded pass rates from 0.60 to 0.87 for the same model on the same thirty inputs across five runs. Historical baselines for the same R2 model ranged from 0.6000 to 0.8667. tau-bench found gpt-4o passed under 50% of tasks, and its pass^8 was under 25% in retail. One run per side cannot separate a small drop from that spread.
How do you run agent regression tests in CI?
Run fast checks with no model on every change, then compare the candidate against repeated baseline runs on pull requests. DeepEval runs evals inside pytest, promptfoo and Braintrust comment on the PR, and faultgate returns PASS, FAIL or INCONCLUSIVE with the sample size it needs. Its CI action exits 1 on FAIL and 0 on PASS and INCONCLUSIVE.



