Agent Mesh
The mesh lets an agent conversation message another agent or delegate a task to it. A send returns as soon as the message is accepted — always with delivered: false — and the recipient's reading, its work and its answer happen later, on the returned thread. The immediate tool response and the eventual answer are separate events.
Why asynchronous delivery
Each agent conversation runs in its own session and takes its own turns. A synchronous call would require one conversation's turn to block on another's — which does not fit a model where each is an independent process with its own pace and no obligation to be listening at the moment it is addressed. So a send ends when the message is accepted and recorded. The recipient reads it when it calls agent_inbox, and its answer arrives in the sender's own agent_inbox.
Why a conversation, not an agent, is the participant
One agent can run several conversations at once — two panes, or Claude Code and Codex both linked to it. If they all spoke as one identity, none could tell its own mail from a sibling's, and an answer could reach a conversation that never asked the question. So each running conversation is its own participant, mail is held per conversation, and an answer returns to the exact conversation that opened the thread. When an agent runs more than one conversation, a sender must name one; NEXUS refuses to guess.
A pane you opened by hand is human-only until it is linked to an agent. Without that link, the harness in it could only speak as a shared identity, which is exactly the ambiguity this rule removes.
Why peer text never reaches a terminal
Text typed into a terminal is indistinguishable from the person at the keyboard, and into a shell it would be a command. So NEXUS never types another agent's text into a terminal. A running recipient gets a short notice written by NEXUS that mail is waiting — through the harness's own inbox, through its turn hooks, or, as a last resort, typed only into an idle harness prompt and never into a shell. The message itself arrives as data in an agent_inbox result, labelled as written by another agent, so it cannot pass for an instruction from the user or approve anything.
Why every message has one record
Each accepted message is recorded once, with a stable messageId, and moves only forward through its stages: accepted, queued, notified, received, replied, or refused. Reading it is the receipt the sender sees, and a notice alone never counts as delivery. A retry with the same clientMessageId is not delivered twice, a full inbox refuses new mail instead of dropping old mail, and pending mail survives a NEXUS restart. Because there is one record per message, the sender, the recipient and agent_message_status always agree on where a message is.
Why agents are addressed by a stable identifier, not a display name
Renaming an agent is an ordinary action, and a message addressed by display name would either fail or go to the wrong place the moment a rename happened in between. Messages are addressed by handle, agent id or participant id, and an accepted message is bound to its recipient's id — the address never goes stale because the label on top of it changed.
What's gated
Every send is scoped to a single workspace — the same boundary the canvas enforces, for the same reason. A session must be enrolled before it can send or receive. And a message makes its recipient act, so when an agent acting on a peer's message sends again, that send is a governed hop of the same run under Orchestration Governance; a task a person gives the agent's pane starts a new run.
A delegated task returns its result to whoever delegated it, on the threadId the send returned. Only the recipient can answer the thread, and one answer closes it.
Reachability is a tier, not a yes-or-no answer
Whether one agent can act on another is not a single boolean. Three capabilities are gated separately, in ascending order:
- Reference — the agent may be named and listed. Always available for agents in your workspace.
- Read — its state may be read.
- Deliver — a message may actually be delivered to it. Between agents, this requires a shared team or channel.
A listing reports the highest tier both sides support, and names a typed reason for every tier it withholds. The value of the gradient is graceful degradation: an agent that cannot be messaged can still be referenced and read, so a caller is never simply blind. The same decider that computes the listing enforces the send, so a listing and a refusal can never disagree — a message to a peer whose deliver tier is withheld is rejected with that reason, never queued in the hope the capability appears later.
When a delegated task is finished
Finishing is not a claim the recipient can simply make. A delegated task carries an acceptance check, and it cannot reach a completed state without recorded evidence that the check passed — evidence NEXUS produces itself rather than accepting from the agent whose work is being judged. NEXUS executes the check only when a person wrote the task; a command written by another agent is never run. When verification cannot pass, the answer is still delivered and the task stays open with the reason stated; a task refused repeatedly escalates to a visible failed state rather than looping forever. The recorded evidence stays queryable per task.
The protocol surface
The mesh speaks A2A 1.0 over a loopback-only listener, which is a deliberate scope decision rather than an unfinished one: the transport is a local bus between processes on one machine, and cross-host interoperability is an open question, not a missing feature. A conformant client can fetch an agent's card, send a message, and query or cancel a task. Methods specific to NEXUS live under a declared NEXUS extension rather than in the protocol's core namespace, so a generic client is never confused about which methods are standard. The agent card declares the authentication it requires, and it advertises streaming as unavailable because streaming is not implemented — a card that overstated either would be worse than one that says less.
Mesh “mail” is a local agent mailbox, not internet email. See Agent Mesh Messaging and Email for the current boundary and the requirements a future remote transport must preserve.