AI-generated backend code has predictable failure modes. Cleanly detects and prevents all of them.
Happy-Path-Only
No error handling on external calls. No timeouts. No retry logic. No validation. No thought about what happens when things fail.
Security Negligence
Secrets in code. String concatenation for SQL. No auth checks. No rate limiting. Rolling custom crypto instead of using libraries.
Over-Abstraction
AbstractServiceManagerProviderFactory. Generic CRUD wrappers. Repository pattern wrapping an ORM that already IS a repository.
Data Access Sins
N+1 queries inside loops. SELECT * everywhere. No pagination. Missing indexes. ORM .save() in a loop instead of bulk operations.
Observability Theater
console.log as the logging strategy. No structured logging. No correlation IDs. No metrics. Logging passwords and PII.
Structural Smells
God endpoints doing 15 things. Business logic in route handlers. Validation, logic, persistence, and HTTP mixed in one function.