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 six-layer architecture (layer0 … layer5) for sovereign, functional, deterministically auditable agentic execution.

Layer model (DOC-02). This package implements the six logical strata defined in docs/architecture/six_layers_architecture.md and docs/spec/20-architecture/system-architecture.md. The authoritative stratum ↔ package mapping is docs/sprints/13_documentation-reconciliation/DOC-02-layer-model-reconciliation.md.

Architectural Layers

  • Layer 0: Stateless Kenotic Core (Microkernel) (clm/layer0/)
    • Pure algebraic primitives, AST parsers, codecs, hashing, and static schemas
    • Content-addressable identity and MCard primitives
  • Layer 1: Colored Petri Net (CPN) Virtual Machine (clm/layer1/)
    • Coloured Petri Net (CPN) virtual machine, token passing, transition firings
    • Incidence-matrix / Noetherian invariant solving; Baldwin operator algebra
  • Layer 2: Content-Addressable Storage (CAS) & Cordis Fiber Substrate (clm/layer2/)
    • Tri-Database storage, CAS/Merkle substrate, Cordis spatiotemporal fibers
    • Effect isolation, savepoints (SavepointGuard), and cleanup scopes
  • Layer 3: Distributed Network Gateway & Multi-Agent Coordination (clm/layer3/)
    • Reticulum mesh transport/discovery, Satori speech-act protocol, handle routing
  • Layer 4: Human Interaction Surface & Conversational Programming (clm/layer4/)
    • Conversational gateways, presentation membranes, EOA sponsor signing, CLI (clm, clmEval)
  • Layer 5: System Orchestration, Evaluator Engine & Playbooks (clm/layer5/)
    • Continuous-learning stratum ($\Gamma$), epistemic fitness ($\Delta E$), telemetry hooks

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.hash import prefixed_hash
from clm.layer0.mcard import MCardPayload, create_mcard, verify_mcard_integrity

# Construct a content-addressed MCard (BLAKE3) and verify its integrity
card = create_mcard(
    uri="mcard://example/greeting",
    payload=MCardPayload(kind="Text", value="payload data"),
    author="did:clm:example",
)

print(f"Content hash: {prefixed_hash(b'payload data')}")  # blake3:<hex>
print(f"Card hash:    {card.hash}")
assert verify_mcard_integrity(card)

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.10

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.10
File Size Uploaded Provenance Actions
clm_kernel-0.0.10.tar.gz 843.3 kB Without provenance Details for clm_kernel-0.0.10.tar.gz

Built distribution (wheel)

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

Total release size: 1.7 MB

Release files / clm_kernel-0.0.10.tar.gz

Download URL clm_kernel-0.0.10.tar.gz
Size 843.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0ebad5e44fb714375541e98e58632b39f78edc6f699068ecd18222d0b2efa65f
BLAKE2b-256 checksum
How to use checksums
7cdc4cb23f0bce8c85aeb8975511bb484a80649027c4b0624488c4416a4fb8f5
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.10-py3-none-any.whl

Download URL clm_kernel-0.0.10-py3-none-any.whl
Size 843.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
850274429351c037c9db07b752f133deed5a3785b10a68da1f0abe17ba93904d
BLAKE2b-256 checksum
How to use checksums
34ee0312c52b9336942a7f2cbb45338009f8a7f8ef1b676bf22e8099971cafa2
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.10

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