SEP-2694: Resumable Task Event Streams#2694
Open
rynowak wants to merge 1 commit into
Open
Conversation
Draft SEP proposing tasks/stream and notifications/tasks/event for resumable, sequenced task event delivery with cursor-based replay. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
cbdb4e5 to
3fa0008
Compare
|
For agent clients, I would make the event identity strong enough to reconstruct a transcript after resume: That keeps task streams usable for more than UI progress. A client can import the stream into its local history, dedupe after reconnect, and link partial results, artifacts, subagent events, and tool results back to the same task without guessing from timestamps. Generated with ax - https://github.com/Necmttn/ax |
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.
Summary
Draft SEP proposing tasks/stream and notifications/tasks/event for resumable, sequenced task event delivery.
to the tasks primitive
Two requirements distinguish this from prior streaming work
Relationship to other proposals
Motivation and Context
Tasks (SEP-1686 / SEP-2663) support long-running work but provide no standard way to observe intermediate execution — tool calls,
assistant deltas, subagent lifecycle, artifacts. Clients are limited to polling tasks/get for coarse status or receiving fire-and-forget
notifications/tasks/status that can't be replayed after disconnect. SEP-2575 explicitly removed resumable SSE streams, stating that
durable delivery should use the tasks primitive — but no such mechanism exists yet. This SEP fills that gap.
How Has This Been Tested?
We have a private implementation of this. No public reference implementation yet.
##Breaking Changes
None. This SEP is additive. Servers that don't support tasks/stream return -32601. Existing task clients and servers are unchanged.
Types of changes
Additional context
Open questions
extensions?