thats wrong. AI is hard coded to not rival 100 trust allies EVER! no matter what as long as you are his ally he will tank power projection like youIt's insta-click mutual hate. Once you become the only valid rival target for them, and the alliance breaks for any reason, you get automatically rivalled. The reason for breaking the alliance can be numerous, half of these reasons are UI or AI Logic bugs you can't account for.