Expand description
gtc op env migrate-state <env_id> — archive the legacy
<state_dir>/deploy/ artifact tree (A6 of plans/next-gen-deployment.md).
--apply renames <state_dir>/deploy/ to a hidden
.deploy-migrated-<ts>/ sentinel under the same parent. Contents are
NOT copied into the new env-pack-bound layout — Phase B’s path-flip
handles future writes; the legacy artifacts (plan.json, invoke.json,
adapter handoffs) have no downstream readers.
--apply takes an <state_dir>/.migrate-state.lock flock for the
scan → decide → rename → verify critical section. apply::run does not
participate in this lock today; operators must quiesce live deploys
before running --apply.
Structs§
- Migrate
State Apply Outcome --applyoutcome.- Migrate
State Report --checkreport.
Functions§
- apply
op env migrate-state <env_id> --apply. Re-runs the check, refuses withOpError::Conflictif not clean, then renames<state_dir>/deploy/to a hidden.deploy-migrated-<ts>sentinel under the same parent.- check
op env migrate-state <env_id> --check. Reports findings without touching state.