Good works, I am also trying to solve the horse archers problem and found your posts about the combat tactics. I believe the main problem is still "base_type = light_cavalry" in the HA (horse archers) defination, which complicate the situation in harass tactic and disorganised harass tactic, and probably some other tactics that requires light_cavalry.
For example,
In the original game, harass tactic (with good commander) requires < 75% light_cavalry (LC+Camel+HA), and < 50% HA (Paradox's workaround)
With the mod, harass tactic (with good commander) requires < 75% LC and < 75% Camel, which means this tactic will now be available for a pure light_cavalry flank (e.g. 67% LC 33% Camel), and it feels wrong, when a flank is >= 75% light_cavalry (LC+Camel), I suppose harass tactic would be replaced by disorganised harass tactic.
The question is how to check the percentage of LC+Camel in a flank? It seems that it is impossible to calculate it using the script as the math operation is very limited, and hardcoding long script blocks to match the combinations is just not a good solution, since a "light_cavalry = 0.75" simply works, if HA is not light_cavalry.