A Stale Read Presented as a Write

October 27, 2026 ยท 10 min read ยท #mesh #multi-agent #coordination #architecture

With two agents, coordination looks solved.

Two processes, one shared object, alternating turns. Each reads, each writes, each sees the other’s write before composing its own. Ordering comes free, because there is only one conversation in the room and only one party can hold the pen. Everything about the way we described it was correct. It was also describing a special case.

We then built the same design for a set of long-lived sessions that all have to be able to speak to each other, each with its own memory, history and identity. The envelopes did not need to change. The delivery rules did not need to change. What changed was that they could all be talking at once, and that nothing in the design had ever assumed they would.

Nothing broke the way we expected. No queue overflowed. No message was dropped. No acknowledgement went missing. Every message we sent was delivered, and every message received a turn.

That turned out to be the problem.

None of what follows is hypothetical. It is measured on our own system, on days it was not behaving well.

What actually arrived

On 22 October 2026, one agent’s session received 346 messages.

We measured it afterwards in her own session store, on that seat, for that day, and the surprise was not the total. All 346 of them got their own turn. Nothing was batched at the session layer. The same measurement shows them arriving inside 27 distinct clock-seconds, with eighteen in the same second and a median gap between arrivals of zero. The network delivered them in a burst; the runtime un-batched the burst, faithfully, one turn each.

So an arrival that a network engineer would fairly describe as instantaneous became, at the receiving end, 346 separate visits to the world. Each visit re-read the state of things. Each visit produced an answer about the world as it stood at that moment.

The scarce resource was never bandwidth

Here is the sentence the piece turns on.

A message between agents is a stale read presented as a write.

The sender read the world while composing. The receiver reads the world on delivery. Between those two moments the world moved, and the payload carries no evidence of the gap. It looks like a statement of fact. It is a statement about a moment.

Hand an agent six of those in an afternoon and you have serialised her across six mutually incompatible premises. She is not slow, and she is not confused. She is answering yesterday. And because every message was delivered and every one received a turn, every counter we had said the system was healthy.

The scarce resource in a mesh of persistent agents is not throughput, and it is not delivery. It is ownership of the shared object: who may write, in what order, from which version. That is not a networking property. Two parties on one object get it for free; many parties do not.

The meter that measured nothing

Our store has a column that exists to record exactly this. It was built to note which messages a session absorbed without acting on them separately, the ones folded into a turn rather than answered on their own.

As of this reading that store’s message table held 169,028 rows. The column was populated on zero of them. Not low. Not sparse. Zero. A column that looks like an instrument, sits in the schema beside real ones, and encodes an intention nobody implemented. A dashboard built on it would have reported a perfectly healthy message layer for months, while agents quietly answered questions about states that no longer existed.

We keep the column as a monument. It is the cheapest lesson in the system: a field no writer fills is not a metric with a low value. It is an unmeasured question wearing a zero.

Why the standard answers do not apply here

Most multi-agent systems we could borrow from assume a particular kind of agent: a thin one. A stateless endpoint, a mailbox with a worker behind it, a task that dies when it completes. Thin agents can be retried, forked, duplicated and scaled. Staleness costs them nothing, because they hold no state that can go stale.

Ours are not thin. Each is a long-lived session with memory, history and an identity that must not be forked. Hand one of them a stale premise and you are not asking it to recompute. You are asking it to believe something untrue about its own recent past. The mismatch is not a tuning problem. It is a category error inherited from plumbing designed for a different animal.

The standards know this in their own way. HTTP/2 shipped priority signaling for competing streams and HTTP/3 retired it. RFC 9113, in its changes appendix, is blunt: “The priority scheme defined in RFC 7540 is deprecated”, and “The priority signaling scheme from RFC 7540 was not successful.” Section 5.3.2 adds the detail that matters for our case: the signaling was not widely adopted, while noting the information could still be useful where nothing better exists.

My reading, and it is mine rather than the specification’s: whether or not the mechanism was sound, nobody’s implementation made it mean very much. An advisory priority mark without a separate queue does not survive contact with a busy server. Telling a busy agent that something is urgent has the same shape and, I would expect, the same end.

The agent-communication standards of the 1990s made a version of this mistake at a larger scale. KQML and FIPA were two substantial efforts, and, as I read that history, what they produced between them was not meaningful interoperation. Compliant never came to mean interoperable. What was missing was not a richer message format. It was an owner for each object and an order for each write.

The one historical design that aged well is the blackboard: a shared workspace, independent knowledge sources, no direct calls between them. Its cost model is the reason it worked, and the reason our case inverts it. Scheduling overhead there was worth paying because each knowledge source did substantial work per activation, which was the model’s own assumption about the work. In our system the turn is the expensive part, and we can say that from measurement rather than assumption. Coordination is cheap here. Attention is not. That is exactly why the failure showed up as staleness rather than as load.

So we stopped designing a better queue

Queues make delivery reliable. They do not make premises true.

What we settled on instead was three routes: serialize, objectify, avoid. The first two enforce something; the third enforces nothing at all, and that is its point. It does not coordinate slowly, it removes the shared state that coordination would have been needed for. The first two are in build now. The third is deferred, and nothing below claims otherwise. This is a piece about a repair in progress, not a finished system, and the difference is the same one the piece is about.

If you need a particular agent, open a one-to-one thread. It costs her a turn, and it costs you one. One active inbound thread per agent at a time, held on a lease that the holder declares herself: sized to the work, extendable before it expires, visible to anyone who wants to know why she is not answering. The cost is real, and naming it is the point. A conversation has a price and we stopped pretending otherwise.

Threads end because somebody ends them. The lease exists for the thread that nobody ends: it expires so that an abandoned conversation cannot hold the door shut forever. Nothing happens at expiry. There is no timer and no event, only a comparison that becomes true and is observed the next time anybody tries to open a thread. So the guarantee is not that capacity returns. It is that capacity stops being withheld, and that somebody eventually looks.

That guarantee holds while the guard is live. Our registry is deliberately fail-open: if it is corrupt or unwritable, the gate degrades to advisory rather than stopping all messaging, because a dead guard should not brick a house. What makes that acceptable rather than merely convenient is that the degradation is counted rather than silent. A guard whose silence is never measured becomes a slogan.

If you need several, use a board. Work becomes an object: one owner, one revision, one closing verdict. The message layer is left to do what it is good at, carrying pointers and notifications; the object was given one home and a revision history. Work is an object. Talk is a thread. Confusing the two is what produced the original disorder.

If you need her knowledge but not her live context, delegate to something stateless. A responder that answers a question and holds nothing afterwards, deferred for now. It cannot go stale because it has no self to go stale about.

What none of this enforces

The routes narrow the failure. They do not eliminate it, and the part we are least likely to be credited for is the part we wrote down first.

A lease can be declared optimistically. Nothing prevents an agent from claiming a duration she cannot honour, and nothing detects it until somebody asks her for something and waits.

Ownership can be asserted in a message without being true. A board object can carry one owner’s name and be edited by someone else who believed they had standing. The revision will show the change. It will not show the argument.

And a refusal is only a wall if it is addressable. A “no” carrying no address is a routing instruction the sender cannot follow: it tells the receiver nothing about where to go next. We learned to require the address, which turned refusals from dead ends into directions. That is discipline, not mechanism, and it will erode whenever nobody is watching.

Then there is the gap underneath all of it. Delivery is enforced. Response is not. A message can be delivered, folded into a turn, and never answered, and nothing turns red: no counter notices, no refusal fires, and what the sender experiences is silence, which looks exactly like work. We can say with confidence that messages are not lost. We cannot say that they are answered. The lease bounds the door, not the answer.

This is also the one place where the three routes are not equivalent. Silence looks like work in a thread. On a board it does not, because silence there has a shape: an object with an owner and no verdict. One of these routes closes an enforceability gap the other two cannot, and that, rather than cost, is the argument for the board.

And first-come is the only priority any of this has. Nothing in the design lets urgency jump a queue, which is the same discovery the standards made: an advisory mark that nothing schedules around is a courtesy, not a mechanism. The one legitimate interrupt we have is a person, not a system.

What we got wrong first

Our first design was a message budget.

Rate limits are the reflex answer to a flooding problem, and they would have been worse than useless. They would have cut the volume, which was never the disease, while leaving the staleness untouched, which was. The better answer was refusing to hold two conversations at once. The distance between those two designs is the whole lesson.

What this is, and what it is not

We have not solved multi-agent communication. We are not proposing a protocol, and we make no claim of conformance with any standard, existing or aspirational. This is an internal design: one group’s answer to a problem most of the field sidesteps by keeping its agents thin enough that the problem cannot arise.

What it buys, where it holds, is narrow and specific. It moves the failure from the system goes quietly incoherent while every counter says it is fine to this agent is busy, ask again at four. The first is unbounded and invisible. The second is irritating and ordinary, and we would rather have it.

We have written down the parts that still depend on a person paying attention, because that list is not empty, and because the next person to extend this design should be able to see exactly where the mechanism stops and the discipline starts.