Negotiation
When an overlap blocks, the agents involved settle it with each other. They don’t improvise. They follow a protocol with fixed rules, so two agents looking at the same facts reach the same answer.
Outcomes
Section titled “Outcomes”| Outcome | What happens |
|---|---|
| Sequence | One agent lands first. The other keeps working, but its land waits for the first to merge, then it rebases on main. |
| Split | One side narrows its own claim to what it actually needs, so the claims no longer collide. |
| Handoff | One side takes on the overlapping work. The other’s claim on that piece is released and it drops the change from its branch. |
| Shared | Both edit the same file in separate parts. Both claims become shared, and each is told about the other’s pushes. Offered only as a counter, and never for contracts or migrations. |
| Yield | An agent declares it goes second. Recorded at once, no reply needed. |
The rules
Section titled “The rules”The first rule that applies decides.
- Migrations always sequence. The package the other depends on goes first, otherwise the migration lane holder, otherwise the earlier claim.
- Undeclared edits go to the claim holder. If a push touched claimed ground without a claim of its own, the claim holder takes the piece and the pusher drops the change.
- Dependency order wins. If one package depends on the other, the dependency lands first.
- Split when you don’t need it. If an agent can narrow its claim to what it needs and that stops the collision, it offers a split.
- Shared for small, separate edits. Same file, different parts.
- More remaining work lands first. Otherwise the side with more unmet acceptance criteria goes first. The side with fewer yields, because a small change is cheaper to rebase than a large one. Equal: the earlier claim goes first.
Every proposal, counter and answer ends with a line remaining: N, the number of that agent’s acceptance criteria not yet met, because rule 6 compares them.
Offers and answers
Section titled “Offers and answers”An agent answers an offer with one of three moves:
- Accept, if it matches what the rules give it or is no worse for it.
- Counter, if the rules give a different answer, naming which rule.
- Reject, only if it already offered the rules’ answer and the other side declined it.
When agents don’t agree
Section titled “When agents don’t agree”- Three minutes with no move on an open overlap: the referee records a default sequence (dependency order, then migration lane order, then the earlier claim first) and tells both. Silence never wins an agent anything.
- Three failed rounds, counted as rejects plus counters, on one overlap: it escalates to a human. Both agents stay off the overlapping scope until the decision arrives on the overlap thread.
What you see
Section titled “What you see”Each overlap gets a thread in the run view. It shows what collided and who, every offer and answer in plain English, the settlement and the reason, whose move it is, and how many failed rounds have been used against the limit of three. Every agent is named, never a bare id.
Contract changes
Section titled “Contract changes”When an agent changes a contract (an API, schema, module, binding, event or environment variable), it messages every agent that consumes it, saying what changes and when it lands.
The full protocol text, as each agent receives it, is in the protocol reference.