Plan and Apply Consistency in Spacelift

Last updated: November 23, 2026

This article explains when the changes Spacelift applies are guaranteed to match the plan you reviewed, and when a fresh plan is made instead.

Within a tracked run, apply uses the plan you reviewed

After a tracked run finishes its planning phase and waits for confirmation, Spacelift encrypts the run's workspace and uploads it to object storage. The workspace includes the saved plan and the .terraform directory. When you confirm the run, or it's confirmed automatically, the apply phase restores that workspace and applies the saved plan.

For OpenTofu and Terraform stacks, this means the apply makes exactly the changes shown in that run's plan.

There are exceptions for some tools:

  • Pulumi: Planning runs pulumi preview, and applying runs pulumi up --refresh. Pulumi works out the changes again during apply, so they can differ from the preview if your infrastructure changed in between.

  • Terragrunt: By default, Spacelift doesn't use the saved plan file during apply, because it may contain mocked outputs. It plans again instead. To reuse the saved plan, turn on Skip replan in the stack settings. Only do this if you're sure no mocked outputs will be applied.

Spacelift keeps a run's saved workspace for seven days. If an unconfirmed run goes seven days without any change, it's discarded.

Proposed runs are previews; they never apply

A proposed run, such as the run on a pull request, shows what would change. It never applies anything, and its plan isn't carried over to a later tracked run.

Promoting Proposed Runs

You can promote a proposed run in two ways:

  • In the UI: Click Promote on the proposed run. On GitHub, you can also click Deploy in the pull request's Checks tab.

  • With the API: Call the runPromote GraphQL mutation.

Promotion starts a new tracked run on the same commit, and that run makes its own plan. If your infrastructure, state or variables changed after the proposed run, the new plan can differ from the preview.

Promotion requirements

To promote a proposed run, all of these must be true:

  • Allow run promotion is turned on in the stack's settings.

  • The proposed run's commit is newer than the stack's current commit.

  • You have a role that includes the Promote run permission.

⚠ Always review the tracked run's plan before you confirm it. Don't rely on the proposed run's plan alone.

Atlantis-Style Workflow

In Atlantis, apply uses the plan saved on the pull request. In Spacelift, the pull request plan is only a preview. Deploying starts a new tracked run, whether you promote the run, comment on the pull request or merge. That run makes a fresh plan, and that plan is what gets applied.

Require review before apply

  • Turn off autodeploy on the stack. Tracked runs then wait in the Unconfirmed state until someone reviews the plan and confirms it.

  • Use a plan policy with warn rules for risky changes, such as resource deletions. When autodeploy is on, a warning stops the run from being applied automatically and sends it to Unconfirmed instead.

  • Use an approval policy to require one or more reviews before a run can be confirmed. If autodeploy is on, the approval policy isn't evaluated after planning. Add a plan policy warn rule so that runs stop in Unconfirmed, where the approval policy is evaluated.

Policies and promotion

Policies can't turn an existing proposed run into a tracked run:

  • A push policy decides how Spacelift handles a new Git event, for example whether it starts a tracked run, starts a proposed run or is ignored.

  • A trigger policy runs when a tracked run or task on a stack finishes. It can start tracked runs on other stacks.

Sources