pub fn evaluate_effective_permissions(
global_config: &PermissionsConfig,
agent_permissions: &AgentPermissionsConfig,
workspace_root: &Path,
current_dir: &Path,
request: &PermissionRequest,
) -> ResolvedPermissionDecisionExpand description
Evaluates a permission request by combining global and agent-level rules. Global deny is a hard ceiling; global ask forces a prompt unless the agent denies.