Restore a previous guardrail version

  • Updated

Every change to a guardrail creates a new immutable version in Optimizely Opal. Browse the version history to review previous versions and restore any of them. Restore a version directly from the list, or preview it in read-only mode first.

Restoring creates a new version that copies the selected version. The copy includes the rule text, block message, training data, and trained model. Restoring does not modify or delete the original version. When the restored version includes a trained model, the new version is available for activation without retraining.

Open the version history

To view the version history of a guardrail, complete the following steps in Opal:

  1. Go to Agents > Input Guardrails.

    Screenshot of Agents > Input Guardrails with the Input Guardrails tab selected.
  2. Click a guardrail.
  3. Click Version history. The panel lists the current version and all previous versions, each with its status.Screenshot of a version history of an input guardrail with Version history highlighted.

Restore a version directly

To restore a guardrail to a previous version without viewing it, complete the following steps:

  1. Complete the steps in the Open the version history section.
  2. In the Version history panel, locate the previous version you want to restore.
  3. Click More options for that version.
  4. Click Restore this version.

    Screenshot of an input guardrail's Version history with more options displayed for one version with Restore this version highlighted.

Preview a version before you restore it

To preview a previous version of the guardrail before restoring it, complete the following steps:

  1. Complete the steps in the Open the version history section.
  2. In the Version history panel, locate the previous version you want to review.
  3. Click More options for that version.
  4. Click View this version. The guardrail opens in read-only preview mode.

    Screenshot of a Version read-only version with Exit Preview and Restore this version highlighted.
  5. Do one of the following:
    • Click Restore this version to make the previewed version the current version.
    • Click Exit preview to return to the latest version without restoring.

Related documentation

Learn more about input guardrails in the following articles: