No, most of what you said was right, I reckon. But we can not now say "As long as the light from a source is diverging then the inverse square law does apply" for the following reasoning:
First, imagine a perfectly collimated beam for example a point source of light with a collimating lens focused so that all the rays out of the lens are parallel. (found in spectroscopes but not in car headlights which must obviously have some spread). Now, if a camera frames the lens across the sensor diagonal some distance away then the sensor would be illuminated by so many lux (sorry to introduce actual optical units into this thread ;-). Move the camera towards the collimating lens and sensor is still illuminated by the same number of lux. This is because, in theory and on a clear day, when the rays are
parallel the lumens/square meter, i.e. lux, within the beam are the same at any distance. Thus, just like in the OP, no adjustment in exposure is required.
Now imagine the collimating lens being slightly out of focus such that rays are slightly divergent. Now, as a camera is moved back and forth, the lux varies slightly - but
not by the inverse square law. Indeed, as the divergence approaches zero, so does the variation in luminance or illuminance if you will. That is to say, for small angles of divergence so created, doubling a distance does not necessarily reduce the lux by one-fourth. We could also say that the divergence of the sun's rays is not particularly large here at the surface of the planet, so Glenn is right too.
And so we must conclude, as most have already, that the law
only applies to a point source of light with
no other obfuscatory items influencing its rightful emissive path through the aether ;-)
Angles: the key to all understanding
OT (opposite to the topic) but is there an opposite scenario, where illuminance squares as it approaches a sensor?