pub fn validate_policy(
policy: &TargetPolicy,
triple: &str,
) -> Result<(), CoreError>Expand description
Validate one target policy against its canonical target triple.
This is the single producer-side policy validation rule. It covers the toolchain requirement shape, the cross-tool presence rule for the selected strategy, the compatibility-floor applicability rule, and the native-qualification host match.
eggpack-ci applies it to a CIPlan instead of re-deriving any of those
rules. The macOS-floor-under-cargo-zigbuild refusal is enforced where the
build command is derived, so policy resolution keeps its outcome; the
canonical floor rule covers it.