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

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.11
File Size Uploaded Provenance Actions
clm_kernel-0.0.11.tar.gz 850.8 kB Without provenance Details for clm_kernel-0.0.11.tar.gz

Built distribution (wheel)

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

Total release size: 1.7 MB

Release files / clm_kernel-0.0.11.tar.gz

Download URL clm_kernel-0.0.11.tar.gz
Size 850.8 kB
Tags Source
SHA-256 checksum
How to use checksums
01dd8ea616eff14a4cdc14728c21b03e4c0870f823cac983f8be0be9a2e481fb
BLAKE2b-256 checksum
How to use checksums
12ae06bf451d8bab95f6a75a45ec532720a48b73d755740bf0add2f4f39b8aa5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.3

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

Download URL clm_kernel-0.0.11-py3-none-any.whl
Size 851.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0ce435339da85abc7fb91c5001a093a9ea8fb5ccfec6dde93b62c61db9948310
BLAKE2b-256 checksum
How to use checksums
d07f4c5aab1569d723ac6aa6b1964859a4399780271edccfd33e72465c3d32c2
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.11

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