cadrumo.application.workflow.review_models module¶
Canonical workflow event and review-record contracts.
- class WorkflowEvent(**data)[source]¶
Bases:
BaseModelOne operator-visible event emitted by a mutating workflow verb.
Events are appended to
bucket_eventsso the operator can audit which actions ran, when, and against which object.actionnames the verb (e.g."profile.created");reasoncarries a free-form human-readable annotation;bucket_idandobject_idare optional pointers to the affected resource.- Parameters:
data (Any)
- action: str¶
- reason: str¶
- bucket_id: BucketId | None¶
- object_id: str | None¶
- at: datetime¶
- class LedgerReviewRecord(**data)[source]¶
Bases:
BaseModelWorkflow attention annotation for one persisted transaction.
Durable transaction facts are not stored here. Classification, category, business percentage, tax fields, evidence references, skip/final-disposition state, and corrections live on the bucket-scoped transaction catalogue.
- Parameters:
data (Any)
- transaction_id: TransactionId¶
- history: tuple[WorkflowEvent, ...]¶
- updated_at: datetime¶