United States presidential primary
There is no provision for the role of political parties in the United States Constitution, since the Founding Fathers did not originally intend for American politics to be partisan. In Federalist Papers No. 9 and No. 10, Alexander Hamilton and James Madison, respectively, wrote specifically about the dangers of domestic political factions. Thus in the first two presidential elections, the Electoral College handled the nominations and elections in 1789 and 1792 that selected George Washington. The beginnings of the American two-party system then emerged from Washington's immediate circle of advisors. Hamilton and Madison, who wrote the aforementioned Federalist Papers against political factions, ended up being the core leaders in this partisanship: Hamilton became the leader of Federalist Party while Madison co-helmed the Democratic-Republican Party with Thomas Jefferson.
The Federalist Papers
The authors of "The Federalist" intended to influence the voters to ratify the Constitution. In "Federalist No. 1", they explicitly set that debate in broad political terms:
It has been frequently remarked, that it seems to have been reserved to the people of this country, by their conduct and example, to decide the important question, whether societies of men are really capable or not, of establishing good government from reflection and choice, or whether they are forever destined to depend, for their political constitutions, on accident and force.