Rafiq has just joined a food-delivery company in Old Dhaka. Nobody hands him a map of the quick lanes, because no such map exists: the lanes that are fast at noon are blocked by a wedding procession at six. So he does what everyone does. He tries a lane, and at the end of the day the app tells him how many orders reached the customer on time. After a few weeks he knows, without being told, which turn to take at which corner and at which hour. Nobody taught him the right answer for each corner. The ratings did.
Now a sadder story. K-Pay is a mobile wallet that exists only in this lesson. Two years ago its fraud model caught nine out of every ten fraud attempts. This month it catches six. Nobody has touched the code and the servers are healthy. The world simply moved: fraudsters learned how the model thinks, and customers started paying in ways the training data never contained.
These two stories belong in one chapter because they are two halves of the same question: what happens after a machine has to act in the real world? The first half is about learning from consequences, which is reinforcement learning. The second half is about everything that keeps a model alive once it is running, which is MLOps, drift and, because attackers read the same research papers you do, security.