Without evidence that there is some fundamental difference between a biological and artificial mind, we must assume that a self-aware AI is entitled to the same rights as any other self-aware being.
You have evidence of your own consciousness, just as I have evidence of my own.
>we must assume that a self-aware AI is entitled to the same rights as any other self-aware being.
What's your testable definition of self-awareness? Is the 'top' command self-aware because it can see its own process?
The brain is an environment where this happens quite commonly, but there are occasions where that breaks down and it fails, sometimes shattering into multiple independent sub-consciousnesses or failing entirely and falling into a vegetative state.
We may not need to discover anything, but instead let the machinery re-organize and evolve to discover itself.
It already happened once, with humans.