An animal's survival hinges on its ability to integrate past information to modify future behavior. The nematode Caenorhabditis elegans adapts its behavior based on prior experiences with pathogen exposure, transitioning from attraction to avoidance of the pa... ...