Repository navigation
Conversation
activity.stream_handle and client.get_stream_handle open a stream by ref or by topic, and create_stream makes a standalone one, so every context reaches a stream the same way.
Activity and client handles on memory, and the conformance cases for standalone streams.
1 of 3 tasks
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.
This PR lets activities and clients reach a stream the same way workflow code does.
What changed?
activity.stream_handle()andClient.get_stream_handle()open a stream byStreamRefor by its owner's ids. Typed topics work on every call.Client.create_stream(stream_id, ...)creates a standalone stream with a retention policy, and its handle'sclose()seals it.StreamRefnames workflow-owned, activity-owned and standalone streams. The memory provider hosts all three.Part of AI-198 (epic AI-37).
Why?
A stream is useless if only its owning workflow can touch it. Activities produce into streams, and clients read them to show progress. A ref is plain data, so a stream can be handed to another process, and the accessor it opens with is the same in every context.
The earlier version of this PR also added
stream_channel(ref), which named the notification channel a stream notifies. The channel is paused per the 2026-10-05 design review, so that helper waits for phase 2, and nothing in this series calls it.How did you test it?
Link to a test plan if any -
poe lintis clean. The accessor, activity-stream and standalone conformance cases pass on the memory provider, with the dev server the fixtures start.