feat: derive hosted raw captures into PostgreSQL sessions - #1730
Open
salmonumbrella wants to merge 1 commit into
Open
feat: derive hosted raw captures into PostgreSQL sessions#1730salmonumbrella wants to merge 1 commit into
salmonumbrella wants to merge 1 commit into
Conversation
7 tasks
roborev: Combined Review (
|
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.
Adds opt-in server-side derivation for hosted raw sync. Accepted captures now feed a bounded worker, an isolated Linux parser, and a transactional PostgreSQL projection. Hosted browsing no longer needs a local SQLite archive or
pg pushto turn raw captures into sessions. Local sync and hosted derivation share the preparation path; the existing artifact wire format stays unchanged.The hosted store enforces tenant isolation and maps storage IDs to public session IDs. Copies with the same provider identity and content share a session. Curation survives matching copies, conflicting copies remain explicit, and deleting a source removes only its contribution. Publication is transactional; retries and pending-signal maintenance are bounded.
Deployment remains one tenant per server instance, with explicit owner provisioning and a restricted runtime role. Disabling derivation preserves hosted reads. Embedding work is queued durably; its consumer, device-enrollment UI, and broader lifecycle controls remain separate work.
Continues item 4 of #1352 after #1607. Operator setup and limits are in
docs/hosted-raw-sync.mdanddocs/pg-sync.md.