The bug
Chunks check mob spawning conditions after removing blocks replaced with /fill BUT before re-calculating light levels: therefore, mobs will spawn in what should be broad daylight after /fill
-ing a large area
How to reproduce
Create a superflat world and stand on the ground
Type
/fill ~100 ~1 ~100 ~-50 ~1 ~-100 stone
Spam
/kill @e[type=!player]
until most things are deadType
/fill ~100 ~1 ~100 ~-50 ~1 ~-100 air
You will see hostile mobs spawning around you even when it has sky access.
Can confirm.