Acting under uncertainty: Prediction, contingency, and the function of magic | Synapse