The Spaces of Resilience: Learning and Adaptation