cadrumo.application.auth.operator_result_projections module¶
Result projections for the operator-facing auth application services.
- auth_status_from_projection(projection)[source]¶
Project the canonical state projection into the
AuthStatusResultemit shape.The
AuthStatusResultis a CLI emit shape derived from the oneOperatorStateProjection; it is not a second state-assembly path.backend_configuredmirrors the single canonicalconfigured, andbackend_availablemirrors the single canonicalavailable.- Return type:
- Parameters:
projection (OperatorStateProjection)
- auth_configure_result(*, state, provider, certificate_path)[source]¶
Build a redacted configuration result that exposes identity readiness.
- Return type:
- Parameters:
state (WorkflowState)
provider (str)
certificate_path (Path | None)
- incomplete_auth_configuration_verdict(*, provider, certificate_path, profile_tax_id_present, provider_identity_present, identity_alignment)[source]¶
Record an incomplete configuration without inventing a recovery command.
Choosing a certificate file or changing one of two competing identities is an operator decision. The application records the exact failed condition, but cannot honestly materialise a single executable command from those facts.