Acp capability negotiation

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

Acp capability negotiation is an AI agent skill from the GitHub repository OrcaQubits/agentic-commerce-skills-plugins. Implement ACP capability negotiation — dynamic discovery of mutually supported capabilities, extensions, payment handlers, and interventions. Use when building multi-feature merchant servers or agents that adapt to merchant capabilities.

How to use this skill

Skill file

ACP Capability Negotiation

Before writing code

Fetch live docs:

  1. Web-search site:github.com agentic-commerce-protocol rfcs capability_negotiation for the capability negotiation RFC
  2. Fetch https://developers.openai.com/commerce/specs/checkout/ for how capabilities appear in checkout requests/responses
  3. Web-search site:github.com agentic-commerce-protocol spec json-schema capabilities for the capabilities JSON schema

Conceptual Architecture

What Capability Negotiation Does

ACP agents and merchants may support different features. Capability negotiation allows them to dynamically discover what they both support, so the session uses only mutually available features.

How It Works

  1. Agent sends capabilities — In the create request, the agent includes a capabilities object listing what it supports
  2. Merchant responds with capabilities — The merchant intersects with its own capabilities and returns what's active for this session
  3. Intersection governs the session — Only mutually supported features are used

Capabilities Object Structure

The capabilities object contains:

Extension Pruning

Extensions declare a parent capability via extends. If the parent capability is not in the negotiated intersection, the extension is automatically pruned — no extra logic needed.

Interventions

Interventions are actions that require human involvement. They are represented as a structured object (not a flat array) with sub-fields including supported, required, enforcement, display_context, redirect_context, max_redirects, and max_interaction_depth.

Intervention types include:

The agent advertises which interventions it can handle. If the merchant requires an intervention the agent can't handle, the checkout may not proceed.

Versioning in Negotiation

Use Cases

Best Practices

Fetch the capability negotiation RFC for the exact capabilities object schema, extension pruning rules, and negotiation semantics before implementing.

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.