Skip to main content

ExecutionGate

Trait ExecutionGate 

Source
pub trait ExecutionGate {
    // Required methods
    fn check(&self, action: GatedAction) -> SisterResult<GateDecision>;
    fn has_capability(&self, capability: &str) -> bool;
    fn risk_threshold(&self) -> RiskLevel;
}
Expand description

The Execution Gate trait (placeholder).

Hydra implements this, NOT sisters. Sisters submit actions to the gate; Hydra decides whether to approve.

Required Methods§

Source

fn check(&self, action: GatedAction) -> SisterResult<GateDecision>

Submit an action for approval

Source

fn has_capability(&self, capability: &str) -> bool

Quick check if a capability is available

Source

fn risk_threshold(&self) -> RiskLevel

Get current risk threshold

Implementors§