Skip to main content

Crate cymule_core

Crate cymule_core 

Source
Expand description

The small, deterministic Cymule semantic kernel.

This crate owns canonical identity, the frozen IR, command admission, state-machine reduction, and replay. It deliberately performs no ambient I/O.

Structs§

ArtifactRecord
Immutable artifact bytes held by the embedded store.
ArtifactRef
Immutable artifact reference.
AttemptProjection
Fenced attempt projection.
CommandEnvelope
A preconditioned, idempotent command proposal.
CommandReceipt
Durable command receipt.
CompactionCertificate
Compaction witness. The Embedded profile constructs and validates this type but does not delete canonical history automatically.
ComponentContract
Abstract executable component contract.
Definition
A named Flow definition.
EffectContract
Abstract world-effect contract.
EffectProfile
Orthogonal effect properties used by admission and binding.
EffectProjection
Effect projection with immutable occurrence binding.
Event
A canonical event.
Machine
In-memory reference machine for the Semantic Interpreter and Embedded profiles. All ambient I/O belongs in higher-level runtime crates.
MachineBaseSnapshot
One verified canonical base projection replacing a causally closed prefix.
MachineCompaction
Portable evidence returned after compacting one canonical event prefix.
MachineSnapshot
Portable, provider-neutral snapshot of canonical inputs and optional base.
ObligationProjection
Scope-transferred world-effect obligation.
PlanCandidate
An unsealed, language-neutral semantic plan.
Projection
Rebuildable full projection.
Region
A structured sequence with an explicit result expression.
RunProjection
Rebuildable Run projection.
ScopeProjection
Scope projection.
SealedPlan
An immutable sealed plan.
Step
A stable operation site.

Enums§

Command
Commands admitted by the semantic kernel.
CommandReceiptStatus
Public command outcome.
CoreError
Stable semantic error categories.
DispatchPolicy
Effect release policy.
EffectPhase
Effect control phase.
EffectTransition
Legal effect transitions.
EventPayload
Canonical transition payloads.
Expression
Pure expressions over input, prior bindings, and literals.
MutationKind
Effect mutation class.
Operation
Frozen structured operations. Complex frontend syntax lowers to these five semantic boundaries.
ReconciliationMode
Reconciliation capability.
ReconciliationResolution
Reconciliation result transition.
ReconciliationState
Reconciliation state.
ReplayAvailability
Explicit exact-replay capability.
RunStatus
Public Run status.
ScopeMode
Scope behavior profile.
ScopeStatus
Scope lifecycle state.
WaitSpec
Durable wait descriptions.
WorldOutcome
Observed external-world outcome.

Constants§

COMMAND_VERSION
Public command version.
EVENT_VERSION
Canonical event version.
IR_VERSION
Frozen canonical IR version.
ROOT_SCOPE_ID
Stable root scope identifier within every Run.
SEMANTIC_VERSION
Semantic specification version.

Functions§

canonical_bytes
Serialize a value using RFC 8785 JSON Canonicalization Scheme.
canonical_digest
Compute a canonical digest without an identity prefix.
content_id
Compute a domain-separated content identifier for canonical JSON.
effect_intent_id
Derive the structural identity of one intentional effect occurrence.
effect_obligation_id
Derive a stable obligation identity from an intent.
sha256_bytes
Compute a lowercase hexadecimal SHA-256 digest.

Type Aliases§

Result
Result type used by the semantic kernel.