The principal-agent problem is to some extent an intuitive thing that even ancient kings must have thought about.
But what is the first journal paper that has introduced the term "principal" and "agent", and made the first formal economic analysis of the principal-agent problem as a general phenomenon?