From ap2-agentic-payments
Implements AP2 human-not-present flow for autonomous shopping agents with Intent Mandate authorization, constraint enforcement, and merchant escalation. For post-user-departure purchasing.
npx claudepluginhub orcaqubits/agentic-commerce-skills-plugins --plugin ap2-agentic-paymentsThis skill is limited to using the following tools:
**Fetch live docs**:
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Automates semantic versioning and release workflow for Claude Code plugins: bumps versions in package.json, marketplace.json, plugin.json; verifies builds; creates git tags, GitHub releases, changelogs.
Fetch live docs:
https://ap2-protocol.org/specification/ for the human-not-present flow specificationsite:github.com google-agentic-commerce AP2 human-not-present intent mandate for sampleshttps://ap2-protocol.org/topics/core-concepts/ for flow overviewhttps://ap2-protocol.org/roadmap/ to check current support level (V0.1 scope)In a human-not-present flow, the user provides authorization upfront and then leaves. The Shopping Agent acts autonomously within the constraints defined in the signed Intent Mandate.
The AP2 V0.1 specification focuses on human-present scenarios. Human-not-present support is on the V1.x roadmap. Check the latest specification for current support level.
Phase 1: Intent Capture (User Present)
1. User → SA: Expresses shopping intent ("Buy me running shoes under $150")
2. SA → User: Repeats back understanding for confirmation
3. User: Confirms via in-session authentication
4. SA: Creates Intent Mandate from user's expressed intent
5. User → SA: Signs the Intent Mandate (hardware-backed)
6. User: May go offline
Phase 2: Autonomous Shopping (User Absent)
7. SA → Merchant: Presents Intent Mandate
8. Merchant: Evaluates whether they can fulfill within constraints
9. If uncertain → Merchant may force user confirmation (escalate)
10. If needs info → Merchant asks clarification (update Intent Mandate)
11. If can fulfill → Merchant creates Cart Mandate with offer
Phase 3: Authorization (May Require User)
12. SA: Evaluates Cart Mandate against Intent Mandate constraints
13. If within bounds → SA proceeds with payment
14. If outside bounds → SA rejects or escalates to user
15. Payment processing (similar to human-present Phase 4-6)
| Aspect | Human-Present | Human-Not-Present |
|---|---|---|
| User involvement | Throughout | Only at start (signing) |
| Primary VDC | Cart Mandate | Intent Mandate |
| Specificity | Exact items | Categories + constraints |
| Agent autonomy | Low (user confirms) | High (agent decides within bounds) |
| Risk level | Lower | Higher (needs more safeguards) |
The merchant can escalate from human-not-present to human-present:
The Shopping Agent must enforce Intent Mandate constraints:
If any constraint is violated, the agent must:
The Intent Mandate captures the user's actual words:
Fetch the specification for the current support level and exact Intent Mandate fields before implementing autonomous flows.