Docs

Approvals

What it does

Approvals give you one queue for every proposal an agent files, so the database applies a change only when you accept it.

Approvals are the decision queue. An agent, a workflow, or an ingest job inserts a pending row. You resolve it. The database runs the card's on_approve action only when the status becomes approved.

Open Approvals (/approvals). Deck is one card at a time: approve, reject, or skip. List is the same pending queue with a domain filter, type tabs, and bulk approve or reject. /deck redirects to the deck view. The list and the deck call the same resolve API.

You can also open a card's chat from the deck. That chat can search indexed text. It does not resolve the card for you.

Statuses

StatusMeaning
pendingWaiting
approvedAccepted. on_approve has run, or has recorded its result
rejectedDeclined. on_approve does not run
deferredSet aside. The deck and list resolve actions use approve and reject
expiredNo longer actionable
delegatedHanded to someone else

The Cockpit resolve buttons send approved or rejected. Other statuses exist on the row for agents and for bulk tools.

An approve must be attributed. A session in Cockpit, or resolve_approval from a token, stamps who decided. A raw update that sets approved with no actor is refused.

What approve does

on_approve.kind selects the action. The kinds you will see on entity cards:

KindEffect
entity_createInsert one row in accounts, contacts, deals, projects, campaigns, or territories
entity_updateWrite the listed fields through the field-provenance path
entity_mergeMerge the loser into the keeper. Needs the merge decision on the card
entity_alias_addAdd an alias
task_statusMove the linked tasks from one status to another
row_statusFlip an allow-listed marketing or campaign-member status
enqueueSend a job to an allow-listed queue

Duplicate protection on create skips the insert when the slug or domain is already present. Keys that are not in the entity shape are dropped. Shapes are editable under Admin → Approval types (/settings/approvals).

What you send on a create card

Agents call approval_create (scope approvals:write) or include the entity on a graph check-in. For a create, send item_type graph_entity_create and either on_approve or table plus fields.

A contact example, with no address on purpose:

{
  "item_type": "graph_entity_create",
  "title": "Create contact: Jane Example",
  "table": "contacts",
  "fields": {
    "full_name": "Jane Example",
    "title": "VP Operations",
    "lifecycle_stage": "lead"
  }
}

Required and allowed fields are in Entity fields. Do not send tags, domain_wall, references, slug, id, or owner_user_id. Do not send name on a contact. Foreign keys accept an id or a slug.

graph_entity_update is the matching type for a field change. project_create is a project-shaped create.

Human-only cards

These types stay with a person. approval_resolve from an agent token refuses them:

  • graph_entity_merge
  • graph_entity_rename
  • graph_entity_create
  • graph_entity_alias
  • merge_proposal
  • stage2_identity
  • product_create
  • product_rename
  • engagement_outcome_achieve
  • workflow_cross_desk_grant

Agents may still propose a create. A person approves it in Cockpit. Agents may resolve types that are not on this list, including graph_entity_update and extraction cards, when the token has approvals:write.

Fuzzy name matches are not auto-merged. The card should show the candidates. You confirm.

Task cards

Promoting a backlog task and closing a task that has human_approval_to_close set both show up here (task_promote, task_close_ack). Rejecting a proposed task cancels the linked task. It does not promote it.

Where else cards come from

Meeting and activity extraction files a card per proposed action when the confidence is under the threshold. Those cards use the type extraction.<action>. Approve applies the proposal that card was filed with. Reject leaves the activity in place. There is no separate extraction inbox. See Meetings and extraction. Shapes for create cards are edited on Approval types.

A workflow trigger go-live files workflow_trigger_go_live. Approving it is what sets trigger_mode to live. See Workflows.

MCP tools

ToolScopeRole
approval_createapprovals:writeFile a pending card
approval_listapprovals:readList cards. Filter status
approval_resolveapprovals:writeResolve as the agent. Human-only types are refused
extraction_pendingapprovals:readExtraction cards in this same queue
extraction_reviewapprovals:writeApprove or reject one extraction card

HTTP endpoints

MethodPathRole
GET/cockpit/api/approvalsPending queue
GET, PATCH/cockpit/api/approvals/:idRead, or set approved / rejected
POST/cockpit/api/approvals/bulkBulk resolve
POST/cockpit/api/approvals/:id/merge-approveApprove a merge card
GET/cockpit/api/approvals/:id/merge-contextMerge context
POST/cockpit/api/approvals/:id/close-approveApprove a close card
POST/cockpit/api/approvals/:id/reject-cancelReject and cancel the linked work
GET, PATCH/cockpit/api/approval-shapesShapes. The editor is Approval types

Deck helpers, same session: POST /cockpit/api/deck/chat, POST /cockpit/api/deck/graph-chat, GET /cockpit/api/deck/context, GET /cockpit/api/deck/ground, POST /cockpit/api/deck/events.

The screen is a thin client over these routes. Agents use the MCP tools. Both land on the same rows.

Permissions

Token scopes come from one permission-set layer. Listing needs approvals:read. Filing or resolving needs approvals:write. Human-only types stay with a person even when the token has that scope. A session in Cockpit can resolve any pending card the workspace role allows.

Row access is creator-based RLS. A member sees rows they own (owner_user_id is the signed-in user). An admin sees all rows. A personal access token with approvals:read can select, and approvals:write can insert or update, through the token scope check. A session that sets approved, rejected, or deferred records that user as human. A PAT with no session records the token as agent. A session cannot forge the agent identity.

Agent example

Call approval_list for what is waiting, then approval_resolve only for a type that is not human-only.

{
  "tool": "approval_list",
  "arguments": {
    "status": "pending",
    "limit": 10
  }
}

Expected result: pending cards visible to the token owner. Resolving a graph_entity_create with approval_resolve is refused. Resolving an extraction card or a graph_entity_update with status approved runs that card's on_approve. rejected does not.

{
  "ok": true,
  "approvals": [
    {
      "title": "Create contact: Jane Example",
      "status": "pending",
      "item_type": "graph_entity_create"
    }
  ]
}