> For the complete documentation index, see [llms.txt](https://docs.metamynd.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.metamynd.ai/core-concepts/dispositions-and-escalation.md). Agents can also search and read this documentation through its [MCP server](https://docs.metamynd.ai/~gitbook/mcp).

# Dispositions & Escalation

Every request ends in one of six dispositions, from allow to quarantine, each with a specific reason code. How escalation to a human works.

Every request the MAGP gate evaluates ends in exactly one of **six dispositions**. There is no generic "denied" — a real governance system needs more resolution than yes/no, and every disposition comes with a specific, machine-readable reason code (see [Reason Code Registry](https://docs.metamynd.ai/agent-protocol/reason-code-registry)).

| Disposition  | Permits execution? | What it means                                                                              |
| ------------ | ------------------ | ------------------------------------------------------------------------------------------ |
| `allow`      | ✅                  | The request cleared every check.                                                           |
| `observe`    | ✅                  | Permitted, but flagged for monitoring. Folded in most-restrictive-wins with other signals. |
| `block`      | ❌                  | Terminal. The action does not happen.                                                      |
| `escalate`   | ❌ (yet)            | A **hold for a human**, not a denial — see below.                                          |
| `suspend`    | ❌                  | The agent is contained; no further actions are evaluated until reinstated.                 |
| `quarantine` | ❌                  | The strictest containment state, pending investigation.                                    |

Three design invariants worth internalising:

* **`allow` and `observe` are the only permitting dispositions.** Everything else stops the action — there's no ambiguous middle state that resolves in the agent's favour.
* **An unknown disposition or reason code MUST be treated as a block.** If a future protocol version adds a disposition an older verifier doesn't recognise, that verifier fails closed, not open.
* **A permit is not yet execution.** For a value-bearing action, `allow` produces a **hold**: budget reserved under an `authorizationId`, which the executing service must **claim** — exactly once — before it acts. See [Holds, Claims & Exactly-Once Execution](https://docs.metamynd.ai/core-concepts/holds-claims-and-exactly-once-execution).

#### Where `escalate` comes from

Most escalations come from one of these sources:

* **A rule** — a Standard or SOP molecule whose decision is `escalate` (every rule in AgentSafe's policy builder has an "escalate on breach" toggle), including a risk rule that could not be judged because `riskLevel` was missing (`CONTEXT_UNVERIFIABLE`).
* **The agent's operating mode.** Every agent sits on one of four rungs: `read_only` · `restricted` · `supervised` · `autonomous`. `read_only` blocks value-bearing actions outright (`MODE_READ_ONLY`, step 7 of the gate). `restricted` sends every value-bearing action to a human; `supervised` sends high-risk or high-value ones. Those two apply as an **escalate floor** after the rules have run, so a more specific rule denial is still the one reported. The rung is either pinned by the owner or derived from the agent's Trust Index.
* **The other floors at step 15** — a pending reassessment after a material change to the agent's authority (`REASSESSMENT_PENDING`); the opt-in spend-pattern anomaly floor (`SPEND_PATTERN_ANOMALY`); and the opt-in runtime assurance floor for an agent whose deployment certificate is blocked or lapsed (`AGENT_NOT_CERTIFIED`, `ASSURANCE_STALE`). Each only ever lifts a permit to `escalate`; none downgrades a stricter verdict.

A pending reassessment shows as a **Reassessment due** pill on the agent's Trust Profile. Once the owner has reviewed the change, **Mark reassessed** next to the pill (`POST /agent-identity/{ref}/reassess/clear`) clears it, and the gate stops escalating the agent's value-bearing actions for that change. The clearing is recorded as evidence with the reason code `REASSESSED`.

#### Escalation is a hold, not a denial

`escalate` deserves its own explanation because it's the one disposition that doesn't terminate the request — it pauses it. The action waits in the owner's approval queue instead of executing or failing outright.

* **Parking holds no budget.** An escalated request reserves nothing until it is approved.
* **The agent follows it with the escalation id.** `GET /policy/escalations/{id}/status` is public and keyed by the escalation id, which is itself the capability; the agent polls it until the escalation resolves and acts only on an approved status that carries an `authorizationId`.
* **Approval can require several people.** Approval needs **M of N** distinct approvers (configurable per agent in its approval policy, default 1), and an approver can be required to hold a named role and a minimum authority level. Besides the owner, the approval policy can name other members of your organisation as approvers, including colleagues you invited by email — see [Organisation Members & Invites](https://docs.metamynd.ai/guides/organisation-members-and-invites).
* **A reviewer has three choices:** approve, deny, or **modify** — change the action (for example, a lower amount) and approve the changed version.
* **Unresolved escalations expire** (`ESCALATION_EXPIRED`), and a resumed request whose context differs from what was reviewed is refused (`ESCALATION_CONTEXT_ALTERED`).

Structural guarantees make this safe:

1. **An agent can never approve its own escalated action.** Approval is a decision by an authenticated human reviewer in the dashboard — a session the agent does not have. MetaMynd **notarises** every decision: it signs an attestation of *which reviewer made which decision on which escalation, and when* with the platform policy key, so anyone can verify it offline against `GET /magp/policy/pubkey`. A modify decision's change is part of what is signed.
2. **Approval produces a fresh authorization**, not a retroactive stamp on the original request. On approval the gate **re-runs its checks on the request as things stand at approval** — the budget, the hard caps, the rate limit, circuit breakers, the counterparty's current trust, and whether the mandate is still in force — and only then mints a new `authorizationId`; approval never bypasses any of them. See [Escalation & Resume](https://docs.metamynd.ai/agent-protocol/escalation-and-resume) for the exact flow and field names.
3. **A modified action must be re-bound.** A modify changes what the agent signed, so the hold it produces carries **no payload digest** at first. The status the agent polls reports `payloadBound: false`, and the agent binds the payload of the action that will actually run (`guard.bindPayload()` / `client.bind_payload()`) before an executor that requires binding will claim it. See [Payload Binding](https://docs.metamynd.ai/core-concepts/payload-binding).
4. **The agent never holds the credentials that would let it act alone.** Upstream API credentials live in the **Credential Vault** and are released just in time only to a trusted gateway, only against an active Action Passport for that exact authorization — every release is audited. The recommended scaffold (`create-metamynd-agent`) runs a *separate* gateway process that re-verifies every request and claims the authorization itself, so the agent process never holds those credentials either way. The agent's own signing key can live outside the agent process too, in the signer daemon. See [Passports, Receipts & Credential Vault](https://docs.metamynd.ai/core-concepts/passports-receipts-and-credential-vault).

#### Containment: suspend, quarantine, decommission

`suspend` and `quarantine` are containment states, not per-request verdicts — once an agent is contained, it doesn't reach action-specific evaluation at all. This check runs early in the gate (step 6 of 16 — see [The Authorize Gate](https://docs.metamynd.ai/agent-protocol/the-authorize-gate-16-ordered-checks)), specifically so that a contained agent can't reach the point where a signed request could do anything, regardless of what it signs. A contained agent also cannot bind payloads to holds it already has.

* **`suspend`** is typically reversible by the owner (a spend-cap anomaly, a temporary policy review). Refused with `AGENT_SUSPENDED`.
* **`quarantine`** implies an active investigation and is the more severe state. Refused with `AGENT_QUARANTINED`.
* **Decommission** retires an agent for good: every active mandate on every DID it has held is revoked, every SOP unassigned, and every authorization no gateway has claimed cancelled. Refused with `AGENT_DECOMMISSIONED`. It cannot be undone: reinstating a decommissioned agent, or lowering it to suspended or quarantined, is refused with `409 AGENT_DECOMMISSIONED`. To carry on its work, provision a new agent. The owner decommissions from the agent's Trust Profile (**Overview → Danger zone → Decommission agent**), giving a reason and typing the agent's name to confirm.

Reinstating a suspended or quarantined agent restores gate access, but not mandates or SOPs revoked while it was contained.

Containment can be applied three ways:

* **Manually** by the owner (suspend, quarantine or decommission).
* **By a rule** whose decision is `suspend` or `quarantine`.
* **By automated containment** — a detector a deployment can turn on that quarantines an agent after repeated refusals (the threshold is set per deployment), reported as `REPEATED_DENIALS_CONTAINED`. A misbehaving or compromised agent loses its authority without anyone having to notice a pile of individually unremarkable denials first.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.metamynd.ai/core-concepts/dispositions-and-escalation.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
