Skip to content

feat: send client and Activity Stream calls to Stores - #2129

Draft
moetemp wants to merge 3 commits into
moe/streams-storesfrom
moe/streams-api
Draft

moetemp wants to merge 3 commits into
moe/streams-storesfrom
moe/streams-api

Conversation

@moetemp

@moetemp moetemp commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

What was changed

This PR pins Core with the Stream runtime and sends the Stream calls of client and Activity code to Stores. Client gets create_stream and get_stream, and client interceptors can intercept each Stream operation.

The rest of the former PR moved: the Store layer to #2186, Workflow appends to #2187, and Workflow reads to #2188.

Why?

Client and Activity code call the Store directly, so a retry must keep its request ID for the Store to write it once. Activity Producers need the scheduling event ID of Core #1833. The Core pin is the head of Core #1883, so this PR can merge before the Core read PRs.

Reviewer's guide

Review after #2186. Read the 3 commits in order.

  1. Pin Core with the Stream runtime. The submodule, the generated protos and the payload visitor.
  2. Send the Stream calls of client and Activity code to Stores. Store selection, the request checks of Core in Python, and the request ID that interceptor retries keep.
  3. Intercept Stream client calls by operation. Tim's client hooks.

Checklist

@moetemp
moetemp added this pull request to stack #2130 November 14, 2026 01:00
@moetemp
moetemp removed this pull request from stack #2130 November 15, 2026 08:27
@moetemp moetemp changed the title feat: add the Streams API, with Stream Stores on Redis and in memory feat: add the Streams API for Activity and client code, with Stores on Redis and in memory Nov 17, 2026
@moetemp
moetemp added this pull request to stack #2139 November 18, 2026 01:19
@moetemp moetemp changed the title feat: add the Streams API for Activity and client code, with Stores on Redis and in memory feat: add the Streams API for Activity and client code Nov 18, 2026
@moetemp moetemp changed the title feat: add the Streams API for Activity and client code feat: add the Streams API for client, Activity and Workflow code Nov 22, 2026
@moetemp
moetemp force-pushed the moe/streams-api branch 2 times, most recently from 4f48bab to 066b280 Compare November 22, 2026 03:31
@moetemp
moetemp removed this pull request from stack #2156 December 1, 2026 20:16
@moetemp
moetemp force-pushed the moe/streams-api branch 5 times, most recently from 7258a4d to c15c1d4 Compare December 2, 2026 07:28
@moetemp moetemp changed the title Add Stream Stores and Workflow Stream calls feat: add Stream Stores and Workflow Stream calls Dec 2, 2026
@moetemp
moetemp force-pushed the moe/streams-api branch 2 times, most recently from 0ca539c to e22f07e Compare December 2, 2026 20:30
@moetemp
moetemp force-pushed the moe/streams-api branch 2 times, most recently from 6f221ed to e7652a6 Compare December 2, 2026 22:46
@moetemp moetemp mentioned this pull request Dec 2, 2026
1 task done
@moetemp
moetemp changed the base branch from moe/streams-generated-code to moe/streams-stores December 2, 2026 22:46
@moetemp moetemp changed the title feat: add Stream Stores and Workflow Stream calls feat: send client and Activity Stream calls to Stores Dec 2, 2026
@moetemp
moetemp added this pull request to stack #2189 December 2, 2026 22:49
moetemp and others added 3 commits December 2, 2026 15:58
This Core has the Workflow commands and activation jobs of Stream
appends and reads. A codec gets each Stream body alone and with no
serialization context, and the passes of external storage skip Stream
bodies, since any writer can make a body.
The client sends each system Nexus call of the generated Stream API to
the Store that its ref or the selector picks, with the codec and a
request id that interceptor retries keep. It checks each request with
the rules of SDK Core and the limits of the Stream config, so that
client and Workflow calls refuse the same requests. An Activity writes
as the Producer of its schedule, from the info that Core gives.
Each Stream operation of a client gets a typed hook on
`OutboundInterceptor`, so interceptors see Stream calls without the
generic Nexus chain. A hook that retries with the same input, or a copy,
keeps its request id, and a call with no result type gets the type of
its operation.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants