cadrumo.application.live.iva_remote_state_ports module¶
Inward ports for live IVA remote-state acquisition.
The application service owns orchestration and redacted report projection. AEAT browser access, encrypted evidence persistence, and active-profile session selection are composed at the entrypoint boundary.
- class IvaRemoteStatePort(*args, **kwargs)[source]¶
Bases:
ProtocolConcrete capabilities required by the live IVA application service.
- active_storage_span()[source]¶
Open the storage scope required for the live acquisition.
- Return type:
- list_history(*, as_of_year)[source]¶
Read persisted IVA compensation history through the port.
- Return type:
- Parameters:
as_of_year (int | None)
- persist_manifest(manifest)[source]¶
Persist one acquisition manifest through the secure boundary.
- Return type:
- Parameters:
manifest (IvaRemoteStateAcquisitionManifest)
- active_verified_session(*, operation, target_url)[source]¶
Open the active verified AEAT session for an operation.
- ensure_authenticated_session(settings, *, operation, target_url)[source]¶
Ensure an AEAT session is authenticated for an operation.
- Return type:
- Parameters:
- capture_history(session, *, settings, year_from, year_to, output_root, progress_context)[source]¶
Capture IVA compensation history for the requested year range.
- Return type:
- Parameters: