Had to do a double check and go through the msglog (
https://tinyurl.com/2xbmpj48). The last mention of the door was indeed me closing it after seeing a wolf through the window for the first time near my cavebin. I was standing in front of the oven most likely making a fire, and to my best recall canceled the action after seeing the wolf to go close the door. Given where I was standing no other wolf should have gotten past me unnoticed to the cave part.
Previous to this incident I had been sleeping in the bed with the door closed, woke up and kept lying down waiting for the sun to rise, then got up, opened the door but didn't go outside but instead started to make the said fire.
It's not out of the realms of possibilities though that I had been sleeping with a wolf inside the cave as when I entered the settlement last the cabin door had been open and I closed it when going inside to sleep

The altercation with the wolves did however take quite some time before coming to an abrupt end.
For the past couple of days they had been milling about square of two away from the settlement. This had been my plan to test their reaction and the possibilities of sheltered hunting if the pack I'd followed on and off for weeks came close enough to my cabin.
Btw. I've had numerous instances of spawning inside the cave wall when arriving to this map square, but given that I was already zoomed in and quite the while passed lying awake inside, so it's probably unlikely that a wolf would've entered the cabin that way.