Write down the edge cases your automation cannot handle
No automation handles every situation, and pretending otherwise is how small gaps turn into real problems. Keep a short list of the specific situations your automation is known to handle badly or not at all.
This matters because the person maintaining the automation later — possibly you, possibly someone else — needs to know where the soft spots are without rediscovering them the hard way. Without that list, every edge case gets treated as a surprise, and every surprise costs time figuring out whether it is a new problem or an old, known one. A written list turns "wait, is this supposed to happen?" into "yes, we know about this one already."
I keep mine as a plain note right next to the automation it describes, and I add to it every time something odd happens, even when the fix took a minute.
Try this today: write down the last strange situation your automation handled badly, even if you already fixed it in the moment.