Skip to content

The Three Loops as Description Logic Boxes

The three CKP loops map directly to the three boxes of OWL 2 Description Logic. This is the foundational architectural insight of the protocol.

This is the Key Page

The DL box mapping is not a metaphor. Each loop is physically realized as an independently-versioned volume. The separation has consequences for versioning, write authority, security, and migration.

The Mapping

DL BoxCKP LoopContentsWhat It Defines
TBox (terminological)CK Loopconceptkernel.yaml, ontology.yaml, rules.shaclThe kernel's type -- what CAN exist
RBox (relational)TOOL Looptool/processor, edges, actions, contractsHow the kernel relates and operates
ABox (assertional)DATA Loopstorage/instances/, proof/, ledger/What the kernel has produced -- individuals of the TBox type

Independence in Practice

Each box is physically realized as an independently-versioned volume. This means:

TBox changes do not require RBox changes. Updating the kernel's ontology does not require recompiling the tool. The schema evolves on its own schedule.

RBox changes do not affect the ABox. A kernel upgrades its tool from v1 to v2. The RBox (TOOL loop) changes -- new processor, new dependencies. The TBox (CK loop) and ABox (DATA loop) are untouched. Existing instances produced by v1 remain valid. The kernel's identity does not change. Only the relational box -- how it operates -- is versioned forward.

The ABox proves the TBox. Every instance in storage/ is an individual of the type defined in the TBox. The proof records in proof/ demonstrate conformance. This closes the accountability cycle.

Future: Database-Backed Boxes

The filesystem is the current physical layer. In future versions, TBox definitions may be served from a graph database (RDF/SPARQL) and ABox instances from a document database. The RBox (tool) remains filesystem -- it is executable code, not query results. The three-loop separation makes this migration transparent: swap the storage layer per loop without affecting the others.

Dependency Order

The loops are not peers. They exist in a deliberate dependency order that reflects the purpose of the Material Entity:

LoopExists ForDepends OnServes
DATAAccumulating what the CK knows and has producedTOOL (to produce instances), CK (for schema + rules)Other CKs via grants; the web/ surface; llm/ memory
TOOLExecuting the CK's capabilityCK loop (for ontology, rules, identity)DATA loop -- every tool execution writes to storage/
CKDefining and sustaining the Material EntityNothing -- this is the rootTOOL loop (schema, rules, identity) and DATA loop (schema, rules)

The Separation Axiom

Critical Rule

A storage write (DATA) must never cause a CK loop commit. A tool execution (TOOL) must never rewrite ontology.yaml or rules.shacl. A CK loop commit must never write directly to storage/. These boundaries are enforced by write authority rules on each filesystem volume -- not by convention.

BoundaryWhat Is ForbiddenWhy
TOOL -> CK loopTool execution writing to any file in the CK root volumeCK identity is operator-governed -- runtime cannot alter who the CK is
DATA -> CK loopStorage writes causing commits to conceptkernel.yaml or schemaIdentity and schema are design-time artifacts -- not derived from outputs
DATA -> TOOLInstance data retroactively modifying tool source or configTools are versioned independently -- instances are their outputs, not inputs to their definition
CK -> DATA directA CK loop commit writing an instance into storage/Instances are produced by tool execution -- they require the full tool-to-storage contract
CK B -> CK A writesAny kernel writing to another kernel's CK or TOOL volumeVolumes are sovereign -- another CK may only read DATA loop outputs via declared access

Security Enforcement

The DL box separation is enforced at the infrastructure level through volume driver readOnly flags:

DL BoxLoopVolume readOnlyConsequence
TBoxCKtrueRuntime process cannot modify identity or ontology
RBoxTOOLtrueRuntime process cannot modify its own code
ABoxDATAfalseRuntime process writes instances, proofs, ledger

This makes the Separation Axiom physically impossible to violate, not merely a convention.

Released under the MIT License.