feat: integrating heuristics-based fallback in execpolicy

This commit is contained in:
kevin zhao
2025-12-01 18:36:05 -05:00
parent 109dc3a178
commit 821d9148dd
5 changed files with 381 additions and 151 deletions

View File

@@ -64,12 +64,17 @@ pub enum RuleMatch {
matched_prefix: Vec<String>,
decision: Decision,
},
HeuristicsRuleMatch {
command: Vec<String>,
decision: Decision,
},
}
impl RuleMatch {
pub fn decision(&self) -> Decision {
match self {
Self::PrefixRuleMatch { decision, .. } => *decision,
Self::HeuristicsRuleMatch { decision, .. } => *decision,
}
}
}