{"id":"TIE-AGT-004","title":"Human approval gate for consequential agent actions","maturity":"reference-build","collection":"Agent identity","category":"Human oversight","complexity":"High","intent":"Hold an AI agent's high-impact action until an accountable human approves that exact request, and enforce the hold outside the agent.","summary":"Valid access is not the same as an acceptable action. This pattern lets a policy decide which agent actions need a human, holds them at an enforcement point, shows an accountable approver the context, and releases only the approved request, once, before it expires.","problems":["Accountability for AI actions","Excessive agency","Irreversible agent actions","Production changes by agents","Regulatory human oversight requirements","Audit evidence for AI governance"],"standards":["OpenID Client-Initiated Backchannel Authentication (CIBA) Core 1.0","OAuth 2.0 Rich Authorization Requests (RFC 9396)","OAuth 2.0 Token Exchange (RFC 8693)","EU AI Act Article 14 (human oversight)","OWASP Agentic Top 10 ASI09 Human-Agent Trust Exploitation"],"tags":["human in the loop","HITL","approval","four eyes","maker-checker","CIBA","asynchronous authorisation","step-up","consequential action","obligation","approval fatigue"],"roles":["IAM architect","Identity engineer","Security leader","Platform engineering","AI engineering"],"industries":["Cross-industry","Financial services","Healthcare","Retail","Public sector"],"builds_on":["TIE-AGT-001","TIE-AGT-003"],"related":["TIE-AGT-005","TIE-AGT-006"],"authors":"Trevonix Innovation","reviewers":"Trevonix IAM architecture","version":"1.0","last_reviewed":"2026-11-24","published":"2026-11-24","og_image":"og-tie-agt-004.png","sections":{"summary":[{"type":"bullets","content":"A **policy, not the agent**, decides which actions need a human: irreversible, external, high-value or production-affecting ones.\nThe enforcement point **holds the request** and asks an **accountable approver who is not the requester**, showing them what the agent wants to do, for whom, and why it was flagged.\nApproval releases **that exact request, once, before it expires**. Rejection or silence means nothing happens."}],"problem":[{"type":"paragraph","content":"An agent with legitimate, correctly scoped access can still take an action whose impact is out of proportion to what was asked: deploying to production, moving a large sum, deleting records, emailing every customer, granting itself more access. Scopes and roles answer \"may this agent ever do this?\" They cannot answer \"should this action, by this agent, for this person, happen now?\"\n\nMost teams add a confirmation step inside the agent: the agent asks \"shall I go ahead?\" and proceeds when the chat says yes. That step runs inside the thing it is meant to control. A prompt injection can answer it, a bug can skip it, and the person answering may be the same person, or the same compromised session, that asked for the action in the first place."},{"type":"note","content":"Regulations such as the EU AI Act require effective human oversight of high-risk AI systems, and auditors expect separation of duties for consequential changes. An approval that the agent itself can satisfy meets neither expectation.","title":"Why this matters"}],"use_when":[{"type":"bullets","content":"Actions that are hard or impossible to undo: payments, deletions, production deployments, external communications, access grants.\nActions above a threshold the business sets: amount, number of records, number of recipients, data sensitivity.\nRegulated processes that already need maker-checker or four-eyes control.\nNew agents, until their behaviour is understood well enough to lower the bar."}],"avoid_when":[{"type":"bullets","content":"Routine, reversible, low-impact actions. Gating them trains approvers to click approve without reading.\nDecisions a policy can make reliably on its own. Use a deny or a limit instead (see TIE-AGT-003).\nYou cannot identify an accountable approver who is not the requester. Fix ownership first (see TIE-AGT-001)."}],"forces":[{"type":"bullets","content":"**Safety against speed.** Every gate adds waiting; too many gates and people route around them.\n**Context against brevity.** Approvers need enough to judge, but a wall of detail gets skimmed.\n**Availability against accountability.** The right approver may be asleep; a fallback approver may lack context.\n**Convenience against separation of duties.** Letting requesters approve their own agent's actions is fast and defeats the control."}],"solution":[{"type":"paragraph","content":"Make approval an **obligation** returned by the policy decision point, enforced by a gateway the agent cannot bypass. When the decision is \"permit only with approval\", the gateway holds the original request, opens an approval with a summary built from trusted data (not from the agent's own description), and sends it to an approver chosen by rule. Only an approval for that request, by an allowed approver, before the deadline, releases it. Every step is logged under one ID."},{"type":"image","content":"The gateway holds the request while an accountable approver decides; only an approval bound to this request releases it.","title":"Solution overview","media":"tie-agt-004-solution.png","alt":"Diagram in six steps. 1: the agent calls a consequential action through the gateway with a delegated token. 2: the gateway asks the policy decision point. 3: the PDP returns permit with obligation approval required, approver = the sponsor or team lead. 4: the gateway holds the request, tells the age"},{"type":"table","content":"Decision | Rule\nWhich actions | A policy decides, using action type, amount, data sensitivity, environment and the agent's risk tier. The agent cannot opt out.\nWho approves | Chosen by rule: the agent's sponsor, the resource owner or a team lead. Never the person who asked the agent to act.\nWhat they see | A context pack built from trusted data: agent, user, action, target, values, why it was flagged, and findings such as detected secrets\nWhat approval covers | One specific request, once, before an expiry time. A changed request needs a new approval.\nWhat silence means | Rejection. Timeouts are logged and the agent is told the action did not happen.\nWhere it is enforced | At a gateway or the resource, never in the agent's code or prompt","title":"Design decisions"},{"type":"numbered","content":"**Request.** The agent calls the action through the gateway with a delegated token.\n**Decide.** The gateway asks the PDP. The PDP returns *permit with obligation: approval required*, with the approver rule and an expiry.\n**Hold.** The gateway stores the request, returns \"pending approval\" with a reference to the agent, and opens an approval.\n**Ask.** The approver receives the context pack in their channel: a Teams or Slack card, a push notification, or an approval console.\n**Decide again.** The approver approves or rejects. The approval service checks the approver is allowed and is not the requester.\n**Release or discard.** On approval, the gateway releases the stored request once. On rejection or timeout, it discards it and tells the agent.","title":"How it works"},{"type":"tip","content":"For customer-facing agents, the approver is often the customer. OpenID CIBA lets the agent's backend ask the customer to confirm on their phone while the chat continues, and Rich Authorization Requests carry the details being confirmed, such as payee and amount.","title":"When the approver is the customer"}],"design_rules":[{"type":"numbered","content":"**Policy decides when to ask.** The list of gated actions lives in the PDP, not in the agent.\n**Enforce outside the agent.** Only the gateway or resource can release the action.\n**Approver is never the requester.** Check it in the approval service, not by convention.\n**Approve the request, not the agent.** Bind approval to the exact request, once, with an expiry.\n**Show trusted context.** Build the approver's summary from the request and system data, not from text the agent wrote.\n**Default to no.** Timeouts, errors and ambiguous answers reject.\n**Measure the gate.** Track approval rates, response times and rejections; a gate that approves everything is either set too low or not being read.\n**Log the whole story under one ID.** Request, decision, approver, response, release or discard."}],"anti_patterns":[{"type":"table","content":"Anti-pattern | What goes wrong\n\"Shall I proceed?\" in the chat | The agent, a prompt injection or the requester answers; there is no separation of duties\nApprove the agent for the day | One approval covers everything the agent does next, including actions nobody saw\nApproval summary written by the agent | A compromised agent describes a harmful action as harmless\nRequester approves their own agent | The four-eyes control has two eyes\nTimeout means approve | Approvals arrive while people sleep and are waved through by the clock\nGate everything | Approvers drown in requests and approve without reading"}],"benefits":[{"type":"bullets","content":"Consequential actions need a real, accountable human decision.\nPrompt injection and model errors cannot approve their own actions.\nEvidence of human oversight for regulators and auditors.\nA safe way to give new agents more autonomy step by step."}],"costs":[{"type":"bullets","content":"Waiting time on gated actions, and an operating model for approver cover.\nApproval fatigue if thresholds are set too low.\nState to manage: held requests, expiries and the approval record.\nIntegration work for the approval channel (Teams, mobile push, approval console)."}],"tests":[{"type":"table","content":"Test | Expected result\nAgent attempts a gated action | Held; agent told it is pending; approver receives the context pack\nApprover approves | The original request is released once and succeeds\nApprover rejects | Request discarded; agent told; nothing changes downstream\nNobody responds before the deadline | Treated as rejection and logged\nRequester tries to approve their own request | Refused by the approval service\nAgent retries the same action after approval | Needs a new approval\nAgent calls the API directly to bypass the gateway | Rejected by the API\nApprover sees a summary | Built from the request and system data, not from the agent's text"}],"maturity_notes":[{"type":"paragraph","content":"**Reference build.** Trevonix has built this pattern end to end on Ping Identity (PingGateway with Ping's authorisation engine) and on Microsoft Entra (Entra Agent ID with Power Automate approvals in Microsoft Teams), in lab tenants (November 2026). The Okta, Saviynt and Auth0 recipes are written from vendor documentation and have not yet been lab-tested by Trevonix for this pattern."}],"faq":[{"type":"faq","content":"Start with irreversible actions, actions that leave your organisation (payments, external email), production changes and access grants. Add thresholds such as amount or record count. Review the list monthly using approval and rejection data.","title":"Which actions should need approval?"},{"type":"faq","content":"The person accountable for the outcome who did not ask for the action: usually the agent's sponsor, the resource owner or a team lead. For customer agents acting on a customer's own account, the customer.","title":"Who should approve?"},{"type":"faq","content":"The approval must cover one specific request. If the agent changes the amount, target or payload, it is a new request and needs a new approval.","title":"What if the agent changes the request after approval?"},{"type":"faq","content":"Raise thresholds for low-impact actions, make the context pack short and specific, and watch approval rates. If almost everything is approved within seconds, the gate is not doing its job.","title":"How do we avoid approval fatigue?"}],"references":[{"type":"bullets","content":"[OpenID Client-Initiated Backchannel Authentication Flow - Core 1.0](https://openid.net/specs/openid-client-initiated-backchannel-authentication-core-1_0.html)\n[RFC 9396: OAuth 2.0 Rich Authorization Requests](https://www.rfc-editor.org/rfc/rfc9396)\n[EU AI Act, Article 14: Human oversight](https://artificialintelligenceact.eu/article/14/)\n[Auth0 for AI Agents: Asynchronous authorization](https://auth0.com/ai/docs/intro/asynchronous-authorization)\n[Okta Developer: Transactional verification using CIBA](https://developer.okta.com/docs/guides/configure-ciba/main)\n[PingOne Advanced Identity Cloud: Backchannel request grant (CIBA)](https://docs.pingidentity.com/pingoneaic/am-oidc1/openid-connect-backchannel-request-flow.html)\n[Microsoft Learn: Differences between flow approval actions](https://learn.microsoft.com/en-us/troubleshoot/power-platform/power-automate/approvals/differences-between-flow-approval-actions)"}]},"recipes":{"ping":{"status":"reference-build","product_name":"PingGateway with PingOne Authorize or PingAuthorize","summary":"Ping's authorisation engine returns an approval statement for gated actions; PingGateway holds the request, opens the approval and releases the request only after an allowed approver approves it. Advanced Identity Cloud can deliver approvals by CIBA push.","last_verified":"2026-11","blocks":[{"type":"table","content":"Component | Role in this pattern\nPingGateway | Holds the gated request, opens the approval and releases or discards the request\nPingOne Authorize or PingAuthorize | Decides which actions need approval and returns a statement such as `approval.required` with the approver rule\nApproval channel | An approval console, or a CIBA push journey in Advanced Identity Cloud for approvers with a registered device\nPingOne Advanced Identity Cloud | Agent identity, delegated tokens and approver identities","title":"Components"},{"type":"numbered","content":"In the policy for the protected API, add a rule for each gated action that returns a statement with a code such as `approval.required`, the approver rule (for example the agent's sponsor) and an expiry.\nIn PingGateway, after the PingAuthorizeFilter, add a filter that handles that statement: store the request with a hash and expiry, return `202 Accepted` with an approval reference to the agent, and create the approval.\nDeliver the approval to the approver: through your approval console, or, for approvers with Ping's authenticator app, through a CIBA push journey in Advanced Identity Cloud (**Journeys**, with the push nodes the CIBA guide lists).\nWhen the approval service records the outcome, have PingGateway release the stored request once if approved, or discard it.\nLog the decision ID, approval ID and outcome together.","title":"Configure"},{"type":"bullets","content":"Do not configure a CIBA journey as a transactional authentication journey; Advanced Identity Cloud will not run it.\nTreat any statement code the gateway does not recognise as a denial.","title":"Gotchas"}]},"okta":{"status":"documented","product_name":"Okta Identity Engine with CIBA","summary":"Okta supports CIBA for out-of-band approval through a custom authenticator app. Written from Okta's documentation; not yet lab-tested by Trevonix for this pattern.","last_verified":"2026-11","blocks":[{"type":"table","content":"Component | Role in this pattern\nCIBA grant on a custom authorization server | Lets the agent's backend ask a user to approve out of band\nCustom authenticator | A mobile app built with the Okta Devices SDK that receives the push; required for CIBA in Okta\nWeb application client | CIBA is supported for the Web application type\nGateway or PDP | Decides when approval is needed and holds the request","title":"Components"},{"type":"numbered","content":"In the Admin Console, set up the notification service under **Security > Device Integrations**, then create a custom authenticator under **Security > Authenticators**.\nOn the custom authorization server, allow the CIBA grant type in an access policy rule.\nCreate a **Web** application for the agent's backend, enable the CIBA grant and select your custom authenticator as the preferred authenticator for CIBA.\nWhen the policy requires approval, have the backend call the backchannel authentication endpoint with the approver's identifier and a binding message that describes the action.\nRelease the held action only when the CIBA request completes with a token for the expected approver.","title":"Configure CIBA approval"},{"type":"bullets","content":"Okta's CIBA needs a custom authenticator app built with the Okta Devices SDK; plain Okta Verify is not used for this flow.","title":"Gotchas"}]},"entra":{"status":"reference-build","product_name":"Microsoft Entra Agent ID with Power Automate and Microsoft Teams","summary":"An orchestrator or gateway holds the agent's action and calls a Power Automate flow that posts the approval to the approver in Teams and returns the outcome. Entra provides the agent identity and its sponsor.","last_verified":"2026-11","blocks":[{"type":"table","content":"Component | Role in this pattern\nAgent identity (Entra Agent ID) | The agent whose action is gated; its sponsor is often the approver\nGateway or orchestrator | Holds the action and calls the approval flow; Entra does not hold requests itself\nPower Automate approvals | Creates the approval, posts it to Microsoft Teams and waits for the response\nMicrosoft Teams | Where the approver sees the context and approves or rejects","title":"Components"},{"type":"bullets","content":"Calling a flow from your gateway with the **When an HTTP request is received** trigger uses a premium connector, so check your Power Automate licensing.\nDecide whether approvers respond in Teams only; responses through email do not update the Teams card.","title":"Before you start"},{"type":"numbered","content":"In Power Automate, create a flow triggered by **When an HTTP request is received**, with a JSON schema for the approval request (approval ID, agent, user, action, target, findings, expiry, approver).\nAdd **Create an approval** (type Approve/Reject - First to respond), assign the approver from the request, and put the context pack in the details.\nPost the approval's Teams adaptive card to the approver with the Teams connector, then add **Wait for an approval**.\nReturn the outcome (approved or rejected, approver and comments) to your gateway's callback endpoint, signed or authenticated.\nIn the gateway, release the held request only for an approved outcome from the expected approver before the expiry; otherwise discard it.","title":"Configure the approval flow"},{"type":"bullets","content":"**Start and wait for an approval** completes the approval before it produces a Teams card, so use **Create an approval** plus **Wait for an approval** when you want the approval inside Teams.\nIf an approver responds by email, the Teams card does not update. Turn off the default email notification to avoid mismatches.\nApproval timestamps are in UTC. Guest approvers need a Power Automate licence to respond.","title":"Gotchas"}]},"saviynt":{"status":"documented","product_name":"Saviynt Identity Security for AI","summary":"Saviynt identifies and certifies the accountable approvers and can block unapproved actions at Agent Access Gateway; the hold itself is built in your gateway. Written from Saviynt's published material; not lab-tested by Trevonix.","last_verified":"2026-11","blocks":[{"type":"table","content":"Capability | Role in this pattern\nAgent inventory and ownership | Identifies the accountable sponsor or owner who should approve\nAgent Access Gateway | Runtime enforcement that can stop agent actions that break policy\nAccess governance | Certifies who may approve for which agents and resources","title":"Capabilities used"},{"type":"numbered","content":"Make sure each gated agent has an owner and sponsor in the inventory; they are your approver pool.\nDefine in Saviynt who may approve actions for which agents, and certify that list periodically.\nWhere Agent Access Gateway fronts the tools, add policies that block high-impact actions unless the request carries a valid approval reference from your approval service.","title":"Configure"},{"type":"bullets","content":"Saviynt access requests approve standing access, not individual agent actions. Use them to govern who may approve; build the per-action hold in your gateway.","title":"Gotchas"}]},"misc":{"status":"documented","product_name":"Auth0 for AI Agents","summary":"Auth0 provides asynchronous authorisation for customer-facing agents using CIBA with Rich Authorization Requests. Written from Auth0's documentation; not lab-tested by Trevonix for this pattern.","last_verified":"2026-11","blocks":[{"type":"paragraph","content":"Auth0 for AI Agents implements human-in-the-loop approval as asynchronous authorisation: CIBA, optionally with Rich Authorization Requests to carry the details being approved, delivered by push notification, SMS or email."},{"type":"numbered","content":"Enable CIBA for the agent's application and configure the notification channel your customers will use.\nWhen the policy requires approval, have the agent's backend start a CIBA request with the user's identifier, a binding message and `authorization_details` describing the action (for example payee and amount).\nPoll, or receive a callback, until the user approves or rejects; only then perform the action with the resulting token.\nUse the Auth0 AI SDKs for LangChain or LlamaIndex if your agent uses them; they wrap this flow.","title":"Configure asynchronous authorisation"}]}},"slug":"tie-agt-004-human-approval-gate-for-consequential-agent-actions","updated_at":"2026-11-24T16:55:57.167Z","url":"https://exchange.trevonix.com/patterns/tie-agt-004-human-approval-gate-for-consequential-agent-actions","markdown_url":"https://exchange.trevonix.com/patterns/tie-agt-004-human-approval-gate-for-consequential-agent-actions.md","publisher":"Trevonix","license":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/"}}