Earth and the Federation was communism. Admittedly an idealist version of it, came about because it was voted in by enlightened voters. But even then the Bell Riots showed that it was capitalism that caused conditions to arise in which the oppressed rose up against the failures of capitalism, and finally end it.
Not sure if you specifically meant something about Mao, but at least be aware of this. It's the most basic theory of communism that capitalism fails, turns into barbarism, and the working class have no option but to revolt to resolve the crisis.
Do you know what the "mass line" concept by Mao is?