> Nothing. Evolution came about randomly, not by intent, so it has no goal.
Evolution created a goal from nothing, which is self-replication. It works on many levels - self replicating DNA, self replicating cells, self replicating ideas (memes), self replicating ecosystem, even the economy has become a self replicator.
But if the goal is to use evolution as model for generating AGI, then the problem is narrowing down all the surviving species to the ones that result in AGI, as opposed to a thousand other successful traits.
That's pretty meaningless - in that case the word goal doesn't have a meaning because everything is just as random as evolution, which isn't very random but whatever.