DWH schema - #187
Open
davidabram wants to merge 3 commits into
Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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>
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.
No description provided.