I don't understand why consciousness is considered mysterious anymore. We know intelligent systems broadly work by learning, updating and querying a predictive world model. For accuracy, a sufficiently powerful system must necessarily start to include its own state and potential actions in this world model. This creates a recursive self-knowledge that produces self-awareness. The ongoing process of analyzing and acting upon this self-model is consciousness.