Google AP2
AP2 defines structured mandates and delegation chains so agents can execute commerce actions with explicit, narrow authority.Mandate-First Model
Narrowing by Hop
VDC Mandate Types
- Cart
- Intent
- Payment
Scopes
checkoutpaymentbrowsecomparenegotiate
Capabilities
| Capability | Description |
|---|---|
| select_item | Choose candidate products/services. |
| add_to_cart | Modify cart composition and quantities. |
| checkout | Submit checkout details up to payment step. |
| pay | Execute authorized payment transaction. |
| confirm_order | Confirm and persist final order receipt. |
| manage_subscription | Create/update/cancel recurring service plans. |
Multi-Hop Delegation Chains
Delegation chains narrow authority at each hop so every child mandate is a strict subset of its parent.Note: Delegation invariant: child scopes ⊆ parent scopes and child capabilities ⊆ parent capabilities.
Mandate Parsing Example
ap2-parse-mandate.ts
Tip: Persist parsed mandate snapshots and subset-validation results for every delegation hop.
Note: Route all AP2 verification outcomes through ProtocolRouter.verify() for consistent fallback and metrics tagging.
