-
Notifications
You must be signed in to change notification settings - Fork 60
fix(broker): defer manual delivery ACKs #1243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
581a4d3
fix(broker): recover delivery cursor on resume (#1240)
willwashburn 50ae9dc
fix(broker): defer manual delivery ACKs (#1241)
willwashburn f3f032a
style: auto-format with Prettier
github-actions[bot] 6f312d9
merge: resolve conflicts with main for PR #1243
claude File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
.agentworkforce/trajectories/completed/2026-07/traj_cbx77hjzvdaz/summary.md
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| # Trajectory: Fix manual-flush Relaycast ACK durability | ||
|
|
||
| > **Status:** ✅ Completed | ||
| > **Task:** #1241 | ||
| > **Confidence:** 93% | ||
| > **Started:** July 10, 2026 at 10:15 AM | ||
| > **Completed:** July 10, 2026 at 10:15 AM | ||
|
|
||
| --- | ||
|
|
||
| ## Summary | ||
|
|
||
| Fixed #1241 by separating received and ACKed delivery cursors, retaining Relaycast receipts through manual flush, rejecting full queues without eviction, and ACKing only successfully injected FIFO prefixes. Verified focused cursor, replay, overflow, success, and failure regressions; cargo fmt check passed; full broker library suite passed 672 tests with 4 ignored. | ||
|
|
||
| **Approach:** Standard approach | ||
|
|
||
| --- | ||
|
|
||
| ## Key Decisions | ||
|
|
||
| ### Split delivery progress into received and ACKed cursors | ||
|
|
||
| - **Chose:** Split delivery progress into received and ACKed cursors | ||
| - **Reasoning:** Manual-flush must accept multiple contiguous Relaycast sequences without cumulatively acknowledging volatile queue entries; duplicates and gaps therefore report only the ACKed cursor, while successful enqueue advances received state. | ||
|
|
||
| ### Reject the newest delivery when the manual queue is full | ||
|
|
||
| - **Chose:** Reject the newest delivery when the manual queue is full | ||
| - **Reasoning:** Evicting an already-held delivery could discard the only actionable copy after a later cumulative ACK. Atomic rejection leaves the FIFO unchanged, does not advance received or ACKed state, and preserves Relaycast ownership for replay. | ||
|
|
||
| --- | ||
|
|
||
| ## Chapters | ||
|
|
||
| ### 1. Work | ||
|
|
||
| _Agent: default_ | ||
|
|
||
| - Split delivery progress into received and ACKed cursors: Split delivery progress into received and ACKed cursors | ||
| - Reject the newest delivery when the manual queue is full: Reject the newest delivery when the manual queue is full |
69 changes: 69 additions & 0 deletions
69
.agentworkforce/trajectories/completed/2026-07/traj_cbx77hjzvdaz/trajectory.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,69 @@ | ||
| { | ||
| "id": "traj_cbx77hjzvdaz", | ||
| "version": 1, | ||
| "task": { | ||
| "title": "Fix manual-flush Relaycast ACK durability", | ||
| "source": { | ||
| "system": "plain", | ||
| "id": "#1241" | ||
| } | ||
| }, | ||
| "status": "completed", | ||
| "startedAt": "2026-07-10T14:15:30.303Z", | ||
| "completedAt": "2026-07-10T14:15:39.949Z", | ||
| "agents": [ | ||
| { | ||
| "name": "default", | ||
| "role": "lead", | ||
| "joinedAt": "2026-07-10T14:15:35.758Z" | ||
| } | ||
| ], | ||
| "chapters": [ | ||
| { | ||
| "id": "chap_xdlfc8rczkfx", | ||
| "title": "Work", | ||
| "agentName": "default", | ||
| "startedAt": "2026-07-10T14:15:35.758Z", | ||
| "endedAt": "2026-07-10T14:15:39.949Z", | ||
| "events": [ | ||
| { | ||
| "ts": 1783692935759, | ||
| "type": "decision", | ||
| "content": "Split delivery progress into received and ACKed cursors: Split delivery progress into received and ACKed cursors", | ||
| "raw": { | ||
| "question": "Split delivery progress into received and ACKed cursors", | ||
| "chosen": "Split delivery progress into received and ACKed cursors", | ||
| "alternatives": [], | ||
| "reasoning": "Manual-flush must accept multiple contiguous Relaycast sequences without cumulatively acknowledging volatile queue entries; duplicates and gaps therefore report only the ACKed cursor, while successful enqueue advances received state." | ||
| }, | ||
| "significance": "high" | ||
| }, | ||
| { | ||
| "ts": 1783692935760, | ||
| "type": "decision", | ||
| "content": "Reject the newest delivery when the manual queue is full: Reject the newest delivery when the manual queue is full", | ||
| "raw": { | ||
| "question": "Reject the newest delivery when the manual queue is full", | ||
| "chosen": "Reject the newest delivery when the manual queue is full", | ||
| "alternatives": [], | ||
| "reasoning": "Evicting an already-held delivery could discard the only actionable copy after a later cumulative ACK. Atomic rejection leaves the FIFO unchanged, does not advance received or ACKed state, and preserves Relaycast ownership for replay." | ||
| }, | ||
| "significance": "high" | ||
| } | ||
| ] | ||
| } | ||
| ], | ||
| "retrospective": { | ||
| "summary": "Fixed #1241 by separating received and ACKed delivery cursors, retaining Relaycast receipts through manual flush, rejecting full queues without eviction, and ACKing only successfully injected FIFO prefixes. Verified focused cursor, replay, overflow, success, and failure regressions; cargo fmt check passed; full broker library suite passed 672 tests with 4 ignored.", | ||
| "approach": "Standard approach", | ||
| "confidence": 0.93 | ||
| }, | ||
| "commits": [], | ||
| "filesChanged": [], | ||
| "projectId": "AgentWorkforce/relay", | ||
| "tags": [], | ||
| "_trace": { | ||
| "startRef": "3cfe0bf69bb24ad966b58ed288813bb3a7ef1a73", | ||
| "endRef": "3cfe0bf69bb24ad966b58ed288813bb3a7ef1a73" | ||
| } | ||
| } |
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: AgentWorkforce/relay
Length of output: 211
🏁 Script executed:
Repository: AgentWorkforce/relay
Length of output: 17337
Move these bullets into
## [Unreleased - Patch]CHANGELOG.md:104-105already has an unreleased section at the top; leaving theseagent-relay-brokerfixes under## [9.2.2] - 2026-07-08makes that past release note claim changes that belong in the current patch train.🤖 Prompt for AI Agents
Source: Coding guidelines