cadrumo.application.user_profile.acquisition_sources module¶
The known explicit profile acquisition sources: what exists, never how to run it.
Every operator-facing surface offering a “get data” launch action reads this catalogue rather than hand-listing sources, so a new acquisition source is declared once. It submits nothing: a launch is always the caller’s own composed operation door. Operator-facing copy is a presentation concern and is resolved by the adapter rendering the source, not declared here.
Credential posture is the one exception: whether a source needs a held AEAT
credential to run, and whether the operator currently has one on file, are
facts an operator needs BEFORE pressing launch, so this module also declares
that contract – derived from the real owning authority
(AuthState), never a
presentation-local guess. Both currently declared sources
(censo,
filed_data_capture) route through
active_verified_session(), the shared
AEAT live-read gate, so both require the same posture; a source that read
only locally-held facts would declare requires_aeat_authentication=False.
- class ProfileAcquisitionSourceKey(*values)[source]¶
Bases:
StrEnumEvery acquisition source an operator may explicitly launch from a profile.
- CENSAL_REVIEW¶
- FILED_HISTORY¶
- class ProfileAcquisitionSourceV1(**data)[source]¶
Bases:
BaseModelOne acquisition source’s identity, never resolved prose.
requires_aeat_authenticationis read from the source’s own implementation, not asserted for presentation convenience: both declared sources callactive_verified_session()before touching AEAT, so both are True today. A future source resolving only already-held local facts would declare False here rather than inheriting a blanket default.- Parameters:
requires_aeat_authentication (bool)
- key: ProfileAcquisitionSourceKey¶
- requires_aeat_authentication: bool¶
- known_profile_acquisition_sources()[source]¶
Return every declared acquisition source, in a stable declaration order.
- Return type:
- class AcquisitionSourceCredentialPostureV1(**data)[source]¶
Bases:
BaseModelWhether one source’s declared authentication requirement is currently met.
credential_heldandprovider_idare read straight fromAuthState– the same persisted workflow-state fact the status page and every auth CLI surface already read. This model states only what the source needs and what is on file; it does not claim the on-file credential is still valid against AEAT right now, which only a live probe can know.- Parameters:
data (Any)
- source: ProfileAcquisitionSourceKey¶
- requires_aeat_authentication: bool¶
- credential_held: bool¶
- provider_id: str | None¶