Skip to main content

Crate soma_ops

Crate soma_ops 

Source
Expand description

Product-neutral contracts for safe infrastructure operations.

soma-ops defines stable operation identities, typed request envelopes, catalog metadata, authorization evidence, deterministic plans, bounded progress, terminal results, verification, and lifecycle events. It does not know about Soma principals, Synapse scopes, MCP elicitation, CLI prompts, Docker, Incus, SSH, databases, or product configuration.

Product applications translate their own identity and policy into these contracts. Concrete engines such as soma-infra implement operation definitions over these types.

Structs§

ActorRef
Stable reference to the product or agent that requested an operation.
ArtifactRef
Reference to a protected or durable operation artifact.
AuthorizationEvidence
Opaque, time-bounded authorization evidence issued by a product layer.
AuthorizationId
Opaque identity for authorization evidence issued by a product policy layer.
AuthorizationScope
Exact operation and target scope approved by product policy.
CorrelationId
Identity shared by operations participating in one workflow or incident.
Diagnostic
Correctable diagnostic returned by an operation engine.
DiagnosticCode
Stable machine-readable diagnostic code such as target.not_found.
DiagnosticCodeError
Invalid stable diagnostic code.
EventId
Unique identity for one operation lifecycle event.
EvidenceRef
Reference to evidence captured by an operation.
ExecutionMetadata
Timing, mutation-send, and retry metadata for terminal execution.
IdempotencyKey
Caller-provided key that makes a supported mutation safely repeatable.
IdempotencyKeyError
Error returned for an invalid idempotency key.
NoopProgressSink
Progress sink that intentionally discards events.
OperationContext
Traceable execution context supplied by the calling product.
OperationEventEnvelope
Common envelope for operation lifecycle events.
OperationId
Unique identity for one operation execution.
OperationName
Stable dotted operation identity such as container.restart.
OperationNameError
Error returned for an invalid canonical operation name.
OperationPlan
Immutable authorization-relevant operation plan.
OperationRequest
Typed request envelope for one concrete operation definition.
OperationResult
Terminal result for one operation execution.
OperationSpec
Product-neutral catalog record for one operation.
ParameterGroup
One complete set of parameter names required together.
PlanFingerprint
SHA-256 fingerprint of the complete authorization-relevant plan material.
PlanStep
One ordered execution step within a plan.
PlannedChange
One intended resource change described before execution.
ProducerRef
Identity and version of the component that emitted an operation event.
ProgressEvent
One bounded monotonic progress update for an operation.
RedactionMetadata
Description of fields or artifacts removed from a result.
SchemaId
Stable identity for a versioned operation parameter or result schema.
TargetRef
Stable, serializable reference to an operation target.
Timestamp
Milliseconds from the Unix epoch used in cross-process operation contracts.
TraceContext
W3C trace context safe to propagate across operation boundaries.
VerificationResult
Independent runtime-state verification result.
VerificationStrategy
Operation used to verify actual runtime state after execution.

Enums§

AccessClass
Whether an operation only observes state or may mutate it.
AuthorizationError
Authorization evidence validation failure.
CapabilitySupport
Whether an implementation supports a lifecycle capability.
DiagnosticSeverity
Severity of one structured diagnostic.
EventError
Invalid lifecycle event envelope.
EvidenceKind
Kind of evidence an operation can return for audit or verification.
IdentityError
Validation failures for opaque identities and cross-product references.
MutationSendState
Whether a failed operation may already have reached the target.
OperationEventPayload
Lifecycle-specific operation event payload.
OperationEventType
Canonical operation lifecycle event type.
OperationStatus
Terminal operation status before independent verification.
PlanError
Invalid operation plan or plan fingerprint.
ProgressError
Invalid progress event.
RequestError
Request validation failure.
ResultError
Invalid operation result or result metadata.
RetryClass
Whether a failed call may be retried automatically.
Reversibility
Expected ability to reverse an operation’s effect.
RiskClass
Operational risk independent of product-specific authorization policy.
SchemaIdError
Invalid operation schema identity.
SpecError
Invalid operation catalog metadata.
TargetKind
Typed category of a resource targeted by an operation.
TargetRefError
Validation failure for a target reference.
VerificationStatus
Independent verification outcome after execution completes.

Traits§

EventSink
Sink for operation lifecycle events, implemented by embedded or remote adapters.
OperationDefinition
Typed definition implemented by a concrete infrastructure operation.
ProgressSink
Consumer of operation progress events.

Type Aliases§

OperationEvent
Backward-compatible short name for the canonical event envelope.