I’m glad you still manage have a more positive outlook on the future than I do.
Yes, my perspective is definitely colored by my experience in America, but if you think similar won’t happen elsewhere then I think you’re being overly idealistic - at least when it comes to the full population of the world. Those who enable the powerfully wealthy will certainly do better - at least until those who don’t are no longer much of a threat, and said wealthy no longer need their enablers.
TBF there are plenty of programmers who aren’t good programmers, but keep their job because rarely does anything they do actually affect someone’s physical health.