Skip to main content
policy.yaml holds named configuration values for a flow. They are referenced in CEL as policy.* and in prompts as {{variable}}.
policy.yaml

Inheritance

Policy is hierarchical. A child flow inherits root and parent policy and overrides specific keys. Guards and prompt templates resolve a key by walking child to parent to root.

Budget thresholds

Spend monitoring is configured here as percentages. Crossing one emits platform.budget_threshold_crossed with a matching level. If these keys are absent, budget monitoring is disabled.
See Budget and cost.

MCP servers

See the MCP gateway reference.

Workspace classes and permission bundles

object
Named workspace classes, each with a description and a workspace_scope (per-agent or per-flow-instance). Every workspace_class an agent references must be defined here.
object
Named permission sets that agents can reference with permissions_bundle.