feat(controller): check the last workdir instruction