Okay after about 20 different failed attempts to crack the hardcoded definitions for CAI stack control I've regrouped and made additional efforts in regards to CAI pathfinding. I do seem to have had some success in that regard. I'm going back to adjust certain other calculations the AI makes in hopes to further increase the stack merge/stack calculations before sieging (so no dumb sieges happen).
However, I am pleased to show these examples of improved stack merge thus far. Though the AI is loathe to merge family members with stacks it seems.
Although, they will also reinforce each other (examples) And note that it is turn 3
19 units in this stack
16 units
19 units
There were other examples too that I saw of large stacks (like india + the boii, though I only noted the boii with interest as india generally starts attacking with a 15 unit stack on my current ai so that's no big surprise). I prefer showing marked improvements like baktria (which is generally extremely passive and not able to stack merge properly) until now the brown stack (to simplify names) was a good example because it generally before uses a max of about 15 units. numidia too, in this regard has improved. The extra 3-4 units make a difference on the battlemap as we all know. Note I've tested a fair number of times so I can safely say this is a real genuine improvement in these respects. AI has also improved it's targeting of towns and become more intelligently mobile. I've noticed definite reinforcements into a single stack during sieges to increase their own odds/and also tactical regroups/merging due to this.
edit: this was just so exceptional I had to add it. I watched the AI use it's ships to move this group of units into position. It then sieged with the family member and is reinforcing with them. note, next images are turn 16 shots (anotherwords 3 years in)
edit2: another very exceptional cai move. it moved an army over to their fleet to act as an emergancy response stack. I was wondering where the invading force came from (after they landed from the sea) to force a seleucid stack to reinforce their besieging stack then eventually regroup in a minor city.
Also if you're wondering since when did the ai use their fleets, this is with the cai platform I'm using atm hence that difference.
If you don't believe me yet, here's another example
we need reinforcements to take this town! (proof to upward text passage^)
but wait! there's more! lets launch a two pronged offensive! one from the sea and the other from land with reinforcements!