Skip to content

ETL conversation - #191

Open
davidabram wants to merge 6 commits into
etl-watermarksfrom
etl-conversation
Open

ETL conversation#191
davidabram wants to merge 6 commits into
etl-watermarksfrom
etl-conversation

Conversation

@davidabram

Copy link
Copy Markdown
Member

No description provided.

@vercel

vercel Bot commented Aug 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sce-config-json Ready Ready Preview Aug 9, 2026 10:07am

Request Review

davidabram and others added 6 commits August 9, 2026 12:05
Extract bounded, ordered agent trace batches from consistent read snapshots without reserving the source database write lock. Add contention-only retry with rollback between attempts so concurrent hook writers can continue while transient database locks recover safely.

Document the ETL boundary and shared read-transaction seam, with coverage for batching, snapshot visibility, concurrent writes, and retry classification.

Plan: incremental-agent-trace-etl-transactional-watermarks (T02)

Co-authored-by: SCE <sce@crocoder.dev>
Centralize source-contention retries, batch-size validation, watermark access, and batch accounting so Agent Trace ETL can share the small mechanics needed by the planned conversation table pipelines. Preserve the existing table-specific extraction and loading behavior while keeping destination watermark updates transactional.\n\nPlan: incremental-conversation-etl, T01

Co-authored-by: SCE <sce@crocoder.dev>
Add bounded, contention-safe source extraction with validated roles and an independent lineage watermark. Load message facts and lineage dimensions atomically, treating matching logical replays as already present and rejecting conflicting role/timestamp data.\n\nPlan: incremental-conversation-etl, T02

Co-authored-by: SCE <sce@crocoder.dev>
Add bounded, short-snapshot extraction and atomic DWH loading for message parts.
Validate supported types, preserve exact text with lowercase SHA-256, and detect
replay conflicts within source lineage. Track independent parts watermarks so
parts can load before parent messages while concurrent source writers remain
unblocked.

Plan: incremental-conversation-etl (T03)

Co-authored-by: SCE <sce@crocoder.dev>
Add a conversation-level API that verifies source metadata once, runs the
existing message and part ETLs through the replica, and reports table-level
stats with independently configurable batches and progress. Cover initial,
incremental, no-op, out-of-order, equal-timestamp, and source-contention
behavior while documenting the composition boundary.

Plan: incremental-conversation-etl (T04)

Co-authored-by: SCE <sce@crocoder.dev>
Document the completed conversation ETL contract for independent message and part watermarks, source-lineage identities, exact content handling, and append-only source semantics. Keep the shared runner and focused test cleanup aligned with the documented behavior and validation evidence.\n\nPlan: incremental-conversation-etl (T05)

Co-authored-by: SCE <sce@crocoder.dev>
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.

1 participant