clm-kernel 0.0.15

Cubical Logic Model (CLM) sovereign execution engine, CPN-VM, and Cordis spatiotemporal substrate
Documentation
//! CLM Core Prelude.
//!
//! Re-exports canonical domain primitives, error contracts, cryptographic hashing,
//! and feature-gated subsystems (Cordis Fiber, CRDT, SQLite pooling).

// Core error contracts
pub use crate::error::{
    AuthErrorCode, ClmError, CpnErrorCode, CryptoErrorCode, EvaluatorErrorCode,
    ManifestErrorCode, Result, StorageErrorCode, TransportErrorCode,
};

// Core domain newtypes
pub use crate::types::{
    AgentDid, ContentHash, Handle, MarkingHash, PlaceId, SavepointToken, SecretKeyBytes,
    TransitionId,
};

// Spatiotemporal FND domain models (Sprint 190)
pub use crate::domain::{
    BailVerdict, BooleanPCard, CordisCoeffects, DynamicPCard, InvariantPhase, MCard, MCardPayload,
    PCardDefinition, PrimitivePCard,
};

// MCard Virtual Filesystem (Sprint 191)
#[cfg(any(feature = "native", feature = "db"))]
pub use crate::mcard_fs::{MCardFileSystem, MCardStat};

// Cryptographic hashing primitives
pub use crate::hash::{
    prefixed_hash_bytes, prefixed_hash_string, raw_hash_bytes, raw_hash_bytes_32,
    raw_hash_string, strip_prefix, verify_hash,
};

// Cordis Fiber primitives
#[cfg(feature = "fiber")]
pub use crate::fiber::{
    context::{Context, Fiber, FiberState},
    disposable::DisposableList,
    event::{DispatchMode, EventBus},
    hoare::{HoareExecutionReport, HoareFiberExecutor, HoareTriple},
    plugin::PluginFunctor,
};

#[cfg(all(feature = "fiber", any(feature = "native", feature = "db")))]
pub use crate::fiber::disposable::{SavepointGuard, TriDbSavepointGuard};

// CRDT primitives
#[cfg(feature = "crdt")]
pub use crate::crdt::{
    CrdtLog, LearningEvent, SyncReport, VectorClock,
};

// Database connection & pooling primitives
#[cfg(any(feature = "native", feature = "db"))]
pub use crate::db::{
    card_exists, get_card_content, get_connection, get_pillar_pool, get_reader_connection,
    get_shared_connection, get_writer_connection, resolve_handle_content, resolve_handle_hash,
    setter_card_batch, DbPillarPool,
};