The Contract Net Protocol is a task allocation and negotiation protocol for multi-agent systems in which a manager agent announces a task, capable contractor agents submit bids, and the manager awards the task to the best bidder, who later reports the result. In the field of AI agents, contract net is one of the oldest and most widely implemented market-style coordination mechanisms.
The protocol was proposed by Reid G. Smith in 1980 for distributed problem solving across networked processors and was later standardized by the Foundation for Intelligent Physical Agents as the FIPA Contract Net Interaction Protocol. Its enduring appeal lies in dynamic, decentralized assignment: no agent needs a global view of who can do what, because capability is discovered through bidding.
How the Contract Net Protocol allocates a task
The protocol defines two roles that any agent can play: the manager (called the initiator in FIPA terminology), which owns a task and needs it done, and the contractor (participant), which may perform it. One agent can be a contractor for one task and a manager for its subtasks, which produces hierarchical delegation naturally.
- Task announcement: the manager broadcasts a call for proposals describing the task, eligibility requirements, the bid format and a bid deadline.
- Bidding: each potential contractor evaluates its capability and current load, then replies with a proposal or a refusal.
- Award: after the deadline, the manager evaluates proposals, accepts one or more and explicitly rejects the rest.
- Execution and reporting: the awarded contractor performs the task and returns a result, a completion notice or a failure message.
The FIPA specification maps these steps to standard FIPA ACL performatives, so heterogeneous agents can interoperate. The table lists the messages in the order they normally appear.
| Performative | Sender | Meaning |
|---|---|---|
| cfp | Manager | Call for proposals with task description and deadline |
| propose | Contractor | Bid stating terms such as cost or completion time |
| refuse | Contractor | Declines to bid, optionally with a reason |
| accept-proposal | Manager | Awards the task to the chosen contractor |
| reject-proposal | Manager | Informs unsuccessful bidders |
| inform-done or inform-result | Contractor | Reports completion or returns the output |
| failure | Contractor | Reports that the awarded task could not be completed |
Bid evaluation and commitment
The protocol prescribes the message flow but leaves bid evaluation to the application. A manager may minimize cost, minimize completion time, maximize quality, or combine criteria in a weighted utility function. Contractors likewise decide locally whether a task is worth bidding on, which makes the scheme compatible with self-interested agents as well as cooperative ones.
A subtle issue is commitment. In the classic form, a submitted bid is binding: if the bid is accepted, the contractor must perform. An agent bidding on several tasks at once therefore risks over-commitment when several bids win simultaneously. Research on leveled commitment contracting introduced decommitment penalties so that agents can break contracts at a known price, trading predictability for flexibility.
| Strategy | Selection rule | Best suited to |
|---|---|---|
| Lowest cost | Cheapest proposal wins | Resource-constrained logistics |
| Earliest completion | Shortest promised time wins | Time-critical scheduling |
| Weighted utility | Score combines cost, time and quality | Mixed objectives |
| Reputation-weighted | Past reliability adjusts the score | Open systems with unknown agents |
| Multiple awards | Task split among several bidders | Divisible tasks and redundancy |
Contract net compared with other coordination approaches
Contract net sits between central planning and fully emergent coordination. It shares ideas with auctions but is usually described as a one-round sealed-bid negotiation, and it differs from the static role assignment of an orchestrator-worker pattern used in many modern agent frameworks.
| Approach | Who decides | Strength | Weakness |
|---|---|---|---|
| Contract Net Protocol | Manager after bidding | Discovers capability dynamically | Message overhead per task |
| Central scheduler | Single planner with global state | Globally optimal plans possible | Single point of failure |
| Orchestrator-worker pattern | Orchestrator by fixed rules | Simple and predictable | No load or capability discovery |
| Combinatorial auction | Auctioneer over bundles | Handles task interdependence | Winner determination is NP-hard |
| Iterated contract net | Manager over several rounds | Allows bid refinement | Longer negotiation time |
| Agent swarm | Local rules, no explicit award | Highly robust | Weak guarantees on assignment |
FIPA also defines an Iterated Contract Net Interaction Protocol, in which the manager can issue a revised call for proposals after the first round. This turns the scheme into a multi-round negotiation and lets contractors improve their offers.
Applications from manufacturing to LLM agents
Smith originally demonstrated contract net on distributed sensing, where sensor nodes negotiated which node should track which signal. The protocol later became a standard technique in holonic manufacturing, where machines bid for jobs on a shop floor, and in logistics and transport scheduling, where carriers bid for loads.
In current multi-agent systems built on large language models, contract net reappears as a way to route tasks among specialized agents. A coordinating agent describes a subtask, specialist agents return structured proposals with an estimated cost or confidence, and the coordinator delegates. Registries such as an agent registry or capability descriptions such as an agent card play the role of the eligibility filter that limits who receives the call for proposals.
Limitations and common pitfalls
Contract net is simple to implement, but naive deployments run into scalability, timing and trust problems. Experienced designers address each one explicitly.
- Communication overhead: broadcasting every task to every agent scales poorly; targeted announcements to eligible agents reduce load.
- Deadline tuning: a short bid deadline loses good offers, while a long one delays every task.
- No global optimum: greedy, task-by-task awarding can produce poor overall allocations when tasks interact.
- Strategic or dishonest bids in open systems require reputation, verification or penalties.
- Failure after award must be handled with timeouts and re-announcement, or tasks silently stall.
Explained without jargon
The Contract Net Protocol works like hiring a contractor for home repairs. You describe the job and ask for quotes. Several workers reply with a price and a date. Some say they are too busy. You pick the best offer and tell the others politely that they were not chosen. The winner does the job and reports back.
Software agents follow the same steps with messages. Nobody needs a master list of who can do what. Each agent decides for itself whether to bid. That makes the system flexible when agents join, leave or become busy.
A typical use case
A regional warehouse operates 40 autonomous mobile robots that move shelves to packing stations. When a new order arrives, a dispatcher agent sends a call for proposals to robots within 50 meters of the required shelf, with a bid deadline of 200 milliseconds. Each robot replies with its estimated arrival time based on its position, battery level and current queue, or refuses if its battery is below 20 percent.
The dispatcher awards the job to the robot with the earliest arrival and rejects the others, which then remain free for the next call. If the winning robot reports a failure, for example a blocked aisle, the dispatcher re-announces the task automatically. Compared with a fixed zone assignment, this dynamic bidding keeps busy robots from becoming bottlenecks and shortens average fetch times noticeably during peak hours.