Artificial Intelligence Closed-Loop AI Coding: Automating Quality Gates Beyond Static Analysis for Flawless Software Delivery