ctrlrun.Policy — class, defined at src/ctrlrun/policy.py:525
Policy.from_file(). A policy that cannot be loaded is an error, never an
empty permissive policy (SPEC-v0.1 §3.4).
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Action-level autonomy policy: which actions may run, and under which conditions.
ctrlrun.Policy — class, defined at src/ctrlrun/policy.py:525
from ctrlrun import Policy
class Policy
def __init__(actions: Mapping[str, _ActionPolicy], source: str, schema: str = POLICY_SCHEMA, environment: str | None = None, mode: Literal['observe', 'enforce'] = ENFORCE, version: str | None = None, controls: Mapping[str, PolicyControl] = dict(), _canonical: Mapping[str, Any] = dict())
Policy.from_file(). A policy that cannot be loaded is an error, never an
empty permissive policy (SPEC-v0.1 §3.4).
Related topics
PolicyErrorPolicy YAML referenceReceipts and evidenceErrorsA payout agent with maker/checker via delegationWas this page helpful?