Question 1: It's B.
The quoted text in 4.2.4 applies to ALL flak attacks, not just aircraft AA. Distinctions between aircraft and ground flak are delineated later in the section. If you're going to use that justification for restricting flak attacks only to formations that are being targeted by the aircraft, then you have to apply that to ground formations as well. Obviously, that's not intended. All AA weapons retain the ability to make flak attacks unless explicitly noted otherwise (broken and marching, for instance).
For a bit more context...
I think "defensively" is in a descriptive clause and not intended to be actual rule material. I'd also argue that is probably meant in the sense of "in reaction to an attack" rather than "directly defending itself" and that its purpose is emphasizing the lack of choice and passive nature of the the flak attack, c.f. 4.2.3.
As long as I can remember, if you stop in the fire arc of an enemy aircraft's AA, it gets to attack. I can't recall it ever being questioned. In fact, during BL playtesting there were extensive discussions about the 45cm FA AA on the Helltalons being placed at the board edge in a way that the overlapping fields created a huge AA umbrella. That led to similar discussions of the Phoenix bombers using a tactic with a formation turned in at a target like this:
_._
/|\
So that on the opposite side of the target there was a large fan of AA from their overlapping FA AA arcs.
==
Question 2: No air-to-air AA attacks happen during disengaging. Aircraft disengage simultaneously so they can never end a move in enemy aircraft AA range and arc. The "board edge" sentence about shooting at disengaging aircraft is in the paragraph describing ground unit flak firing at "flyby" targets. That doesn't apply to air-to-air. Aircraft AA does not get to do that.
==
mattthemuppet wrote:
another bit of the rules after the section Ginger quoted (it's late and I can't be arsed to find it

) states that aircraft can only fire their AA weapons when
a) intercepting/CAPing another aircraft fm
b) being intercepted/ CAP'd by an aircraft fm.
As far as I know, there is no such text.
You might be thinking of 4.2.3, when it makes a distinction between active, intercepting AA attacks by aircraft and reactive flak attacks taken by both aircraft and ground units, but it does state explicitly that aircraft get flak attacks:
Quote:
Aircraft can shoot at other aircraft either when making a flak attack (see 4.2.4) or when attacking as part of an interception action.
Or you might be thinking of the explanatory note that aircraft on ground attack do get to attack interceptors before the interceptors attack:
Quote:
Note that aircraft carrying out a ground attack mission that are armed with AA weapons may shoot at enemy interceptors that fall within the AA weapon’s fire arc.
But that's an explanatory note, a clarification, that it does apply, not an implicit restriction that it only applies in that case.