arrow_back Back to Catalog
workflows Advanced

Workflow /update

Agent-guided safe workspace update with error recovery. Updated for v1.6.5 decision gates.

The /update workflow provides agent-guided safe updates for the PARA Workspace. Instead of users running ./para update directly and troubleshooting errors alone, the agent walks through pre-flight checks, a dry-run preview, and automatic error recovery.

Commands Overview

/update

No arguments needed — the workflow auto-detects versions and state.

Update Flow

Pre-flight → Dry-run → Confirm → Live update → Verify → Report

1. Pre-flight Checks

The agent verifies 3 things before proceeding:

CheckWhatFailure action
NetworkCan reach GitHub?Suggest ./para install (offline sync)
Git statusDirty working tree?Offer to stash or skip
VersionAlready latest?Inform and ask to continue
DirectionKernel > Repo?Warn: workspace ahead, suggest pull first

2. Dry-run Preview

Runs ./para update --dry-run to show what will change: version bump, migration steps, files to sync. User confirms before applying.

3. Live Update

Executes ./para update. If it fails, the agent diagnoses the error automatically.

4. Error Recovery

Built-in diagnosis for common failures:

ErrorRoot causeAgent action
Network lostConnection dropped mid-pullSuggest offline sync
Git conflictUpstream divergedList conflicts, offer --theirs
Permission deniedMissing chmod +xFix permissions
Rollback triggeredInstall failedConfirm rollback, suggest --force
semver_gte errorLibrary not loadedCheck cli/lib/validator.sh, install

After recovery, the agent retries once. If still failing, it stops and reports.

5. Post-update Verify

Confirms success by checking:

  • kernel_version in .para-workspace.yml
  • Latest entry in .para/migrations/history.log
  • Latest entry in .para/audit.log