The emergence of path-dependent behaviors in cooperative contexts