cadrumo.domain.modelos.verification_repository module

Encrypted SQL repository for verification reports.

VerificationReportCatalogueRepository persists and loads VerificationReport entries in a VerificationReportCatalogue via SecureObjectRepository at FINANCIAL SensitivityClass. The catalogue is stored as a single encrypted BLOB per profile bucket and wrapped in Envelope before serialisation. The storage contract is declared by cadrumo.adapters.persistence.storage.secure_object_namespaces.MODELO_VERIFICATION_REPORT_CATALOGUE_NAMESPACE; its default object key is the singleton catalogue row.

exception VerificationReportPersistenceError(message=None, *, context=None, translated_message=None)[source]

Bases: ModeloError

Raised when the verification-report catalogue cannot be persisted or loaded.

This wraps storage-boundary failures from VerificationReportCatalogueRepository while preserving translated recovery context for callers.

Parameters:
  • message (str | None)

  • context (Mapping[str, object] | None)

  • translated_message (str | None)

Return type:

None

code
upsert_verification_report(catalogue, report)[source]

Return a new catalogue with report inserted or replaced.

Return type:

VerificationReportCatalogue

Returns:

A VerificationReportCatalogue with the given report added or updated.

Parameters: