I don't see a future where it completely takes over to that point, even 10 years down the road, for the exact reasons you already outlined.
What I think is more likely to happen is, it starts to move that way (already is actually), products actually stop functioning, companies start bleeding customers and nobody in said company can fix or correct this. A new and exciting field of consultants and contractors called something innovative like "AI auditors" springs up solely to come unfuck companies like this (or those companies die).
I'm very seriously considering starting one of these "AI auditing" companies. Which is really just a group of developers/engineers that actually understands OOP and can get codebases back into, at the very least, workable states. And charging big bucks for this. But I think we are still a few years out from this being lucrative (and I am certain it will be incredibly lucrative)