I'm not really assuming... but it we are going to assume, I'll assume the sci-fi trajectory and eventually the A.I. self-programming gets smart enough to recognize programming bugs and gets rid of them. It won't be tired or distracted or (probably) as prone to typos, etc.
Then it decides the biological "creators" that coded that buggy code is not "God" and thus inferior for making such simple mistakes. Skynet and T-1000s follow soon. In that Ahhhhnold voice, "Code this right if you want to live."