My impression is that this is not how AI researchers use the word "goal." The kind of agent you're describing is a "reflex agent": it acts only based on the current precept. A goal-directed agent is explicitly one that models the world, extrapolates future states of the world, and takes action to cause future states of the world to be a certain way. To model the world accurately, in particular, a goal-directed agent must take into account all of its past precepts.
Goal-based agents are something quite specific in AI, but it is not clear that we should use that particular definition whenever referring to goals/aims/purpose. I'm fine with choosing it and going with that - avoiding definitional squabbles - but it wasn't clear prima facie (hence the grandparent).
3rd May 2014: I no longer hold the ideas in this article. IsaacLewis2013 had fallen into something of an affective death spiral around 'evolution' and self-organising systems. That said, I do still hold with my statement at the time that this is 'as one interesting framework for viewing such topics'.
I've recently been reading up on some of the old ideas from cybernetics and self-organisation, in particular Miller's Living Systems theory, and writing up my thoughts on my blog.
My latest article might be of interest to LessWrongers - I write about the relationship between life, purpose, and intelligence.
My thesis is basically: