sequencer: refactor check_todo_list() to work on a todo_list