liquidexil
I don't think this was an accident. Internally, Amazon traditionally had very different methods for authenticating and authorizing users versus systems, and it was a massive pain. Switching to IAM roles relieved some massive pain-points.
In the future I'd advise your friend to read over any contracts, and ask about anything you don't understand. Reading it over with a lawyer may also be beneficial. Your friend is in an unfortunate situation, but at this point it's probably too late to fix.
Interestingly, in the 1900s this was the goal of industrialization. The idea was that everyone would benefit from this improved machinery, and we would all be living lives of luxury and working 10 hours a week by now. Our focus on everybody wanting/needing a job is a relatively modern philosophy. (circa 1940 WW2, AFAIR)
As far as future AI developments go, I can't see the future. But just to comment on lawyers in specifics, a lawyer these days can handle more than triple the cases now than they could even 15 years ago thanks to existing tools and we don't have 3x the number of lawsuits. These jobs are already disappearing.
I don't have any answers, so I'd encourage you to explore this space now that you've identified this dissonance in yourself. And if you figure out any solutions, let me know!