Skip to main content

OversightPolicy

Trait OversightPolicy 

Source
pub trait OversightPolicy: Send + Sync {
    // Required method
    fn evaluate(&self, action: &PolicyAction) -> PolicyDecision;
}
Expand description

A policy engine. Implementations may be:

  • Rule-based (YAML/Rego rules over the action shape)
  • Model-based (a local LLM evaluating against a written policy)
  • Hybrid (rules first, model for ambiguous cases)

The OSS Hestia default returns PolicyDecision::Allow for every action. Hardbound replaces it with a real engine.

Required Methods§

Source

fn evaluate(&self, action: &PolicyAction) -> PolicyDecision

Evaluate action and return a verdict.

Implementors§