Conversation
History records only the offsets each task consumed, so the replayer fetches those records from the stream service, or from slices carried with an exported history, and hands them to the replay.
Re-supply of short ranges, the replayer against a live stream, reset runs and offline histories with stream slices.
This was referenced Oct 3, 2026
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 lets the replayer replay a workflow that read a native stream, live or from an exported history.
What changed?
Replayer(stream_client=).StreamNotFoundError.Replayer.fetch_stream_slices(client, history)attaches the records to aWorkflowHistorywhile the stream still holds them.to_json()andfrom_json()carry them asstreamSlices, so that history replays with no server. The bridge'spush_historypasses the slices through.Part of AI-198 (epic AI-37).
Why?
A workflow that reads a native stream can't be debugged or tested with the replayer unless the replayer can get the same records back. History deliberately holds offsets, not records, so the replayer has to fetch them, or carry them in an exported history for offline use.
How did you test it?
Link to a test plan if any -
The bridge builds, and
cargo clippyandpoe lintare clean. The re-supply, replayer, offline-history and native stream workflow cases pass live, against a local server built from the stream server PRs withSTREAMS_LIVE=native. Those include the cases that replay against a live native stream and across a reset. The whole streams suite passes there too.