A thermodynamic limit constrains complexity and primitive social function