Nature, Published online: 13 November 2024; doi:10.1038/s41586-024-08180-8

By examining neural responses from tree shrews performing hierarchical decision tasks with rule reversals, the authors identify a thalamocortical mechanism for regulating cognitive flexibility.