# Deployment Gates Use this as a coverage guide. Apply only gates relevant to the repository/deployment model. ## Release identity - Intended source commit/tag/release known - Working tree/release source acceptable under repository rules - Built artifact/image maps to intended source - Immutable tag/digest available when project requires it - Previous known-good release identified ## Validation - Required CI gates passed - Relevant backend tests passed - Relevant frontend tests passed - Lint/static checks passed or accepted findings documented - Production build succeeds - Container/config syntax validation succeeds ## Runtime/config - Supported runtime versions - Required environment keys present - Production mode/debug settings correct - Secrets sourced from approved location - No secret values printed into logs/report - Networks, ports, volumes and permissions coherent - Resource/disk capacity acceptable where verifiable ## Database/migrations - Current revision known - Target revision known - Migration delta inspected - Existing-data constraints considered - Lock/downtime risk considered - Backup/recovery gate appropriate to migration risk - Rollback compatibility understood - Migration validated on disposable/restored DB where feasible ## Artifact/container/process - Exact image/package exists - Image architecture/runtime compatible - Pull/build succeeds - Services start without restart loop - Health/readiness becomes healthy - Persistent volumes remain mounted correctly ## Reverse proxy/TLS - Expected hostname known - Proxy routes to correct service/port/network - HTTPS works through the real public/internal entry point - Certificate valid for hostname - HTTP→HTTPS behavior correct where intended - Forwarded headers/proxy trust match app assumptions ## Smoke tests - Landing/API health path - Authentication path when safe test account exists - Core protected read path - Core write path only when approved safe test mechanism exists - Frontend static assets/API requests - Critical external service where required ## Logs/observability - No new fatal/repeated error pattern - App/proxy/database logs checked where available - Monitoring/alerts remain active - Backup timer/job still healthy ## Rollback/recovery - Previous release known - Command/workflow documented - Application rollback compatible with new schema - Data restore authority and backup location known for destructive failure - Exact deployed release recorded