guard detection refactored into behavior designer tasks