White-Box Testing Standards and a Cognitive Operating System Reference Architecture for Artificial Consciousness Systems
This article explains two complementary draft standards for AI systems with cognitive and potentially autonomous characteristics: a DIKWP-based white-box testing specification and a cognitive operating system reference architecture. It covers the limitations of black-box evaluation, layered metrics for data, information, knowledge, wisdom, and purpose, transition-level evidence tracing, core architecture modules, interoperability requirements, and an incremental implementation path for building AI systems that are measurable, auditable, and purpose-driven.
1. Background: Moving from Black-Box Evaluation to White-Box Testing
Large language models and other AI systems have achieved unprecedented performance in natural language understanding, reasoning, and generation. However, their internal decision-making processes remain largely opaque to users, regulators, and even their developers. This black-box nature creates three major challenges:
- Limited explainability: Outputs often provide no clear path from input to conclusion, making it difficult to identify the cause of an error.
- Safety and ethical risks: A model may unintentionally generate harmful content or gradually deviate from its design objectives during long-running autonomous operation.
- Regulatory and compliance difficulties: Without a common evaluation language and consistent metrics, it is difficult to compare different systems or assess their risks reliably.
The classic Data–Information–Knowledge–Wisdom (DIKW) pyramid describes how raw data is progressively transformed into informed decisions. However, its primarily bottom-up structure does not explicitly define the purpose that constrains and guides the process.
To address this limitation, some researchers and practitioners have proposed adding a top-level Purpose layer, forming the DIKWP networked cognitive model. In this model, the entire cognitive process is purpose-driven. Perception, interpretation, reasoning, decision-making, and action form a continuously updated feedback loop.
This model provides artificial consciousness systems with a semantic framework that can be formalized, measured, and audited. It also serves as the conceptual foundation for two complementary draft standards: a white-box testing specification and a cognitive operating system reference architecture.
2. Scope and Positioning of the Draft Standards
The two proposals target AI systems with cognitive capabilities and potentially autonomous characteristics. Applicable systems include:
- Large language models and their derivative applications;
- Cognitive agents with planning, memory, tool use, and reflection capabilities;
- Brain-inspired computing systems, including platforms based on spiking neural networks and neuromorphic hardware.
The proposed standards consist of two mutually supportive components:
- Artificial Consciousness White-Box Testing Specification: Defines layered, explainable evaluation methods, metrics, and procedures based on the DIKWP model.
- Cognitive Operating System Reference Architecture: Defines the framework structure and functional modules required to implement the DIKWP cognitive model within an AI system.
Their relationship can be summarized as follows:
- The testing specification defines how to verify that a system has a particular cognitive capability.
- The reference architecture defines how the system should be organized so that those capabilities can be effectively verified.
The reference architecture provides a standardized view of the system under test, while the testing specification provides acceptance criteria for architectural implementations.
3. White-Box Testing Specification: Layered Metrics and Explainable Evaluation
3.1 Layered Evaluation Principles
The central principle of the white-box testing specification is that end-to-end behavior alone is insufficient. The semantic transformations between DIKWP layers must be exposed, and measurable mappings must be established for each layer and transition.
| Cognitive Layer | Evaluation Target | Typical Metric Areas |
|---|---|---|
| Data (D) | Completeness and consistency of perceptual inputs | Semantic deduplication rate, noise robustness |
| Information (I) | Recognition and classification from data | Semantic discriminability, information extraction accuracy |
| Knowledge (K) | Relationships among concepts and knowledge organization | Knowledge graph consistency, reasoning-chain completeness |
| Wisdom (W) | Multi-objective trade-offs and contextual decisions | Decision quality, ethical constraint satisfaction rate |
| Purpose (P) | Goal modeling and goal tracking | Goal alignment, intention-drift detection |
The evaluation therefore examines not only what each layer contains, but also how information is transformed as it moves through the system.
3.2 Measuring the Explainability of Semantic Transitions
A distinctive value of the DIKWP model is its focus on the explainability of transitions between layers, such as D→I, I→K, K→W, and W→P.
The specification recommends creating a semantic mapping evidence chain for each transition. When producing an output, the system should be able to trace the path taken through the relevant layers and present intermediate representations in a form that can be reviewed by humans.
An illustrative evaluation record might look like this:
{"case_id": "TC-W2P-003","transition": "Wisdom -> Purpose","input_context": "Multi-constraint scenario description","decision": "Summary of the system's final decision","trace": ["Constraint identification", "Conflict trade-off", "Goal matching", "Action selection"],"purpose_alignment_score": 0.92,"explanation_level": "full-chain"}
This type of record connects a final decision with its context, intermediate reasoning stages, alignment score, and explanation coverage. It is intended to make evaluation results auditable rather than dependent solely on the final output.
3.3 Evaluation Workflow
The proposed testing process contains five stages:
- Semantic asset inventory: Register the system’s DIKWP representations and the interfaces used for transitions between layers.
- Static white-box analysis: Review semantic definitions, constraint rules, and monitoring points across cognitive modules.
- Dynamic transition testing: Build test cases covering the required layer transitions and collect runtime evidence chains.
- Closed-loop consistency verification: Verify whether the Purpose layer effectively drives the perception-to-decision loop and detect goal drift.
- 综合评级与报告: Produce layer-specific scores, evidence-chain summaries, and risk inventories in an auditable report.
The workflow emphasizes three properties:
- Repeatability: The same test case under the same configuration should produce reproducible evaluation conclusions.
- Traceability: Every conclusion should be linked to runtime evidence.
- Adversarial coverage: Test suites should include threat scenarios such as intention hijacking and knowledge contamination.
4. Cognitive Operating System Reference Architecture
If the testing specification answers “How should a system be tested?”, the reference architecture answers “What should the system look like internally?”
The draft defines a cognitive operating system as a system software layer organized around the DIKWP semantic space. It manages computational and model resources below the cognitive layer and supports cognitive applications above it.
4.1 Core Functional Modules
The reference architecture recommends including at least the following modules:
- Semantic Space Manager: Maintains representations and indexes for the five semantic layers—data, information, knowledge, wisdom, and purpose—and provides a unified semantic coordinate system for layer transitions.
- Purpose Engine: Models, decomposes, tracks, and reconciles goals. It serves as the core driver of closed-loop cognitive iteration.
- Cognitive Transition Engine: Implements D→I→K→W→P transformations and reverse feedback operations while producing auditable transition evidence.
- Memory and Experience Module: Manages short-term working memory and long-term knowledge accumulation, with support for experience retrieval and continual learning.
- Self-Monitoring and Reflection Module: Monitors the system’s own cognitive state at a meta level and supports anomaly detection and behavioral reflection.
- Safety and Governance Gateway: Applies ethical constraints, access controls, and compliance auditing policies in a unified manner.
4.2 Interface and Interoperability Requirements
To improve comparability and integration across implementations, the draft architecture defines three general interface requirements:
- Explicit semantics: Inter-module communication should carry structured representations with semantic-layer labels and confidence values, rather than passing only raw data.
- Exportable evidence: Every cognitive decision should be able to export an evidence chain in the format required by the testing specification. In this sense, the architecture itself becomes the object of testing.
- Pluggable policies: Safety and governance policies should be injected through declarative rules, allowing them to be adjusted for different scenarios and compliance requirements.
4.3 Relationship to the Traditional AI Application Stack
A cognitive operating system does not replace model inference engines or application frameworks. Instead, it adds a semantic organization and governance layer above them.
The relationship can be compared to that between a traditional operating system and hardware:
- The model functions like a CPU.
- The cognitive operating system schedules cognitive resources.
- It maintains semantic memory.
- It executes purpose priorities.
- It provides a unified cognitive programming interface to higher-level applications.
This separation allows model capabilities, cognitive organization, and governance controls to be managed as distinct but connected layers.
5. Implementation Path and Engineering Recommendations
Teams planning to adopt the draft standards can proceed incrementally:
- Begin with a semantic inventory: Map existing information flows to the five DIKWP layers and identify missing components. In many systems, the most significant gap is an explicit Purpose layer.
- Introduce evidence chains incrementally: A complete redesign is not required at the beginning. Teams can first add transition logs and explanation outputs to critical decision paths, then gradually expand coverage.
- Establish metric baselines: Use controlled test sets to establish baseline values for each layer. These baselines can support regression comparisons during version upgrades and help monitor purpose drift.
- Connect governance with testing: Make white-box evaluation reports part of the release-gating process, shifting safety governance from post-deployment review toward controls embedded throughout development and operation.
6. Conclusion
The tension between black-box capability and white-box explainability is a major challenge that AI systems must address before they can be used in highly autonomous scenarios.
The two DIKWP-based draft standards—the white-box testing specification and the cognitive operating system reference architecture—propose an engineering path centered on purpose-driven operation, explicit semantics, and auditable evidence.
The testing specification makes cognitive capabilities measurable and comparable. The reference architecture creates the structural conditions required for those capabilities to be verified. As the proposals undergo further refinement and pilot validation, they may provide important infrastructure for building artificial consciousness systems that are safer, more controllable, and more explainable, while supporting the responsible development of advanced AI.
