TL;DR: Customer-controlled AI breaks when the API still asks a customer to approve a generic screen for every agent action. Replace broad access and repeated clicks with intent-bound grants and execution-time policy checks. Record durable proof for every consequential side effect.
Key Takeaways: - Private deployment controls data placement. Runtime contracts control who can cause which side effect. - OAuth carries delegated scopes. Capability grants bind authority to one action, resource, constraint set, and expiry. - Routine actions can proceed. Sensitive actions still need deliberate confirmation and complete evidence.
The Click Is Now the Bottleneck, Not the Safeguard

A customer can delegate a purchase to an AI agent in one sentence. Yet the order API still interrupts with a confirmation click. That click does not restore customer control. It exposes an architecture that never delegated authority cleanly.
That gap becomes sharper as AI agents move from suggestions into transactions.
1{2 "customer_intent": "Buy the best-value option within my stated limit",3 "approval_event": {4 "approved": true5 }6}
A click proves that a person saw a screen and produced an event. It does not prove that the amount, merchant, quantity, resource version, and side effect match delegated intent.
The screen can be accurate when it appears. The mismatch lies in meaning. It captures the display, not the contract under which the agent is allowed to act.
Confirmation remains useful for a targeted decision. It becomes noise when it repeats approval for an already delegated outcome. - Infrastructure control decides where models run and where data stays. - Runtime control decides who can cause which action under which constraints.
Private deployments, VPCs, and sovereign environments address data placement. They do not decide who can authorize an external effect.
Customer control should mean explicit goals, constraints, and revocation. Routine actions should not trigger mandatory re-approval.
So what breaks when authority moves from a person to an agent?
Why OAuth and Confirmation Screens Break Delegated Intent
OAuth can carry delegated scopes. It is not enough on its own for an agent acting on a customer’s behalf.
A broad purchase scope identifies a class of permitted operation, not the outcome authorized right now.
1{2 "scope": "payments:write",3 "merchant_allowlist": null,4 "max_amount": null,5 "quantity": null6}
This is the confused-deputy problem. The agent can substitute a merchant, price, quantity, or destination while remaining inside its token. - Merchant: The agent selects a seller outside the customer’s stated choice. - Amount: A changed price exceeds the delegated boundary. - Resource: The agent acts on an account or offer the customer never intended.
A generic approve endpoint erases the missing context. It records that someone clicked, not the intended outcome, evaluated constraints, or policy basis.
Price, inventory, travel schedule, account state, and policy can change between check and commit. That creates the time-of-check to time-of-use gap.
AI agents make that gap worse because they plan across multiple calls. A token approved before planning can survive into execution after the underlying facts change.
Existing permission systems provide a useful counterpoint. Even with permission rules and classifiers, sensitive actions such as payments still require a final customer decision.
Removing every click would trade friction for ambiguity, not create control.
So what should carry authority?
Customer Control Is a Runtime Contract, Not a Hosting Model
Customer control becomes enforceable when authority is modeled as a runtime contract. An illustrative contract looks like this:
1{2 "objective": "Buy one listed laptop under the stated limit",3 "constraints": {4 "currency": "USD",5 "max_amount": "1200.00",6 "merchant_allowlist": ["merchant-42"]7 },8 "authority": {9 "actions": ["purchase.create"],10 "expires_at": "2026-12-02T18:00:00Z"11 },12 "evidence": {13 "customer_confirmation_required": true,14 "audit_fields": ["intent", "policy", "grant", "result"]15 }16}
The contract has four primitives: - Objective: The outcome the customer wants. - Constraints: The limits that make that outcome acceptable. - Authority envelope: The actions, resources, and time during which the agent can act. - Evidence: The proof required to reconstruct and justify the result.
Responsibility then moves cleanly across the stack. The customer defines intent, the agent develops a plan, and the policy layer evaluates that plan. The API enforces the resulting grant at execution time.
Customer-controlled deployment and customer-controlled decisions answer different questions. Hosting controls where inference runs, but it does not decide who can cause a payment, message, or record change.
Under this model, permission rules handle routine actions. Classifiers assess proposals, while a sandbox limits what the agent can affect.
That model still has a limit. Sensitive payments and other high-impact actions require the customer’s final decision.
This contract becomes the stable backend abstraction for identity, policy, observability, and tool routing. It is the foundation for dependable custom software development.
But prompts and prose cannot enforce a boundary. APIs must expose the contract as machine-readable primitives.
How should an API expose that contract in a form an agent can use?
Design APIs for Plan, Authorize, Execute, Prove

A runtime contract needs a narrow, machine-readable API surface. The API should expose four operations: capability discovery, planning, authorization, and commitment.
Capability discovery
Publish a machine-readable contract at `GET /.well-known/ai-capabilities`. It must describe supported actions, required authority, constraints, confirmation modes, reversibility, and idempotency requirements.
1curl -sS "$API_BASE/.well-known/ai-capabilities" | jq .
An agent can then plan without guessing which endpoints demand human review. This also fixes the catalog problem described in Your Agentic API Can Break While the Model Stays Untouched.
Plan and commit
Separate quote or planning operations from final execution. Return an immutable `plan_id`, `resource_version`, `expires_at`, and normalized constraints.
The agent must commit that exact plan, not a fresh interpretation of it. Any material change requires a new plan and another policy evaluation.
Authorization envelope
The request must carry the delegated context, not only a broad token.
1curl -sS -X POST "$API_BASE/v1/authorizations" \2 -H "Authorization: Bearer $ACCESS_TOKEN" \3 -H "Content-Type: application/json" \4 --data '{5 "principal": "customer-42",6 "agent_id": "agent-7",7 "intent_id": "intent-19",8 "action": "purchase.create",9 "resource": "offer-81",10 "constraints": {11 "currency": "USD",12 "max_amount": "1200.00",13 "merchant_allowlist": ["merchant-42"]14 },15 "expires_at": "2026-12-02T18:00:00Z",16 "idempotency_key": "order-19-offer-81",17 "context_hash": "sha256:2c26b46b68ffc68ff99b453c1d304134"18 }'
The policy service evaluates the objective, action, resource, limits, and current state together. A constraint that cannot be evaluated must not be treated as satisfied.
Capability issuance
Return a short-lived, audience-bound grant that names the action and resource. Do not grant standing purchase access.
Store sensitive authorization records server-side. Do not embed customer details in the token. A grant should reveal only what the API needs to verify the delegated operation.
Execution enforcement
Immediately before committing, verify the grant, resource version, constraints, expiry, and idempotency key. Return structured errors that tell the agent how to recover: - `authorization_required` - `constraint_violation` - `stale_resource` - `expired_grant`
Proof
Append an audit event containing the originating intent, grant identifier, policy outcome, and plan version. Include the resource version, agent and tool versions, customer confirmation when required, and final execution result.
This closes the gap described in Your AI Agent Calls a Tool. Your Audit Trail Goes Dark. The audit event becomes part of normal execution, not a separate reporting exercise.
This delivery sequence moves from reversible delegation to tightly bounded, explicitly confirmed operations.
A grant can enforce only what it can evaluate. Which effects need closer review, and which can proceed?
Make the Policy Decision Point Explain Every Outcome
The decision point must answer a sharper question: Is this effect routine, sensitive, out of bounds, or missing evidence?
Deterministic policy first
Evaluate standing customer rules, delegated limits, prohibited actions, jurisdiction, and resource-specific requirements first. These rules should produce a clear allow, confirm, deny, or challenge result.
Risk classification second
Use a classifier to assess the proposed action and its expected impact. Keep deterministic authorization rules authoritative. A model can inform risk, but it must not become the final policy authority.
Sandbox or preview third
Let the agent run the operation against a non-binding plan. The system can inspect the resulting effect before granting commit authority.
1curl -sS -X POST "$API_BASE/v1/policy/decisions" \2 -H "Authorization: Bearer $ACCESS_TOKEN" \3 -H "Content-Type: application/json" \4 --data '{5 "intent_id": "intent-19",6 "agent_id": "agent-7",7 "action": "purchase.create",8 "resource": "offer-81"9 }'
Every decision returns one of four outcomes with a machine-readable reason code: - Allow: The action satisfies the delegated authority. - Confirm: The customer must approve a targeted, high-impact decision. - Deny: The action violates an explicit rule or boundary. - Challenge: The system needs specific evidence or clarification.
For sensitive payments, route confirmation to the customer. The API must receive durable proof bound to the plan, grant, and resource version. A conversational message or screenshot is not sufficient evidence.
Deny the action when identity, policy, state, or audit services are unavailable. AI auditability must be an output of every decision, not a later log review.
Which actions should earn that trust first?
Stage Delegation from Reversible to Irreversible Actions
The safe rollout starts by finding endpoints that assume a human will see a click. Inventory endpoints before changing them, because hidden side effects otherwise surface only after delegation changes the execution path.
Inventory hidden assumptions - Mutable carts that can change after review. - Non-idempotent writes that can repeat on retry. - Approval screens carrying no structured constraints. - Endpoints that combine planning, authorization, and execution.
Classify by reversibility and impact
Start with read-only discovery, then add reversible writes. Introduce tightly bounded, explicitly confirmed operations for high-risk actions such as payments.
This order lets the team test delegation against recoverable effects first. It also exposes policy mistakes before they become irreversible.
Put a gateway around legacy APIs
Introduce a policy-aware gateway before rewriting every service. Gradually replace opaque endpoints with capability, plan, authorization, and execution contracts.
1curl -sS -X POST "$API_BASE/v1/purchases/commit" \2 -H "Authorization: Bearer $CAPABILITY_GRANT" \3 -H "Idempotency-Key: order-19-offer-81" \4 -H "Content-Type: application/json" \5 --data '{"plan_id":"plan-19","resource_version":"7"}'
Test the failure matrix
Test state, identity, and delivery failures separately: - Stale quotes, changed amounts, and revoked grants. - Replayed tokens and substituted agents. - Duplicate requests, timeouts, and partial downstream failures.
Track authorization failures, stale-plan challenges, replay attempts, decision-trace completeness, and approval latency. Publish no universal thresholds without evidence from your own systems.
Design for the long term
Revocation and audit paths must outlive agent frameworks, model versions, and operating teams.
This staged sequence makes the architecture credible without treating every action as equally reversible. Speed comes from removing redundant clicks without surrendering control, while the evidence trail becomes stronger.
What changes when that architecture works?
Faster Completion Without Surrendered Control
Delegation changes the unit of control. The customer gives an agent an objective and boundaries, while the API enforces those boundaries at the point of execution.
1{2 "intent_id": "intent-19",3 "policy_outcome": "allow",4 "grant_id": "cap-19",5 "confirmation": "not_required",6 "execution": "succeeded"7}
- Delegation: Routine work proceeds without repeated approval screens. - Enforcement: The API rejects effects that exceed delegated authority. - Evidence: Every consequential action carries its intent, grant, and outcome.
The API becomes a governed execution partner rather than a click generator. Sensitive decisions remain deliberate because policy can still route them to the customer.
Auditability becomes a by-product of execution. Each action carries its intent, policy basis, grant, confirmation status, and result. This strengthens the decision rights described in Agentic AI Scales Faster Than Your Decision Rights.
Portability follows because models and agent frameworks can change. Customer-owned policy and API contracts can remain stable. That lets AI agents change without changing customer authority, while giving custom software development a stable backend contract.
The remaining question is practical: How can a team adopt this without rewriting every API?
Frequently Asked Questions
What does customer-controlled AI mean for API design?
It means the customer remains the source of intent and constraints while an AI agent carries out delegated work. APIs must encode and enforce that delegation. Hosting AI in customer-controlled infrastructure addresses data residency, not runtime authorization.
Does customer-controlled AI remove the need for human approval?
No. Permission rules, classifiers, and sandboxes can reduce unnecessary prompts. Sensitive actions such as payments still require the final customer decision. The goal is fewer redundant clicks, not zero accountability.
Is OAuth enough for API authorization when an AI agent acts?
OAuth can carry delegated scopes for the customer or agent. Broad scopes do not prove that a specific action matches current intent. Pair it with short-lived, intent-bound capability grants and execution-time constraint checks.
How do you make AI agent actions auditable?
Record the originating intent, policy outcome, grant identifier, plan version, resource version, confirmation status, and final execution result as part of execution.
Start with one reversible API, then expand only when its evidence trail proves complete. The first endpoint will reveal which hidden assumptions your current API still carries.
About the author
Mayank Singh is a software developer at Levitation Infotech, where he builds web and AI-powered applications across the company’s fintech, healthcare, and enterprise projects.
