deploy-prodlisted
Install: claude install-skill seldonframe/seldonframe
# deploy-prod — clean-worktree deploy + Reelier smoke
Vercel's git integration does not reliably auto-deploy main (verified 2026-07-18), and
deploying from the dirty local checkout is forbidden. This is the canonical sequence.
## Steps
1. Get the merge sha: `git fetch origin main` and note the commit to deploy.
2. Clean worktree deploy (env vars are baked at build, so this also picks up flag changes):
```powershell
git worktree add "$env:TEMP\sf-main-deploy" <sha>
Copy-Item .vercel "$env:TEMP\sf-main-deploy\.vercel" -Recurse -Force
Set-Location "$env:TEMP\sf-main-deploy"; npx vercel deploy --prod
```
3. Verify: `npx vercel inspect <deployment-url>` → `target production` + `status Ready`.
4. **Smoke with Reelier (default — NOT the smoke-runner agent):**
```powershell
Set-Location C:\Users\maxim\CascadeProjects\reelier
node dist/cli.js run skills/sf-post-deploy-smoke.skill.md
```
Level-0 deterministic replay: ~1-3s, 0 LLM tokens, per-step receipts in `.reelier/runs/`.
Exit 0 = deploy smoked. This replaces a ~35-60k-token smoke-runner agent dispatch.
5. **Escalation only on divergence:** if a step fails, do NOT immediately re-run — a failed
sentinel usually means the page copy changed (update the skill's assert) or the deploy
is genuinely broken (check `npx vercel logs`). Dispatch the smoke-runner agent ONLY when
the reelier failure needs judgment (e.g. deciding whether copy drift is intentional).
6. If the deploy touched migrations: