feat: add subscribeChanges WebSocket endpoint for real-time change streaming#35
Merged
maxine-at-forecast merged 3 commits intodevelopfrom Feb 26, 2026
Conversation
…reaming Introduces an in-memory broadcast event bus (changestream.py) that the ingestion processor publishes to after successful upserts/deletes. A new WebSocket endpoint at /xrpc/science.alt.dataset.subscribeChanges streams these events to subscribers with cursor-based replay from a bounded buffer. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…hange-stream-subscribechanges # Conflicts: # CHANGELOG.md
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.
Summary
changestream.py) with bounded replay buffer and per-subscriber queuesingestion/processor.pyto publish change events after successful upserts/deletes/xrpc/science.alt.dataset.subscribeChangeswith optional cursor-based replayTest plan
uv run pytest)uv run ruff check src/ tests/)🤖 Generated with Claude Code