Why AI Code Fails?