Skip to main content

Crate sim_lib_operation_gate

Crate sim_lib_operation_gate 

Source
Expand description

Declaration-driven gate for capability-scoped operations.

The gate contains no domain policy: callers provide a manifest declaration, exact approval verifier/use adapters, a record sink, and the performer. The journal-backed OperationLifecycle adds bounded fenced leases, durable dispatch, independent postcondition observation, and truthful reconciliation.

Structs§

Approval
Approval presented for a reviewed operation.
DispatchId
Identity of a dispatch durably recorded before a performer is called.
EvidenceSetId
Identity of the evidence carried by one observation.
FencedDispatch
Durable performer handoff bound to an exact grant, attempt, and fenced lease.
FencedDispatchId
Identity of one lease-bound durable dispatch.
GateContext
Dependencies used to guard one operation.
GateRecord
Audit record emitted after successful first performance.
LeaseWindow
Explicit holder and monotonic bounds for one operation lease acquisition.
LifecycleReceipt
Raw performer acknowledgement bound to one fenced dispatch.
LifecycleReceiptId
Identity of one raw lifecycle performer receipt.
OperationAttempt
One caller-selected attempt ordinal for a stable operation.
OperationAttemptId
Identity of one attempt record, kept separate from the operation id.
OperationDeclaration
Canonical operation declaration supplied by a domain manifest.
OperationDispatch
Exact durable handoff to an injected performer.
OperationGrant
Exact authority presented for one operation.
OperationGrantId
Identity of one separately recorded least-authority grant.
OperationId
Stable identity derived only from canonical immutable operation intent.
OperationIntent
Canonical semantic intent whose identity survives grants, attempts, and leases.
OperationLease
Bounded effect authority tied to the journal writer fence that recorded it.
OperationLeaseId
Identity of one bounded, fenced operation lease.
OperationLifecycle
Journal-backed M5 coordinator for fenced dispatch and independent reconciliation.
OperationLifecycleRecord
Complete verified lifecycle history reconstructed only from the journal.
OperationObservation
Durable independent observation of one operation postcondition.
OperationObservationId
Identity of one independent postcondition observation.
OperationOutcomeId
Identity of one durable reconciliation outcome.
OperationRecord
Complete verified durable record for one operation.
OperationService
Journal-backed owner of durable operation intent, dispatch, and raw receipts.
PerformerReceipt
Raw performer acknowledgement bound to one durable dispatch.
PerformerReceiptId
Identity of a raw performer acknowledgement.
PostconditionRequest
Request passed to an independent observer without performer authority.

Enums§

ApprovalDecision
Explicit approval decision.
DurableOperationState
The three durable states delivered by the operation-log phase.
ExecutionMode
Policy label for an operation. None implies reversibility.
LifecyclePerformerResponse
Result of calling a lifecycle performer after durable dispatch.
OperationError
Typed refusal from durable operation construction, replay, or publication.
OperationOutcome
Reconciled semantic operation result.
OperationStep
Last durable lifecycle boundary available to reconciliation.
PerformerResponse
Result of one injected performer call.
PostconditionResponse
Typed result from a postcondition observer.
ReplayPolicy
Replay rule bound into immutable operation intent.
SinkFailurePolicy
Policy for a record-sink failure after the operation performed.

Traits§

ApprovalUse
Atomically consumes a verified approval once.
ApprovalVerifier
Validates approval authenticity and validity without consuming it.
GateRecordSink
Receives gate records.
LifecyclePerformer
Effect authority invoked only after a matching fenced dispatch is durable.
OperationPerformer
Effect boundary used only after a matching dispatch is durable.
PostconditionObserver
Effect-free identity plus independently performed postcondition observation.

Functions§

guard_operation
Guard and resolve an effect, returning the kernel’s result reference directly.

Type Aliases§

OperationIntentId
Identity of canonical operation intent.