From feeback to planning