Nothing works out, and nothing has worked out. Everything is broken. People who report a strong sense of spirituality tend to look back at the past and say, "I can see now that everything that seemed so terrible at the time was necessary - without all those hard knocks, I wouldn't be here right now, which is exactly where I want to be."
Strictly speaking this view is completely inane. But nevertheless we can define heaven in precisely these terms (cf. C.S. Lewis): from the perspective of holiness, the entire past is transformed and redeemed. This is possible because the past has no substance on its own, and human memory, narrative and affect are malleable and capable of self-transformation
New challenges and misfortunes can be approached in just the same way. This is the meaning of Adaptation