State machine for guard AI