Hooman... Ai coding... nightmares... The horror!
If you want to make a good AI that can progress through researches in a sane way, you either need to put a lot of checks or do a more streamlined thing to reduce checks... but the streamlined thing (which I prefer) either doesn't work, or I couldn't get what was wrong with it in... 1 month?
Of course... basic AI that just builds without any restrictions, but which never looses people or food and doesn't need to research anything is not entirely hard... but is very repetitive and static :|