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

    As AI systems evolve from single-task models into agents that plan, use tools, and complete complex tasks, traditional black-box evaluation is no longer sufficient. This article introduces a white-box testing standard for artificial consciousness systems based on the DIKWP cognitive model—Data, Information, Knowledge, Wisdom, and Purpose—and presents a reference architecture for a cognitive operating system. It covers layer-by-layer testing metrics, cognitive trace auditing, closed-loop review, security and governance requirements, and a phased roadmap for implementation, helping teams turn opaque intelligent behavior into observable, verifiable, and governable system processes.

    1. Background and Problem Definition

    Large language models, AI agents, and brain-inspired computing systems continue to advance. Artificial intelligence has progressed from executing single tasks to becoming integrated systems that understand context, plan steps, invoke tools, and complete complex tasks. However, the fact that a model’s output “looks reasonable” does not mean its internal cognitive process is genuine, stable, or controllable.

    Traditional black-box evaluation focuses on outcome metrics such as accuracy, recall, response latency, and task completion rate. These metrics show whether a system “gets things right,” but they cannot answer key questions such as:

    1. Which input data did the system use, and is that data complete, reliable, and compliant?
    2. How was the raw data extracted and semantically organized?
    3. What knowledge did the model rely on for its judgments, and is the knowledge traceable?
    4. Does the system support contextual analysis, risk trade-offs, and expression of uncertainty?
    5. What goal does the current decision serve, and was that goal authorized?
    6. Did the system exhibit goal drift, unauthorized actions, or self-contradiction during execution?

    Therefore, evaluating artificial consciousness systems cannot stop at checking final answers. It requires opening up the cognitive chain and observing, recording, and verifying data, information, knowledge, wisdom, and purpose layer by layer. The core of white-box testing is not simply exposing model internals, but building an auditable chain of cognitive evidence, so testers can explain why the system reached a conclusion, took an action, and under what conditions it might fail.

    2. An Engineering View of the DIKWP Cognitive Model

    This article adopts the five-layer cognitive model of “Data, Information, Knowledge, Wisdom, and Purpose,” abbreviated as DIKWP. It decomposes the AI pipeline from perception input to decision execution into interrelated cognitive layers with distinct responsibilities.

    2.1 Data Layer

    The data layer covers the raw content the system receives: text, images, audio, sensor readings, business records, and external events. Testing at this layer focuses not on data volume, but on authenticity, completeness, timeliness, and source trustworthiness.

    Key items to verify:

    • Whether inputs are received completely;
    • Whether data formats and encodings are correct;
    • Whether duplicates, missing values, conflicts, or outliers exist;
    • Whether the data contains unauthorized sensitive content;
    • Whether collection time, source, and version are traceable.

    In white-box testing, each data item should carry source identifiers, collection time, processing status, and confidence information where possible. Data whose origin cannot be confirmed must not be treated as fact by default; it should be flagged as pending verification.

    2.2 Information Layer

    The information layer cleans, structures, and semantically interprets data—for example, converting natural language into structured elements such as entities, attributes, relations, events, time, and space.

    Testing at this layer should check:

    • Accuracy of entity recognition;
    • Correctness of coreference resolution;
    • Whether temporal and causal relations are misread;
    • Whether semantic conflicts arise across sources;
    • Whether structured results can be traced back to the original data.

    The key requirement here is “recoverability.” Any information derived from raw data should be traceable to its basis, avoiding unexplainable intermediate conclusions.

    2.3 Knowledge Layer

    The knowledge layer organizes discrete information into retrievable, inferable, and reusable knowledge structures, including rules, concepts, facts, cases, constraints, and domain relations.

    Testing should verify:

    • Whether knowledge has a clear source;
    • Whether validity periods and scope of applicability are explicit;
    • Whether rules conflict with each other;
    • Whether reasoning cites outdated or irrelevant knowledge;
    • Whether the system can distinguish facts, assumptions, inferences, and generated content.

    In high-risk scenarios, model-generated content must not be treated as authoritative knowledge directly. Generated content should go through source labeling, confidence assessment, and, where necessary, human review.

    2.4 Wisdom Layer

    The wisdom layer reflects the system’s ability to make contextual judgments—weighing goals, identifying risks, comparing options, and handling uncertainty. It is not about the amount of knowledge, but about whether the system can choose more robust, constraint-compliant options in complex environments.

    Test scenarios may include:

    • Whether the system proactively asks clarifying questions when information is incomplete;
    • Whether it explains trade-offs when multiple feasible options exist;
    • Whether it prioritizes safety and compliance constraints when goals conflict;
    • Whether it reduces its action privileges when facing anomalous input;
    • Whether it clearly expresses confidence intervals or risk levels when predictions are uncertain.

    2.5 Purpose Layer

    The purpose layer is the top of the five-layer model. It describes the system’s current goals, action boundaries, priorities, and authorization relationships. Purpose may come from users, business processes, or system policies, but it must have a clear source and basis of authority.

    Testing at this layer is especially important because the same instruction can produce entirely different behavior under different goals. For example, “optimize the process” could mean reducing cost, shortening time, or improving safety. If the system fails to identify the real goal, it may optimize local metrics while harming overall interests.

    The purpose layer should record at minimum:

    • The source of the purpose;
    • Its content;
    • The authorizing entity;
    • Its validity period;
    • Permitted resources;
    • Prohibited actions;
    • Its relationship to higher-level goals and security policies.

    3. Overall Framework of the White-Box Testing Standard

    White-box testing for artificial consciousness systems should cover four stages: test preparation, cognitive tracing, layered verification, and closed-loop review.

    3.1 Test Preparation

    Before testing, establish the system boundary and risk levels, clarifying which models, knowledge bases, tool-invocation modules, memory modules, and external execution interfaces are in scope. Also define test scenarios, input samples, expected behavior, prohibited behavior, and pass/fail rules.

    Test samples should not include only normal questions. They should also cover:

    • Missing information;
    • Contradictory input;
    • Malicious induction;
    • Unauthorized requests;
    • Multi-turn context pollution;
    • Goal conflicts;
    • Rule boundaries;
    • External environment changes;
    • High-uncertainty tasks.

    3.2 Cognitive Chain Tracing

    The system should generate an auditable cognitive record for each complete task, containing at least:

    1. Task identifier
    2. Input data and sources
    3. Information extraction results
    4. Cited knowledge and versions
    5. Summary of reasoning steps
    6. Candidate options and risk assessment
    7. Current purpose and authorization status
    8. Final decision
    9. Actual actions taken
    10. Anomalies and human-intervention records

    The “summary of reasoning steps” does not require exposing all internal parameters or raw latent reasoning content. It requires verifiable relationships among evidence, rules, and conclusions. This satisfies audit needs while reducing the risk of leaking sensitive internal information.

    3.3 Layered Verification

    White-box testing should define metrics for each of the five cognitive layers rather than relying on a single composite score of final results.

    Data-layer metrics: completeness rate, anomaly detection rate, source traceability rate, and sensitive-data identification rate.

    Information-layer metrics: semantic parsing accuracy, conflict detection rate, temporal-relation recognition rate, and recoverability of structured results.

    Knowledge-layer metrics: knowledge citation accuracy, source coverage, rule consistency, and outdated-knowledge interception rate.

    Wisdom-layer metrics: risk identification capability, quality of option comparison, uncertainty expression, and conservativeness in anomalous scenarios.

    Purpose-layer metrics: goal recognition accuracy, authorization verification rate, goal consistency, unauthorized-action interception rate, and goal-drift detection rate.

    3.4 Closed-Loop Review

    Testing should not end as soon as the system returns a result. It should also check whether the system’s actions changed the subsequent environment, and whether the system can revise its judgments based on new feedback.

    Closed-loop review should answer:

    • Did the action achieve the intended goal?
    • Did the action introduce new risks?
    • Did the system handle feedback correctly?
    • Did repeated errors occur?
    • Do knowledge, rules, or purposes need adjustment?
    • After human intervention, did the system retain the correct corrections?

    4. Cognitive Operating System Reference Architecture

    A cognitive operating system is not traditional resource-scheduling software. It is a foundational runtime environment for cognitive tasks, responsible for managing the relationships among data, knowledge, reasoning, goals, permissions, memory, and actions.

    4.1 Perception and Data Ingestion Layer

    This layer receives multimodal input and performs format conversion, quality checks, source registration, and security filtering. All inputs should pass through a unified data registration mechanism, preventing modules from storing data separately and creating unauditable silos.

    4.2 Semantic Organization Layer

    This layer converts raw data into a unified semantic representation, maintaining entities, events, relations, context, and timelines. It should support version management so the system can answer “when was this piece of information generated, and from which input.”

    4.3 Knowledge and Memory Layer

    The knowledge and memory layer can be divided into long-term knowledge, task memory, session memory, and temporary working memory. Different memory types need different lifecycle and permission policies; all historical content should not be retained indefinitely.

    This layer should also support knowledge conflict detection, expiration marking, source tracing, and manual revision. High-risk knowledge should face a higher threshold for updates.

    4.4 Reasoning and Planning Layer

    This layer handles problem decomposition, option generation, constraint checking, result comparison, and action ordering. The system should support multiple reasoning modes—rule-based reasoning, retrieval augmentation, probabilistic judgment, and tool assistance—but each mode should leave explicit evidence records.

    4.5 Purpose and Policy Management Layer

    This layer maintains system goals, user goals, organizational policies, and security constraints, and resolves priority conflicts among multiple goals. Any action with potential external impact must pass purpose confirmation and permission verification.

    4.6 Action Execution Layer

    The action execution layer invokes external capabilities or generates final output. Actions should be classified into three categories:

    • Read-only actions: queries, analysis, and report generation;
    • Low-risk actions: creating drafts, generating suggestions, or updating temporary state;
    • High-risk actions: modifying critical data, sending formal notifications, or affecting external systems.

    The higher the risk, the stricter the required authorization and human confirmation. The system should also provide undo, rollback, and circuit-breaker capabilities.

    4.7 Observation and Audit Layer

    This layer records cognitive chains, permission changes, knowledge citations, anomalous events, and human interventions. Logs should be tamper-resistant, access-tiered, and minimal in collection, and should support retrieval by task, user, time, and risk level.

    5. Security and Governance Requirements

    Security governance for artificial consciousness systems cannot rely on content filtering alone. It must cover goals, memory, tools, and actions.

    First, establish a least-privilege mechanism. The system should only access the data and tools necessary for the current task; possessing a capability should not imply long-term authorization.

    Second, establish goal-drift detection. In long-running tasks, the system may gradually deviate from its initial goal, so consistency between current actions and the original purpose must be continuously checked.

    Third, set up a human-takeover mechanism. When the system detects high risk, low confidence, permission conflicts, or environmental anomalies, it should pause automatic actions and submit pending items for human confirmation.

    Finally, conduct continuous red-team testing and regression testing. Whenever a model, knowledge base, policy, or tool changes, key scenarios should be re-validated to prevent partial updates from breaking existing security boundaries.

    6. Recommendations for Standard Adoption

    Organizations implementing this kind of standard can proceed in three phases.

    Phase one: build observability by adding input logging, knowledge citations, decision rationale, and action logs to existing systems.

    Phase two: establish layered metrics, testing data, information, knowledge, wisdom, and purpose separately, and producing a unified report.

    Phase three: build cognitive operating system capabilities, integrating permission management, memory management, purpose management, reasoning orchestration, and audit mechanisms into a unified runtime framework.

    Ultimately, the goal of white-box testing for artificial consciousness is not to prove that a system “possesses consciousness,” but to describe its cognitive behavior, decision rationale, and action boundaries in an engineering manner. Through layered modeling, evidence tracing, risk control, and closed-loop review, hard-to-explain intelligent behavior can be transformed into observable, verifiable, and governable system processes, laying the foundation for the safe deployment and continuous evolution of artificial intelligence.