pub enum GovernanceLevel {
L0Discover,
L1Observe,
L2Enforce,
L3Native,
}Expand description
Governance level applied to a managed AI dev tool or agent.
Variants are ordered such that
L0Discover < L1Observe < L2Enforce < L3Native. The derived Ord
implementation enables policies to express “at-least-this-level” rules,
for example governance_level >= L2Enforce.
| Level | Capability |
|---|---|
L0Discover | eBPF / proxy detects unknown agents and their external behavior. |
L1Observe | Network, file, process, and MCP observability without enforcement. |
L2Enforce | Allow / deny, approval, redaction, and budget enforcement. |
L3Native | Full SDK-integrated governance with identity, lineage, and semantic context. |
Variants§
L0Discover
L0 — Discover. eBPF / proxy detects unknown agents and their external behavior; no policy enforcement is applied.
This is also the Default for GovernanceLevel: any agent or
rule that does not declare a level is treated as L0 (discover-only).
L1Observe
L1 — Observe. Network, file, process, and MCP observability without enforcement.
L2Enforce
L2 — Enforce. Allow / deny, approval, redaction, and budget enforcement applied to the governed tool.
L3Native
L3 — Native. Full SDK-integrated governance with identity, lineage, and semantic context awareness.
Trait Implementations§
Source§impl Clone for GovernanceLevel
impl Clone for GovernanceLevel
Source§fn clone(&self) -> GovernanceLevel
fn clone(&self) -> GovernanceLevel
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for GovernanceLevel
Source§impl Debug for GovernanceLevel
impl Debug for GovernanceLevel
Source§impl Default for GovernanceLevel
impl Default for GovernanceLevel
Source§fn default() -> GovernanceLevel
fn default() -> GovernanceLevel
Source§impl Display for GovernanceLevel
impl Display for GovernanceLevel
impl Eq for GovernanceLevel
Source§impl FromStr for GovernanceLevel
impl FromStr for GovernanceLevel
Source§impl Ord for GovernanceLevel
impl Ord for GovernanceLevel
Source§fn cmp(&self, other: &GovernanceLevel) -> Ordering
fn cmp(&self, other: &GovernanceLevel) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for GovernanceLevel
impl PartialEq for GovernanceLevel
Source§fn eq(&self, other: &GovernanceLevel) -> bool
fn eq(&self, other: &GovernanceLevel) -> bool
self and other values to be equal, and is used by ==.Source§impl PartialOrd for GovernanceLevel
impl PartialOrd for GovernanceLevel
impl StructuralPartialEq for GovernanceLevel
Auto Trait Implementations§
impl Freeze for GovernanceLevel
impl RefUnwindSafe for GovernanceLevel
impl Send for GovernanceLevel
impl Sync for GovernanceLevel
impl Unpin for GovernanceLevel
impl UnsafeUnpin for GovernanceLevel
impl UnwindSafe for GovernanceLevel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.