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§
- Credential
Grant - Just-in-time credential handle (opaque to the agent; injected by Keel).
- FsRule
- A single filesystem rule.
- Network
Rule - Path
Pattern - Path pattern helpers for policy authors.
- Policy
- Bound execution policy. Immutable after space creation (v0).
- Policy
Builder - Policy
Id - Profile
Config - On-disk profile entry under
[profiles.<name>]. - Sandbox
Config - Merged view of global + project sandbox config.
- Sandbox
Config File - SpaceId
- TaskId
- Task
Spec - Requested changes when forking a space for a subtask.
Enums§
- Egress
Decision - Result of an egress decision.
- Exec
Policy - Whether the agent may spawn subprocesses / shells.
- FsAccess
- How a path may be accessed.
- Network
Policy - Network reach for the execution space.
- Policy
Error
Functions§
- allowlist_
ports - Collect distinct ports mentioned in an allowlist (for diagnostics).
- check_
egress - Evaluate whether a dial to
host:portis 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.