load execpolicy from codex_home/policy and default to empty policy

This commit is contained in:
kevin zhao
2025-11-18 12:31:03 -08:00
parent 345050e1be
commit a34b9fc259
6 changed files with 166 additions and 62 deletions
+4
View File
@@ -15,6 +15,10 @@ impl Policy {
Self { rules_by_program }
}
pub fn empty() -> Self {
Self::new(MultiMap::new())
}
pub fn rules(&self) -> &MultiMap<String, RuleRef> {
&self.rules_by_program
}