# Escalations (/govern/escalations)

<PreviewBadge />

Route sensitive authorization decisions through a review workflow. Attach an escalation to a Cedar policy when a request needs review before it proceeds.

## Requirements [#requirements]

Before you begin:

* Ask an organization owner or administrator to [enable public preview](/manage/public-preview) for the organization.
* Select a workspace and authenticate the Dome CLI.
* Hold `escalations.manage` to configure workflows and `rules.deploy` to attach one to a policy.
* Grant designated reviewers `escalations.resolve` to resolve operator judgments and external judgments with operator fallback.

## How escalations work [#how-escalations-work]

An escalation is a versioned workspace workflow. Its authorization trigger selects an entry step for a baseline `permit`, `forbid`, or `no_match` result.

An operator or external judgment pauses the matching request. Its resolver records `approve` or `deny`, then the next evaluation follows that branch.

Judgments are single-use. A completed request consumes its resolved judgments, so an identical later request creates a new review.

## Create an escalation [#create-an-escalation]

Create the workflow configuration as protojson. This example sends permitted and unmatched requests to review, then allows or denies the request from the reviewer’s verdict.

```json title="approval-workflow.json"
{
  "trigger": {
    "authorization": {
      "policyPermitStep": "review",
      "policyForbidStep": "deny",
      "policyNoMatchStep": "review"
    }
  },
  "steps": {
    "review": {
      "judgment": {
        "approveStep": "allow",
        "denyStep": "deny",
        "operator": {}
      }
    },
    "allow": {
      "outcome": {
        "outcome": "ESCALATION_OUTCOME_AUTHORIZATION_ALLOW"
      }
    },
    "deny": {
      "outcome": {
        "outcome": "ESCALATION_OUTCOME_AUTHORIZATION_DENY"
      }
    }
  }
}
```

Create the escalation from the file:

```bash title="Create an escalation"
dome escalations create high-risk-review \
  --description "Require an operator decision for high-risk tool calls." \
  --config-from approval-workflow.json
```

The trigger kind is derived from the configuration and cannot change. Each config change deploys a new active version.

### Create and review in the dashboard [#create-and-review-in-the-dashboard]

Open **Govern → escalations**, then select **Create escalation**. Enter the name and description, then build the authorization trigger and workflow in the visual graph editor. Save the workflow to publish its first active version.

Open an existing workflow to edit its graph or inspect its read-only configuration JSON. The **Judgments** tab lists pending and recently resolved judgments. Open a pending row to inspect its triggering request and resolve it when you hold `escalations.resolve`. The request ID links to Audit for users who also hold `audit.view`.

If the dashboard reports that a workflow uses an unsupported feature, manage that workflow with the CLI, MCP tools, or REST API rather than rewriting the configuration in the visual editor.

## Attach the workflow to a policy [#attach-the-workflow-to-a-policy]

Write an `escalate` policy that names the escalation. Deploying the bundle resolves the workspace name to its stable ID.

```txt title="workspace/high-risk-review.cedar"
escalate<Dome::Escalation::"high-risk-review">(
  principal is Dome::Agent,
  action == Dome::Action::"mcp:call",
  resource is Dome::MCPTool
) when {
  resource.connection_name == "github"
};
```

Deploy the policy with your normal rules workflow. An escalation policy does not grant access by itself. It routes matching authorization outcomes through the workflow. The target can be the escalation name or UUID, must exist in the same workspace, and is allowed only in workspace or agent bundles. The complete grammar and `context.decision` fields are in the [Rules reference](/reference/controls/rules#escalation-trigger-policies).

When a request reaches a pending judgment, it does not proceed. The gateway records a policy denial with `escalation_pending`. Resolve the judgment, then retry the same request so the workflow can apply its terminal outcome. A deny branch records `escalation_denied`. An evaluation error, unavailable workflow, or overload fails closed with `escalation_unavailable`.

If more than one escalation matches a request, every matching workflow must allow it. Any deny wins over pending judgments. A pending judgment blocks an otherwise allowed request. An organization- or tenant-level deterministic `forbid` does not invoke escalations.

## Resolve a judgment [#resolve-a-judgment]

List pending judgments after a request reaches the review step:

```bash title="List pending judgments"
dome escalations judgments list high-risk-review --status pending
```

Inspect the judgment before recording a final verdict. It identifies the triggering request and the rules that routed it to review:

```bash title="Inspect a judgment"
dome escalations judgments get high-risk-review {{JUDGMENT_ID}}
```

Judgments retain audit context, not the raw request body. Use the attached rule and audit trail to understand why a request requires review.

Record a final verdict for an operator judgment:

```bash title="Approve a judgment"
dome escalations judgments resolve high-risk-review {{JUDGMENT_ID}} \
  --verdict approve
```

Use `--verdict deny` to refuse the request. A reviewer cannot change a resolved judgment. The CLI can resolve an external judgment only when it enables operator fallback.

## Send a decision externally [#send-a-decision-externally]

Add an external resolver when a person outside Dome must approve or deny a request. First create an active webhook destination in the same workspace and subscribe it to `escalation.judgment.create`, then use its UUID in the judgment step. See [Webhooks](/operate/webhooks) to create the destination and subscription.

```json title="External decision step"
{
  "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"]
  }
}
```

The `escalation.judgment.create` delivery includes an `action_url` with a signed decision link. Only the configured destination receives a usable link. Treat it as a bearer credential: anyone holding the link can approve or deny until it expires, so forward it only to intended reviewers. A disabled or deleted destination invalidates the link. The link expires with the judgment, and the next matching evaluation denies an expired pending judgment. See the [webhook payload contract](/reference/controls/escalations#webhook-payloads-and-decision-links) before consuming the delivery.

## Review and roll back versions [#review-and-roll-back-versions]

List the workflow’s history before changing a production path:

```bash title="List escalation versions"
dome escalations versions high-risk-review
```

Roll back by copying an earlier configuration into a new active version:

```bash title="Roll back an escalation"
dome escalations rollback high-risk-review --to-version 2
```

Rollback preserves history. It never reactivates an older version in place.

## Operational guidance [#operational-guidance]

* Start with a narrow policy that targets one action and resource family.
* Give only designated reviewers the `escalations.resolve` permission.
* Inspect `escalation.run` and `escalation.judgment.resolve` audit events when reviewing a decision path. [Audit exports](/manage/export) can send that history to your SIEM.
* Treat a workflow error as a denied request. The escalation evaluation fails closed.
* Keep an external judgment lifetime between one minute and six days.

## Next steps [#next-steps]

* [Write rules](/govern/rules) to attach authorization logic.
* [Use the CLI](/cli/govern/escalations) to manage workflows from a terminal.
* [Use the MCP tools](/reference/mcp/escalations) to manage workflows from an MCP client.
* [Use the REST API](/api/tag/escalations/list-escalations) to manage workflows from an application.
* [Understand the escalation concept](/concepts/controls/escalations) before designing a review workflow.
* [Read the escalation reference](/reference/controls/escalations) for configuration fields, all resolver types, and audit events.
* [Route external decisions with Webhooks](/operate/webhooks#route-external-escalation-decisions).
* [Review escalation permissions](/reference/permissions#workspace-scoped-permissions) before assigning reviewers.
* [Inspect audit events](/operate/audit) to trace workflow activity.
* [Manage Access](/manage/access) to grant reviewer permissions.