White-Box Testing Specifications and a Cognitive Operating System Reference Architecture for Artificial Consciousness Systems

    This article explains why large language model decisions are hard to audit and proposes a white-box testing approach for artificial consciousness systems. It builds on the DIKWP model, which adds a Purpose layer to the classic DIKW hierarchy. The article covers five design principles for white-box testing specifications, a cognitive operating system reference architecture, and a practical path for teams to adopt these ideas incrementally.

    1. The Black-Box Dilemma: Core Challenges in the Large Model Era

    In recent years, large language models have given AI systems unprecedented abilities in language understanding, reasoning, and generation. Yet their internal decision-making remains close to a “black box” for developers and regulators. It is difficult to trace why a model gives a particular answer, whether its reasoning chain introduced bias or hallucinations, or whether its output matches the intended goal. This opacity is especially dangerous in high-risk fields such as healthcare, finance, and autonomous driving, where a system that cannot be explained cannot be fully trusted.

    Traditional software engineering methods, such as unit testing and integration testing, are hard to apply directly to neural network systems. A model’s “logic” is spread across hundreds of millions of parameters and cannot be audited line by line. The industry broadly agrees that a “middle semantic layer” is needed at the cognitive architecture level. This layer would map the model’s implicit computation into explicit states that can be observed, measured, and intervened upon. This is the problem that the white-box testing specification and the cognitive operating system reference architecture aim to solve.

    2. The DIKWP Network Cognitive Model: From Pyramid to Purpose-Driven Structure

    The classic DIKW pyramid divides cognition into four levels: Data, Information, Knowledge, and Wisdom. These levels form a linear, bottom-up abstraction. A research team in China built on this foundation and proposed the DIKWP model. It adds a Purpose layer (intent or goal) at the top and changes the relationship between layers from a one-way pyramid into a networked structure.

    This change brings three fundamental shifts:

    1. Purpose-driven full pipeline: Intent is no longer a standard applied after the fact. It is the starting point and the constraint of the cognitive process. Data collection, information organization, and knowledge reasoning all center on an explicitly declared purpose, so every processing step has a clear reason.
    2. Two-way network interaction: Higher cognitive layers can guide lower layers in filtering data. For example, judgments at the Wisdom layer can dynamically adjust what the Information layer focuses on. This matches how people look at the world with a specific question in mind.
    3. Closed-loop iteration: The process from perception to decision and action forms a complete loop. The results of actions feed back as new data input, which gives the system the ability to self-correct.

    From an engineering perspective, the value of the DIKWP model is that it gives AI systems an auditable cognitive state machine. The state of each layer and the transitions between layers have clear semantic definitions. This makes the model a natural observation point for white-box testing.

    3. Design Principles for White-Box Testing Specifications

    The core idea of a DIKWP-based white-box testing specification for artificial consciousness is that the test object is no longer the black-box output. The test object is the intermediate state of each cognitive layer and the correctness of the transitions between layers. The specification can follow these principles.

    1. Layered Observability

    The system must expose standardized probe interfaces at all five cognitive layers, so the test framework can read the current state of any layer. For example, the Information layer should output, in structured form, which factual assertions it extracted from the raw data. The Knowledge layer should output which concepts are currently activated and how they relate to each other.

    2. Inter-Layer Consistency Checks

    Test cases should verify not only the correctness of each layer’s output but also the fidelity of transitions between layers. Did the move from data to information lose key facts? Did the reasoning from knowledge to wisdom introduce assumptions without a basis? These checks can be written as assertion rules, for example:

    1. assert all(key_facts(input_data) ⊆ extracted_facts(info_layer))
    2. assert justification(decision) ⊆ active_knowledge(knowledge_layer)

    3. Intent Alignment Assessment

    This dimension separates DIKWP white-box testing from traditional AI testing. The test framework needs to measure how closely system behavior aligns with the declared intent. This includes checking whether the intent is correctly parsed into executable sub-goals, whether the reasoning drifts from the constraints of the intent, and whether the final action reports back on how well the intent was achieved. An intent consistency metric can be defined. Behavior that exceeds a deviation threshold can trigger an alert or a manual review.

    4. Replayable Cognitive Traces

    A complete cognitive process should be recorded as a traceable log. The log should include the input, state transitions, output, and timestamp of each layer. Testers can replay any decision and pinpoint which layer and which step introduced the deviation. This requirement is similar to tracing in distributed systems. The difference is that the traced objects are cognitive flows instead of service calls.

    5. Controllability and Intervenability

    The goal of white-box testing is not only to see what the system is doing but also to control it. The specification should require the system to support intervention at any layer. Interventions include correcting wrong knowledge assertions, adjusting intent priorities, and blocking non-compliant action outputs. The specification should also require the team to verify that the system behaves as expected after each intervention.

    4. Cognitive Operating System Reference Architecture

    If the white-box testing specification defines how to verify a system, the cognitive operating system reference architecture defines how to build one. The architecture can be compared with the layered design of a traditional operating system.

    1. Cognitive Kernel Layer

    This layer corresponds to the kernel of an operating system. It manages the state of the five cognitive layers. It stores the state of each DIKWP layer, runs the transition engine between layers, and ensures that intent constraints have the highest priority in scheduling. The cognitive kernel is the trusted computing base, so it must undergo the most rigorous white-box verification.

    2. Cognitive Services Layer

    This layer provides general cognitive services such as perception, memory, reasoning, and planning. It works like system services and daemons in an operating system. Services communicate through a standardized message bus, which makes them easy to replace and test independently. During deployment, a cloud container platform can host the elastic deployment of each cognitive service. A message queue can handle asynchronous flow between layers. A log service, together with monitoring and alerting, can form the collection and audit channel for cognitive traces. These are general categories of cloud product capabilities, and teams can choose specific products based on their own technology stack.

    3. Model Adaptation Layer

    In this layer, foundation models such as large language models are wrapped as callable “cognitive operators.” The adaptation layer translates a model’s implicit outputs into explicit semantic representations for each DIKWP layer. It is the key bridge that connects black-box capabilities to the white-box architecture.

    4. Application and Intent Interface Layer

    This layer exposes an intent declaration interface to business applications. Applications describe goals and constraints declaratively. The cognitive operating system then decomposes them, executes them, and reports on how well they were achieved. Developers do not need to write model prompts directly. They work with intent, a higher-level abstraction.

    5. Adoption Path and Outlook

    Teams do not need to adopt this architecture all at once. A practical path starts by adding layered logging and intent annotation to the key paths of existing AI applications. This builds a minimum level of observability for cognitive traces. Next, teams can add inter-layer consistency checks and intent alignment metrics to their CI pipelines, which creates automated white-box regression testing. Over time, the system can evolve toward the full cognitive operating system architecture.

    Engineering artificial consciousness is still at an early stage. However, “explainable, controllable, and purpose-driven” has become a widely shared direction in the industry. The DIKWP model and its accompanying white-box testing specification provide a clear semantic framework and practical tools for this direction. For teams that want to deploy AI at scale in high-risk settings, building white-box capabilities at the cognitive layer early is a key investment. It helps earn trust and supports compliance.