Refactor: scheduler: use struct for action history info
This will make it easier to functionize parts of unpacking