Organizations deploying enterprise AI agents face an uncomfortable binary: give agents unrestricted write access and risk catastrophic financial or data errors, or lock every agent to read-only mode and lose the operational automation value. Without structured Human-in-the-Loop (HITL) step-up authentication, teams either stall in permanent pilot mode or approve risky actions via unverified chat messages.
Key Takeaways
- Classify every AI tool call into autonomous read-only, reversible draft, or irreversible high-risk mutation tiers to balance velocity with safety.
- Embedding hitl_write_required inside signed agent JWTs lets APIs automatically halt unapproved mutations and route structured approval requests to human reviewers.
- Binding high-risk approvals to phishing-resistant FIDO2 Passkey step-up verification prevents approval fatigue and stops session-hijacked approvers.
- Every elevated grant should record business justification, reviewer identity, and exact approved scopes or MCP servers in an immutable compliance log.
Classifying Agent Actions by Reversibility and Blast Radius
Effective Human-in-the-Loop governance does not mean forcing an employee to click approve on every API call—that creates immediate alert fatigue where reviewers blindly approve malicious actions just to clear their queue. Instead, security architects categorize agent capabilities into three operational tiers based on reversibility, financial impact, and external visibility.
Tier 1 covers read-only context gathering (searching knowledge bases, querying CRM history, summarizing logs), which runs fully autonomously under short-lived JIT tokens. Tier 2 covers reversible staging actions (saving draft pull requests, creating pending ticket notes) that remain safely sandboxed. Tier 3 covers irreversible or high-impact mutations—issuing refunds, modifying IAM roles, deleting records, pushing production deploys, or attaching new MCP servers—which strictly require cryptographic human step-up authorization.
- Tier 1 (Autonomous Read): executes silently with 5 to 15 minute JIT tokens and zero human friction.
- Tier 2 (Reversible Draft): allowed autonomously only into isolated staging scopes with automated expiration and attribution.
- Tier 3 (Irreversible Write or Scope Elevation): blocked at the API gateway until an authorized human reviewer approves the exact action or scope.
- Zero implicit escalation: an agent can never promote its own Tier 1 read token into a Tier 3 write token without an external signed approval.
Triggering Structured HITL Access Requests from Agent Workflows
When an agent registered with requireHumanApprovalForWrite set to true encounters a task requiring elevated permissions—such as issuing a customer credit or accessing a write-enabled billing MCP server—its standard JIT token carries hitl_write_required: true and excludes destructive scopes. Rather than failing silently or asking a developer for a shared admin key in Slack, the agent submits a structured HITL access request detailing the exact requestedScopes, requestedMcpServers, and human-readable business justification.
This request enters a governed approval queue visible to designated reviewers and the agent's human owner. Reviewers inspect the full rationale alongside the agent's risk score before recording an Approved or Denied decision with reviewNotes. Once approved, the policy update or elevated scope merges cleanly into the agent's boundary and logs both the requester and approver cryptographically.
# 1. Agent workflow submits a structured HITL elevated access request
POST https://api.sso.id/api/ai-agents/agt_7a2bb83f901a4e/access-requests HTTP/1.1
Authorization: Bearer <WORKFLOW_TOKEN>
Content-Type: application/json
{
"requestedScopes": "orders:refund:create billing:ledger:write",
"requestedMcpServers": "mcp://stripe-refunds",
"justification": "Ticket #48219 verified duplicate charge of $240.00; requires single refund execution"
}
# 2. Human approver reviews after FIDO2 Passkey step-up verification
POST https://api.sso.id/api/ai-agents/access-requests/req_9c3f18a4/review HTTP/1.1
Authorization: Bearer <STEP_UP_VERIFIED_APPROVER_TOKEN>
Content-Type: application/json
{
"decision": "Approved",
"reviewNotes": "Verified duplicate invoice #INV-9921 in billing console; approved bounded refund scope."
}
Hardening Human Approvals with FIDO2 Passkey Step-Up
A Human-in-the-Loop approval is only as trustworthy as the authentication proof behind the approver's click. If an organization allows sensitive AI write approvals over an unauthenticated chat webhook or a stale 12-hour browser cookie, a phished session or malicious browser extension can silently approve high-value agent transactions without the employee's genuine consent.
Enforcing WebAuthn/FIDO2 Passkey step-up authentication directly on approval endpoints eliminates both session hijacking and careless click-throughs. Before the review decision executes, SSO.ID requires a fresh cryptographic assertion (amr containing hwk or user-verified passkey, with auth_time within the last 120 seconds) and displays the exact transaction summary—agent name, target MCP server, requested scopes, and business justification—so the approver consciously signs off on the exact action.
- Require fresh authentication recency (auth_time under 120 seconds) before accepting high-risk Tier 3 approval decisions.
- Mandate phishing-resistant FIDO2 Passkeys or hardware security keys via SSO.ID's /auth/oauth/passkey endpoints for financial and production-infra approvals.
- Display exact immutable action parameters (amount, target record ID, scope list) inside the approval UI rather than an LLM-generated summary that could be prompt-injected.
- Enforce separation of duties so the user who initiated a sensitive transaction cannot self-approve elevated financial scopes.
export function assertFreshPasskeyStepUp(approverJwt: Record<string, unknown>, maxAgeSeconds = 120) {
const now = Math.floor(Date.now() / 1000);
const authTime = Number(approverJwt.auth_time || 0);
const amr = Array.isArray(approverJwt.amr) ? approverJwt.amr.map(String) : [];
const isPhishingResistant = amr.includes('hwk') || amr.includes('fido2') || amr.includes('passkey');
if (!isPhishingResistant) {
throw new Error('403: Step-up approval requires FIDO2 Passkey authentication');
}
if (!authTime || now - authTime > maxAgeSeconds) {
throw new Error('403: Authentication too stale; complete fresh Passkey challenge');
}
return {
approverSub: String(approverJwt.sub),
verifiedAtUtc: new Date(authTime * 1000).toISOString()
};
}
Never let the AI agent write the approval screen's binding parameters unsupervised. Render deterministic structured fields (target endpoint, dollar amount, affected user ID, exact scope) directly from the gateway's intercepted request payload so prompt injection cannot disguise a dangerous action as a harmless one.
Preventing Permanent Scope Creep After One-Time Approvals
A subtle governance trap emerges after an agent completes several legitimate HITL workflows: if every approved request permanently expands the agent's standing permissions, a formerly read-only copilot slowly accumulates sweeping write access over a single quarter. Production architectures prevent scope creep by distinguishing permanent policy expansions from ephemeral task-scoped approvals.
For routine one-off mutations such as issuing a refund or restarting a failing service, issue a short-lived 5-minute approval token bound strictly to that single operation rather than widening the agent's baseline allowedScopes. Reserve permanent scope merges for reviewed architectural upgrades, and rely on SSO.ID's automatic risk scoring and quarterly certification campaigns to catch and prune any lingering write privileges.
- Bind single-action approvals to narrow 5-minute TTLs and exact transaction identifiers to prevent replay.
- Trigger automated risk-score recalculation whenever write scopes are merged into an agent's standing policy.
- Review all pending and historical HITL decisions during quarterly SOC 2 and ISO 27001 access audits.
How SSO.ID Solves Human-in-the-Loop Step-Up Governance
SSO.ID v2 pairs native AI Agent HITL access request workflows with built-in FIDO2 Passkey authentication, ensuring every high-risk write action or scope elevation is cryptographically authorized by a verified human.
- ✓Default-on requireHumanApprovalForWrite policy enforced via signed hitl_write_required claims in every JIT Agent JWT.
- ✓Complete HITL request lifecycle APIs (GET /api/ai-agents/access-requests, POST /access-requests, and POST /review) with justification and reviewer notes.
- ✓Native FIDO2/WebAuthn Passkey step-up authentication (/auth/oauth/passkey/*) delivering phishing-resistant human sign-off.
- ✓Immutable AccessRequestCreated, AccessRequestApproved, and AccessRequestDenied audit events linking agent, requester, and human approver.
Frequently Asked Questions
Not at all. Read-only tool calls authorized under the agent's allowedScopes execute autonomously using short-lived JIT tokens with zero human prompts. HITL step-up intercepts only state-mutating operations or out-of-policy scope elevations.
SMS codes and basic push prompts are vulnerable to phishing and MFA push-fatigue attacks, where an attacker triggers repeated approval prompts until a distracted employee taps Approve. FIDO2 Passkeys require local biometric or hardware verification cryptographically bound to the exact origin.
Every access request and review decision is persisted in SSO.ID's immutable AI Agent audit log stream with requestId, agentId, requestedScopes, justification, reviewedBy, reviewNotes, and UTC timestamps.