The wasp found an entry through another window, in another room open in the second floor. It was from the room next door. So, I just closed this other window.
Again, it found an entry from another window. But this time, it started to impress me: it was from a room across the corridor! The wasp flew to the back of the house, found an open window, entered it and mapped to path through the corridor to my room.
I then closed all the windows in the second floor of the house and bet it was over. I was wrong: the wasp came in from the front door, flow upstairs and found the room. It was even capable of doing the path in reverse so it could come in and out of my room.
I closed all the doors and windows on the first floor, but forget to close the small bathroom window. This was enough for the small wasp map an entire new path to my room again almost immediately!
Once it entered my room again, I opened the window again. It was smart enough to use it like it was simply choosing the shortest path.
So, even the small brain of a wasp is able to run "computer vision" algorithms and are fast running "machine learning" algorithms. They are even able to run A* perfectly and merge input from various sensors to perform superb navigation using very little energy, producing almost not heat in a very lightweight package in real time with very low latency!
I'm glad this critter is small. Nature is scary.