[WIP] agent: restart

—
Does the restart logic get implemented in a subsequent changelist?