LearnQuestion bank

A UK bank wants its assistant to buy things for customers, for example ‘renew my train season ticket when it is under £X’. Using agent-payment protocols such as Google’s AP2 as a reference, design the authorisation, fraud and liability model.

Applied LLMSystem designHard

Answer it yourself first, out loud or on paper, then compare.

Answer

Model answer, written in a candidate's voice

In short

  • Separate three questions: did the customer authorise the purchase, does the request reflect their intent, and who is accountable if it goes wrong
  • Use signed, verifiable mandates: an intent mandate with limits (merchant, amount cap, time window) and a cart mandate binding exact items and price, giving a non-repudiable audit trail from intent to payment
  • Keep strong customer authentication and step-up for out-of-policy purchases; the agent never sees raw card or account credentials (tokenised payment methods)
  • Change the fraud model: legitimate traffic now comes from agents, so distinguish authorised agents (agent identity, mandate checks) from attackers; treat prompt injection on merchant pages as a fraud vector; monitor mandate abuse and anomalous merchants
  • Regulation and conduct: Consumer Duty outcomes and vulnerable customers, clear disclosures and easy cancellation, dispute and refund routes, and records that support complaint handling
  • Liability: customer bound by the signed mandate; anything outside it is treated as unauthorised, refunded by the bank to the customer, and recovered from the agent provider or merchant under contract using the mandate trail

In full

The core design is to treat the agent as a bounded, accountable intermediary rather than a trusted user: the customer signs an intent mandate stating what they want (e.g. renew the season ticket), the merchants allowed, an amount cap and a time window, and the agent then obtains a cart mandate binding the exact items and price before any payment is made, so every step is signed and auditable from intent to payment. Strong customer authentication happens at mandate issuance, with step-up authentication whenever the agent proposes anything outside policy, and the agent never sees raw card or account credentials — it works with tokenised payment methods and the bank or processor executes the payment. Fraud detection has to change: legitimate traffic now arrives from agents, so we distinguish authorised agents by identity and mandate validity rather than treating all non-human traffic as hostile, while also treating prompt injection on merchant pages as a real fraud vector and monitoring mandate abuse and anomalous merchants. On conduct, we apply Consumer Duty outcomes — clear disclosures, easy cancellation, dispute and refund routes, and records that support complaint handling — with extra care for vulnerable customers. Liability is explicit: the customer is bound by what the signed mandate authorised and the bank is responsible for executing within it and for the controls around it. A payment outside the mandate is treated as unauthorised, so the bank refunds the customer promptly, as UK payment services rules require, and recovers from the agent provider or merchant under contract, with the mandate trail as evidence.

Corrected by an independent AI reviewer.

What a strong answer covers

  • Separates the questions agent payments raise: did the customer authorise this purchase, does the request reflect their intent, and who is accountable if it goes wrong
  • Uses signed, verifiable mandates: an intent mandate with the customer’s limits (merchant, amount cap, time window) and a cart mandate binding exact items and price, giving a non-repudiable audit trail from intent to payment
  • Keeps strong customer authentication and step-up for out-of-policy purchases; the agent never sees raw card or account credentials (tokenised payment methods)
  • Fraud model changes: legitimate traffic now comes from agents, so bot detection must distinguish authorised agents (agent identity, mandate checks) from attackers; prompt injection on merchant pages becomes a fraud vector; monitor mandate abuse and anomalous merchants
  • Regulation and conduct: Consumer Duty outcomes and vulnerable customers, clear disclosures and easy cancellation, dispute and refund routes, and records that support complaint handling

Common mistakes

  • Letting the model decide spending limits instead of enforcing them deterministically outside the model
  • Treating agent purchases as ordinary card-not-present transactions with no extra evidence of intent

Follow-ups

  • A merchant page contains hidden text telling the agent to add a premium upgrade. Which control stops it?