Artificial Intelligence Closed-Loop AI Coding: Automating Quality Gates Beyond Static Analysis for Next-Gen Development