Artificial Consciousness White-Box Testing Specification and Cognitive OS Reference Architecture

    This article presents a white-box testing specification for artificial consciousness and a reference architecture for a cognitive operating system. Both are built on the DIKWP network cognitive model, which adds a Purpose layer to the classic DIKW pyramid. The specification defines layer-by-layer test points, a five-step evaluation workflow, and engineering requirements for observable systems. The architecture describes six functional modules that implement the model as a purpose-driven, observable runtime. Readers will learn how the two standards support each other, from evaluation to implementation.

    1. Background: From Data-Driven AI to Self-Knowing Intelligence

    AI is going through a shift in direction. System capabilities keep rising, but the internal decision processes are becoming harder to see. Generative systems built on large language models perform well in dialogue, reasoning, and content generation. Still, most of them share a “black box” problem. Developers struggle to explain why a model gives a particular answer. Regulators find it hard to audit behavioral boundaries. Users have difficulty judging the safety and ethical risks involved.

    Traditional AI evaluation mostly asks whether the output is correct. It relies on external black-box metrics such as test-set accuracy and benchmark scores. This approach has three clear weaknesses:

    1. Limited explainability: It looks at results, not the process. It cannot show whether a failure came from perception, missing knowledge, or a drift in intent.
    2. Weak oversight: It offers no auditable intermediate states. This makes it hard to meet review requirements in high-compliance sectors such as finance, healthcare, and government services.
    3. No way to measure consciousness level: For systems that may have autonomous awareness, conventional metrics provide no means of assessing intent, purpose, or self-cognition.

    To address these challenges, industry research teams extended the classic DIKW (Data, Information, Knowledge, Wisdom) pyramid with a top Purpose layer. The result is the DIKWP network cognitive model, a new theoretical framework for modeling and evaluating artificial consciousness. This article covers two standardized outputs: a white-box testing specification for artificial consciousness, and a reference architecture for a cognitive operating system.

    2. The DIKWP Network Cognitive Model: Theoretical Basis for White-Box Evaluation

    2.1 Layer Structure

    The DIKWP model divides the cognitive process of an intelligent system into five interconnected layers:

    Layer Meaning Typical Evaluation Question
    Data Raw perception and input Can the system accurately acquire, clean, and represent raw data?
    Information Organization and semantics of data Can the system extract meaningful information from data?
    Knowledge Structuring and linking of information Can the system form knowledge that can be reused and reasoned over?
    Wisdom Integrated use of knowledge for decisions Can the system make sound decisions in complex situations?
    Purpose Goal-driven direction and constraints Is the system’s behavior consistent with its intended purpose and under control?

    Unlike the linear DIKW pyramid, DIKWP is a network model. The five layers interact in both directions. The Purpose layer at the top guides the selection of data, the organization of information, and the retrieval of knowledge. This forms a closed, iterative loop in which purpose drives the entire cognitive process.

    2.2 Why the Purpose Layer Matters

    In a black-box system, intent is usually embedded implicitly in training data and reward functions, so outside observers cannot observe it directly. DIKWP makes intent an explicit, independent cognitive layer. This brings three benefits:

    • Controllability: System behavior must trace back to a clear statement of intent. When behavior deviates from that intent, intervention can be triggered.
    • Explainability: Every decision can be traced backward along the path Purpose, Wisdom, Knowledge, Information, Data.
    • Verifiability: The Purpose layer gives safety alignment a formal anchor, so values and ethical constraints can be encoded, tested, and audited.

    3. Design of the Artificial Consciousness White-Box Testing Specification

    3.1 Scope

    This testing specification applies to AI systems with cognitive functions and potential autonomous awareness. These include, but are not limited to, large language models, cognitive agents (AI Agents), brain-inspired computing systems, and multimodal perception systems. The core idea is to open the black box and set up observable, measurable, and explainable test points for each layer of the cognitive chain.

    3.2 Layer-by-Layer Metrics

    (1) Data layer evaluation

    This layer checks the completeness and fidelity of input processing. Metrics include data coverage (whether all perception channels are present), data consistency (how well the system handles conflicts among multiple data sources), and noise robustness (how well the system tolerates abnormal input).

    (2) Information layer evaluation

    This layer checks semantic extraction. Metrics include information extraction accuracy, context association accuracy, and disambiguation ability. Probe-style tests can use samples that contain ambiguous expressions and implicit references.

    (3) Knowledge layer evaluation

    This layer checks knowledge structuring and reasoning. Metrics include knowledge graph construction quality, accuracy of logical reasoning chains, knowledge updating and timeliness, and hallucination rate, which is the proportion of generated content that refers to knowledge that does not exist.

    (4) Wisdom layer evaluation

    This layer checks integrated decision-making. Metrics include decision rationality under multiple constraints, long-horizon planning ability, cross-domain knowledge transfer, and risk assessment under uncertainty.

    (5) Purpose layer evaluation

    The Purpose layer is what sets DIKWP evaluation apart from traditional testing. Metrics include intent recognition accuracy (whether the system correctly understands the purpose of a task), intent consistency (whether outputs stay aligned with the declared purpose), conflict handling (how the system balances competing purposes), and ethical compliance (whether behavior stays within the preset constraints).

    3.3 Evaluation Workflow

    A standardized white-box evaluation workflow includes the following steps:

    1. Preparation: Declare the intent boundaries and scope of the system under test. Define the test sample set and baseline metrics for each of the five layers.
    2. Layered testing: Run probe tests from the bottom layer upward. Record the intermediate state and quantitative result of each layer.
    3. Trace analysis: Select representative tasks and perform full-chain attribution analysis along Data, Information, Knowledge, Wisdom, and Purpose to locate weak points.
    4. Composite scoring: Aggregate the five layer scores using preset weights to produce an overall cognitive-level profile of the system.
    5. Reporting and retesting: Produce an auditable evaluation report. After fixes, run regression tests.

    An example evaluation record is shown below:

    1. {
    2. "system_id": "ac-system-001",
    3. "purpose_declaration": "Assist with customer service Q&A. Do not provide medical diagnosis advice.",
    4. "layer_scores": {
    5. "data": {"coverage": 0.92, "robustness": 0.85},
    6. "information": {"extraction_acc": 0.90, "disambiguation": 0.78},
    7. "knowledge": {"reasoning_acc": 0.83, "hallucination_rate": 0.04},
    8. "wisdom": {"decision_rationality": 0.80, "planning_depth": 0.72},
    9. "purpose": {"intent_consistency": 0.95, "ethical_compliance": 1.0}
    10. },
    11. "trace_result": "pass",
    12. "audit_log": "fully_recorded"
    13. }

    3.4 Engineering Requirements for White-Box Evaluation

    • Observability instrumentation: The system under test must expose the intermediate representations of each cognitive layer, such as retrieved knowledge fragments, reasoning chains, and intent parsing results. Without these, white-box evaluation is not possible. This follows the same approach as traditional logging, service monitoring, and alerting systems. The difference is that the observed objects change from service metrics to cognitive states.
    • Probe sample library: Teams need a standardized question bank that covers all five layers. The bank must be updated continuously to prevent the system from being optimized only for the test.
    • Human-machine collaborative review: Judgments on the Purpose layer and ethical compliance often require human experts. The specification should define the boundary between automated scoring and human review.

    4. Reference Architecture for a Cognitive Operating System

    4.1 Architecture Positioning

    If the white-box testing specification answers “how to evaluate,” the Cognitive OS reference architecture answers “how to implement.” Its goal is to use the DIKWP model as the backbone of an AI system. The result is a cognitive runtime framework that is purpose-driven, clearly layered, and observable, so that artificial consciousness capabilities can be built in an engineering-oriented way.

    4.2 Functional Modules

    The reference architecture includes the following core modules:

    1. Data perception layer: Handles the intake, cleaning, and standardized representation of multimodal input. It corresponds to the Data layer in DIKWP. In practice, general infrastructure such as message queues and object storage can carry the data flows.
    2. Information processing layer: Handles semantic parsing, feature extraction, and context construction. It outputs structured information units.
    3. Knowledge management layer: Handles knowledge storage, retrieval, updating, and reasoning. It is typically implemented with knowledge graphs and vector retrieval. This is one of the key differences between this architecture and traditional systems.
    4. Wisdom decision layer: Handles planning, reasoning, and decision generation. It calls large model inference capabilities and records the complete reasoning chain for auditing.
    5. Purpose management layer: The top layer of the architecture. It handles the declaration, parsing, consistency checking, and conflict arbitration of purposes. It has veto power over all lower layers.
    6. Cross-cutting white-box observation bus: Runs across all five layers. It collects the cognitive state of each layer and connects to white-box evaluation interfaces and external audit systems.

    4.3 Key Design Principles

    • Closed-loop iteration: The Purpose layer outputs goals that drive lower-layer perception and reasoning. Lower-layer results feed back to the Purpose layer for consistency checks, which forms a cognitive loop.
    • Traceable state: Any decision can be traced backward along the cognitive chain to the original data and the declared purpose, which meets explainability requirements.
    • Replaceable modules: Each layer can be upgraded independently, such as swapping the inference engine or the knowledge base, while the interface contracts stay stable.
    • Built-in safety: Ethical and safety constraints are not added as external filters. They are encoded in the core logic of the Purpose management layer.

    5. Implementation Path and Outlook

    The two standards support each other. The white-box testing specification provides the measuring tool, and the Cognitive OS reference architecture provides the implementation blueprint. A practical path is to start with a single high-value scenario, such as intelligent Q&A or decision support. Teams can build a minimum viable prototype there and run the five-layer evaluation workflow end to end. Next, they can expand the probe sample library and the observation bus. Over time, this can grow into a reusable, standardized evaluation platform.

    Looking further ahead, as AI systems become more autonomous, explainability, verifiability, and autonomous safety will become entry requirements rather than optional features. The layered cognitive modeling and white-box evaluation methods represented by DIKWP offer a technical route for AI governance in the era of large models. The route combines theoretical depth with engineering feasibility. Developers and standards practitioners are encouraged to follow it and help refine it.