Skip to content

ETL watermarks - #190

Open
davidabram wants to merge 4 commits into
dwh-sync-replicafrom
etl-watermarks
Open

ETL watermarks#190
davidabram wants to merge 4 commits into
dwh-sync-replicafrom
etl-watermarks

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:03am

Request Review

davidabram and others added 4 commits August 9, 2026 12:01
Expose a typed transaction-scoped execute and query surface over the shared connection. Successful closures commit atomically, while closure and commit failures trigger best-effort rollback without operation retries.

Add focused coverage for commit visibility, rollback, database error context, and Agent Trace DWH compatibility.

Plan: incremental-agent-trace-etl-transactional-watermarks
Task: T01

Co-authored-by: SCE <sce@crocoder.dev>
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>
Add deterministic exact-JSON SHA-256 transformation and idempotent destination loading for agent traces. The batch transaction creates lineage dimensions, verifies replay hashes, rejects integrity conflicts, and advances the source watermark only after all rows succeed, preserving atomic rollback across facts, dimensions, and progress.\n\nPlan: incremental-agent-trace-etl-transactional-watermarks, T03

Co-authored-by: SCE <sce@crocoder.dev>
Add a bounded multi-batch bridge that validates repository metadata, extracts source snapshots, and atomically loads Agent Trace facts with lineage watermarks through the lock-owned DWH replica. Preserve idempotent replay, source-lineage handling, contention behavior, and exact JSON hashing while keeping transport synchronization and credentials outside the ETL boundary. Update the durable architecture context and completion evidence for the production API and focused coverage.\n\nPlan: incremental-agent-trace-etl-transactional-watermarks (T04)

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