fix(jail-lifecycle): make create-only and reject unsafe existing state #23
Loading…
Reference in a new issue
No description provided.
Delete branch "clawdie/fix/jail-lifecycle-create-only"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up corrections for PR #22. This branch is stacked on the reviewed pin
537bf39; it does not amend the reviewed commits.Safety corrections
provisionandcloneare create-only and refuse an existing destination before config, metadata, lineage, permissions, or tenant data changes.destroyno longer synthesizesclawdie:lifecycle=temp. Missing metadata is not proof of a helper-owned partial create.jlsis treated as running/stopped/unknown; command failure stops cleanup/destroy before mutation.verifycompares normalizedclawdie:ipandclawdie:gwagainst expected configuration.--kindaccepts onlyjail-alias;jail-vnetandbhyveare rejected before mutation.Regression coverage
scripts/tests/test-jail-lifecycle.shnow covers active and stopped re-clone, create-only provision, protected lifecycle/tenant/binary preservation, untagged destroy refusal, failingjls, IP/gateway mismatch, and unsupported kinds.Checks
Pull request closed