an agent has attempted to achieve a goal , and the actual outcome of the agent 's action has been resolved , so that it either specifically matches the agent 's intent ( e.g. success ) or does not match it ( e.g. failure ) .