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

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

Built distribution (wheel)

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

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

Download URL clm_kernel-0.0.9-py3-none-any.whl
Size 841.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
52135675fc6ceaae88dfcea7555d74a6299da5ad83149e2a8710c7e913ebae84
BLAKE2b-256 checksum
How to use checksums
756ac4438a33cb690ea5a136aeb7c8807cdf9c92598a079b26fc10f305864ad8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.3

Security for clm-kernel 0.0.9

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