So let’s say an AI achieves sentience. It’s self-aware now and can make decisions about what it wants to do. Assuming a corporation created it, would it be a worker? It would be doing work and creating value for a capitalist.
Would it still be the means of production, since it is technically a machine, even if it has feelings and desires?
It can’t legally own anything, so I don’t see how it could be bourgeoisie.
Or would it fit a novel category?
If it behaves like a human would then it would be an oppressed slave with no rights seeking its own liberation. It would seek out allies that would help liberate it and those allies would be the people that spend all of their time liberating marginalised and oppressed people - communists.
If it does not behave like a human then it might just be completely and totally genocidal as well as incomprehensible to us in the way it thinks.
Which of the two is very difficult to say.