Skip to content
Docs
Request access

Autonomy policies

Available

A policy decision: allow, ask or deny An action by an agent is checked against the rules of its role's policy. The decision is allow, ask (a human must approve) or deny. An action no rule allows is denied. Each decision is a policy.decided ledger entry. An agent's actiona kind of action and a target The role's policyrules: action, target pattern, decisiondeny beats ask beats allow allowthe action goes ahead aska human must approve;the approval is single-use denyalso when no rule allowsthe action (network: ask) Each decision is a policy.decided ledger entry An agent's actiona kind of action and a target The role's policyrules: action, target pattern,decisiondeny beats ask beats allow allowthe action goes ahead aska human must approve;the approval is single-use denyalso when no rule allowsthe action (network: ask) Each decision is apolicy.decided ledger entry
Every action goes through the role's policy. Default deny: an action no rule allows is denied (network asks a human instead).
Diagram as text
  1. An agent's action has a kind (such as call_model or run_command) and a target.
  2. The role's policy is a list of rules: action, target pattern, decision. When rules disagree, deny beats ask beats allow.
  3. allow: the action goes ahead.
  4. ask: a human must approve. The approval is single-use.
  5. deny: also the result when no rule allows the action. The one exception is network, which asks a human by default.
  6. Each decision is a policy.decided ledger entry.

Every role has a policy: a list of rules. A rule names a kind of action, a target pattern and a decision.

  • Actions: delegate, call_model, use_tool, run_command, write_file, spend, external_message, merge, network (a destination host with an optional port).
  • Decisions: allow, ask (a human must approve) and deny.
  • Default deny. An action no rule allows is denied; the one exception is network, which asks a human by default and shows the destination in the approval (an explicit deny rule still wins). When rules disagree, deny beats ask beats allow. Network checks apply where an adapter or tool calls authorize(network, host).
  • Recorded every time. Each decision is a policy.decided ledger entry.

An ask creates an approval request that names the exact action. A human resolves it with a reason. An approval is single-use: it covers that action, not later ones.

  • --approve-as human:<id> approves from a script. The ledger records that the approval was scripted and was not a human review.
  • --interactive asks at the terminal.
  • With neither, the run stops and waits.

A run_command rule matches an argument list, not a text line. The example tester role may run only python -m unittest **.

Policy limits what an agent may do through NuraMesh. It does not stop a worker that runs in your own process from calling other code. Treat graphs as trusted code, and run agent-authored code only in the sandbox.

Was this page helpful?