Repository navigation
fix(task-execution): Centralize conversation wakes - #708
Merged
Merged
Conversation
Move production conversation wake sends through one helper that coalesces ordinary nudges on the durable enqueue marker. Keep replacement wakes only for consumed or known-stale deliveries, and clear consumed no-work markers so later inbound work can wake immediately. Add focused coverage for continuation, completion, error, heartbeat, and consumed-wake paths. Update the task execution spec and interface design policy to document the centralized wake contract and discourage pass-through wrapper layers. Refs #705 Co-Authored-By: GPT-5 Codex <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
dcramer
marked this pull request as ready for review
July 1, 2026 01:38
Coalesced conversation wakes now reuse the first accepted follow-up nudge while the active worker finishes. Update the integration case to assert the durable queue behavior instead of expecting a new completion requeue. Co-Authored-By: GPT-5 Codex <[email protected]>
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.
Centralize conversation wake scheduling behind
ensureConversationWakeso ordinary wake requests coalesce on the durable enqueue marker instead of each business path sending and marking queue nudges directly.This addresses the duplicate-wake loop risk from #705 without taking on the larger explicit wake-state redesign. The helper derives the queue payload destination from durable conversation state, requires explicit idempotency keys, keeps replacement wakes limited to consumed or known-stale deliveries, and clears consumed no-work wake markers so later inbound messages can wake immediately.
The PR also updates task-execution docs with the centralized wake contract and adds an interface-design policy note discouraging one-hop wrappers and pass-through helper layers, which came up while cleaning up the worker call sites.
Refs #705