Refactor: scheduler: make unpack_migrate_to_success() take struct action_history
... for simplicity. Also, add a doxygen block.