Exact, transient Codex launch materialization for a governed account.
The struct is the provider-family boundary between a credential materializer and Codex. It deliberately contains the secret-bearing child environment, so it is redacted from inspection and cannot be JSON encoded. Callers may not supplement any of its command, account, routing, root, or environment fields.
Summary
Functions
Builds a Codex launch materialization from the frozen Jido request and secret material contracts plus provider-specific launch fields.
Projects a validated Codex materialization into the narrower governed authority accepted by the shared CLI runtime.
Types
@type t() :: %Codex.GovernedAuthority{ account_namespace: String.t(), auth_root: String.t(), authority_ref: String.t(), base_url: String.t(), clear_env?: true, command: String.t(), config_root: String.t(), connector_binding_ref: String.t(), connector_instance_ref: String.t(), credential_lease_ref: String.t(), cwd: String.t(), endpoint_ref: String.t(), env: %{required(String.t()) => String.t()}, expires_at: DateTime.t(), fence: non_neg_integer(), generation: pos_integer(), issued_at: DateTime.t(), materialization_ref: String.t(), native_auth_assertion_ref: String.t(), operation_policy_ref: String.t(), operation_ref: String.t(), provider_account_ref: String.t(), target_ref: String.t() }
Functions
Builds a Codex launch materialization from the frozen Jido request and secret material contracts plus provider-specific launch fields.
@spec to_cli_core(t() | nil) :: {:ok, CliSubprocessCore.GovernedAuthority.t() | nil} | {:error, term()}
Projects a validated Codex materialization into the narrower governed authority accepted by the shared CLI runtime.
Provider-specific identity, lifecycle, and account fields intentionally do
not cross this boundary. Maps and unrelated structs must first pass through
new/1; this function never treats them as CLI runtime authority.