A neural mechanism for online discovery of latent contexts | Synapse