This point is so obvious it should fit in one post.
Elon Musk’s role is plainly illegal. The “advice and consent” clause of the Constitution is obviously intended to prevent a President from such powerful delegations of authority without explicit Congressional consent.