
There are some fighters and corvettes (and a destroyer in a second group not visible in the screenshot) at Ship Defence duty for my destroyer heading for an enemy installation. Group assignment is displayed in the right panel, Subordinate Control section.
When the group starts arriving to a bit longer than the main battery range, the ship defence force starts throwing themselves onto defence platform (indicated by blue target cross icons around the closest defence platform). The rest is not yet engaged, but they will once they get in range.
This is clearly not the expected behavior. Ships assigned to defence are supposed to protect their assigned target from attacks, not engage in bombing runs (besides, they are not even equipped for such a run) -- unless ordered to do so directly and implicitly. I've seen it time and again, light ships on defence duty committing suicide on defence platforms, stations and capital ships.
There is specific order for exactly that, I believe. 'Bombard for commander', specifically. But clearly not 'Defend commander'.
To date, I have found no way of dealing with that. I have to literally remove them from their defence duty, leaving the ship open to light craft strikes (thankfully, these are disorganized even en masse -- though that is not a good thing, either) and either assign them to 'Follow', passively exposing themselves to attacks of approaching craft (unless ordered to attack those directly), or assign them to fly away to some quiet spot to save them.
Perhaps there is an ingame behavior script that forces them to keep away from targets they are not fit to deal with -- or at least not attack those specifically? Maybe a mod of some kind?

