impyard 0.1.1

Rent the intelligence, own the governance — a control plane for imps: software colleagues whose every action passes through a gateway you control (default-deny egress, injected credentials, budgets, approval gates, audit).
1
2
3
4
5
6
7
//! Namespaced scope matching, shared by the judge (rules) and the ledger
//! (limits). A scope governs a subject if the subject is that scope or nests
//! under it — so "org" governs the whole fleet and "org/yuko" one imp.

pub fn applies(scope: &str, subject: &str) -> bool {
    subject == scope || subject.starts_with(&format!("{scope}/"))
}