Skip to main content

keel_policy/
lib.rs

1//! Execution policy: what an agent space may reach.
2//!
3//! Policy is bound before the agent runs and cannot be expanded by the agent.
4//! Enforce backends turn a [`Policy`] into real OS / workspace constraints.
5
6mod baseline;
7mod config;
8mod egress;
9mod error;
10mod ids;
11mod narrow;
12mod net;
13mod paths;
14mod policy;
15mod presets;
16
17pub use baseline::{
18    baseline_credential_path_denies, baseline_deny_rules, baseline_secret_glob_denies,
19};
20pub use config::{
21    load_policy_from_sandbox_toml, resolve_policy_with_files, ProfileConfig, SandboxConfig,
22    SandboxConfigFile,
23};
24pub use egress::{allowlist_ports, check_egress, host_matches, EgressDecision};
25pub use error::{PolicyError, PolicyResult};
26pub use ids::{PolicyId, SpaceId, TaskId};
27pub use narrow::{narrow_policy, TaskSpec};
28pub use net::{NetworkPolicy, NetworkRule};
29pub use paths::{FsAccess, FsRule, PathPattern};
30pub use policy::{CredentialGrant, ExecPolicy, Policy, PolicyBuilder};
31pub use presets::{profile_read_only, profile_strict, profile_workspace};