Skip to main content

Module plan

Module plan 

Source
Expand description

Plan file schema and matching for diff --plan-out / apply --plan.

The plan file freezes the set of actionable ops produced by diff so that apply can refuse to run when the live Braze state has drifted since the plan was generated (Terraform-style plan/apply lock).

Structs§

PlanFile
PlanOp
PlanOpsDiff
Result of comparing a saved plan’s ops against a freshly-computed list.
PlanScope

Enums§

PlanOpType
The coarse op classification used for plan locking. Field-level payloads are deliberately excluded so the plan file stays safe to publish as a CI artifact and so the apply-time comparison tolerates benign content edits made between plan and apply.

Constants§

CURRENT_PLAN_VERSION
STALE_PLAN_WARN_THRESHOLD
Warn at apply time when the saved plan is older than this.

Functions§

collect_ops
Convert a DiffSummary into the coarse plan-op list. Skips non-actionable diffs (Tag drift, Custom Attribute metadata-only, Unchanged) so the plan-lock vocabulary matches the set of operations apply can actually perform.