You're also missing that programming isn't the only sector that's going to be upended by automation. Basically every job market is going to be affected by the end of the century.
>If we reach some zen state where truly all has been automated then we’ll have UBI (or some dystopian hellscape)
In the States at least, the resistance to any form of socialism is so strong that I have no faith UBI has a snowball's chance in hell.
>there’s tons of one person businesses you can run if you automate workflows.
and when literally everyone can do it, competition will be brutal. When the stakes are "make it or end up homeless", and everyone is desperately trying to run their own business because corporations don't need to hire anymore, we're in deep trouble