Portcullis
medievalbritain.com
medievalbritain.com
The Santa Barbara County Courthouse, despite having been constructed in 1926, incorporates such holes and slits. I don't think opposing counsel has ever had boiling oil dumped upon them, but at least the architects (and tradies?) had a bit of fun putting these in.
How do you "ambush" a castle? Perhaps TFA meant "siege"?
That's in contrast to another iconic medieval castle feature, the drawbridge, which drops into the open position, and closing it involves a winch.
And in contrast to simple doors, which are reasonably fast to both open and close, with no winches required, and which are widely used to this day.
Presumably the article's authors then asked themselves under what circumstances a castle would need something very fast to close - faster than a door or drawbridge - and concluded it was for surprise attacks.
If we go beyond Medieval Europe, using hot oil was observed by Josephus in AD 67 [2].
[1] https://www.reddit.com/r/AskHistorians/comments/26l4ae/was_b...
[2] https://en.wikipedia.org/wiki/Early_thermal_weapons#Hot_oil
Give it 8-or-so years and they'll be in real trouble
The 3rd part specifically goes into castles.
https://acoup.blog/2021/10/29/collections-fortification-part...