Skip to content
Contact us
Insights

Evals as a CI gate for every agent release

  • DateNovember 26, 2026
  • CategoryOperations

In conventional software delivery, a change that has not passed the test suite does not reach production. For AI agents, many organisations still apply a different standard. A prompt is adjusted in a configuration file, a model version is switched, a tool description is reworded, and the change goes live without any systematic check. Unit tests pass, because they test code, and the code did not change. Quality shifts nonetheless.

The first step is to recognise what counts as a release. A new prompt, a different model or model version, a changed tool description and a rebuilt index can each change agent behaviour substantially. Each of them deserves the same gates as a code change. A changed prompt is a release.

An agent release pipeline that holds up in practice has four stages.

Stage one, a golden dataset: a curated set of cases with expected answers or grading criteria, owned by the business rather than by the platform team. It is versioned like code and includes negative cases, such as questions the agent should decline, and attack attempts, such as prompt injection embedded in documents. Ownership by domain experts matters, because they know which cases are representative and which mistakes are expensive.

Stage two, automated grading: deterministic checks come first. Does the output have the required format? Were the expected tools called, with valid arguments? Does the response contain prohibited content? Only then follows model-based grading for criteria such as correctness or completeness. Model-based graders must be calibrated regularly against human samples, because they have their own biases and failure modes.

Stage three, thresholds as a gate: quality, latency and cost are evaluated together. An illustrative gate might reference a specific version of the golden dataset, require a minimum task success rate, allow at most a small regression in percentage points compared with the current release, cap the 95th percentile latency and the cost per task, and block the release on any safety failure regardless of other scores. The concrete values depend on the use case. The principle is that a release which answers better at three times the cost is not automatically progress, and the gate should say so.

Stage four, shadow and canary: a release that passes the gate first runs in shadow mode against real traffic, without its outputs taking effect. Then it receives a small canary share of production traffic. Online metrics, such as user feedback, escalation rates or tool error rates, decide whether the release proceeds to full rollout.

The result is an eval report attached to every pull request that changes agent behaviour. Reviewers see not only the diff but its measured effect, and the release decision becomes traceable.

The limits are important. A golden dataset ages with the business. New products, changed regulations and new customer behaviour make old cases less representative, and a gate that runs against an outdated dataset measures the past. Domain experts need dedicated curation time, budgeted like any other quality assurance effort. Model-based graders make mistakes, sometimes systematically, and can drift when the grading model itself is changed. Shadow deployments require infrastructure that can run two versions in parallel and compare their outputs, which adds cost. And no offline evaluation captures everything, which is why online metrics remain essential.

For a platform team, the next steps are practical. Define which changes count as a release and route all of them through the same pipeline. Agree with the business on ownership of the golden dataset and on a curation cadence. Start with deterministic checks, which are cheap and reliable, and add model-based grading with a calibration plan. Set initial thresholds conservatively and review them after a few releases. Make the eval report a mandatory artefact in pull requests. Finally, plan shadow and canary capabilities for agents with write access first.

The takeaway: no release without an eval report.

cloudstrata builds and operates AI platforms for enterprises. In AI Foundry, our managed runtime for AI agents, evaluation hooks are part of the platform, so evaluations do not have to be rebuilt for every project. Other building blocks include multi-tenant workspaces, routing of models and tools, knowledge retrieval, usage and cost metering, audit trails and central governance. To discuss release gates for your agents, you can arrange a technical introductory conversation via cloudstrata.io/contact.

CONTACT

Let's talk about your project

Describe your use case. You get a concrete next step — not a sales pitch.

We reply within one business day.

Follow Cloudstrata on LinkedIn and Instagram to stay up to date with our work and openings.

Details used only to respond. Data privacy

Evals as a CI gate for every agent release | cloudstrata