services/guardrails/guardrails

Values

pub fn check(cmd: String) -> guardrails.GuardrailResult

Check a command through the full guardrail pipeline: normalize → blocked check → approval check → allowed.

pub fn classify_risk(
  result: guardrails.GuardrailResult,
) -> guardrails.Risk

Classify the risk level of a guardrail result. guardrails.Blocked commands are always high risk. guardrails.NeedsApproval commands are medium risk (require user review). guardrails.Allowed commands are low risk.

pub fn service() -> service.Service

Service shape — stateless, supervised: False.

Search Document