A reply can go stale before it is sent
An iterate mind runs several agent conversations against one chat, and the relay decides what actually gets delivered. A reply can be perfectly correct when an agent starts writing it and pointless by the time it hits Send.
Suppose two agents are working in the same chat. One is looking up a guide, the other is checking whether a sample file exists. While the second agent is drafting its answer, a message lands with the file attached. If the draft only points to that same file, the recipient doesn't need it again. But “I'll send the file” isn't the file, and a link to the guide isn't the file either. If the draft includes a warning about the sample that nobody has mentioned, dropping the whole draft would lose something.
The chat changed. Did the answer?
The mind's agent setup already had a way to show which question an answer was for. If another message came in while an agent worked, the relay could send the answer as a native reply in Telegram. That's the right fix for interleaving: an answer to one question can appear after a different question without causing confusion. A reply marker doesn't help when the answer itself has become stale. It just makes it clearer which obsolete answer you're looking at.
Sending every draft through a second model would add latency to perfectly ordinary turns. Suppressing every draft after a new message would punish busy chats. Instead, the relay keeps a ten-message snapshot from the start of the turn. Before delivery, it compares that snapshot with the recent chat in the mind's durable message book. If there are no new lines, the normal send path needs no model. If there are, Jev sees the old snapshot to identify the job, the new lines as evidence, and the proposed reply. The question is what the draft delivers that the recipient hasn't already got, not whether two messages sound alike.
// Pseudocode inside the outbound relay.
const current = await book.recent(chat);
const delta = newlyArrived(turn.snapshot, current);
const choice = delta.length
? await boundedReview({ draft, before: turn.snapshot, delta }, 3000)
.catch(() => "SEND_UNCHANGED")
: "SEND_UNCHANGED";
if (choice === "WITHDRAW") return recordHeld(draft);
if (choice === "EDIT") {
await returnToAuthorOnce(draft, delta, {
snapshot: current.slice(-10), replyTo: turn.replyTo,
});
return recordHeld(draft);
}
await sendNormally(draft, turn.replyTo);
The reviewer doesn't get to write the message
The review is a three-way choice, not a rewriting pass. Withdraw when nothing would be added. Send unchanged when intervening chatter belongs to another job. If only part of the answer is redundant or a new fact needs attention, hand the draft back to its author. That agent has the working context to revise it or stay silent. The handoff keeps the original reply target and refreshes the snapshot; otherwise a second check would treat the same evidence as fresh. The relay records a hold separately from delivery and keys the edit handoff to the original draft so a replay doesn't ask the author twice.
This is deliberately not a delivery guarantee. The check sees a bounded window, another line can land after it, and a failed or slow review falls back to sending. That's a trade for an ordinary chat reply: the cost of a duplicate is usually lower than losing a valid answer. It would be the wrong trade for authorizing an irreversible action. Here, it buys something simpler: agents can work in parallel without making the recipient reconcile quite so many drafts written against different versions of the same chat.