Skip to main content

clm-kernel

Card Lifecycle Manager (CLM) Kernel — Sovereign Functional Agentic Operating System.

clm-kernel is the foundational Python implementation of the Cubical Logic Model (CLM), providing a stratified 5-layer architecture for sovereign, functional, deterministically auditable agentic execution.

Architectural Layers

  • Layer 0: Cryptographic Substrate & Storage
    • Content-addressable storage via BLAKE3 hashing
    • Merkle DAG tree synthesis and verification
    • TriDatabase manager and multi-agent Vector Clocks
  • Layer 1: Type Lattice & Schema Model
    • Pydantic-backed invariant validation
    • Deterministic AST transformations and MCard schemas
  • Layer 2: Reactive Graph & CPN-VM
    • Coloured Petri Net (CPN) virtual machine
    • Token passing, transition firings, and concurrency invariants
  • Layer 3: Cordis Spatiotemporal Actor Model
    • Effect isolation, savepoints (SavepointGuard), and cleanup scopes (DisposableList)
    • Monadic execution with rollback guarantees
  • Layer 4: Sovereign Execution & Gateway
    • Full CLI (clm, clmEval)
    • Triad Gateway and Model Context Protocol (MCP) server integration

Installation

pip install clm-kernel

CLI Usage

# Display CLI help
clm --help

# Evaluate an action or workflow manifest
clm evaluate --file workflow.yaml

# Initialize TriDatabase storage
clm init-tridb --path ./data

Python API Quick Start

from clm.layer0.merkle import MerkleTree
from clm.layer4 import SovereignExecutor

# Create and verify Merkle DAG
tree = MerkleTree()
tree.insert("card-1", b"payload data")
root_hash = tree.compute_root()
print(f"Merkle Root: {root_hash}")

License

MIT License. See LICENSE for details.

Monorepo & Documentation

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

Metadata

Release files for clm-kernel 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for clm-kernel 0.0.3
File Size Uploaded Provenance Actions
clm_kernel-0.0.3.tar.gz 738.5 kB Without provenance Details for clm_kernel-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for clm-kernel 0.0.3
File Interpreter ABI Platform Actions
clm_kernel-0.0.3-py3-none-any.whl Python 3 none any Details for clm_kernel-0.0.3-py3-none-any.whl

Total release size: 1.5 MB

Release files / clm_kernel-0.0.3.tar.gz

Download URL clm_kernel-0.0.3.tar.gz
Size 738.5 kB
Tags Source
SHA-256 checksum
How to use checksums
edd919fc4014dbec89f5c934bfc5a3d517b11510f5f6cf80ab0c1359bbc2d1e5
BLAKE2b-256 checksum
How to use checksums
44a18fe25df0fc30414e032f948e7b7d919b7ea913b46be6b110158f9d4d563d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.0 {"installer":{"name":"uv","version":"0.12.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / clm_kernel-0.0.3-py3-none-any.whl

Download URL clm_kernel-0.0.3-py3-none-any.whl
Size 719.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5e8976ab14cade11e2177dec43decbb9decda9bddff63a5f467359f87d227281
BLAKE2b-256 checksum
How to use checksums
bd28447c23957d49a09338ac752b6887c249f9a9ccde255f015c9b0c852632a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.0 {"installer":{"name":"uv","version":"0.12.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for clm-kernel 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page