Skip to main content

sense_permitted

Function sense_permitted 

Source
pub fn sense_permitted(
    agent: u64,
    environment: u64,
    norms: &[NQuin],
    now_unix: u32,
) -> bool
Expand description

The sense gate. true iff agent has Active consent to capture environment: there is an Active PERMIT bound to (agent, environment) and no Active FORBID bound to it.

Fails closed: no consent norm (or an over-capacity / unevaluable set) ⇒ false (refuse). This is the surveillance-refusal default — nothing is sensed without explicit consent.