act-policy 0.13.2

Capability policy decision core (PDP) for the ACT toolchain
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! The common policy decision returned by every capability provider.

/// The verdict for one capability operation, shared across all classes
/// (filesystem, http, sockets, and generic/semantic providers).
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum Decision {
    /// Permitted.
    Allow,
    /// Refused.
    Deny,
    /// In-ceiling but `ask` mode: defer to interactive consent. The sync
    /// classifier never prompts; the async caller (e.g. `fs_policy::check_path`)
    /// resolves this through the `DecisionCache` / `ConsentPrompter`.
    Ask,
}