Repository navigation
fix(j5): not-delivered notices name the message they are about - #671
Merged
Merged
Conversation
A sender with two messages out couldn't tell which one a not-delivered notice was about. Alarm, refusal and cancellation notices now name the message by the id j5_send_message returned, and an ask by its intent too. A peer removal's Exchange-dropped notice names the ask that opened it, and the removed-queued-message notice names its message. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
7 of 8 tasks
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
A not-delivered notice didn't say which message it was about. In #658's live test, a Haiku agent with two messages out couldn't tell which one a notice referred to.
Closes #670
What changed
Each notice that reports on one message now names it by the id
j5_send_messagereturned for it. An ask is also named by its intent, which its sender wrote and can recognise. For example:Your ask "incident status" (message message:j5:a2a:…) to agent:… on Home was not delivered: …, orYour message message:j5:a2a:… to agent:… may not have been delivered: ….formatNotDeliveredNoticeindeliveryNotices.ts): alarms, peer-server refusals (sent directly or acknowledged by a polling peer), and peer removal's cancellations. The refused ask's notice also closes its Exchange, so this covers the Exchange-dropped notice on a refusal too. The id is already on the delivery row. The intent comes from the ask's Exchange through one smallaskExchangeread inDeliveryWorker.ts.formatPeerDropNotice) gainsIt was opened by your ask "<intent>" (message <id>).when the party told sent the ask. When the ask came from the peer server, it readsIt was opened by the ask "<intent>"., since that id was never this party's.SilenceDetector.ts) also reports on one message, so it names that message's id.No new notice kinds and no storage changes. The a2a definition's sentence on what the notice names is rewritten, with a History line.
Live testing
Not run; this was my call. The change is the text of notices that already reach agents, and the tests assert the exact text, including the id each send returned. A live run would mostly test whether a model reads an id it was handed, which this PR can't change.
Checklist
DeliveryWorker.test.tsPeerOutbound.test.tsPeerOutbound.test.tsPeerPollRoundTrip.test.tsPeerStoreService.test.ts,PeerRemovalService.test.tsPeerRemovalService.test.tsSilenceDetector.test.tsFORK.md(case text and file-table row) in this PR (none: J5-owned paths only)docs/j5/product/upstream.md(not applicable)AGENTS.md). Server-side notice text only, with no contract change. It applies the same locally, to peer servers sent to directly, and to polling peers.docs/j5/product/and user docs rewritten where this changes themBuilt by Claude Opus 5.5 in Claude Code (J5 Code).
🤖 Generated with Claude Code