In my last 2 games the AI begin aggressiveness too early and don't offered any cease-fire after the first contact. I begin a new game thought that it was random but it was not random. This is annoying because my main focus is technological victory because military victory is even more expensive...
https://ibb.co/hKXLnVH
AI diplomacy
Re: AI diplomacy
If you are playing "hard" (or "cheating") then you may have to ask. You will always get a ceasefire treaty but it may not last the full 20 turns. Easier levels should always offer the treaty.