cadrumo.application.modelo.edit_receipt_ports module

Application-owned capability for co-committing Modelo edit receipts.

The edit executor creates the receipt DTO and asks this narrow capability for the secure-object write that accompanies the calculation revision. The encrypted repository and its storage failures remain in the outer adapter; only this application DTO, the core write value, and the translated failure cross the boundary.

exception ModeloEditReceiptPersistenceError(operation)[source]

Bases: CadrumoError

Translated failure from the edit-receipt persistence capability.

Parameters:

operation (str)

Return type:

None

code
class ModeloEditReceiptRepositoryPort(*args, **kwargs)[source]

Bases: Protocol

Required co-commit preparation capability for one Modelo edit.

to_secure_object_write(payload)[source]

Prepare the receipt write without committing it.

Return type:

SecureObjectWrite

Parameters:

payload (ModeloEditMutationResultReceiptV1)

class ModeloEditReceiptRepositoryFactory(*args, **kwargs)[source]

Bases: Protocol

Construct the receipt capability for one profile bucket.