ICCCM
The rulebook for how X applications and window managers talk to each other — famously both indispensable and nearly impossible to follow.
The Inter-Client Communication Conventions Manual was written mainly by David Rosenthal and reached version 1.0 with X11R4 in 1989. Because the X protocol deliberately left policy out, a separate document had to pin down everything clients needed to agree on: which properties a window sets so the window manager understands it, how focus changes hands, and how copy and paste works.
That last part is why X has two clipboards: PRIMARY, filled whenever you select text and pasted with the middle button, and CLIPBOARD for Ctrl+C. The gaps ICCCM left were filled around 2000 by freedesktop.org's EWMH, which among other things standardised virtual desktops.