Skip to content

[Brook] Refused stream owners this release does not support. - #155

Closed
moetemp wants to merge 6 commits into
moe/brook/v2/p3b-outside-handlesfrom
moe/brook/v2/p3c-unsupported-owners
Closed

moetemp wants to merge 6 commits into
moe/brook/v2/p3b-outside-handlesfrom
moe/brook/v2/p3c-unsupported-owners

Conversation

@moetemp

@moetemp moetemp commented Oct 13, 2026

Copy link
Copy Markdown
Owner

What changed?

This PR raises StreamUnsupportedError for stream owners and readers outside this release.

  • workflow_reader() always raises StreamUnsupportedError. It lives alone in _workflow.py for now.
  • A StreamRef of any kind decodes. Opening a handle on a kind other than "workflow" raises, and so does activity_handle() in an Activity with no Workflow.

Why?

Only Workflow-owned streams ship, and Workflow consumption is out of scope (DD-2). A ref that fails to decode would fail a Workflow Task on every retry when it comes in as input. So the check runs where a handle opens.

How did you test it?

Link to a test plan if any -

  • Unit Tests
  • Staging
  • End to End Tests

tests/contrib/streams/test_unsupported_owners.py and test_topics_refs.py, on the dev server.

@moetemp moetemp added the skip-changelog Changelog entry rides another PR label Oct 13, 2026
@moetemp

moetemp commented Oct 16, 2026

Copy link
Copy Markdown
Owner Author

Combined into #241.

@moetemp moetemp closed this Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog Changelog entry rides another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant