Skip to main content

resolve_ep_map_env

Function resolve_ep_map_env 

Source
pub fn resolve_ep_map_env(
    general: Option<String>,
    glm5_alias: Option<String>,
) -> Result<Option<(&'static str, String)>, String>
Expand description

Pure resolution over the two names (env in production; plain values in the unit tests — the env-mutation-free co-refusal-test pattern). Returns the ARMED name with its value so every downstream refusal names the flag the operator actually set. Both set to the SAME value resolves to the general name; both set to DIFFERENT values refuses loudly (fail-closed: two flags disagreeing about which map arms a load is an operator error, never a precedence coin-flip). A set-but-empty value is returned as-is — the loader refuses it downstream by name (never a silent default).