Upgrade checklist
Use this page when you want a repeatable, low-risk upgrade runbook.
Interactive team checklist
- Update the global
alCLI.- Homebrew:
brew upgrade conn-castle/tap/agent-layer - Script:
curl -fsSL https://github.com/conn-castle/agent-layer/releases/latest/download/al-install.sh | bash
- Homebrew:
- Confirm the installed version:
al --version - Optional: pre-warm cache for offline or constrained runners:
al upgrade prefetch --version X.Y.Z - Preview changes before any writes:
al upgrade plan - Apply changes:
al upgrade - Validate generated outputs and connectivity:
al sync
al doctor - If needed, restore a snapshot:
al upgrade rollback --list
al upgrade rollback <snapshot-id>
CI checklist (managed updates only)
Use this when CI should apply managed template updates without memory/deletion changes:
al upgrade --yes --apply-managed-updates
al sync
al doctor
Only add these flags when intentionally applying those categories:
--apply-memory-updates— apply updates to files underdocs/agent-layer/--apply-deletions— delete unknown files under.agent-layer/anddocs/agent-layer/except.agent-layer/tmp/--apply-tmp-deletions— destructively delete files under.agent-layer/tmp/(ephemeral agent run artifacts; not snapshotted, not rollback-restorable). Requires--yesand is independent of--apply-deletions.
Tmp deletions are destructive and not rollback-protected
--apply-tmp-deletions permanently removes everything under .agent-layer/tmp/. The pre-upgrade snapshot does not capture tmp content, so al upgrade rollback <snapshot-id> will not bring back deleted plans, reports, or scratch files. Use this flag only when you are sure CI does not host any in-progress agent artifacts you need to keep. See Ephemeral artifacts under .agent-layer/tmp/ for the full contract.
Shell quick paths (macOS/Linux)
bash / zsh
brew upgrade conn-castle/tap/agent-layer || \
curl -fsSL https://github.com/conn-castle/agent-layer/releases/latest/download/al-install.sh | bash
al upgrade plan
al upgrade
fish
brew upgrade conn-castle/tap/agent-layer; or \
curl -fsSL https://github.com/conn-castle/agent-layer/releases/latest/download/al-install.sh | bash
al upgrade plan
al upgrade
Notes
.agent-layer/al.versionis required for supported usage.al upgrade prefetchis the recommended cache warm-up command for offline/air-gapped workflows.- Snapshot IDs are JSON filename stems under
.agent-layer/state/upgrade-snapshots/(runal upgrade rollback --listto discover them quickly). - Snapshots intentionally exclude
.agent-layer/tmp/. Rollback will not restore tmp files — if you have in-progress agent artifacts under tmp that must survive an upgrade, copy them out before runningal upgrade. - For policy guarantees and release migration rules, see Upgrades.