I never got to design a good representation of the entire ecosystem to simulate (external pressure, debt, military and technological advancements, international soft power, etc.).
"Technological advancement" could just be a decrease in the amount of thermodynamic waste created by an economy (or a particular company) as it converts oil/uranium and calories into useful work.
There's another layer of thermodynamics where wealth acts like heat. Moving jobs from a rich (hot) country to a poor (cold) one is like attaching a thermal conductor. Eventually, the two countries reach equal temperature and it's no longer possible to extract useful work (profit) from the heat transfer. AI is probably like an infinitely cold heat sink that can absorb all the heat you pour into it until your heat source reaches absolute zero.