This happens far too often.
Walk into office.
Complain to co-workers about a technical problem that makes no sense
In the course of explaining it, realize what's happening and how to proceed.
Apologize to co-workers about using them as rubber ducks.
Clearly I need to optimize by first explaining to an actual rubber duck.
(For those who aren't software engineers, rubber duck debugging is a system where you tell your problems to an inanimate object, and realize you knew the solution already: https://en.m.wikipedia.org/wiki/Rubber_duck_debugging )