This should probably only read `"TODO: Mark this agent as running"`.  The job type should handle setting the running state because we can't guarantee that the task(s) will start running immediately.  This is why I had that third WorkState before which if I'm remembering correctly we cover with the agent just being assigned to the task now and the task's state not being set.