Ap2 dispute accountability

From OrcaQubits/agentic-commerce-skills-plugins · View interactive version

Ap2 dispute accountability is an AI agent skill from the GitHub repository OrcaQubits/agentic-commerce-skills-plugins. Implement AP2 dispute resolution and accountability — cryptographic evidence, liability allocation, chargeback handling, and audit trail construction. Use when building dispute handling, fraud investigation, or compliance systems for agentic payments.

How to use this skill

Skill file

AP2 Dispute Resolution and Accountability

Before writing code

Fetch live docs:

  1. Fetch https://ap2-protocol.org/ap2/specification/ for the accountability model
  2. Fetch https://ap2-protocol.org/overview/ for dispute resolution details
  3. Web-search ap2 protocol dispute accountability liability mandate evidence for accountability framework
  4. Web-search ap2 protocol chargeback fraud resolution for dispute handling patterns

Conceptual Architecture

Why Accountability Matters

In agentic commerce, the traditional dispute model breaks down:

AP2's VDC-based accountability model provides cryptographic evidence for every dispute scenario.

Liability Allocation Table

| Scenario | Key Evidence | Accountability |

|----------|-------------|---------------|

| First-party misuse | User-signed Cart/Intent Mandate | User — signature proves authorization |

| Agent mispick (user approved cart) | Checkout Mandate shows item, user signed | User — they approved the specific cart |

| Agent mispick (unapproved) | Intent Mandate vs cart discrepancy | Shopping Agent/Platform — exceeded intent |

| Merchant non-fulfillment | Valid mandate + payment confirmation vs absent delivery | Merchant — committed via signature |

| Account takeover | Authentication signals during session | CP/User — depends on auth strength evidence |

| Man-in-the-middle | Digital signature verification | Attack prevented — signatures invalid if tampered |

| Price discrepancy | Merchant-signed Checkout Mandate vs charged amount | Merchant — signed specific prices |

| Unauthorized transaction | Absence of user signature on mandate | Platform/Agent — no valid user authorization |

Evidence Chain

For every transaction, AP2 preserves:

  1. User's original intent — Natural language captured in Intent Mandate
  2. User's authorization — Cryptographic signature on the mandate
  3. Merchant's commitment — Merchant entity signature on Checkout Mandate
  4. Payment authorization — Payment Mandate with user signature
  5. Challenge completion — Records of 3DS/OTP challenges
  6. Transaction receipt — Payment confirmation from MPP

Dispute Investigation Process

  1. Collect mandates — Gather all signed VDCs for the transaction
  2. Verify signatures — Confirm all signatures are valid and match claimed identities
  3. Compare intent vs outcome — Check if the purchase matches the authorized intent
  4. Check constraint compliance — For Intent Mandates, verify constraints were respected
  5. Review risk signals — Assess the risk context at transaction time
  6. Determine liability — Apply the accountability rules based on evidence

Audit Trail Requirements

Store for the full retention period (at least the refund period):

Chargeback Handling

When a chargeback is filed:

  1. Retrieve the transaction's VDC evidence
  2. Verify mandate signatures
  3. Compare the disputed transaction against signed mandates
  4. Provide evidence to the payment network
  5. The cryptographic evidence resolves most disputes definitively

Fraud Scenarios

AI Agent Fraud Prevention:

Merchant Fraud Prevention:

Best Practices

Fetch the specification for exact accountability rules, evidence requirements, and retention policies before implementing dispute handling.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.