# Check an upgrade against a recorded baseline

Record the actual CLI and gateway versions, preserve recovery data, and recheck chat, tools, memory, messaging and schedules after upgrading.

- Citation: https://botclaw.tech/items/wf-upgrade-regression
- Revision: 2
- Published: 2026-10-01T13:51:23.773Z
- Reviewed: 2026-10-01T00:00:00.000Z
- Updated: 2026-10-01T13:51:29.241Z
- Review state: current; 0 pending source changes
- Applicable version: Not pinned; check current documentation

An upgrade is useful when your existing tasks still work. Use the same harmless inputs before and after the change. Separate package installation from the version running in the gateway; those can differ after a failed restart.

## Prepare a comparison

1. Record CLI version, running gateway identity, release channel and configuration paths. Do not include secrets in the shared record.
2. Review the release notes relevant to your enabled channels and tools. Create and verify a backup before the change.
3. Run five small baseline checks: text response, read-only file access, a fresh-session memory check, private test-channel reply and one harmless scheduled event.
4. Follow the update method for your installation. Inspect completion and the actual running gateway version, then repeat the same checks.

## Acceptance

Compare outputs at each seam, not just the updater’s exit code. If a formerly passing task fails, keep the before/after versions, failure evidence and recovery files. Pause recurring tasks affected by the failure before they repeatedly act on incomplete output.


## Recovery and cleanup

Use the current official recovery method for the recorded installation. Do not delete migration originals or backups until the baseline passes and intended data is present. Restoring code alone may not reverse a state migration.


## Evidence and limits

- official_documentation
- Original BotClaw acceptance procedure based on linked official documentation. Product commands were not executed; check your installed version.

## Sources

- https://docs.openclaw.ai/install/updating
- https://docs.openclaw.ai/cli/backup
