The social production of merit