Skip to main content
For the complete documentation index for agents and LLMs, see llms.txt.

Deployment GatesBeta

Beta
This is coming — this page describes a feature that's still being rolled out and may not be available to you yet.

A Deployment Gate is a test that stands between a new service revision and your callers. Before the revision starts serving, the platform runs it against test cases you chose and checks whether it meets your Evaluation goals. A revision that clears your bar goes live. One that doesn't stays out, and the current revision keeps serving. If you know release gates from CI/CD workflows, this is the same idea applied to a pipeline: nothing ships until it passes.

Use a gate when you want to be sure that a new pipeline version meets your quality goals before your callers get it. You set up a gate on a service, and it runs each time a new revision is about to go live.


How a Gate Works​

Before a revision goes live, the platform replays a Dataset of test cases through it and judges the results against the Evaluation goals you selected. If every goal is met, the revision goes live. If a goal is missed or the platform can't decide, the previous revision keeps serving requests.

Checks​

A gate you set up now has one goal check. It has three parts:

  • Evaluation goals: The goals of the Service's pipeline that the new revision must meet. The pass rule of each goal sets the bar, so you don't enter a comparison or a threshold in the gate.
  • Dataset: The Dataset of test cases to replay through the new revision.
  • Minimum coverage: The share of test cases that must be judged for every goal for the check to count.

For how goal checks work, see Evaluation Goal Checks in Deployment Gates.

Historic Checks​

A gate saved before Evaluation goals can hold checks on a Metric Group's Composite score. Each of these checks has a Metric Group, a Dataset, a comparison, a threshold, and a minimum coverage. The UI shows them read-only with a Historic badge. They aren't translated into Evaluation goals. When you save the gate in the form, the goal check replaces them.

Gate Results​

A gated revision ends in one of these outcomes: passed, failed, or undecided. You can follow the result on the service's Overview tab and in its deployment history.

The result of a goal check lists each Evaluation goal as met, missed, or no data, with its pass rate, and names the goals that blocked the revision. To get a held revision live, improve the pipeline and push a new revision, or override the failed result (see Overriding a Failed Gate Result). Results from before Evaluation goals show their Composite check with a Historic badge.

When the Platform Can't Decide​

A check is undecidable when the platform can't trust its score. This happens, for example, when the scoring run fails, or when the results come from an Evaluator version that the check did not pin. A gate with no checks is also undecidable. If any check is undecidable, the revision doesn't go live, even if the other checks passed. The previous revision keeps serving requests.

An undecidable result is not a quality failure: the platform couldn't judge the revision. After you fix the cause, for example a failed scoring run, you can retry the result. For the steps, see Check If a Revision Went Live.

Overriding a Failed Gate Result​

Sometimes a revision must ship although its gate failed, for example when a hotfix can't wait, a judge gives unreliable scores, or the threshold is set too high. An override puts the held revision of a failed Gate Result live and keeps a record of the decision.

Overriding works like this:

  • Who can override: Anyone with write permission for services in the workspace.
  • Reason required: The person overriding must give a reason. A blank reason is rejected. The reason can be up to 2,000 characters.
  • Which results qualify: Only a failed Gate Result, including a result the platform couldn't decide. A result that passed, or one that was already overridden, can't be overridden.
  • Audit record: The Gate Result changes to the Overridden outcome and keeps who overrode it, when, and why, next to the verdict it replaced. The activation of the revision is recorded under the person who overrode the gate.

The override is refused, and nothing is recorded, in these cases:

  • Another gate run of the same service is still in progress. Wait for it to finish, then try again.
  • The service was deactivated since the revision was held.
  • The service moved on to another revision since the revision was held. Override the Gate Result of the current held revision instead, if there is one.

You can override a failed Gate Result in the platform UI or through the platform API. For the UI steps, see Check If a Revision Went Live.

Rollbacks​

The gate checks revisions that are about to go live for the first time. It doesn't hold a rollback, so you can recover quickly when something goes wrong. A rollback is re-activating a revision that was already the service's active revision at some point. This applies whether or not that revision served a query, and even if it once failed a gate run but later went live.

A revision that never went live is not a rollback. For example, a revision you pushed earlier but never activated is still held by the gate when you activate it.

A revision that is already serving or still rolling out after passing the gate is never held again.