Plan the named configuration
plan and status inspect the host version, marketplace, installed Slopsentral plugins, and target overlay.
They return JSON without writes.
The lifecycle needs Codex CLI 0.134.0 or later.
PRESERVE, DISABLE_UNSELECTED, and REMOVE_UNSELECTED describe unselected-plugin reconciliation.
Authored defaults disable unselected Slopsentral plugins in the overlay instead of uninstalling them.
Foreign marketplaces and plugins remain outside that reconciliation.
Standalone skills use PRESENT, ABSENT, or PRESERVE states.
A different existing skill directory is a conflict.
The retired repository activation field is rejected.
Apply only an owned overlay
apply checks the target before external installation effects.
It rejects a preexisting unmanaged profile file unless the explicit replacement option admits that change.
The resulting overlay selects resources without changing the base user configuration.
An unchanged managed profile returns a no-op without another transaction.
Hook review derives from selected plugin manifests.
The result names HOOK_REVIEW_REQUIRED with the configured policy.
The tool does not write Codex’s runtime-owned hook trust state.
If Codex adds [hooks.state] to a managed overlay, later lifecycle operations preserve that section byte-for-byte.
See hook delivery for trust and consumption limits.
Preserve preimages and interruption state
Before a file change, the lifecycle creates a unique backup directory and saves the preimage’s bytes, length, mode, and digest. A missing target uses an explicit absent-file case. The transaction starts asPREPARED_TRANSACTION before the atomic target write.
It advances to COMMITTED_TRANSACTION after that write completes.
A prepared transaction can therefore describe an interrupted operation before or after the target changed.
Rollback examines the target against both recorded images.
If it finds the intended after-image, it completes the saved transition before it restores the preimage.
If it finds the original image, it reports that restoration already occurred.
A later unrelated edit produces PROFILE_CONFLICT without replacement.
Rollback creates another versioned transaction, so its own preimage supports a later reversal.
Transactions cover the TOML overlay.
Native marketplace effects and new standalone skill installations remain in effect.
The profile guide gives exact backup paths, rollback arguments, and exit statuses.
Lifecycle tests exercise accepted operations, interruption states, and conflicts in disposable directories.