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.mdanddocs/spec/20-architecture/system-architecture.md. The authoritative stratum ↔ package mapping isdocs/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)
- Conversational gateways, presentation membranes, EOA sponsor signing, CLI (
- 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.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| clm_kernel-0.0.6-py3-none-any.whl | Python 3 | none | any | Details for clm_kernel-0.0.6-py3-none-any.whl |
Release files / clm_kernel-0.0.6-py3-none-any.whl
| Download URL | clm_kernel-0.0.6-py3-none-any.whl |
|---|---|
| Size | 760.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
991517d4622c32f2765b080b9250e948c6f78035c5f4a27eedc3494d63fa566a
|
|
BLAKE2b-256 checksum How to use checksums |
823f4b0f251af7b796e8f58c0f84c7b0e901a6ee58a8118937d2f1500b152176
|
| 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.6
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.