With all of his companies struggling to deliver on colossal promises, Musk’s long and escalating pattern of defamatory attacks on critics increasingly made him seem less like an altruistic visionary and more like a thin-skinned, egotistical hype man lashing out at encroaching accountability.