Add worker state diagram documentation.