Skip to content

feat(j5): a sender is told when its queued message is removed before it runs - #589

Merged
Jacksondr5 merged 3 commits into
j5/mainfrom
j5/504-removed-queued-message-notice
Oct 13, 2026
Merged

Jacksondr5 merged 3 commits into
j5/mainfrom
j5/504-removed-queued-message-notice

Conversation

@Jacksondr5

@Jacksondr5 Jacksondr5 commented Oct 13, 2026 •

Copy link
Copy Markdown
Owner

Problem

The ledger records an agent's message as delivered when it joins the receiver's queue, not when its turn starts. When a queued message was then removed unread, the sender still believed it had been received. This happened on 2026-10-11: two parts of a three-part review were held by a Stop and removed from the queue, the ledger said all three were delivered, and the sender was not told. Closes #504.

What changed

The silence detector already follows the run an ask became and reports to the asker when it ends. It now follows every queued agent message for one case: the run was cancelled without ever starting.

  • The sender gets one platform notice naming the receiver and quoting the first 200 characters of the message, so it knows which message to send again.
  • Whoever removed it: a person using the queue controls, or anything else that cancels a queued run.
  • No notice when:
    • the message was promoted into the running turn (it was read);
    • the message is an ask (the detector already reports a stopped receiver on its Exchange);
    • the receiver was archived or deleted (it is gone, and a later send to it fails visibly);
    • J5 itself cancelled a delivery that was still pending (that path already tells the sender).
  • Not supported: a sender on a peer server. A peer server accepts a platform notice only for an Exchange, so that sender is not told. A person or a machine participant as the sender is not told either: neither has a thread to deliver to.
  • No new stored status. The run already records queued, held, running and removed. The definition now says the receipt means "joined the queue" and that this state is read from the run.
  • The web client shows the notice as a one-line platform summary, like the other silence notices. Mobile shows it as it shows the others, as the message text.

UI changes

A new state, so there is no "before": the notice did not exist.

Before After
The sender's thread after its queued message was removed new The sender's thread after its queued message was removed, after

The line names the receiver by its participant id, as the other silence notices do, and wraps at this width.

Live testing

Verdict: pass, on commit 8ca3ebc321, by a tester agent on an isolated test server (setup script, no flags). Report: test-reports/j5-504-removed-queued-message-notice.md.

Ran live:

  • Remove a queued plain message (Claude Haiku). One notice reached the sender, quoting the message, and showed as the summary line above. The sender sent the message again and the receiver ran it.
  • Promote a queued message to a steer. No notice.
  • Remove a queued ask. No new notice; the sender got the existing "was cancelled without replying" notice.
  • Stop, then archive a receiver with a queued message. No notice.
  • Stop, then remove two held messages. One notice each.
  • Restart at rest, and during a held turn. Each notice was still stored once.
  • Codex. GPT-6 Luna sender, GPT-5.6 Luna receiver: one notice, and the sender sent the message again.

Not exercised live:

  • Archiving a receiver while its turn runs. The client disables Archive then, so the tester used Stop, then Archive.
  • A GPT 6 receiver. GPT 6 models take an agent's message into the running turn, so nothing queued; the tester used GPT-5.6 Luna as the receiver.
  • Promotion on Codex. The promoted message started as its own turn before the promotion landed, so the steer exclusion is shown on Claude only.
  • Mobile, desktop, peer servers, relay and tunnel.

Nothing here needs testing by hand.

Checklist

  • One concern: the description has no "also"
  • Tests cover the changed behavior (backend changes ship with focused tests)
  • UI changes: before/after screenshots above, and a video for motion or interaction — one new state, no motion
  • Live testing: the section above says what ran live and what did not
  • Upstream-owned files: each one is recorded in FORK.md (case text and file-table row) in this PR — none edited
  • Upstream product: any change to what upstream's product does has a human decision linked above and a register entry in docs/j5/product/upstream.md — upstream's behavior is unchanged
  • Surfaces: entry points, clients, providers, contracts, reverse states, connection modes (see AGENTS.md) — one server path covers every way a queued run is cancelled, for every provider; web renders the notice, mobile shows its text; a peer-server sender is recorded as not supported; nothing crosses the wire in a new shape
  • Docs: definitions under docs/j5/product/ and user docs rewritten where this changes them — docs/j5/product/a2a/index.md, Delivery and AC41

Claude Opus 5.5, in Claude Code.

🤖 Generated with Claude Code

…it runs

The ledger records an agent message as delivered when it joins the
receiver's queue. If a person then removed it from the queue, or its run
was cancelled before starting, the sender believed it had been received.
The silence detector now follows every queued agent message, not only
asks, and sends its sender a notice quoting how the message began.

Closes #504

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@vercel

vercel Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
j5-code Ready Ready Preview Oct 13, 2026 3:14am UTC

Request Review

@coderabbitai

coderabbitai Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

  • Run on-demand review

This review includes 6 billable files and costs up to $1.50.

  • Ask an admin to make reviews automatic

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Or wait 59 minutes for your next included review.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 61 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Path: .coderabbit.config.ts
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: 3584fa21-2aa3-4104-a041-83807fb08d0d
📥 Commits

Reviewing files that changed from the base of the PR and between 01bef0d and 1cea552.

📒 Files selected for processing (6)
  • apps/server/src/j5/a2a/DeliveryTransport.ts
  • apps/server/src/j5/a2a/SilenceDetector.test.ts
  • apps/server/src/j5/a2a/SilenceDetector.ts
  • apps/web/src/j5/a2a/ThreadA2ARenderer.test.tsx
  • apps/web/src/j5/a2a/ThreadA2ARenderer.tsx
  • docs/j5/product/a2a/index.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:L 100-499 effective changed lines (test files excluded in mixed PRs). labels Oct 13, 2026
@Jacksondr5
Jacksondr5 merged commit 63dff34 into j5/main Oct 13, 2026
36 checks passed
@Jacksondr5
Jacksondr5 deleted the j5/504-removed-queued-message-notice branch October 13, 2026 03:49
Jacksondr5 added a commit that referenced this pull request Nov 23, 2026

This branch was successfully deployed

1 active deployment
Preview — 1cea552a Deployed Oct 13, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L 100-499 effective changed lines (test files excluded in mixed PRs). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stopping an agent strands messages already queued to it, and the sender is not told

1 participant