Skip to main content

evaluate_inference_guard

Function evaluate_inference_guard 

Source
pub fn evaluate_inference_guard(
    norms: &[NQuin],
    facts: &[NQuin],
    epistemic: &[NQuin],
    trace: &[NQuin],
    actor: u64,
    required_claim: u64,
    temporal_invariant: u64,
    now_unix: u32,
    non_derogable: bool,
) -> InferenceGuardVerdict
Expand description

Evaluate graph logic before (or between tokens of) inference.

non_derogable is graph policy classification for the supplied norms. A violated non-derogable norm maps to DenyRollback; an ordinary violation maps to Steer, preserving the existing audit-first policy semantics. required_claim == 0 and temporal_invariant == 0 disable their respective checks, which lets callers compose only the logics relevant to a request.