Skip to content

DWH schema - #187

Open
davidabram wants to merge 3 commits into
sce-syncfrom
dwh-schema
Open

DWH schema#187
davidabram wants to merge 3 commits into
sce-syncfrom
dwh-schema

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 8:05am

Request Review

davidabram and others added 3 commits August 9, 2026 10:04
Cover independent database identities, migration upgrades, and concurrent initialization so source-instance metadata remains valid and converges on one persisted value. Add hook-runtime coverage proving baseline-only databases fail with setup guidance without applying migrations, using a test-only migration fixture seam.

Plan: stable-agent-trace-source-instance-identity (T03)

Co-authored-by: SCE <sce@crocoder.dev>
…tity contract

Introduce a separate append-oriented Agent Trace DWH destination schema
for a future ETL consumer, distinct from the repository-scoped
agent-trace.db source schema. Add the 001_dwh_schema baseline creating
repositories, source_instances, etl_watermarks, messages, message_parts,
agent_traces, and code_changes with no foreign keys so out-of-order and
cross-source-database ingestion is never blocked.

Add AgentTraceDwhDb = TursoDb<AgentTraceDwhDbSpec> as an explicit-path
adapter reusing the agent_trace_db retry key, with a readiness check but
no lifecycle, doctor, setup, or CLI wiring yet. Deterministic logical
identities (messages, agent_traces) exclude source_instance_id for
cross-source idempotency; raw local source row IDs (message_parts,
code_changes) are scoped per source instance so the same local integer
coexists across sources and repositories.

Document the source-versus-DWH boundary, identity contract, and shared
Turso consumer in architecture, context-map, glossary, and a focused
agent-trace-dwh-db.md context entry.

Plan: agent-trace-dwh-schema-identity-contract (T01, T02)

Co-authored-by: SCE <sce@crocoder.dev>
Record the separate append-oriented DWH destination boundary and distinguish deterministic logical identities from source-instance-scoped local row IDs. Update durable architecture links and mark the completed plan tasks so future ETL work can preserve idempotent re-ingestion without coupling live capture to warehouse concerns.\n\nPlan: agent-trace-dwh-schema-identity-contract\nTasks: T01, T02

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