cadrumo.application.filing.history_repository module¶
Application repository facade for local filing-history records.
The repository persists lightweight ModeloHistory payloads keyed by
modelo. Encrypted storage, envelope validation, and persistence failures are
owned by the required outer capability in history_ports.
Core types:
SensitivityClass.
- class ModeloHistoryRepository(*, ports)[source]¶
Bases:
objectBucket-bound application facade over the filing-history capability.
- Parameters:
ports (FilingHistoryPorts)
-
sensitivity:
ClassVar[SensitivityClass]¶
- payload_type¶
alias of
ModeloHistory
- envelope_path_for(identifier)[source]¶
Return the logical marker for
identifier.- Return type:
Path- Parameters:
identifier (str)
- lock_target_for(identifier)[source]¶
Return the logical lock marker for
identifier.- Return type:
Path- Parameters:
identifier (str)
- extract_identifier(payload)[source]¶
Return the natural modelo identifier carried by
payload.- Return type:
- Parameters:
payload (ModeloHistory)
- classmethod payload_model()[source]¶
Return the payload type for outer custody-key inspection.
- Return type:
- load(identifier)[source]¶
Load one history through the composed application capability.
- Return type:
- Parameters:
identifier (str)
- save(payload)[source]¶
Persist one history through the composed application capability.
- Return type:
- Parameters:
payload (ModeloHistory)