X_PIN_BASE_MISSING
Means
pin-raises had no origin/main to compare against, and fetching it failed
Typical cause
the same checkout X_BUDGET_BASE_MISSING names, for the pins tables
Fix
git fetch --no-tags --depth=1 origin +refs/heads/main:refs/remotes/origin/main, then bun run pin-raises