Indexing the performance of social agents. An approach based on social planning