Monitor the stack
These lifecycle checks are the supported way to assess the stack itself. StackKits keeps the observation and verification evidence locally and needs no hosted monitoring service. The released Uptime Kuma module is not selected by the initial native v2 StackSpec, so a fresh Basement or Cloud Kit has no generated monitoring address. If you run a separate monitor, add checks only for routes you are authorized to monitor. Protected routes need an intentional health endpoint or an expected authentication response; weakening route protection to obtain HTTP 200 is not a valid monitor setup.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
Inspect an upgrade before changing the server
Use a specific public release so the inspection and the upgrade select the same version. This example uses v0.54.3, the release behind this documentation’s CLI snapshot:- Run
stackkit versionand note the installed release. - Run
stackkit verify --http --jsonand resolve any existing failures. - Run
stackkit upgrade --dry-run --to v0.54.3to inspect this target.
checksums.txt
for its download assets. Compare a manually downloaded archive with the row
for that exact filename and release; a checksum from another version is not
a match.
Review the differences and the release’s compatibility and recovery limits.
Fresh upgrades must be admitted by the embedded Kit policy. If the dry run
fails or the release is not admitted, stop and retain the installed version.
Do not replace the binary or edit the policy to force an upgrade.
When the inspection succeeds and you intend to make the change, run
stackkit upgrade --to v0.54.3, then stackkit verify --http --json.
The upgrade creates a Kopia snapshot and an owner-signed executor recovery
checkpoint, stages rollback data, and then runs the target generation,
apply and verification transaction. Retain the operation ID and its result.
Recover an interrupted upgrade
Resume the exact operation reported by the CLI withstackkit upgrade --recover <operation-id>. Replace the placeholder with
that operation’s ID.
This follows the existing signed journal and checkpoint. It is not a general
downgrade command. Before target Apply, a failed transaction can restore and
verify the previous executor. After Apply, restarting the previous runtime
requires verified activation of the previous data; staging a backup alone
does not authorize it. Follow Back up and restore
and the exact release’s recovery result before restarting an older runtime.
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.