Expand description
Whoever sent a message is told if its turn then died of a retryable failure with nothing to redeliver it.
Tells whoever sent a message that its turn died of a retryable failure with nothing to redeliver it (#2627):
Message send answers “Delivered” once the text is injected, but if the turn it started then exits on a
transient failure (a rate limit, an overload, a network error), nothing retries it and the sender hears
nothing — the message is silently lost, with no sign of it anywhere the sender would look.
Its own broker observer, parsing the same agentturn event worker_notes does, for end: "exited" and its
senders (a jekt’s sender, backend::blockcontroller::health::TurnTrigger): its trigger, the one that
started the turn, and its absorbed list, the ones that joined an already-running turn (#2629 — a sender
who only joined was dropped before). Only a sender of kind agent is a message that was ever answered
“Delivered” — the user, a service, a schedule, a background task or AgentMux itself is told by other means
already. The failure that ended the turn is read off the same settle wait and shared record as
worker_notes’s own exit note (worker_failure_note::FAILED_AT), since the two events are published back
to back for one turn. A worker whose leader already hears of this, richer, from worker_notes
(worker_notes::already_tells_its_leader), is skipped — but only when that richer note was actually
admitted, not held by worker_notes’s own one-note-a-minute throttle (#2629 again: a held note tells the
leader nothing, so this note must go through instead).
Functions§
- install
- Start listening. Called once from
main, alongsideworker_notes::install.