clm-kernel 0.0.1

Cubical Logic Model (CLM) sovereign execution engine, CPN-VM, and Cordis spatiotemporal substrate
Documentation

clm-kernel

Core runtime engine and domain abstractions for the Card Lifecycle Manager (CLM) in Rust.

clm-kernel provides high-performance determinism, cryptographic verification, content-addressable memory, and actor execution primitives for sovereign functional agentic systems.

Features

  • core: Minimal zero-network, zero-database core (hashing, AST, error models, type lattice). Sub-second compilation time.
  • fiber: Cordis Spatiotemporal Micro-Harness and monadic effect isolation (DisposableList, SavepointGuard).
  • crdt: Conflict-Free Replicated Data Types, vector clocks, and multi-agent state convergence.
  • db: Dual-pool SQLite engine with WAL mode and statement caching.
  • async: Tokio-backed asynchronous task scheduling.
  • native: Full native profile bundling database, network gateway, and system runtime.
  • wasm: Browser and Edge WebAssembly compilation profile.

Usage

Add to your Cargo.toml:

[dependencies]
clm-kernel = { version = "0.0.0", default-features = false, features = ["core", "fiber"] }

Quick Start

use clm_core::prelude::*;

fn main() -> Result<()> {
    let hash = raw_hash_bytes(b"hello clm");
    println!("BLAKE3 Hash: {}", hash);

    let did = AgentDid::parse("did:pkc:node-1")?;
    println!("Agent DID: {}", did.as_str());
    Ok(())
}

Binary CLI

When built with default or native features, the binary clm_rust_core is provided:

cargo run --bin clm_rust_core -- --help

License

MIT License. See LICENSE for details.

Monorepo & Documentation

Source code, formal proofs, and multi-language kernels (Python, JavaScript/TypeScript, WASM) are maintained in the main CLM Repository.