Path-Dependent Adaptation