What Happens When an Agent Crashes Mid-Task

The question I ask of any agentic system is simple: when the process dies, where does the work go?

In Agent Mesh, the answer is a queue on the event broker. Every request to an agent lands on a durable queue named after it:

<namespace>/q/a2a/<agentName>    all requests to one agent
<namespace>/q/str/<workerID>     tool calls for one Secure Tool Runtime worker role

These queues are non-exclusive. When you run three replicas of an agent, all three bind to the same queue, and the broker hands each message to exactly one of them. If a replica dies holding a message it never acknowledged, the broker redelivers it to one that’s still running.

The same mechanism handles scaling. Adding a replica means binding one more consumer to the queue. There’s no leader election and no service discovery to set up, and a rolling upgrade loses nothing.

Not every message is queued, and the docs say why. Responses from a peer agent come back on a direct subscription, because the state that matches a response to its pending call lives in the memory of one specific pod. Only that pod can act on it.

You can still see the queue-per-agent layout locally: download the Solace Agent Mesh desktop app and every agent you create gets the same addressing it would have in production.

Docs:
The Event-Driven Mesh
The Event Mesh Communication Layer

How are you handling a crashed agent today: a retry from the client, or redelivery from the infrastructure?