# Locking an Overlay

Locking makes one completed overlay run the overlay's official output for its forecast version. Views using the official output read that run; an explicit run selection can show a different run.

:::note[Beta: Agent mode]
Agent mode is in beta. Available actions depend on your workspace and permissions. If an action is unavailable, the assistant can explain how to do it in the app.
:::

## Lock a run

1. [Run the overlay](/overlays/running-overlays) and wait for the status **Run Complete**.
2. Click the lock button (padlock icon, tooltip **Set as locked**) in the upper-right toolbar. The run becomes the overlay's locked run for this version.

You can also lock an earlier run: in **Run History**, right-click the run and select **Lock this run**. The locked run is marked with a padlock.

## What locking does

* Makes the run the official overlay output that charts, comparisons, and reports read.
* Prevents new runs of this overlay on this version, so the result stays stable.
* Applies to one overlay in one forecast version. An overlay [copied into another version](/overlays/copy-to-version) is locked or unlocked there independently.

## Unlock and run again

To replace a locked result, unlock the overlay, run it again, and lock the new run.

* To unlock, click the lock button again (tooltip **Clear lock**), or right-click the run in **Run History** and select **Clear lock**.
* If you click the run button on a locked overlay, a **This overlay is locked** dialog appears. Click **Unlock & run** to do both in one step.

## Run vs. lock

| Action | What it does | Can you undo it? |
| --- | --- | --- |
| **Run** | Computes the overlay's effect on the baseline. | Repeatable while the overlay is unlocked. |
| **Lock** | Makes a completed run the official output. | Yes, by unlocking. |

## Lock or unlock with the assistant

In **Agent** mode, ask the assistant to lock a specific completed overlay run in its version, or to unlock that overlay. Each action requires you to click **Allow** or **Deny**. Galdera only locks a successful run that belongs to that overlay and version and was computed against the version's current locked baseline; a run computed against a different baseline is refused. Unlocking doesn't start or cancel a run.
