Understanding how the brain learns and applies rules is the key to unraveling the neural basis of flexible behavior. A new ...