Planning and implementing adaptation actions