pub fn evaluate_path_subject_safe(
rules: &RuleSet,
tool: &str,
root: &Path,
raw_path: &str,
default: Decision,
) -> DecisionExpand description
Like evaluate_path_safe, but for an arbitrary tool name subject
instead of the read/write pseudo-tool — e.g. a rule authored against
the REAL tool name with a path subject (design §4.4’s "read_file(*.env)"
syntax, or an apply_patch-targeted rule). evaluate_path_safe is a
thin wrapper over this for the pseudo-tool case; callers that need BOTH
(the permissions gate always does — see crate::agent’s
permissions_gate_denial_impl) call this function a second time with
tool set to the real tool name and fold the two results together.