Repository navigation
Conversation
The crate, sdk-python and later the server read one copy of these messages. The gRPC service and its Nexus annotations come with the server.
moetemp
marked this pull request as draft
October 26, 2026 16:53
moetemp
force-pushed
the
moe/stream-service-messages
branch
3 times, most recently
from
October 28, 2026 08:56
482ec01 to
5068d41
Compare
moetemp
added a commit
to moetemp/nexgen
that referenced
this pull request
Oct 28, 2026
The Stream protos are A1's files again, and the runtime proto is K10's, so the sample matches the crate. `CreateStreamResponse` has no `status` now. The descriptor set and the bindings are rebuilt with the README's recipe.
This was referenced Oct 28, 2026
moetemp
added a commit
to moetemp/nexgen
that referenced
this pull request
Oct 29, 2026
The Stream protos are A1's files again, so the sample matches the crate. `CreateStreamResponse` has no `status` now. The descriptor set and the bindings are rebuilt with the README's recipe.
moetemp
force-pushed
the
moe/stream-service-messages
branch
from
October 29, 2026 04:06
5068d41 to
44519d8
Compare
tconley1428
pushed a commit
to temporalio/nexgen
that referenced
this pull request
Oct 29, 2026
The sample takes the part of Brook's WIT that nexgen generates, on the Stream protos of temporalio/api#895 at 44519d8a. No SDK has those protos, so the sample projects hold their bindings. The sample is a System Nexus service, so its .NET output builds in its own project. Only .NET generates the service, since Python and TypeScript panic on the read item's oneof.
The failure gives the close status, so the field only let a caller contradict it. An append with no sequence gets the next batch number, so a call that has no writer state still works.
1 task done
The SDKs copy this WIT to generate their Stream Workflow API and client. The Makefile runs add-message on it, so its records follow the Stream protos. The fork has the directives the WIT uses, until a nexgen release does.
moetemp
added a commit
to temporalio/nexgen
that referenced
this pull request
Oct 31, 2026
…io (#311) ### What changed? This PR moves the stream sample's Python bindings of the Stream protos into a local package, `temporalio_stream_protos/`, that installs them into `temporalio`. Only the sample changes. nexgen and the generated code stay as they are. - The package adds only the Stream modules under `temporalio/api/`. The sample depends on it through a `uv` `path` source, and `streamprotos/` goes away. - basedpyright now checks `wit/stream_service`. ### Why? The Stream protos of `temporalio/api#895` aren't in a released `temporalio` yet. The generated code already imports them from `temporalio.api`, where a release will have them. When it does, the package goes away. ### How did you test it? Link to a test plan if any - - [x] Unit Tests - [ ] Staging - [ ] End to End Tests `test_stream_service.py` round-trips each read item kind through the `temporalio.api` classes.
The message now has the name of the read item that it is. A StreamRef field is named ref everywhere, as on CreateStreamRequest. The field numbers stay, so the wire format is the same.
moetemp
added a commit
to moetemp/nexgen
that referenced
this pull request
Oct 31, 2026
The stream sample's WIT is the Stream service WIT of the protos PR, with the sample's own definition, and its protos and bindings are those of the PR. The sample gains the `withdraw_run` helper that the WIT's sources call.
moetemp
added a commit
to moetemp/nexgen
that referenced
this pull request
Nov 3, 2026
The stream sample's WIT is the Stream service WIT of the protos PR, with the sample's own definition, and its protos and bindings are those of the PR. The sample gains the `withdraw_run` helper that the WIT's sources call.
moetemp
added a commit
to temporalio/nexgen
that referenced
this pull request
Nov 3, 2026
This was referenced Nov 27, 2026
bergundy
reviewed
Nov 28, 2026
| // `last_offset` from a describe and reads after it. | ||
| // (-- api-linter: core::0140::prepositions=disabled | ||
| // aip.dev/not-precedent: "from" marks the start of a range of offsets. --) | ||
| bytes from_offset = 2; |
Member
There was a problem hiding this comment.
It should be called after_offset given that this is an exclusive range.
Author
There was a problem hiding this comment.
Fair. Changed both request types to after_offset in 46e3f3c.
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 adds the experimental Stream messages and System Nexus WIT used by SDKs and Stores.
The contract defines Producer attempts, optional fencing, bounded resend protection and ordered opaque offsets. SDK requests include a
StreamReffor Store routing. Store requests contain only the Stream id.Streams have no close operation. Only new batches restart retention. The read contract distinguishes page targets from SDK hard limits.
Checked with
buf lint,api-linter,protocand System Nexus WIT generation.Reviewer's guide
temporal/api/stream/v1/message.protoandtemporal/api/streamservice/v1/request_response.proto. Check Producer identity, bounded resend protection, optional fencing and retention rules.temporal/api/sdk/v1/stream.protowith the Store requests. SDK routing needs aStreamRef. Stores receive the stream ID, without SDK routing fields.nexus/stream-service.witagainst those messages. Check opaque offset types, read page targets and the absence of a close operation. WIT generation must reproduce the checked-in contract. The Python create transform preserves historical Workflow results through the SDK helper.