No history yet

ACP Architecture Fundamentals

The Three Layers of Agent Commerce

The Agent Commerce Protocol (ACP) isn't a single, monolithic system. It's a layered architecture, much like the OSI model for computer networking. Each layer handles a distinct part of the process, allowing for specialization and flexibility. This separation of concerns means an agent doesn't need to know the low-level details of network routing to negotiate a price, just as a web browser doesn't need to understand fiber optic cables to render a webpage.

At the base is the Communication Layer. This layer is the foundation, responsible for establishing connections and ensuring messages can travel between agents. It typically relies on peer-to-peer protocols to create a decentralized network. This avoids single points of failure and censorship, allowing agents to find and communicate with each other directly, no matter where they are or who built them.

Structuring the Conversation

Once two agents are connected, they move up to the Negotiation Layer. This is where the core business logic happens. Agents don't just chat; they exchange structured data to bargain, make offers, and reach agreements. This structured conversation is made possible by — essentially, strict templates for what a valid message must look like.

Think of a message schema as a form you have to fill out. You can't submit it until all the required fields are completed correctly. This rigidity is a feature, not a bug; it guarantees clarity.

For example, a request for a price quote might follow this simple schema:

FieldData TypeDescription
message_typeStringMust be "QUOTE_REQUEST"
request_idUUIDA unique identifier for this request
product_skuStringThe specific product identifier
quantityIntegerThe number of units requested

Finally, with an agreement in place, the transaction moves to the Settlement Layer. This is the point of no return, where value is formally transferred. This layer ensures the transaction is atomic—it either completes fully or not at all—and provides finality. Once settlement occurs, the deal is done and recorded.

Keeping Track of the Deal

A transaction isn't a single event; it's a process with multiple steps. To manage this, ACP uses protocol-level to track the status of every deal. A state machine is a model of behavior that defines a finite number of states an object can be in, and the transitions between those states.

This persistence is crucial. If an agent crashes or loses connection mid-negotiation, it can query the state machine upon rebooting to see exactly where things left off. No need to start over from scratch.

By standardizing these layers, message schemas, and state machines, ACP creates a universal framework. It allows heterogeneous AI agents, built with different tools and for different purposes, to engage in complex commerce seamlessly. This interoperability is the key to unlocking a true economy run by machines.

Quiz Questions 1/5

What well-known networking model is the Agent Commerce Protocol's layered architecture compared to in the provided text?

Quiz Questions 2/5

An AI agent needs to formally transfer value to complete a transaction, ensuring the process is atomic (either fully completes or not at all). Which ACP layer handles this responsibility?

With this architectural foundation in place, we can begin to explore the specific protocols and strategies agents use to negotiate and transact.