Is your feature request related to a problem? Please describe.
Currently, the AP2 repo provides mandate types and sample flows, but it does not cover how agents should behave when real-world conditions diverge from the original mandate.
For Ex:
- Merchant rejects part of the cart (out of stock).
- Price increases beyond the mandate’s limit.
- Payment fails or PSP declines transaction.
- Mandate expires during a multi step flow.
These are common real-world cases and crucial for ensuring that agents respect user intent while keeping the protocol trustworthy.
Describe the solution you'd like
- Add sample scenarios showing failure handling (merchant rejection, price drift, payment decline).
- Show how agents should check that actions remain within mandate constraints.
- Provide guidance on whether agents should automatically retry, prompt the user, or revoke/update the mandate.
Describe alternatives you've considered
Define a standard error/rollback format that can be used across implementations.
Additional context
Sample agents: samples/ (all appear to follow only success paths)
Code of Conduct