> ## Documentation Index
> Fetch the complete documentation index at: https://docs.traceport.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Versioning and releases

> Understand draft locks, configure required evaluations, publish a prompt version, and inspect the evidence recorded in production history.

Use **Release** to choose which saved prompt version is in production. Each version must pass the prompt's required evaluation policies before you can publish it.

This guide continues with **Support ticket triage** from the [Quickstart](https://docs.traceport.ai/prompt-studio/quickstart.md). It uses the completed **Support triage v1** evaluation and the **Support triage v2** candidate from [Results and comparison](https://docs.traceport.ai/prompt-studio/results.md#prepare-a-comparable-candidate). Use the synthetic example while learning the release flow.

## Understand version states

| State | What you can do |
| - | - |
| Editable draft | Change messages, variables, and defaults in **Build**, then click **Save changes**. Saving keeps the same version and does not publish it. |
| Evaluated version | Starting a dataset evaluation makes the version read-only. You can inspect it, run it again, and use its saved evaluation evidence for release checks. Use **New draft** to edit a copy. |
| Production version | The version currently published for this prompt. It is read-only. Publishing another version changes the production selection and adds a history entry. |

Selecting a version in **Build** or **Version readiness** only changes what you are viewing. Click **Publish version** after the checks pass to change production.

See [Save changes or create a new draft](https://docs.traceport.ai/prompt-studio/editor.md#save-changes-or-create-a-new-draft) for the editing workflow. Previously evaluated versions stay read-only after another version replaces them in production.

## Before you publish

An organization owner or admin must create policies, save release settings, and publish versions. Other users with access can inspect readiness and results.

You need at least one completed dataset evaluation with a **required** rule. A run with only advisory rules, or no evaluation rules, cannot establish a release policy. If you have not prepared this evidence, [run the eight-ticket evaluation](https://docs.traceport.ai/prompt-studio/testing.md) first.

> [!WARNING]
>
> The example's **Contains JSON** rule only checks whether JSON can be found in the response. Both v1 and v2 passed all eight cases even though v1 assigned the wrong priority to the password-reset ticket. Use rules that check the behavior you need before relying on release checks for a real deployment. Review the [recorded mismatch](https://docs.traceport.ai/prompt-studio/results.md#inspect-the-password-reset-change).

## Set the required evaluations

Release settings apply to the whole prompt. You configure them once, then check each version against the saved selection.

**1. Create a policy from saved evidence**

Open **Release**, select **Support ticket triage**, then open **Release settings** and click **New policy**.

In **Source evaluation**, select the completed **Support triage v1** run. The policy uses the dataset snapshot and evaluation rules saved with that run. Its label comes from the source evaluation's name.

**2. Choose the thresholds**

For this example, enter:

| Setting | Example value | What it checks |
| - | - | - |
| **Minimum coverage** | `100`% | Every case has all required scores. A generated output alone does not count as fully scored. |
| **Minimum pass rate** | `100`% | Every fully scored case passes all required rules. |
| **Maximum regressions** | `0` | No case that passed in current production fails in the candidate. This comparison starts after the first release. |
| **Require approved AI judge calibration** | Checked | Any required LLM judge must have approved calibration matching the judge settings saved with the evaluation. |

This example uses a deterministic rule, so it needs no AI judge calibration. The checked option does not add an AI judge to the evaluation.

**3. Save the prompt's requirements**

Click **Create policy**. Confirm the new policy is selected, then click **Save release settings**.

Creating a policy and saving the required selection are separate actions. Until you save, the selection shows **Unsaved changes** and the other release tabs are disabled.

![New release policy for Support triage v1, with minimum coverage and pass rate both set to 100 percent, maximum regressions set to zero, and AI judge calibration required.](https://mintcdn.com/traceport/qnQpjm16A9r4NqtM/images/prompt-studio/support-triage-release-policy.jpg?fit=max\&auto=format\&n=qnQpjm16A9r4NqtM\&q=85\&s=fe77a28cc58b9f4612c3ca3e5a201351)

The policy uses the completed v1 evaluation's dataset and rules, with 100% coverage, 100% pass rate, and zero allowed regressions.

> [accordion] Change requirements or require more than one evaluation
>
> Each policy is a saved version of the requirements. To change thresholds or use a newer dataset or rule snapshot, click **New policy**, select an appropriate completed evaluation, and create another policy version. Select it and click **Save release settings**.
>
> You can require up to 20 policies, with one selected policy for each dataset-and-rule snapshot pair. Selecting another policy for the same pair replaces the previous selection. Every selected policy must pass before a version can be published.
>
> Policy versions, prompt versions, and release-settings revisions have separate numbering. A policy labeled **Support triage v1 · v1** can check prompt v2 when its evaluation uses the same saved dataset and rules.
>
> If someone changes release settings in another session, click **Reload selection** and review the current requirements before saving again.

## Publish the first version

**1. Select the version and its evaluation**

Open **Version readiness**. Set **Version to release** to **v1** and confirm **Current production** says **No version published yet**.

Under the required policy, set **Evaluation for this version** to **Support triage v1**. The selector lists completed runs for this version with the policy's saved dataset and rules. A matching run may already be selected.

**2. Inspect the checks**

Confirm scoring coverage and case pass rate are both `100%`, with `8 of 8` cases scored and passed.

**Regressions** shows **Not required** because no production version exists yet. **AI judge calibration** shows **No approval missing** for the deterministic-only example; this does not mean an AI judge was calibrated.

**3. Publish**

When the summary says **Ready to publish**, click **Publish version**.

Confirm **Published to production** and **Current production: v1**. The publish action checks the requirements again and records the evidence used for this release.

## Release v2 against current production

Prepare v2 using the [password-reset clarification](https://docs.traceport.ai/prompt-studio/results.md#prepare-a-comparable-candidate), then evaluate it with the same dataset snapshot, rules, model, API key, sampling settings, and repetitions as v1. You can reuse the completed v2 run from the Results guide.

1. In **Version readiness**, set **Version to release** to **v2**. Confirm **Current production** is **v1**.
2. Set **Evaluation for this version** to **Support triage v2**.
3. Set **Production evaluation to compare** to **Support triage v1**. Only compatible runs from the current production version are listed. See [comparison requirements](https://docs.traceport.ai/prompt-studio/results.md#compare-the-candidate-with-its-baseline).
4. Review the check table. This recorded example has `100%` coverage, `100%` pass rate, and `0` regressions. Open either **View results** link to inspect the underlying evidence.
5. When every required evaluation passes and the summary says **Ready to publish**, click **Publish version**. Confirm **Current production** changes to **v2**.

![Support ticket triage v2 ready to publish, with v1 in current production, both evaluation runs selected, all eight cases scored and passed, and zero regressions.](https://mintcdn.com/traceport/qnQpjm16A9r4NqtM/images/prompt-studio/support-triage-release-readiness.jpg?fit=max\&auto=format\&n=qnQpjm16A9r4NqtM\&q=85\&s=d9b4e985fa47ec90a734762234f43aae)

Before publishing v2, Release checks its saved evaluation against the required policy and the compatible v1 production evaluation. These are recorded example results, not guaranteed model outcomes.

## Resolve a blocked release

The summary and **What needs to change** identify missing evidence or failed checks. Resolve each required policy before publishing.

| What you see | What to do |
| - | - |
| **Set release requirements** | Create and select a policy in **Release settings**, then click **Save release settings**. |
| No **Evaluation for this version** is available | Evaluate the selected saved version with the policy's dataset and rule snapshots. A run for another prompt version does not qualify. |
| No **Production evaluation to compare** is available | Evaluate current production with matching cases, dataset snapshot, rules, model, and API key. Match the sampling settings and repetitions too. |
| Low coverage, missing scores, or scoring errors | Open the results, inspect the affected cases, and resolve the scoring errors. Comparisons need every required score in both runs. |
| Pass rate is too low or regressions exceed the maximum | Inspect failed and regressed cases. Refine a new draft and evaluate it before checking release readiness again. |
| A judge needs calibration approval | Approve calibration for the required judge settings frozen into the evaluation. See **Calibrate against labeled examples** under [Test and maintain a rule](https://docs.traceport.ai/prompt-studio/evaluations.md#test-and-maintain-a-rule). |
| Settings changed or checks could not load | Reload the saved requirements or click **Retry checks**, then review readiness again. |
| Checks pass but you cannot publish | Ask an organization owner or admin to publish the version. |

## Inspect production history

Open **Production history** to see which versions were published, when they were published, and which version each release replaced. The table includes cases passed, regressions, and the release-settings revision used at publish time.

In **Evaluation runs**, open the row's menu and choose **View evaluation** to inspect its recorded results. These records describe the evidence used for that release; later requirement changes do not rewrite the earlier decision.

![Production history showing two recorded releases: Support ticket triage v2 replacing v1 and v1 as the first release, each with eight of eight cases passed and an evaluation-run menu.](https://mintcdn.com/traceport/qnQpjm16A9r4NqtM/images/prompt-studio/support-triage-release-history.jpg?fit=max\&auto=format\&n=qnQpjm16A9r4NqtM\&q=85\&s=6a691ccca73afe25b3bf271921dc03c0)

The example history records v1's first release and v2 replacing v1. Both used release-settings revision v1, with eight cases passed and zero recorded regressions.

## Return to an earlier version

To return production to an earlier version, open **Version readiness** and choose that version under **Version to release**. You can also open its version link in **Production history**.

Select its evaluation for each current policy, and select compatible evaluations of the version currently in production. If the required snapshots have changed since the earlier release, prepare matching evaluations for both versions first.

When the earlier version passes the current requirements and shows **Ready to publish**, an owner or admin can click **Publish version**. This creates another recorded release. Opening an old version or its historical evidence does not change production.

For the recorded example, selecting v1 again after releasing v2 checks **Support triage v1** against **Support triage v2**. The current JSON-only policy still passes; the known password-reset priority mismatch is why your real release rules must cover the behavior you intend to preserve.

After publishing, use [Production quality and analytics](https://docs.traceport.ai/prompt-studio/analytics.md) to score new requests and inspect their production evidence.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.