Repository navigation
Conversation
3 tasks done
moetemp
force-pushed
the
moe/activity-workflow-task-info
branch
from
November 15, 2026 18:51
dfc0ba0 to
1a718b8
Compare
moetemp
force-pushed
the
moe/streams-generated-code
branch
from
November 15, 2026 18:51
434ddd3 to
d70f12d
Compare
moetemp
force-pushed
the
moe/activity-workflow-task-info
branch
from
November 15, 2026 20:23
1a718b8 to
88cc83e
Compare
moetemp
force-pushed
the
moe/streams-generated-code
branch
from
November 15, 2026 20:23
d70f12d to
6b44118
Compare
moetemp
force-pushed
the
moe/activity-workflow-task-info
branch
from
November 16, 2026 17:14
88cc83e to
e982e2a
Compare
moetemp
force-pushed
the
moe/streams-generated-code
branch
from
November 16, 2026 17:14
6b44118 to
f330b20
Compare
moetemp
force-pushed
the
moe/activity-workflow-task-info
branch
from
November 16, 2026 17:33
e982e2a to
2c3fa47
Compare
moetemp
force-pushed
the
moe/streams-generated-code
branch
from
November 16, 2026 17:33
f330b20 to
31151f2
Compare
moetemp
force-pushed
the
moe/activity-workflow-task-info
branch
from
November 16, 2026 19:42
2c3fa47 to
1bb78ad
Compare
moetemp
force-pushed
the
moe/streams-generated-code
branch
from
November 16, 2026 19:42
31151f2 to
e8898ec
Compare
moetemp
force-pushed
the
moe/streams-generated-code
branch
from
November 23, 2026 21:22
293528d to
94fe3ec
Compare
moetemp
force-pushed
the
moe/activity-workflow-task-info
branch
from
November 23, 2026 22:34
1bb78ad to
61e632d
Compare
moetemp
force-pushed
the
moe/streams-generated-code
branch
from
November 23, 2026 22:34
94fe3ec to
932cbca
Compare
VegetarianOrc
force-pushed
the
moe/activity-workflow-task-info
branch
from
November 25, 2026 23:53
ede7c0c to
d0e5375
Compare
These are the files that `poe gen-protos` writes for the Stream service. They are in a PR of their own, so that the hand-written change shows alone.
…eam. The new Stream WIT gives the Workflow target `append` and `close`, so the generated Workflow `Stream` has them and `async with` closes it.
With nexgen commit 07b565b6, `read` yields Records, `read_pages` yields pages and `read_page` sends one request. `PollIterator` moves to one `_poll.py` next to the models. The Workflow interceptor terminal calls `_schedule_system_nexus_operation` and drops the generic hook, as upstream nexgen does.
The API changes `epoch` to `attempt`, gives the Workflow `Stream` a read, passes the client to the default Producer of a client Stream, and drops `namespace` from the requests. This commit follows `temporalio/api` `7964b905` with nexgen 0.2.13.
The API takes a Stream id in each request and a request id on an append, and nexgen maps the ref of a request to its id with two helpers.
The API gives each kind of Producer a namespace and its own ids, and the Producer has no id string.
The API states the rules of a Store as the Stores keep them. Only docs change.
Core gives an Activity task the id of its scheduled event, keeps the Stream calls of a Workflow Task in a ledger in place of a marker, and gives each page of a Workflow read its last offset. The payload visitor stays the same, since no Payload moved.
`gen_nexus_system_api.py` also generates the Stream service from `stream-service.wit`, for Workflow and client code. It adds the Workflow calls of that service to the exports of `temporalio.workflow`.
This is the output of `poe gen-protos` at the Core pin. The bridge protos and the payload visitor have no Stream commands or jobs, because this Core doesn't have them.
The Stream WIT refers to the SDK messages in `temporal/api/sdk/v1/stream.proto`, so the descriptor set that nexgen reads has that file too.
This is the output of `poe gen-protos` with nexgen at `74f8ce76`. The Streams API has no close, no `done` and no `StreamStatus`, and its requests have the ref of a Stream.
nexgen 0.2.14 is the first release that accepts the Stream WIT, so check-protos can generate it. The code is the same as before, only the version in each file header changes.
moetemp
force-pushed
the
moe/streams-generated-code
branch
from
November 26, 2026 03:34
6535f48 to
523848f
Compare
The generated read docstrings say the poll iterator keeps reading after a page with no Record. The bridge lock adds the crates the new Core asks for.
No released SDK has Streams, so no History holds a `None` create result. The flag only kept the replay of such Histories.
Client interceptors need a typed hook for each Stream operation, so that a Stream call of a client can skip the generic Nexus chain. The hooks type `StartNexusOperationInput` by its argument and result. The generator is pinned to a nexgen commit that is not on main yet.
nexgen's copy of the workflow service WIT names this helper as the storage target of signal-with-start, and its SDK check runs against this repository. The WIT of this repository doesn't name it, so no generated code here calls it.
moetemp
force-pushed
the
moe/streams-generated-code
branch
from
December 2, 2026 08:37
75cdfad to
a5779b7
Compare
This branch has not been deployed
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 was changed
This PR adds the generated Python Stream API and its binding helpers. The WIT and protobuf definitions come from Core #1733.
Why?
WorkflowProducer.workflow_task_idlets readers distinguish separate tasks from retries.Core sets the task identity and attempt when the Workflow appends.
Local Activity bindings use the original scheduling task and Activity ID,
which must remain stable across retries.
The pinned
nexgenrevision leaves scheduling to the underlying I/O. The create transform reportscreated=Falsewhen a Stream already exists. It also generates a typed client hook for each Stream operation, soStartNexusOperationInputtakes the types of its argument and result. That revision is on nexgen#457, which must merge first._support.pyalso hassignal_with_start_workflow_storage_target, which the SDK check of nexgen calls.This layer includes the helper functions it calls, so it passes standalone lint and import checks. The runtime PR connects the API to Stores and Workers.
Reviewer's guide
Review after the Activity info PR, together with the runtime layer.
scripts/gen_nexus_system_api.py,pyproject.tomland the Core pin. They must reproduce the generated files._support.pywith the generated wrappers. Empty pages keepafter_offsetunchanged. Populated pages use the last Record. The runtime PR contains the replay tests.Checklist
poe update-corerefreshed the pin and bridge dependencies.poe gen-protospassed using the pinned generator source.poe lintpassed in CI.