Gauge theory origins
The intellectual lineage from the 1865-1867 observation of gauge freedom in electromagnetism, through Hermann Weyl's 1918 unification attempt and 1929 retooling as a quantum-phase symmetry, to Yang-Mills 1954 and the Standard Model. The gauge principle is the template behind every fundamental force in nature.
Definition
Gauge theory's origins trace through three phases that span a century of theoretical physics. The first phase is the observation, in classical electromagnetism, that the four-potential A^μ is not uniquely determined by the field tensor F^{μν} = ∂^μ A^ν − ∂^ν A^μ — adding the four-gradient ∂_μ Λ of any scalar function Λ leaves F^{μν} invariant. This redundancy in the description was first identified explicitly by Maxwell and Helmholtz in 1865 and by Ludvig Lorenz in 1867 (in his now-famous Lorenz gauge condition). At the time it was a curiosity: a freedom in the choice of mathematical representation that seemed to have no physical content.
The second phase is Hermann Weyl's 1918 attempt to derive electromagnetism from a local rescaling symmetry of length — the Eichmaß, German for gauge or measure — which would unify gravity and electromagnetism in a single geometric theory. Einstein flat-out rejected the proposal: a clock transported around a closed loop would, in Weyl's theory, return at a different rate, contradicting the constancy of atomic spectral lines. But Weyl kept the underlying idea, and in 1929 — with quantum mechanics now in hand — he retooled it: the local symmetry is a phase rotation ψ → e^{iqΛ(x)/ℏ}ψ of the complex wavefunction, and the gauge field that compensates this local symmetry is the four-potential A_μ. The construction works. Charge conservation falls out of Noether's theorem applied to the U(1) gauge symmetry, and the entire structure of QED as a gauge theory becomes manifest. The word "gauge" in modern physics is Weyl's, even though the meaning is nothing like the original 1918 length-rescaling.
The third phase is Yang-Mills 1954: the generalisation of Weyl's abelian U(1) construction to non-abelian gauge groups SU(2), SU(3), and beyond. The non-abelian generalisation introduces the self-interaction term g f^{abc} A^b_μ A^c_ν in the field strength tensor — gauge bosons carrying charge under the very gauge group they mediate. Initially shelved because the resulting massless gauge bosons seemed incompatible with the short-range strong force, the construction was rescued in the 1960s by the Higgs mechanism (which gives mass to the W and Z bosons of the weak SU(2)×U(1)) and asymptotic freedom (which explains why QCD's massless gluons confine quarks at low energy). The Standard Model gauge group SU(3)×SU(2)×U(1), with its twelve gauge bosons and the discovered Higgs particle, is the modern incarnation of Weyl's 1929 retooling — and the entire structure traces, through Yang-Mills, back through Weyl, back to that 1865-1867 observation about a redundancy in the choice of vector potential.