In our last session Diana, the party's ranger ordered her cougar companion to perform a task on its own (completely related to the companion's trainings).
The first one was completely safe in terms of direct danger (scouting) , but the failure could bring costs later on. (Detecting a presence of a nondirect threat in the area). After short discussion it made sense to us, fiction-wise that the ranger would have to analyze the cat's findings so she would be an essential part of examining the terrain , which triggered the discern realities move. In the meantime the party was in the middle of splitting loot and discussing the battle they took part in recently.
The second situation was much more direct - Diana wanted her companion to attack a person stealthily. The trouble lay with the person being very far away. I couldn't really consider the ranger as part of the process. I was puzzled with what to do - I considered a completely fiction-based resolution which seemed arbitrary - I for one wasn't satisfied with the idea of just telling her that the pet failed or succeeded. We ended with a defy danger trigger for the ranger which left a bit of a sour aftertaste in all our mouths. In the meantime the party moved into the opposite direction, walking towards a location they wanted to visit.
I wonder if there is a better, more Dungeon World way of resolving these situations.