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.
The server derives the channel from the stream's identity, and the client derives the same one, so a listener needs no lookup.
This was referenced Oct 3, 2026
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 topic. 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.stream_channel(ref)names the notification channel a stream notifies, derived the way the server derives it. A listener needs no lookup.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.
stream_channelsits here because it maps a ref to an address, and the Nexus consumer uses it later as its default.How did you test it?
Link to a test plan if any -
poe lintis clean. The accessor, activity-stream, standalone conformance andstream_channelcases pass on the memory provider, with the dev server the fixtures start.