> ## Documentation Index
> Fetch the complete documentation index at: https://docs.navige.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Policies and decisions

> Allow, deny or hold for a human, and what each one means to your caller.

A policy is a rule about what an agent may do. Policies are evaluated by deterministic code: the same inputs always produce the same decision, and no model is asked whether your refund should go through.

> [!NOTE]
>
> Navige does not use an LLM to evaluate policies. An earlier product of ours did, and its results could not be reproduced: the same call could be allowed one day and denied the next, and nobody could say why. A governance decision has to be explainable to an auditor, so it has to be deterministic.

## What a decision looks like

Every governed call ends in one of these decisions. The first four are answers. The last, `error`, means no decision was made.

* `allow`: proceed.
* `deny`: do not proceed, with a reason.
* `pending`: a human has to decide. You get an approval id and an expiry.
* `approved` / `rejected` / `expired`: how a pending decision resolved.
* `error`: the request was malformed, or Navige itself is unavailable. You can tell the two apart; see [Failure behaviour](https://docs.navige.ai/reference/errors.md).

## Classification

Each tool has a class, so you can write policies about categories instead of naming every tool you will ever add. The classes are `read`, `write`, `destructive`, `financial` and `unknown`.

`unknown` is a class in its own right, not a placeholder. Policies can match it, which lets a policy catch a tool nobody has classified yet.

## Holding a call for a human

When a policy requires approval, the `/enforce` call blocks until someone decides or the request expires, for up to five minutes. That works for a backend task but not for a caller with a short timeout, such as a Salesforce Apex callout.

For those callers, send `"wait": false`. You get an immediate `pending` with an id, and you poll:

```bash bash theme={null}
curl https://api.navige.ai/enforce/status/$APPROVAL_ID \
  -H "x-navige-key: $NAVIGE_KEY"
```

```powershell Windows PowerShell theme={null}
Invoke-RestMethod -Uri "https://api.navige.ai/enforce/status/$env:APPROVAL_ID" `
  -Headers @{ "x-navige-key" = $env:NAVIGE_KEY }
```

Callers that cannot wait at all, such as a Claude Code, Codex, Cursor or Copilot CLI hook or a wrapped MCP server, are refused with the approval id, and the agent usually tries again. `navige connect` remembers that id for that exact call, so the retry waits on the same request instead of raising a new one, and goes through as soon as it is approved. One approval covers one action, never a different command.

## Which agents a rule covers

A rule can name agents. A rule that names a computer connected with `navige connect` also covers every app on it, so one rule governs Claude Code, Codex, Cursor, Copilot CLI and the desktop tool servers alike.

## Who the agent is acting for

When an agent acts for a person, such as an assistant answering a colleague's message, it can say so with `onBehalfOf`, and a guardrail can depend on who that person is. `requesterRoles` lists the roles a rule applies to: `owner`, `admin`, `viewer`, and `none` for an agent acting on its own. "Messages need approval unless an admin asked" is one rule that requires approval for `viewer` and `none`. Because the strictest matching rule decides, you need no other rule.

If Navige cannot establish who the person is (an account nobody linked, or someone deactivated), the request is refused before any rule is read. The refusal has its own code, so "we don't know who you are" is never confused with "you may not".

## On Watchtower

Policies are evaluated the same way and the decision is recorded, but a `deny` is advisory and the call proceeds. The console shows what would have been stopped, and the answer itself says so (`"enforced": false, "wouldHaveBeen": "deny"`). One exception: a `/enforce` call made on behalf of a person gets the real verdict on every plan.

The kill switch is not advisory on any plan. It stops calls on every tier, free included.

## Autonomy levels

Each agent carries a level from `L1` to `L5`, describing how much it is trusted to do without a human. Policies can be written against it, so "anything above L3 may not touch a financial tool" is one rule rather than one rule per agent.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.