Our brains give us the remarkable ability to make sense of situations we’ve never encountered before—a familiar person in an unfamiliar place, for example, or a coworker in a different job role—but the mechanism our brains use to accomplish this has been a longstanding mystery of neuroscience.