Personal identity consists in continuity of consciousness
A person is the same person over time exactly as far as their consciousness can reach back to past thoughts and actions. The self is not fixed by the underlying substance, soul or body. It is fixed by which past experiences a present consciousness appropriates as its own. Where consciousness does not reach, the person does not reach either.