X_UPGRADE_DIRTY_TREE
Means
x upgrade refused a tree with uncommitted changes
Typical cause
git status reports changes, or the directory is not a git repository: a hop must be one reviewable commit, and git is the only state between runs
Fix
git status --short — then commit or stash, and re-run: x upgrade --json