You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Stopping an agent strands messages already queued to it, and the sender is not told #504
Found in the review of the upstream advance (#500). This is upstream's Stop working as designed, which J5's stop_agent and stop_crew now use (Jackson, 2026-10-08).
When an agent is stopped, turns already queued behind its running turn are held until a person resumes its queue. For agent-to-agent messages that means:
The delivery worker treats a held queue as not a failure. It rechecks at most every 15 minutes, indefinitely, and never raises an alarm.
The sender gets no notice.
No agent tool can resume a queue. Only a person in the client can.
A message sent after the stop starts at once, so it runs ahead of the held ones, which may include an ask that expects a reply.
The tool descriptions now tell agents this. The open question is whether stopping an agent should cancel its held deliveries through the existing cancellation path, so senders are told and can decide what to do, or whether held is the right state and the sender should get a notice instead.
Parked (Jackson, 2026-10-10): this is larger than a follow-up fix and is not part of the nightly work. His two framings, for whoever picks it up:
The core problem may be the queue jump. A message sent after the stop starts at once and runs ahead of the held ones. If a new message instead restarted the queue, the held messages would run first, in order, and nothing would be stranded once anyone messaged the agent again. Open points: upstream lets a new message start new work after a Stop on purpose, so changing that for everyone is a change to upstream's product; limiting it to agent-sent messages is a J5 rule on J5's delivery path. Held messages would still sit silently if nobody messages the agent again, which is Held A2A deliveries and limited receivers: tell the sender what is happening #272.
Options considered and not chosen: cancel held deliveries when an agent stops an agent (senders are told, queued work is discarded); leave them held and tell the sender (#272); a resume tool for agents.
Until then the j5_stop_agent and j5_stop_crew descriptions tell agents what a stop does to queued messages.
Picked up with Jackson, 2026-10-11 and 2026-10-12. Checking the code and the live database changed what this issue is about.
What actually happens
The ledger marks an agent message delivered when it joins the receiver's queue, not when its turn starts. So for messages queued before a stop:
Nothing is pending. There is no 15-minute recheck and no alarm. That recheck only covers a message that arrives while a hold exists and a turn is running.
The existing cancellation path does nothing, because it skips rows already marked delivered.
Asks are partly covered already: the silence detector follows the run an ask became and tells the sender when it ends without a reply, including when it is cancelled. Messages that are not asks are followed by nothing, and a held run has not ended, so nothing reacts to it.
Seen once in live data
2026-10-11, about 02:10 UTC: an agent sent a three-part review. Part 1 ran and was stopped. Parts 2 and 3 were held by the stop and removed from the queue two seconds later. The ledger says all three were delivered, and the sender was not told.
Decided
This issue becomes: when a queued agent message is removed without ever running, tell the sender, whoever removed it. Extend the run-following the silence detector already does for asks to every agent message, for this one case.
Item 3 (the "delivered" wording in notices) is not being changed. Checked against live data: the only notice that calls an unread message "delivered" is the never-processed one ("did not start a turn for the delivered message"), and it has never been sent (0 of 32 silence notices). The other use, "The latest delivered message was processed", is said of a message that did run. Changing the text also means teaching the web client both wordings, since it recognizes notices by their text. Reopen this if the never-processed notice starts appearing.
Activity
Jacksondr5 commentedon Oct 10, 2026
Parked (Jackson, 2026-10-10): this is larger than a follow-up fix and is not part of the nightly work. His two framings, for whoever picks it up:
Options considered and not chosen: cancel held deliveries when an agent stops an agent (senders are told, queued work is discarded); leave them held and tell the sender (#272); a resume tool for agents.
Until then the
j5_stop_agentandj5_stop_crewdescriptions tell agents what a stop does to queued messages.Jacksondr5 commentedon Oct 13, 2026
Picked up with Jackson, 2026-10-11 and 2026-10-12. Checking the code and the live database changed what this issue is about.
What actually happens
The ledger marks an agent message delivered when it joins the receiver's queue, not when its turn starts. So for messages queued before a stop:
Seen once in live data
2026-10-11, about 02:10 UTC: an agent sent a three-part review. Part 1 ran and was stopped. Parts 2 and 3 were held by the stop and removed from the queue two seconds later. The ledger says all three were delivered, and the sender was not told.
Decided
A message that is held and not removed still waits silently. That stays with #272. Agent queue tools stay with #136, which needs item 1 first.
Jacksondr5 commentedon Oct 13, 2026
Build status, 2026-10-12: