Skip to main content

Module ops_lifecycle

Module ops_lifecycle 

Source
Expand description

In-memory runtime implementation of the shared async-operation lifecycle seam.

Per-operation canonical lifecycle state lives in the MeerkatMachine DSL authority (op_statuses, op_terminal_outcomes, op_kinds, op_sources, op_peer_ready, op_progress_counts, active_op_count, wait_active, wait_operation_ids). This shell layer owns pure mechanics: watcher channels, timestamps, peer handles, snapshot assembly, FIFO eviction bookkeeping, the completion feed buffer, and typed delivery of generated admission/rejection feedback.

Per-transition legality (“is CompleteOp legal on a Provisioning op?”) is NOT owned by the shell — it lives in the DSL’s from_status_valid guards on each op-lifecycle transition. The shell’s only job on a GuardRejected rejection is to ask the generated rejection resolver for the public result class.

Structs§

CompletionFeedCanonicalState
Generated-owned public completion feed fact captured from DSL authority.
OperationCanonicalState
Canonical per-operation state as captured in persisted snapshots.
OpsLifecycleConfig
Configuration for RuntimeOpsLifecycleRegistry.
OpsLifecyclePersistenceRequest
PersistedOpsSnapshot
Serializable snapshot of the ops lifecycle registry state.
RegistryCanonicalState
Canonical registry-level state as captured in persisted snapshots.
RuntimeCompletionFeed
Read-only handle to the runtime completion feed.
RuntimeOpsLifecycleRegistry
Per-runtime shared registry for async operation lifecycle truth.