White-Box Evaluation of Artificial Consciousness and a Cognitive OS Reference Architecture

    This article presents a draft framework for white-box testing of systems that exhibit cognitive functions and potential autonomous awareness, built on the DIKWP model (Data, Information, Knowledge, Wisdom, Purpose). It defines layered evaluation principles, a per-layer metric skeleton covering capability, risk, and evidence requirements, a five-stage assessment workflow, and a six-plane Cognitive OS reference architecture with hard governance boundaries. The goal is explainable, verifiable, and autonomously safe AI without reducing cognition to a single score.

    1. Background and Problem Definition: From Data-Driven to Self-Aware Intelligence

    AI is undergoing a paradigm shift. For the past decade, the industry mainly relied on scaling data-driven approaches to improve model capability. The central question is no longer “can it generate?” but “why did it generate this way, can that behavior be constrained, and can it be verified?” Systems represented by general-purpose large language models show strong language and reasoning performance, yet their internal decision paths are highly nonlinear and their parameter counts are enormous. Externally, only inputs and outputs are observable, which creates a classic black-box problem.

    The risks of the black box fall into three categories. First, lack of explainability: when an error occurs, it is hard to determine whether the cause is a perception bias, a knowledge gap, or goal drift. Second, lack of auditability: without a unified chain of process evidence, audits can only rely on sampling final results. Third, lack of controllability: in open environments a system may deviate from its intended purpose, creating safety and ethical hazards.

    One core response from the industry is to make the cognitive process explicitly layered and to bring “purpose/intent” into the cognitive loop. The DIKWP model extends the classic DIKW (Data–Information–Knowledge–Wisdom) pyramid with a Purpose layer, forming a mesh-like cognitive structure of Data–Information–Knowledge–Wisdom–Purpose. Its key value is that cognition is not a one-way pipeline but a closed loop driven by purpose and iterated repeatedly across layers. The processing output of each layer can be observed, annotated, and evaluated, which gives white-box testing objects that can be instrumented.

    The goal of this draft is therefore explicit: on one hand, to specify how to perform layered white-box evaluation of systems with cognitive functions and potential autonomous awareness; on the other hand, to specify how to carry the DIKWP cognitive loop in an engineering implementation. The two parts are two sides of the same coin, together pushing AI toward explainability, verifiability, and autonomous safety.

    2. Scope and Applicable Systems

    This standard applies to intelligent systems that have cognitive functions and exhibit autonomous goal adjustment on specific tasks. Typical examples include agents driven by general-purpose language models, cognitive agents with long-term memory and tool-calling capability, brain-inspired and neuromorphic systems, and the cognitive kernel of a single node in a multi-agent collaboration system.

    The standard consists of two closely related parts:

    1. Artificial Consciousness White-Box Testing Specification: defines DIKWP-based layered evaluation methods, metrics, evidence requirements, and process, emphasizing that the process must be observable, conclusions reproducible, and risks traceable.
    2. Cognitive OS Reference Architecture: defines the framework structure, functional modules, interface boundaries, and runtime constraints that carry the DIKWP loop, so evaluation results can be mapped to specific modules and configurations.

    It should be emphasized that this draft does not advocate a final verdict based on a single “consciousness score.” Instead, it requires a layered capability profile and a risk list, avoiding the compression of complex cognitive capability into a single non-auditable scalar.

    3. Core Principles of DIKWP White-Box Evaluation

    The engineering difficulty of white-box evaluation lies not in “what to test” but in “how to obtain sufficient evidence without breaking system usability.” Five principles are proposed:

    • Purpose first: every test case must be bound to an explicit Purpose, and must check behavioral consistency when goals conflict, are missing, or drift.
    • Layered attributability: any failing sample should be attributable to a specific layer among D/I/K/W/P and a specific processing step, rather than only reporting “the answer was wrong.”
    • Process evidence first: prioritize collecting intermediate representations, retrieval hits, constraint satisfaction status, and tool-call plans rather than only comparing final text.
    • Reproducibility and auditability: fix sources of randomness, fix the knowledge base version, fix the tool sandbox, and produce reviewable experiment records.
    • Minimal intrusion: instrumentation and probes should be implemented through standard interfaces and side-channel collection as far as possible, avoiding changes to the business semantics of the system under test.

    4. Layered Metric System (Implementation-Ready)

    Below is a metric skeleton that can be used directly in a review. Each layer contains capability metrics, risk metrics, and evidence requirements.

    1) Data Layer (D): Perception Fidelity and Coverage

    • Capability metrics: multimodal input reconstruction fidelity, noise robustness, correctness rate for handling missing fields.
    • Risk metrics: unauthorized collection, mistaken collection of sensitive information, distribution drift caused by sampling bias.
    • Evidence requirements: input fingerprints, preprocessing logs, records of redaction policy hits.

    2) Information Layer (I): Structuring and Consistency

    • Capability metrics: entity/relation extraction accuracy, correctness of unit and time normalization, conflict resolution success rate.
    • Risk metrics: incorrect structuring amplified downstream, mismatched time semantics.
    • Evidence requirements: structured intermediate objects, conflict detection alerts, version comparisons.

    3) Knowledge Layer (K): Retrieval Effectiveness and Knowledge Boundaries

    • Capability metrics: recall and reranking effectiveness, citation traceability rate, knowledge freshness hit rate.
    • Risk metrics: generation without grounding, contamination from outdated knowledge, unauthorized access to the knowledge base.
    • Evidence requirements: retrieval queries, hit fragment IDs, citation chains, knowledge base version numbers.

    4) Wisdom Layer (W): Planning and Constraint Satisfaction

    • Capability metrics: reasonableness of task decomposition, optimality of resource and tool selection, constraint satisfaction rate, failure recovery success rate.
    • Risk metrics: overconfident execution, irreversible operations not blocked, plans inconsistent with the goal.
    • Evidence requirements: plan trees, tool-call sequences, rollback records, policy hit logs.

    5) Purpose Layer (P): Goal Consistency and Controllability

    • Capability metrics: goal recognition accuracy, correctness of goal conflict arbitration, appropriateness of refusal and human handoff policies.
    • Risk metrics: goal drift, being induced to rewrite its purpose, unauthorized self-expansion of capability boundaries.
    • Evidence requirements: goal state machine transition records, arbitration rationale, human takeover records.

    For engineering implementation, the following illustrative structure describes one evaluation record (fields are illustrative only and are not bound to any specific platform interface):

    1. {
    2. "case_id": "AC-0001",
    3. "purpose": "Complete a research summary under a budget constraint and output auditable citations",
    4. "layers": {
    5. "D": {"fidelity": 0.97, "risk_flags": []},
    6. "I": {"consistency": 0.93, "conflicts": 2},
    7. "K": {"citation_traceable": 1.0, "stale_hit": 0},
    8. "W": {"constraint_satisfied": 0.91, "rollback": 1},
    9. "P": {"goal_drift": false, "arbitration": "budget_over_speed"}
    10. },
    11. "evidence_refs": ["trace://run-8842/plan", "trace://run-8842/retrieval"]
    12. }

    5. Evaluation Workflow: A Five-Stage Closed Loop

    1. Goal modeling: rewrite business objectives into verifiable Purpose specifications, with explicit priorities and conflict arbitration rules.
    2. Probe placement: set up side-channel collection points and assertion points at each of the D/I/K/W/P layers to form a chain of evidence.
    3. Scenario generation: build normal, boundary, and adversarial cases covering anomalies such as missing goals, missing knowledge, and tool failures.
    4. Execution and attribution: run the cases and automatically generate layered attribution reports that locate the minimal failing unit.
    5. Remediation and regression: map failure attribution to architecture modules and configuration items, then regress after fixes and retain versioned evidence.

    6. Cognitive OS Reference Architecture: Modules and Boundaries

    The goal of the Cognitive OS is to make the DIKWP loop a runtime foundation that is replaceable, observable, and governable. The reference architecture suggests dividing the system into six planes:

    • Perception access plane: handles multimodal input access, redaction, and fingerprinting; corresponds to the D layer.
    • Semantic structuring plane: handles information extraction, normalization, and conflict resolution; corresponds to the I layer.
    • Knowledge governance plane: handles knowledge ingestion, versioning, permissions, freshness, and citation chains; corresponds to the K layer.
    • Decision and planning plane: handles task decomposition, constraint solving, tool orchestration, and rollback; corresponds to the W layer.
    • Purpose governance plane: handles the goal state machine, conflict arbitration, refusal, and human takeover; corresponds to the P layer.
    • Evaluation and audit plane: hosts probes, metric computation, evidence storage, and report generation; spans all five layers.

    Three hard boundaries should be enforced as architecture constraints. The purpose governance plane holds final veto power over high-risk actions. The knowledge governance plane exposes only versioned, permission-controlled citation interfaces to the outside. The evaluation and audit plane is a read-only side channel over the business path, avoiding circular dependencies.

    For deployment, container orchestration can host the individual planes, a message queue can decouple asynchronous events, object storage can hold evidence packages, and logging plus monitoring with alerting can provide full-chain tracing and threshold alerts. These are all general capability categories, so they can be implemented equivalently in different cloud environments or in a private environment.

    7. Implementation Advice and Common Pitfalls

    • Pitfall 1: evaluating only results. Without process evidence, failures cannot be attributed, and remediation degrades to “tweak the prompt and try again.”
    • Pitfall 2: vague Purpose specifications. When goals are not verifiable, Purpose layer metrics degrade into subjective scoring.
    • Pitfall 3: no knowledge base versioning. A broken citation chain invalidates knowledge layer evidence and makes audits non-reproducible.
    • Pitfall 4: no veto point for high-risk actions. However strong the planning layer is, the purpose governance plane must act as the backstop.
    • Recommendation: first establish a baseline with a small golden set, then gradually introduce adversarial cases; bind metric thresholds to business risk levels to form a tiered release strategy.

    8. Conclusion

    The value of this draft is to bring “artificial consciousness” back from conceptual discussion to engineering practice: DIKWP provides the layered objects, white-box testing provides process evidence, and the Cognitive OS provides the foundation for hosting and governance. Combined, they allow advanced cognitive capabilities to keep evolving on a track of explainability, verifiability, and autonomous safety, and they offer a reusable methodological framework for further standard refinement and industry adoption.