Vercel Deployment Gate
Fail the build when architecture drops below thresholds. Note: in local mode the gate URL is localhost — Vercel's cloud runner can't reach it, so use a self-hosted/in-job runner (hosted webhook on the roadmap).
NOT SCANNED
Run a PRISM scan first (GREEN → Cross-Layer) to enable gate evaluation.
Gate Configuration
40 (permissive)90 (strict)
https://your-prism/api/vercel/gate?minScore=70&maxCycles=0&branch=main&apiKey=YOUR_PRISM_API_KEY▲ Vercel Setup Instructions
1
Copy the gate URL above
2
In Vercel → Project Settings → Deployment Protection → Add Custom Protection
3
Paste the URL, set "Block if not 200"
Alternative: vercel.json (conceptual)
{
"deploymentProtection": {
"customEnvironments": [
{
"url": "https://your-prism/api/vercel/gate?minScore=70&maxCycles=0&branch=main&apiKey=YOUR_PRISM_API_KEY",
"requiredStatus": 200
}
]
}
}Note: conceptual config — check Vercel docs for current deployment protection API.
GitHub Actions Alternative (most reliable)
name: PRISM Architecture Gate
on: [push]
jobs:
architecture-gate:
runs-on: ubuntu-latest
steps:
- name: Check PRISM gate
run: |
STATUS=$(curl -s -o /dev/null -w "%{http_code}" \
"https://your-prism/api/vercel/gate?minScore=70&maxCycles=0&branch=main&apiKey=YOUR_PRISM_API_KEY")
if [ "$STATUS" != "200" ]; then
echo "PRISM gate failed (HTTP $STATUS)"
exit 1
fiREADME Badge
Live preview: