On November 11, 2026, United Airlines banned AI agents from booking, changing or servicing tickets, even when the traveler approves each step. Every iOS app with App Intents now faces a smaller version of that decision, because Siri AI opened to all developers on November 3. List every intent your app exposes, sort them into read-only, reversible and money, sending or deleting, and give the last group .requiresAuthentication, a confirmation with a named action such as .buy, and no system discovery if only your own Shortcut needs it. On the server, make purchase endpoints idempotent and record where each action started.
On November 11, 2026, United Airlines changed its Contract of Carriage to ban AI agents from booking, changing or servicing tickets. The rule applies even when the traveler watches the agent and approves each step. By November 12 the story had more than 400 points on Hacker News, and the comments split: some people read it as consumer protection, others as an airline locking out a new kind of customer.
If you build iOS apps, the interesting part has little to do with flights. United just wrote down, in a legal document, a decision every app with a "buy", "send" or "delete" button now has to make: which actions an AI agent may take on a person's behalf, and which ones need the person in the loop. Apple opened Siri AI to all developers on November 3, so the agents are already knocking on your app through App Intents. This post walks through what United actually changed, then gives you a concrete way to audit and lock down the actions your own app exposes.
What United changed, in its own words
The new text sits in United's Contract of Carriage, the document that governs every ticket. It adds a definition first. An AI Agent is "any software or service" that "takes autonomous or semi-autonomous action", and the definition covers this even when a passenger "supervises or approves its actions". It names three groups: AI assistants built into social media, messaging, search or other consumer platforms; AI-enabled browsers and standalone AI agents; and third-party AI assistants that reach United through a travel agency or other intermediary.
The ban itself is one line in the list of prohibited practices: "The use of AI Agents to make, modify or service a Ticket, and/or to purchase any service or product." Coverage from tbreak places this at Rule 6.J.6 and reports a companion change to Rule 5.H that lets United cancel reservations an AI agent made, changed or serviced. According to the same report, bookings made before November 11 will not be cancelled for that reason alone, and searching for fares or researching with AI and then buying the ticket yourself is still fine. Sites such as Kayak and Google Flights can keep showing United fares.
United's stated reasons, quoted by CBS News, are security and money: sharing account credentials with third-party AI assistants "can expose sensitive information", and the tools "may result in unintended purchases". United has not said how it will detect agent bookings.
Two things stand out for developers. The definition is about behavior (autonomous or semi-autonomous action), not about any brand of model. And "the user approved it" does not save the transaction.
Why this lands on your iOS app now
For years, the only way software acted inside your app was through your own UI or your own API. Shortcuts and Siri existed, but most teams treated App Intents as a nice extra. That changed this month. Apple's developer news for November 3 reads "Siri AI is now open to all developers". Siri AI App Skills: What iOS Developers Should Build Before Spring covers what to build for it.
Every App Intent you ship is a door. Siri, Shortcuts, Spotlight and whatever assistant features Apple adds next can open it. If one of your intents places an order, sends a message, changes a subscription or deletes data, an agent can now trigger that action from a sentence the user said, or misheard, or that a model misread.
On the server side, the browser agents United worries about are already hitting web checkouts. If your iOS app has a web companion or a public API, some of the traffic is coming from software that is not a person tapping a screen. You do not have to ban it the way United did. You do need to know which of your actions are safe to automate and which are not, and you need the controls in place before an angry support email arrives.
Step 1: list every action your app exposes to the system
Start with an inventory. Most AI-built apps end up with App Intents scattered across files, often added by a coding agent while building a widget or a Shortcut. The script below walks a project folder, finds every type that conforms to AppIntent, and reports whether it sets the three controls that matter here: an authentication policy, a confirmation request, and the discoverability flag.
#!/usr/bin/env python3
"""List App Intents in a Swift project and the safety controls each one sets.
Usage: python3 intent_audit.py path/to/YourApp
"""
import re
import sys
from pathlib import Path
INTENT_RE = re.compile(r"(struct|class)\s+(\w+)\s*:\s*[^{]*\b\w*Intent\b")
def body_of(text, start):
# Return the source between the first "{" after start and its matching "}".
i = text.find("{", start)
if i == -1:
return ""
depth = 0
for j in range(i, len(text)):
if text[j] == "{":
depth += 1
elif text[j] == "}":
depth -= 1
if depth == 0:
return text[i:j + 1]
return text[i:]
def audit(root):
rows = []
for path in Path(root).rglob("*.swift"):
if ".build" in path.parts or "Pods" in path.parts:
continue
text = path.read_text(encoding="utf-8", errors="ignore")
for m in INTENT_RE.finditer(text):
body = body_of(text, m.end())
auth = re.search(r"authenticationPolicy[^.]*\.(\w+)", body)
rows.append({
"intent": m.group(2),
"file": str(path.relative_to(root)),
"auth": auth.group(1) if auth else "default",
"confirms": "requestConfirmation" in body,
"hidden": re.search(r"isDiscoverable[^\n]*false", body) is not None,
})
return rows
if __name__ == "__main__":
root = sys.argv[1] if len(sys.argv) > 1 else "."
rows = audit(root)
print(f"{'Intent':32} {'Auth policy':28} {'Confirms':9} {'Hidden':7} File")
for r in sorted(rows, key=lambda r: r["intent"]):
print(f"{r['intent']:32} {r['auth']:28} {str(r['confirms']):9} "
f"{str(r['hidden']):7} {r['file']}")
print(f"\n{len(rows)} intents found")
The script is deliberately simple. It reads source text, so it will miss intents generated by macros or declared through unusual inheritance, and it only spots a confirmation call written inside the type's own body. Treat its output as a starting list, then open each file. On two small sample files it printed one row per intent with the expected flags. Run it on your own repo before you rely on it.
When the list is in front of you, add one more column by hand: what happens in the real world when this intent runs. "Shows today's tasks" and "Charges the saved card" should never sit in the same bucket.
Step 2: sort the actions into three tiers
United drew one line: research is fine, transactions are not. Most apps need a little more nuance. A three-tier sort works well and is easy to explain to a teammate or a client.
| Tier | Examples | Agent may run it? | Controls to set |
|---|---|---|---|
| 1. Read only | Show balance, list orders, open a screen, search | Yes | Default auth policy is usually fine; hide anything that reveals private data on a locked device |
| 2. Reversible writes | Add to list, mark done, set a reminder, save a draft | Yes, with care | Require an unlocked device for personal data; confirm when the request is ambiguous |
| 3. Money, sending, deleting | Pay, order, book, send a message, cancel a plan, delete an account | Only with explicit confirmation, or not at all | Require authentication, always confirm with a clear action name, consider hiding from system discovery or moving to the foreground |
Write the tier next to each intent in your inventory. If your team argues about a tier, the argument is useful. It usually means the action has a side effect nobody wrote down, such as a push notification to another user or a charge that only happens on the server later.
Step 3: use the controls App Intents already gives you
Apple's App Intents framework has the knobs you need. None of them are new, which is good news: they work on the iOS versions most apps already support. Here is what each one does, according to Apple's documentation.
authenticationPolicy
static var authenticationPolicy: IntentAuthenticationPolicy has been available since iOS 16. It has three values. .alwaysAllowed lets the intent run at any time, including when the device is locked. .requiresAuthentication requires authentication before the intent runs. .requiresLocalDeviceAuthentication requires the person to unlock the device that is running the intent.
For tier 3, the stronger setting is the right default. An agent that runs while the phone sits locked on a desk should not be able to place an order.
requestConfirmation
Inside perform(), you can stop and ask. The simplest form, requestConfirmation(), has existed since iOS 16. Since iOS 18 there is a richer version:
func requestConfirmation(
conditions: ConfirmationConditions = [],
actionName: ConfirmationActionName = .continue,
dialog: IntentDialog
) async throws
Pick the actionName with care. ConfirmationActionName includes values such as .buy, .pay, .order, .book, .send and .post, plus a custom(...) option with a destructive flag. A button that says "Pay" tells the person what will happen. A button that says "Continue" does not.
The conditions parameter has one documented option, .lowConfidenceSource, which Apple describes as "only confirm if initiated from a low-confidence action source". Leave it out for tier 3 actions. You want the confirmation every time, not only when the system is unsure.
isDiscoverable
static var isDiscoverable: Bool, available since iOS 17, controls whether system features can discover the intent. If an action exists only so your own widget or your own Shortcut can call it, setting this to false keeps it out of the places where an assistant goes looking for things to do.
supportedModes
New in iOS 26, supportedModes sets whether the intent runs in the background or the foreground. Forcing a payment or a deletion into the foreground means the person sees your app, your own review screen and your own wording before anything happens.
Putting it together
Here is a tier 3 intent with all of it in place. Treat it as a sketch that follows Apple's documented signatures; the types OrderStore and CartEntity stand in for your own code, and the snippet type-checks with Xcode 26.2 for iOS 17 and iOS 18 targets in Swift 5 and Swift 6 modes. The section after this step explains the two changes that took.
import AppIntents
struct PlaceOrderIntent: AppIntent {
static let title: LocalizedStringResource = "Place Order"
static let description = IntentDescription("Places the order in your cart.")
// Never run from a locked phone.
static let authenticationPolicy: IntentAuthenticationPolicy = .requiresAuthentication
// Keep it out of system suggestions; your own Shortcut can still call it.
static let isDiscoverable: Bool = false
@Parameter(title: "Cart")
var cart: CartEntity
func perform() async throws -> some IntentResult & ProvidesDialog {
let total = try await OrderStore.shared.total(for: cart.id)
// Always ask, with a button that names the action.
if #available(iOS 18, *) {
try await requestConfirmation(
actionName: .buy,
dialog: "Place this order for \(total)?"
)
} else {
try await requestConfirmation()
}
let order = try await OrderStore.shared.place(cartID: cart.id,
source: .appIntent)
return .result(dialog: "Order \(order.number) placed.")
}
}
Note the source: .appIntent argument in the last call. That is not an Apple API. It is a field you add yourself so your backend knows the order came through an intent and not through a tap in your UI. You will want that later.
If your purchases go through StoreKit, Apple's own payment sheet still asks the person to confirm the purchase. That covers the charge itself. It does not cover the things around it in your app, such as choosing a plan tier, applying credit or cancelling the old subscription, so those steps still deserve their own confirmation.
What the compiler said about the sketch
The intent above was type-checked with Xcode 26.2 against the iOS simulator SDK, with small stand-in types for CartEntity and OrderStore. An earlier draft built only in one of four setups:
| Deployment target | Swift 5 mode | Swift 6 mode |
|---|---|---|
| iOS 17 | Error: the confirmation call needs iOS 18 | Same error, plus four concurrency errors |
| iOS 18 | Built | Four concurrency errors |
Two changes fixed it, and both are in the code above. First, requestConfirmation(actionName:dialog:) is iOS 18 only, as the FAQ below says, so an app that still supports iOS 17 needs an if #available(iOS 18, *) branch. The older requestConfirmation() in the other branch still stops the intent until the person confirms. It just cannot name the button. Second, Swift 6 rejects static var for title, description, authenticationPolicy and isDiscoverable with "is not concurrency-safe because it is nonisolated global shared mutable state". The protocol only asks for a getter, so static let satisfies it and the error goes away. With both changes the intent built for iOS 17 and iOS 18 in both language modes.
Type-checking proves the signatures, not the behavior. Run the locked and unlocked Shortcuts test from the checklist on a device before you trust the prompt.
Two intents the audit script missed
The audit script was also run with Python 3.12 on a sample project with five intents written in common styles. An earlier draft missed two of them. An intent that conforms to OpenIntent, one of the protocols that build on AppIntent, was not listed at all, because the pattern looked for the word AppIntent only. And an intent that declares its policy as a computed property over three lines was reported as "default", because the search stopped at the end of the first line. The version in Step 1 now matches any conformance ending in Intent and reads the policy up to the first dot. On the same sample it printed:
Intent Auth policy Confirms Hidden File
DeleteAccountIntent requiresLocalDeviceAuthentication True False Intents/Others.swift
OpenOrderIntent default False False Intents/Others.swift
PlaceOrderIntent requiresAuthentication True True Intents/PlaceOrder.swift
SendMessageIntent default False False Intents/Others.swift
ShowTasksIntent default False False Intents/Others.swift
5 intents found
The Pods copy was skipped, and DeleteAccountIntent now shows its real policy. The wider pattern can also catch a custom protocol of yours that happens to end in "Intent", which is the safe direction for an audit.
Step 4: harden the backend for agent traffic
App Intents cover the iPhone. Browser agents and assistants that use your web app or API never touch them. Three changes on the server handle most of the risk United listed.
Never ask users to hand over a password
United's first complaint was credential sharing. If people want an assistant to work with your service, the safe pattern is a scoped token they can revoke, created through a sign-in flow you control, instead of a password pasted into a chat box. Even a simple "read-only access" token type helps: it lets an assistant check order status without being able to place an order. Claude's "Sign Out Everywhere" Leaves Scheduled Tasks Running shows why revoking access has to be tested, not assumed.
Make purchase endpoints idempotent
United's second complaint was "unintended purchases". Agents retry. Networks drop. A model that did not see a success message may simply try again. An idempotency key turns a double submit into a no-op. The client generates a unique key per checkout attempt and sends it in a header; the server stores the key with the result and returns the stored result when it sees the key again.
import sqlite3, json
db = sqlite3.connect("orders.db")
db.execute("""CREATE TABLE IF NOT EXISTS idem (
key TEXT PRIMARY KEY, user_id TEXT, response TEXT)""")
def place_order(user_id, idem_key, cart, source):
row = db.execute("SELECT user_id, response FROM idem WHERE key = ?",
(idem_key,)).fetchone()
if row:
if row[0] != user_id:
raise PermissionError("key belongs to another user")
return json.loads(row[1]) # replay: same answer, no new charge
order = create_order_and_charge(user_id, cart, source) # your code
db.execute("INSERT INTO idem VALUES (?, ?, ?)",
(idem_key, user_id, json.dumps(order)))
db.commit()
return order
In production you would wrap the check and the insert in a transaction or rely on the primary key constraint to catch a race, and you would expire old keys after a day or so. Payment providers such as Stripe already support idempotency keys on their own API, so pass yours through.
Record how each action started
Add a source or initiated_via column to orders, messages and deletions: ui, app_intent, api_token, web. It costs one column. It gives you the data to answer the question United could not answer publicly, which is how much of your traffic comes from agents and whether those actions get refunded or reversed more often. If the numbers turn bad, you can tighten one path without touching the others.
Two requests with the same key, at the same time
The note above says a race needs a transaction or the primary key. Here is what the race looks like in practice. The function was run with a payment step that takes 50 milliseconds, once with a retry after the first request had finished and once with two requests arriving together, each on its own database connection as a web server would use. A second version claims the key before it charges:
import json, sqlite3
def place_order_claim_first(user_id, idem_key, cart, source):
db = sqlite3.connect("orders2.db", timeout=5, isolation_level=None)
db.execute("""CREATE TABLE IF NOT EXISTS idem (
key TEXT PRIMARY KEY, user_id TEXT, response TEXT)""")
# Claim the key before charging. Only one request can insert it.
claimed = db.execute("INSERT OR IGNORE INTO idem VALUES (?, ?, NULL)",
(idem_key, user_id)).rowcount == 1
if not claimed:
owner, response = db.execute(
"SELECT user_id, response FROM idem WHERE key = ?", (idem_key,)).fetchone()
if owner != user_id:
raise PermissionError("key belongs to another user")
if response is None:
raise RuntimeError("same request still in progress, retry later")
return json.loads(response) # replay: same answer, no new charge
try:
order = create_order_and_charge(user_id, cart, source) # your code
except Exception:
db.execute("DELETE FROM idem WHERE key = ?", (idem_key,)) # allow a retry
raise
db.execute("UPDATE idem SET response = ? WHERE key = ?",
(json.dumps(order), idem_key))
return order
With Python 3.12 and SQLite, the four runs printed:
article, retry after success charges: 1 errors: none
article, two requests at once charges: 2 errors: ['IntegrityError']
claim first, two requests at once charges: 1 errors: ['RuntimeError']
claim first, retry after success charges: 1 errors: none
The retry case works in both versions. The simultaneous case is the one agents create, because an agent that times out often sends the same request again while the first is still running. There the original version charged twice. Both requests found no key, both charged, and the second then failed on the primary key after the money had already moved. The claim-first version inserted the key before charging, so only one request could win. The other got a "still in progress" error it can retry a moment later, and one charge went through. If the charge fails, the key is deleted so a real retry can run. Pass the same key to your payment provider as its idempotency key as well, so a crash between the charge and the update cannot charge twice either.
Step 5: write the decision down
United put its decision in a contract. Most small apps do not need a new legal clause. They do need a short, plain statement somewhere a user and a reviewer can find it: which actions Siri or other assistants can perform, which ones always ask first, and how to revoke any access tokens. If you sell to businesses or operate in a regulated area, run the wording past a lawyer; this post is not legal advice.
The same note is useful in App Store Connect. If a reviewer can trigger purchases or messages through Siri, the App Review notes are a good place to say which intents ask for confirmation and how to test them. A reviewer who sees a payment happen without a prompt will have questions, and clear notes save a round trip.
What United's rule does not settle
Three questions are still open, and each one has a version in your own app.
- Detection: United says it can identify booking sources, but an agent driving a browser can look a lot like a person. A rule you cannot enforce mostly shifts liability. For an app, that argues for controls at the action level, like confirmation and idempotency, over trying to spot agents.
- Scope: One Mile at a Time read the definition as possibly covering award search tools, since it includes software that can "discover" or "search for" products. United has not said it will enforce it that way.
- Supervision: United's text ignores whether a person approved the agent's action. Apple's model is the opposite:
requestConfirmationexists so that a person's explicit approval is what makes an action acceptable. For most apps, Apple's approach is the more useful one.
A 30-minute checklist
- Run the intent audit script on your project and save the output.
- Add a tier (read, reversible, money/sending/deleting) to every intent.
- For every tier 3 intent, set
authenticationPolicyto.requiresAuthenticationor.requiresLocalDeviceAuthentication. - Add
requestConfirmationwith a specificactionNamesuch as.buy,.sendor a destructive custom name. Do not pass.lowConfidenceSourcefor these. - Set
isDiscoverable = falseon intents that only your own widgets or Shortcuts should call. - Add a source field to the backend records those intents create.
- Add idempotency keys to every endpoint that charges money or sends something to another person.
- Write two or three plain sentences about assistant access in your help page and your App Review notes.
- Test each tier 3 intent from Shortcuts with the phone locked, then unlocked, and confirm you see the prompt both times.
FAQ
Did United ban AI tools for searching flights?
No. Reporting on the change says searching and comparing fares, or researching with AI and then booking yourself, is still allowed. The ban covers making, changing or servicing tickets and purchasing products or services through an agent. Whether award search tools fall under the definition is still unclear.
Do I have to ban agents in my app too?
No. United made a business decision for an airline with fraud and federal rules to think about. Most apps are better served by letting agents handle read-only and reversible actions and requiring explicit confirmation for money, messages and deletions.
Is requestConfirmation enough to stop accidental purchases?
It stops an intent from finishing without the person tapping the confirm button, which covers the common case of a misheard request. It does nothing for browser agents using your website, which is why idempotency keys and scoped tokens on the server still matter.
Which iOS versions support these controls?
According to Apple's documentation, authenticationPolicy and the basic requestConfirmation() date from iOS 16, isDiscoverable from iOS 17, the requestConfirmation(conditions:actionName:dialog:) form from iOS 18, and supportedModes from iOS 26.
Will App Review reject an intent that pays without confirmation?
Does the new requestConfirmation form work on iOS 17?
No. It is iOS 18 only, and an app with an iOS 17 deployment target will not build with it. Put it in an if #available(iOS 18, *) branch and call the older requestConfirmation() otherwise.
Apple has not published a rule that says exactly that. It is still a weak spot to leave open, and clear review notes that explain which intents confirm make the review easier.
If you are building these changes with Claude Code, Claude Code + Xcode: The Production iOS Workflow Kit is a copy-ready Claude Code setup for SwiftUI and UIKit projects. It includes AGENTS.md and CLAUDE.md templates, 8 rules (privacy and security among them), 6 commands such as /ios-review and /ios-release, and 10 iOS agents, so a pass like the one above can run as a reviewed ticket instead of a loose prompt. It does not include the audit script from this post.
Keep reading on JR Devhub
- Apple's Retention Messages Are Live: What Opened, What Didn't, and How to Set Yours Up
- Cursor Can Now Deploy Your App From a Prompt. Test These 5 Bugs Before You Share the Link
- AWS Made Kiro Bots Generally Available. Build One Read-Only Bot Before You Let It Run All Night
- The Best Coding Agent Fully Finished 26% of Real Tasks. Write Your Acceptance Criteria Before You Prompt
Sources
- United Airlines Contract of Carriage (AI Agent definition and prohibited practice, read November 12, 2026)
- CBS News: United Airlines bans AI agents from booking flights
- tbreak: United AI agent ban, rule numbers and what remains allowed
- Hacker News AI Digest, November 12, 2026
- Apple Developer News: Siri AI is now open to all developers (November 3, 2026)
- Apple: IntentAuthenticationPolicy
- Apple: requestConfirmation(conditions:
actionName: dialog:) - Apple: ConfirmationActionName
- Apple: isDiscoverable
- Apple: supportedModes

Comments