# Escalations (/docs/reference/controls/escalations)

Define versioned approval workflows with escalations. Use this reference to validate a configuration, select a resolver, and integrate the CLI, MCP, or REST API.

## Availability and permissions [#availability-and-permissions]

Escalations are workspace-scoped preview functionality. An organization owner or administrator must [enable public preview](/manage/public-preview) before a workspace can create, read, or resolve escalations.

| Permission            | Operations                                                               |
| --------------------- | ------------------------------------------------------------------------ |
| `escalations.view`    | List and read workflows, versions, and judgments                         |
| `escalations.manage`  | Create, update, roll back, and delete workflows                          |
| `escalations.resolve` | Resolve operator judgments and external judgments with operator fallback |

The trigger kind comes from the configuration and never changes. Each configuration update publishes a new active version. Rollback copies a prior configuration into a new version.

## Configuration shape [#configuration-shape]

An `EscalationConfig` has one trigger and a map of named steps. Today, `authorization` is the only trigger.

| Field                                     | Required | Description                                         |
| ----------------------------------------- | -------- | --------------------------------------------------- |
| `trigger.authorization.policyPermitStep`  | Yes      | Step entered after a baseline Cedar `permit` result |
| `trigger.authorization.policyForbidStep`  | Yes      | Step entered after a baseline Cedar `forbid` result |
| `trigger.authorization.policyNoMatchStep` | Yes      | Step entered when no baseline rule matches          |
| `steps`                                   | Yes      | A map of one to 64 named workflow steps             |

Step names use lowercase letters, digits, `_`, and `-`. They start with a letter or digit and are at most 32 characters. Every entry and branch target must name a defined step. A reachable cycle is invalid.

### Step types [#step-types]

Each named step has one type. Use comment steps to annotate the graph, judgment steps to await a decision, and outcome steps to end the workflow.

| Type       | Fields                                                                                  | Behavior                                                                                                                |
| ---------- | --------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
| `comment`  | `comment`, `nextStep`                                                                   | Adds a descriptive node, then follows `nextStep`                                                                        |
| `judgment` | `approveStep`, `denyStep`, resolver, optional `lifetime`, `instructions`, and `context` | Waits for a resolver, then follows the matching branch                                                                  |
| `outcome`  | `outcome`                                                                               | Ends an authorization workflow with `ESCALATION_OUTCOME_AUTHORIZATION_ALLOW` or `ESCALATION_OUTCOME_AUTHORIZATION_DENY` |

`ESCALATION_OUTCOME_PENDING` is runtime state, not a configurable terminal outcome.

### Resolver types [#resolver-types]

Each judgment chooses one resolver. The resolver determines who can submit its verdict and whether an external workflow needs a webhook destination and deadline.

| Resolver field                                       | Requirements                                                                        | Resolution path                                                                         |
| ---------------------------------------------------- | ----------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
| `operator: {}`                                       | None                                                                                | A user with `escalations.resolve` records the verdict.                                  |
| `external: { destinationId, allowOperatorFallback }` | An existing workspace destination and a `lifetime` between one minute and six days. | The target destination receives a signed decision link on `escalation.judgment.create`. |

Set `allowOperatorFallback: true` when a Dome reviewer can decide an external judgment if its link cannot be used. An external resolver without fallback cannot be resolved through the CLI, MCP tools, or REST API.

`instructions` may contain up to 8 KiB of resolver guidance. Add `JUDGMENT_CONTEXT_TRIGGER_RULES` to `context` when the resolver needs the Cedar rules that selected the workflow. Add `JUDGMENT_CONTEXT_ACT_AS` only when the resolver needs the verified end-user subject.

### External resolver example [#external-resolver-example]

```json title="external-approval.json"
{
  "trigger": {
    "authorization": {
      "policyPermitStep": "review",
      "policyForbidStep": "deny",
      "policyNoMatchStep": "review"
    }
  },
  "steps": {
    "review": {
      "judgment": {
        "approveStep": "allow",
        "denyStep": "deny",
        "external": {
          "destinationId": "{{DESTINATION_ID}}",
          "allowOperatorFallback": true
        },
        "lifetime": { "seconds": "3600" },
        "instructions": "Approve only the scheduled production release.",
        "context": ["JUDGMENT_CONTEXT_TRIGGER_RULES"]
      }
    },
    "allow": {
      "outcome": { "outcome": "ESCALATION_OUTCOME_AUTHORIZATION_ALLOW" }
    },
    "deny": {
      "outcome": { "outcome": "ESCALATION_OUTCOME_AUTHORIZATION_DENY" }
    }
  }
}
```

Create an active destination and subscribe it to the exact `escalation.judgment.create` event. See [Webhooks](/operate/webhooks) for destination and subscription setup. Its matching delivery carries `action_url`. Only the configured destination receives a usable signed link. The link expires at the judgment deadline.

## Webhook payloads and decision links [#webhook-payloads-and-decision-links]

Subscribe the external resolver's destination to `escalation.judgment.create`. The subscription is required for delivery, but the destination is what authorizes a usable link: Dome fills `data.action_url` only in a delivery sent to the destination named by the judgment. The same event delivered to another subscribed destination has an empty `action_url`.

| Event                         | Delivery data                                                                                                                                                                          | Use it for                                                              |
| ----------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------- |
| `escalation.judgment.create`  | `judgment_id`, `escalation_id`, `version`, `step_name`, `resolver_kind`, `expires_at`, `agent_id`, `action`, `resource`, `policy_outcome`, `fingerprint`, and conditional `action_url` | Route a pending external decision to the intended reviewer.             |
| `escalation.judgment.resolve` | `judgment_id`, `escalation_id`, `resolver_kind`, `verdict`, `expired`, `agent_id`, and `destination_id`                                                                                | Reconcile an approval, denial, deadline expiry, or link-based decision. |

`action_url` is a signed bearer link, not an authenticated Dome session. Anyone who obtains it can decide the judgment until its deadline. Do not copy it to broad channels, logs, tickets, or systems that do not need decision authority. Disabling or deleting the configured destination invalidates the link. If the destination is unavailable, use an operator fallback when configured. Otherwise the judgment follows its deny branch at expiry.

## Judgment lifecycle [#judgment-lifecycle]

An escalation creates one pending judgment for a logical request and reuses it on identical retries. A resolver's `approve` or `deny` verdict is final. The next evaluation follows that branch, then consumes the resolved judgment once the governed request reaches a terminal result.

A pending judgment past `expires_at` remains visible as pending until a matching request evaluates it. That evaluation resolves the judgment to deny and follows `denyStep`. A later matching request receives a fresh judgment after a consumed judgment no longer applies.

## Runtime decision contract [#runtime-decision-contract]

Escalations run after the deterministic authorization baseline and replace that baseline with their terminal outcome. A pending judgment denies the current call. The caller must retry the same request after its resolver decides it.

| Runtime condition                                                                        | Caller-visible denial detail | Result                        |
| ---------------------------------------------------------------------------------------- | ---------------------------- | ----------------------------- |
| A judgment is still pending                                                              | `escalation_pending`         | The request does not proceed. |
| A workflow reaches its deny outcome                                                      | `escalation_denied`          | The request does not proceed. |
| Evaluation errors, required state is unavailable, or the escalation runner is overloaded | `escalation_unavailable`     | Dome fails closed.            |

When several `escalate` policies match, all corresponding workflows must allow the request. A deny outcome takes precedence over a pending workflow. Deterministic organization- or tenant-level forbids do not invoke escalations.

## API operations [#api-operations]

The REST API exposes every management operation. Requests use a platform key and the active workspace identifier. The generated reference lists request and response schemas.

| Operation                         | Method and path                                                                                                                                                                                                                                           |
| --------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| List and create workflows         | [`GET` `/v1/escalations`](/api/tag/escalations/list-escalations), [`POST` `/v1/escalations`](/api/tag/escalations/create-escalation)                                                                                                                      |
| Get, update, or delete a workflow | [`GET` `/v1/escalations/{escalation_id}`](/api/tag/escalations/get-escalation), [`PATCH` `/v1/escalations/{escalation_id}`](/api/tag/escalations/update-escalation), [`DELETE` `/v1/escalations/{escalation_id}`](/api/tag/escalations/delete-escalation) |
| List versions                     | [`GET` `/v1/escalations/{escalation_id}/versions`](/api/tag/escalations/list-escalation-versions)                                                                                                                                                         |
| Roll back a version               | [`POST` `/v1/escalations/{escalation_id}/rollback`](/api/tag/escalations/rollback-escalation)                                                                                                                                                             |
| List judgments                    | [`GET` `/v1/escalations/{escalation_id}/judgments`](/api/tag/escalations/list-escalation-judgments)                                                                                                                                                       |
| Get one judgment                  | [`GET` `/v1/escalations/{escalation_id}/judgments/{judgment_id}`](/api/tag/escalations/get-escalation-judgment)                                                                                                                                           |
| Resolve an eligible judgment      | [`POST` `/v1/escalations/{escalation_id}/judgments/{judgment_id}:resolve`](/api/tag/escalations/resolve-escalation-judgment)                                                                                                                              |

Workflow and version lists order results by name and version, respectively. Judgment lists default to pending judgments and order newest first. All lists default to 10 items, cap pages at 50, and return `nextPageToken` when another page exists.

## Audit and webhook events [#audit-and-webhook-events]

These events record workflow management and runtime activity. The webhook column in the broader event catalog identifies the subset that destinations can receive.

| Event                          | When it records                                                            |
| ------------------------------ | -------------------------------------------------------------------------- |
| `escalation.create`            | A workflow and its first active version are created                        |
| `escalation.read`              | A workflow or workspace list read is denied                                |
| `escalation.update`            | Workflow metadata or configuration changes                                 |
| `escalation.rollback`          | A prior configuration is copied into a new version                         |
| `escalation.delete`            | A workflow and its versions are removed                                    |
| `escalation.run`               | A workflow evaluation starts and completes, including its outcome or error |
| `escalation.judgment.create`   | A judgment opens. Webhook deliveries can carry an external decision link.  |
| `escalation.judgment.evaluate` | An evaluation reads an existing judgment                                   |
| `escalation.judgment.resolve`  | A resolver records a verdict or a deadline expires the judgment            |
| `escalation.judgment.consume`  | A terminal governed request spends resolved judgments                      |

Filter audit and webhook subscriptions by these event types. Use `resolver_kind=external` on `escalation.judgment.resolve` to identify decisions made through a signed link.

## Next steps [#next-steps]

* [Configure escalations](/govern/escalations) to create a workflow and attach an `escalate` policy.
* [Understand the escalation concept](/concepts/controls/escalations) before designing a review workflow.
* [Rules reference](/reference/controls/rules#escalation-trigger-policies) for `escalate` syntax and `context.decision`.
* [Route external decisions with Webhooks](/operate/webhooks#route-external-escalation-decisions).
* [Use the CLI](/cli/govern/escalations), [MCP tools](/reference/mcp/escalations), or [REST API](/api/tag/escalations/list-escalations) for automation.
* [Permissions](/reference/permissions#workspace-scoped-permissions) for read, manage, and resolve access.
* [Inspect the event catalog](/reference/events/catalog) for the broader audit and webhook contract.