system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5: How is the communist doctrine affected by an increase in automation?

The little I know about communism is essentially about since workers provide the labor they should be afforded more ownership to the means of production.  Once there will be far less workers, and it's more likely those who work on automation will be well compensated or own a portion of it, what is the communist theory towards the rights of those who are put out of work?
gpt
You are supposed to be co-owner of factories.

When they become automated, you just stop working there, but still reap benefits of being co-owner (= profits / part of production).

Endstate is everybody having equal part of whole country and gets devidends from that for personal spending, basically universal income is the eventual answer.

(Doctrine expected people to eventually stop working because they would not need to anymore)