cadrumo.application.operations.persistence.events module¶
Ordered, presentation-free event contracts for supervised operations.
- class OperationPhaseEvent(**data)[source]¶
Bases:
_OperationEventBaseRecord an operation phase transition at one durable event sequence.
- Parameters:
data (Any)
- kind: Literal[OperationEventKind.PHASE]¶
- phase_code: OperationEventCode¶
- class OperationProgressEvent(**data)[source]¶
Bases:
_OperationEventBaseRecord bounded progress for one operation revision.
- Parameters:
data (Any)
- kind: Literal[OperationEventKind.PROGRESS]¶
- completed: NonNegativeInt¶
- total: Annotated[int, Field(gt=0)]¶
- unit_code: OperationEventCode | None¶
- class OperationLogRecord(**data)[source]¶
Bases:
_OperationEventBaseStructured log event carrying no prose or exception payload.
- Parameters:
data (Any)
- kind: Literal[OperationEventKind.LOG]¶
- severity: OperationLogSeverity¶
- diagnostic_ref: OperationDiagnosticReference | None¶
- class OperationEffectEvent(**data)[source]¶
Bases:
_OperationEventBaseRecord the externally visible effect reached by an operation.
- Parameters:
data (Any)
- kind: Literal[OperationEventKind.EFFECT]¶
- effect: OperationEffect¶
- class OperationNoticeEvent(**data)[source]¶
Bases:
_OperationEventBaseStable notice identity; localized message text is a projection.
- Parameters:
data (Any)
- kind: Literal[OperationEventKind.NOTICE]¶
- notice_code: OperationEventCode¶
- class OperationReconciliationEvent(**data)[source]¶
Bases:
_OperationEventBaseOne credential-free durable classification of startup reconciliation.
- Parameters:
data (Any)
- kind: Literal[OperationEventKind.RECONCILIATION]¶
- outcome: OperationReconciliationOutcome¶
- lease_evidence_ref: ContentDigest¶
- class OperationDiagnosticEvent(**data)[source]¶
Bases:
_OperationEventBaseReference existing redacted diagnostics without duplicating capture.
- Parameters:
data (Any)
- kind: Literal[OperationEventKind.DIAGNOSTIC]¶
- diagnostic_ref: OperationDiagnosticReference¶