cadrumo.application.live.remote_state_outcomes module¶
Outcome and redaction helpers for live IVA remote-state acquisition.
Failure contexts are redacted with the SensitivityClass diagnostic
policy before they are copied into live IVA read outcomes.
- surface_outcome(surface, *, report, error, auth)[source]¶
Build and return a
LiveIvaReadOutcomefor one live IVA read surface.- Return type:
- Parameters:
surface (LiveIvaReadSurface)
report (IvaCompensationHistoryCaptureReport | IvaWalletCaptureReport | None)
error (BaseException | None)
auth (LiveIvaAuthOutcome)
- auth_outcome(*, auth_result, error)[source]¶
Build and return a
LiveIvaAuthOutcomefor live IVA acquisition.- Return type:
- Parameters:
auth_result (AuthenticatedAeatSessionResult | None)
error (BaseException | None)
- bounded_context_text(value, *, max_length=160)[source]¶
Return normalized diagnostic text bounded for persisted context payloads.
- evidence_ref(value)[source]¶
Return the stable, non-reversing reference this package prints for a value.
A diagnostic that has to name a sensitive value names this instead. The truncation width is the reason the helper is shared rather than reimplemented: one reference is only comparable to another if every producer truncates identically, and a second copy is one edit away from silently disagreeing about that width.