Every POST to /api/measurements is compared against the rolling baseline for that agent; BenchVault returns passed plus a violations array so any latency, cost, completion, error, or token regression is visible in CI the same run it happens.
# Record a measurement — wire regression testing into any agent curl -X POST https://benchvault.ai/api/measurements \ -H "Authorization: Bearer $BENCHVAULT_KEY" \ -H "Content-Type: application/json" \ -d '{ "agent_id": "my-support-agent", "avg_latency_ms": 1240, "cost_usd": 0.0031, "completion_rate": 0.91, "error_count": 1, "total_tokens": 3800 }' # Real run — regression flagged inline, build fails { "passed": false, "violations": ["completion_rate dropped 0.04 below baseline"] }
AI agent regression testing is the practice of comparing every agent run against a known-good baseline so that any drop in latency, cost, completion rate, error count, or tokens is flagged before it reaches production. BenchVault makes this baseline check part of the same POST that records the run, so regressions surface inline instead of after the fact.
Every POST to /api/measurements is compared against the rolling baseline for that agent the instant it arrives. BenchVault returns a passed boolean and a violations array inline, so the exact metric that regressed is reported on the same request — you do not have to query a dashboard after the fact to find out whether the build should fail.
BenchVault tracks the five metrics most often associated with shipped regressions: avg_latency_ms, cost_usd, total_tokens, completion_rate, and error_count. A run is flagged as a regression when any of those metrics crosses the threshold its baseline defines, and the specific offender is named in the violations array.
Yes. After your CI step POSTs a measurement, read the passed boolean in the response. If passed is false, exit the job non-zero — the violations array tells the reviewer exactly which metric (latency, cost, tokens, completion, or errors) crossed the baseline threshold so the offending commit can be identified before merge.
Evaluations judge whether the agent produced the right answer. Regression testing tracks whether the agent's behavior changed in a way that breaks production parity — latency going up, cost going up, completion rate dipping, error rate rising, or token spend growing. BenchVault pairs naturally with eval suites by adding the operational regression layer evaluations typically do not cover.
Sign up to receive an API key, POST your first measurement, and BenchVault auto-creates the baseline. From the second measurement onward, every run is tested against that baseline and a passed result plus any violations are returned inline — so regression gating starts on the very next CI run.