What you call entitlement sounds to me something more like self-respect. If I was asked to show the last 30 days of my code to a random engineer from another company to prove I deserved my job, I'm pretty sure I'd quit on the spot. (Though if I'd worked at Twitter I'd have gotten out months ago; I imagine the people staying through today have fewer options for whatever reason.) Luckily there's still plenty of work for programmers at companies that understand that impact isn't usefully measured in lines of code.
My comment was more about spending Tesla money on Musk's personal projects. I also think it pretty insulting to have to justify your job to some random engineer from Tesla.