Repository navigation
Conversation
# Conflicts: # temporalio/contrib/streams/__init__.py # temporalio/contrib/streams/_handles.py # tests/contrib/streams/test_outside_handles.py
# Conflicts: # temporalio/contrib/streams/_handles.py
This was referenced Oct 16, 2026
2 of 3 tasks
Owner
Author
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.
What changed?
This PR adds the Activity and client stream handles over Core, and refuses owners this release doesn't support. A producer hashes before the codec and moves its sequence only when an append succeeds. An Activity sends a typed
ActivityProducerand Core derives the producer id. Reads follow the run chain across Continue-as-New. A Local Activity,workflow_reader()and any kind other than"workflow"raiseStreamUnsupportedErrorwhere a handle opens.Stacked on #240.
Why?
Core owns owner checks, cursors, dedupe and supersession, so a handle is a thin loop over the stub (DD-88). A ref that fails to decode would fail a Workflow Task on every retry, so the check runs at open and not at decode.
How did you test it?
Link to a test plan if any -
Ran the handle and owner tests on the dev server.