Recovery, undo, and automation