This is indeed a close friend of YAGNI. To my mind, “leave the wolf” is specifically about accepting that it’s OK if the problem at hand has a simple solution, resisting the urge to complicate things until the complication is a problem — to turn the situation into a logic puzzle.
“Maybe we should grab those groceries on the way there…” “Nah, leave the wolf.”
The idiom applies to those times when you have a choice, to •realizing• when you have the choice of making things easy.
It’s not about wolves that are attacking you. [Aside: wolves rarely attack humans unless threatened; they are much maligned that way.] It’s about (as in the comic) when the wolf is optional, it’s easy without the wolf, and you realize you can just leave the wolf and it’s •fine•.
In software, the wolf often takes the form of putative requirements that have become untethered from the problem they solve. Leaving the implementation team about goals and context creates the freedom to leave the wolf; giving the implementation team a rigid design or feature checklist leaves them needlessly paddling the boat across the river multiple times.
although there are probably a minority of situations where the team gets to the other side sans wolf and realize that the wolf was keeping the local rabbit population under control, etc
@inthehands Eat the wolf. When you have to cross the next river, and there's another wolf waiting on the river bank, you can eat that one two. Then you'll be ready for all the "two wolves inside you" jokes.