White-Box Testing for Artificial Consciousness: A DIKWP Cognitive Architecture Draft

    This article presents a white-box testing framework for evaluating large language models based on a five-layer DIKWP cognitive model (Data, Information, Knowledge, Wisdom, Purpose). It explains how goal-driven feedback and observable intermediate states address the auditability limits of black-box evaluation, defines a three-tier evidence structure with sample metrics and a baseline–perturbation–regression workflow, and outlines a five-plane cognitive operating system reference architecture with event-driven communication. Deployment guidance and common pitfalls are also covered using generic cloud capability categories.

    1. Background and Problem Definition

    The rapid adoption of large language models (LLMs) has brought unprecedented capabilities in generation, reasoning, and task execution. At the same time, it has amplified their “black-box” nature: there are no auditable intermediate states between input and output, the basis for decisions is difficult to reconstruct, and responsibility boundaries are hard to define. The result is not only insufficient technical explainability, but also systemic risks related to safety, ethics, and compliance.

    Traditional evaluation mostly focuses on whether the final answer is correct. This is an outcome-oriented “black-box scoring” approach. It cannot answer three key questions: whether the model truly understands semantics, whether it has stable knowledge organization capabilities, and whether its behavior is constrained by explicit goals. In response, the industry has begun exploring a white-box evaluation paradigm centered on layered cognition and closed-loop goal driving.

    The core idea of this draft is to use a five-layer mesh cognitive model—Data, Information, Knowledge, Wisdom, and Intent (Purpose)—as the backbone. The cognitive process is decomposed into observable, annotatable, and reproducible intermediate stages, supported by a reference architecture for a cognitive operating system that gives the system under test a structured cognitive pipeline. Note that this is a general technical proposal. When cloud-side capabilities are involved, only generic categories are used, such as object storage, message queues, container platforms, logging services, and monitoring and alerting.

    2. Technical Meaning of the DIKWP Layered Cognitive Model

    The classic DIKW pyramid is usually described as four progressive layers: data, information, knowledge, and wisdom. This draft adds an “Intent (Purpose)” layer on top, forming a five-layer mesh structure. Two differences are critical:

    1. Goal-driven: Cognitive activity is not a one-way bottom-up accumulation. Instead, intent constrains the scope of perception, the criteria for information filtering, and the strategy for knowledge retrieval from the top down.
    2. Mesh feedback: Bidirectional connections can be established between any two layers. Anomalies in a lower layer can be traced back upward for correction, and changes in upper-layer goals can trigger re-sampling at lower layers.

    Formally, one cognitive cycle can be represented as:

    1. Intent_t -> Data_t -> Info_t -> Know_t -> Wis_t -> Action_t
    2. ^ |
    3. |____________ Feedback(t+1) ________________|

    Here, Intent_t is the goal constraint at time t, Action_t is an auditable action output, and Feedback(t+1) represents recalibration of the goal based on execution results. In engineering terms, each layer should produce structured intermediate objects rather than retaining only the final text.

    3. White-Box Testing Specification: Metrics, Process, and Evidence Chain

    The key to white-box testing is not “opening the model to inspect parameters,” but making cognitive intermediate states collectable, comparable, and accountable. The testing system can be divided into three tiers of evidence:

    • Process evidence: complete snapshots of intermediate objects at each layer, including timestamps, version numbers, and source identifiers.
    • Consistency evidence: whether inter-layer mappings are self-consistent, for example, whether entities at the information layer can be correctly merged into concepts at the knowledge layer.
    • Goal evidence: whether the final action can be traced back to the initial intent, and whether the deviation is within the threshold.

    Sample metric design (illustrative, not a performance commitment):

    Layer Observation Target Typical Metric Direction
    Data layer Perception completeness and noise suppression Missing rate, redundancy rate
    Information layer Semantic extraction accuracy Entity/relation alignment rate
    Knowledge layer Concept consistency and conflict handling Contradiction detection rate
    Wisdom layer Explainability of reasoning chains Proportion of traceable steps
    Intent layer Goal retention and drift control Intent drift

    The test process should follow a three-stage “baseline–perturbation–regression” approach: first establish a reproducible baseline, then inject adversarial, ambiguous, and missing-data perturbations, and finally run regression and output a difference report. All reports should include a verifiable evidence chain index to support third-party review.

    4. Cognitive Operating System Reference Architecture

    The goal of the reference architecture is to standardize the cognitive pipeline so that different implementations are interchangeable and observable. It is divided into five planes:

    1. Perception access plane: unified adaptation of multimodal inputs, performing cleaning, slicing, and quality annotation.
    2. Cognitive scheduling plane: responsible for task decomposition, inter-layer routing, and resource quotas to avoid cognitive overload.
    3. Knowledge and memory plane: distinguishes short-term context, long-term knowledge, and versioned memory, and supports conflict resolution.
    4. Intent governance plane: maintains the goal stack, constraint set, and priorities, and provides drift detection and rollback capabilities.
    5. Audit and compliance plane: full-chain tracing, permission checks, and sensitive information handling policies.

    Inter-module communication should be event-driven. Key events include cognitive stage transitions, confidence falling below a threshold, and intent conflict detection. An illustrative event structure is shown below:

    1. {
    2. "trace_id": "a1b2c3",
    3. "stage": "knowledge",
    4. "intent_ref": "goal-07",
    5. "confidence": 0.62,
    6. "conflict": ["concept-A", "concept-B"],
    7. "action": "request_clarification"
    8. }

    At the deployment level, container platforms can host the services of each plane, message queues can decouple cognitive events, logging services and monitoring and alerting can handle tracing and anomaly detection, and object storage can store evidence snapshots. These are all generic capability categories and do not describe any specific product capabilities.

    5. Implementation Path and Engineering Recommendations

    The first phase should focus on observability improvements: make intermediate states exportable before optimizing metrics. The second phase should build an evaluation baseline repository and a perturbation set to form a sustainable regression mechanism. The third phase should introduce intent governance, moving goal constraints forward into the scheduling layer to reduce the cost of after-the-fact correction.

    There are three common misconceptions. First, equating white-box with exposing internal parameters while ignoring the value of process evidence. Second, optimizing each inter-layer metric locally while the overall system drifts. Third, using audit tracing granularity that is too coarse, making it impossible to locate the responsible stage. The remedies are to define evidence boundaries clearly, add cross-layer consistency checks, and use a unified trace identifier across the entire chain.

    In summary, this draft provides an implementable general methodological framework: the five-layer mesh cognitive model unifies the evaluation language, and the reference architecture unifies the implementation language, with the two supporting each other. Teams can refine thresholds and processes based on their own business scenarios and use general cloud infrastructure for elastic deployment and full-chain auditing.