Generated codeRequire understanding and review proportional to the change.
Generated code should enter the same change-management path as human-authored code. Developers remain accountable for understanding material behavior before approval. Reviewers should not assume generated code is safer because it looks conventional or because the assistant provides an explanation.
Increase scrutiny for authentication, authorization, cryptography, secrets handling, deserialization, file access, data validation, command execution, network boundaries, concurrency, infrastructure-as-code, deployment, security controls, and other changes where subtle errors can become high-impact vulnerabilities.
Check whether generated code introduces unnecessary dependencies, abandoned packages, incorrect versions, unexpected licenses, typosquatted names, or APIs that do not exist. Dependency scanners can help, but reviewers should still understand why a new component is required and whether the source is appropriate.
Use existing repository protections: pull requests, required reviews, CODEOWNERS, branch protection, test requirements, static analysis, secret scanning, dependency review, artifact signing or provenance controls where used, and deployment approval. AI should not receive a bypass merely because it accelerates development.