Before a change
- Update the StackSpec, not generated artifacts.
- Run
stackkit validateandstackkit generate. - Inspect
stackkit plan --jsonand stop on any readiness blocker. - Review the output and obtain the local owner’s approval before a mutating command.
- Run
stackkit verify --http --jsonafter the change.
Add a workload to an existing workspace
Selecting a new workload does not require re-runningstackkit init or replacing the initial StackSpec. Edit the workloads block of the existing StackSpec, then establish secret custody before regenerating:
stackkit secrets materialize as the explicit step between selecting a workload and running generate. Establish custody, then generate and apply; do not invent secret values.
Remove an applied workload
stackkit remove removes one exact applied workload with the local owner’s approval:
absent readback for the exact requirement, instance, and applied artifact digest. The request, result, and bounded terminal evidence are persisted below .stackkit/evidence/removal/.
Target one placement on a multi-node result
The verified apply summary exposesplanHash, appliedRequestDigest, and a secret-free appliedWorkloads list. Each entry is a deterministic, hash-bound identity that binds the workload, runtime owner, placements, execution channel, and referenced artifact digests. Use it to identify what a later removal should target; it is neither removal authorization nor absence evidence on its own.
Since v0.21.12, when the apply result placed a workload on more than one Site or node, name the one exact placement this removal owns. Take the values from the appliedWorkloads entry:
appliedRequestDigest.
Add --terminal-evidence-json when you need a machine-readable removal record on stdout.
Common workflows
Change StackSpec intent
Edit released intent and regenerate governed output.
Back up and restore
Create an idempotent snapshot and practice staged recovery.
stackkit --help and the command-specific help for the installed version before performing a backup, restore, upgrade, or removal.
For an agent-connected workflow, see the MCP connector.