pub fn apply_policy_errors(
assessment: &mut RiskAssessment,
errors: &[PolicyLoadError],
)Expand description
Make an assessment fail closed because a project policy is invalid.
A broken .shellfirm.yaml means the team’s deny list and checks are not
enforced, so in agent mode every command needs a human (allow → ask;
ask/deny are kept) and the reason says why. Policy text is untrusted:
it is sanitised and labelled.