X_SCAFFOLD_GATE_RED
Means
the freshly scaffolded app's own bun run verify went red — or printed a step table this gate cannot match against the declared steps, or reported budgets as skipped rather than green
Typical cause
No waiver and no fix-follow, As of 2026-11: scaffold-smoke runs the app's own bun run setup && bun run verify once (SETUP_COMMAND, GATE_COMMAND in scripts/scaffold-gate.ts), and the FIRST bun run verify is the one that has to be green, because that is all a box gets. The --allow-red budgets allowance is gone and nothing replaced it — x verify's budgets step builds when .x/build-stats.json is missing or stale, so the allowance has nothing left to excuse. budgets is asserted green, never merely not-red: a skip would mean the static build bought nothing and no one would see it
Fix
bun run scripts/scaffold-gate.ts <the scaffolded app> --json, which runs that app's own two scripts; the finding also prints the in-app form to paste