pub fn load_policy_text<S: BuildHasher>(
content: &str,
personal_ids: &HashSet<String, S>,
) -> LoadedPolicyTextExpand description
Load a policy file’s text leniently and validate it in depth.
This is the single source of truth used by runtime discovery, status
and policy validate. Fatal problems (invalid YAML, missing or
unsupported version) give policy: None. Everything else is reported
in report while the valid parts are kept in policy.
Check ids are validated against the built-in catalog plus the policy’s
own checks. personal_ids (the developer’s own custom check ids, may
be empty) only improves messages: a policy that references a personal
check is still an error, because teammates and CI don’t have it.