fn resolve_effective_mode(
decl: &ProbeDecl,
control_id: &str,
probe_mode: ProbeMode,
framework_filter: Option<&str>,
) -> (ProbeMode, Option<String>)Expand description
Resolve effective mode for a control by consulting the probe’s
controls map (custom-framework declaration) first, then
controlOverrides (per-framework override), then falling back to
the probe-level mode. For framework probes, controls whose
frameworkArticles don’t cover the probe’s framework are skipped at
the caller — this fn assumes the control is in scope. Returns the
resolved mode plus the operator’s audit rationale (reason) when
an override applied; None when the probe-level mode was the
fallback (no per-control override declared).