Skip to main content

cymule_core/
lib.rs

1//! The small, deterministic Cymule semantic kernel.
2//!
3//! This crate owns canonical identity, the frozen IR, command admission,
4//! state-machine reduction, and replay. It deliberately performs no ambient I/O.
5
6mod canonical;
7mod error;
8mod ir;
9mod machine;
10mod model;
11
12pub use canonical::{canonical_bytes, canonical_digest, content_id, sha256_bytes};
13pub use error::{CoreError, Result};
14pub use ir::{
15    ComponentContract, Definition, DispatchPolicy, EffectContract, EffectProfile, Expression,
16    IR_VERSION, MutationKind, Operation, PlanCandidate, ReconciliationMode, Region, ScopeMode,
17    SealedPlan, Step, WaitSpec,
18};
19pub use machine::{Machine, MachineBaseSnapshot, MachineCompaction, MachineSnapshot};
20pub use model::{
21    ArtifactRecord, ArtifactRef, AttemptProjection, COMMAND_VERSION, Command, CommandEnvelope,
22    CommandReceipt, CommandReceiptStatus, CompactionCertificate, EVENT_VERSION, EffectPhase,
23    EffectProjection, EffectTransition, Event, EventPayload, ObligationProjection, Projection,
24    ROOT_SCOPE_ID, ReconciliationResolution, ReconciliationState, ReplayAvailability,
25    RunProjection, RunStatus, SEMANTIC_VERSION, ScopeProjection, ScopeStatus, WorldOutcome,
26    effect_intent_id, effect_obligation_id,
27};