cadrumo.application.modelo.verification_repository_ports module¶
Application-owned repository ports for modelo verification.
Verification is an application use case: it coordinates several persistence capabilities, but it must not know which encrypted-storage adapters implement them. This module keeps that capability boundary in the application layer. The outer composition root supplies the concrete implementations as one coherent bundle for each profile bucket.
- class WorkflowRunRepositoryProtocol(*args, **kwargs)[source]¶
Bases:
ProtocolWrite-side contract for verification workflow-run audit records.
- save(result, *, runs_dir=None)[source]¶
Persist one workflow result and return its marker path.
- Return type:
Path- Parameters:
result (WorkflowResult)
runs_dir (Path | None)
- class VerificationRepositoryBundle(calculation, work_unit, filing, transaction, verification, bucket_event, observation, iva_compensation_history, iva_compensation_decision, participation_index, workflow_run, justificante, draft_review_ports, workflow_gate_ports)[source]¶
Bases:
objectAll persistence capabilities required by one modelo verification run.
Every field is required. The bundle is assembled by an outer composition root against one profile bucket and passed unchanged through the application call chain; verification never manufactures a repository or resolves an implicit global store.
- Parameters:
calculation (CalculationRevisionCatalogueRepositoryProtocol)
work_unit (WorkUnitCatalogueRepositoryProtocol)
transaction (TransactionCatalogueRepositoryProtocol)
verification (VerificationReportCatalogueRepositoryProtocol)
bucket_event (BucketEventHistoryRepositoryProtocol)
observation (CalculationObservationRepositoryProtocol)
iva_compensation_history (IvaCompensationHistoryRepositoryProtocol)
iva_compensation_decision (IvaWalletDecisionRepositoryProtocol)
participation_index (TransactionParticipationIndexRepositoryProtocol)
workflow_run (WorkflowRunRepositoryProtocol)
justificante (JustificanteRepositoryProtocol)
draft_review_ports (DraftReviewPorts)
workflow_gate_ports (WorkflowGatePorts)
-
calculation:
CalculationRevisionCatalogueRepositoryProtocol¶
-
work_unit:
WorkUnitCatalogueRepositoryProtocol¶
-
transaction:
TransactionCatalogueRepositoryProtocol¶
-
verification:
VerificationReportCatalogueRepositoryProtocol¶
-
bucket_event:
BucketEventHistoryRepositoryProtocol¶
-
observation:
CalculationObservationRepositoryProtocol¶
-
iva_compensation_history:
IvaCompensationHistoryRepositoryProtocol¶
-
iva_compensation_decision:
IvaWalletDecisionRepositoryProtocol¶
-
participation_index:
TransactionParticipationIndexRepositoryProtocol¶
-
workflow_run:
WorkflowRunRepositoryProtocol¶
-
justificante:
JustificanteRepositoryProtocol¶
-
draft_review_ports:
DraftReviewPorts¶
-
workflow_gate_ports:
WorkflowGatePorts¶