Tl;dr; its reinforcement learning. The best ideas are often the simplest to grok. RL is in that category. The also (invariably) end up having some kind of control system at their core. From thermostats to btc hash difficulty to chatGPT. Pattern pops up everywhere.