Skip to main content

Crate keel_policy

Crate keel_policy 

Source
Expand description

Execution policy: what an agent space may reach.

Policy is bound before the agent runs and cannot be expanded by the agent. Enforce backends turn a Policy into real OS / workspace constraints.

Structs§

CredentialGrant
Just-in-time credential handle (opaque to the agent; injected by Keel).
FsRule
A single filesystem rule.
NetworkRule
PathPattern
Path pattern helpers for policy authors.
Policy
Bound execution policy. Immutable after space creation (v0).
PolicyBuilder
PolicyId
ProfileConfig
On-disk profile entry under [profiles.<name>].
SandboxConfig
Merged view of global + project sandbox config.
SandboxConfigFile
SpaceId
TaskId
TaskSpec
Requested changes when forking a space for a subtask.

Enums§

EgressDecision
Result of an egress decision.
ExecPolicy
Whether the agent may spawn subprocesses / shells.
FsAccess
How a path may be accessed.
NetworkPolicy
Network reach for the execution space.
PolicyError

Functions§

allowlist_ports
Collect distinct ports mentioned in an allowlist (for diagnostics).
check_egress
Evaluate whether a dial to host:port is permitted.
host_matches
Match host against a rule pattern.
load_policy_from_sandbox_toml
Load config for workspace and resolve a profile name.
narrow_policy
Build a child policy from parent + spec. Fails if the child would expand reach.
profile_read_only
Explore without modifying the project tree. Writes only to keel home + temps.
profile_strict
Narrower reach: no default world-read; workspace + essential system paths only.
profile_workspace
Everyday coding: broad read, write limited to workspace + keel home + temps.
resolve_policy_with_files
Resolve policy: optional explicit file path overrides name lookup.

Type Aliases§

PolicyResult