DWH sync replica - #189
Closed
davidabram wants to merge 6 commits into
Closed
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
davidabram
force-pushed
the
dwh-sync-replica
branch
from
August 8, 2026 11:55
58d4511 to
a4e9eab
Compare
davidabram
force-pushed
the
dwh-sync-replica
branch
from
August 8, 2026 11:55
a4e9eab to
fef98b2
Compare
davidabram
force-pushed
the
dwh-sync-replica
branch
from
August 8, 2026 13:53
fef98b2 to
5f63f79
Compare
davidabram
force-pushed
the
dwh-sync-replica
branch
from
August 8, 2026 21:02
ba21a8b to
5541b10
Compare
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>
Establish canonical repository-scoped paths for the disposable Agent Trace DWH sync replica and its retained bridge-lock file while preserving the separate multiprocess source database boundary. Add a non-blocking fs4-backed exclusive lock guard with actionable contention errors and coverage for file retention, reacquisition after guard or process exit, same-process contention, and source database isolation. Document the new ownership and path contracts in durable context. Plan: agent-trace-dwh-turso-sync-replica (T01) Co-authored-by: SCE <sce@crocoder.dev>
The DWH adapter lacked a single-owner connection boundary for bootstrapping and synchronizing repository replicas. Add lock-before-open Turso Sync ownership, non-provisioning schema readiness checks, pull and push operations, credential-safe diagnostics, and a shared connection/runtime seam. Cover bootstrap, contention, bidirectional synchronization, reconstruction, and incompatible-schema behavior with unit and local sync-server integration tests. Document the resulting operating constraints. Plan: agent-trace-dwh-turso-sync-replica (T02) Record the accepted single-owner, disposable replica decision and make the implemented boundary discoverable from the architecture and context map. Mark the plan acceptance criteria and T03 complete, capture validation evidence and residual risk, and remove the standalone unreachable-remote redaction test while retaining direct redaction coverage. Plan: agent-trace-dwh-turso-sync-replica (T03) Co-authored-by: SCE <sce@crocoder.dev>
Distinguish a genuinely empty DWH schema from an incompatible existing database before replica initialization. Auto-run and publish the authoritative migrations only for empty replicas, leave ready replicas unchanged, and reject unrelated, partial, or ledger-mismatched schemas without repair. Add schema-state and replica integration coverage, credential-safe failure variants, and synchronize the durable architecture context.\n\nPlan: agent-trace-dwh-turso-sync-replica.md (T04, T05) Co-authored-by: SCE <sce@crocoder.dev>
…rage The integration suite lacked proof that partially initialized, unrelated, or ledger-mismatched remotes are rejected without mutation, and lacked coverage for concurrent first initialization. Add real Turso Sync fixtures and assertions for unchanged remote table sets, then race six initializers and verify a single ready migration ledger from each racer and a fresh replica.\n\nPlan: agent-trace-dwh-turso-sync-replica (T06, T07) Co-authored-by: SCE <sce@crocoder.dev>
Record the revised replica state machine for genuinely empty remotes, including migration publication, readiness and incompatibility handling, concurrent initialization, and push recovery semantics. Update the ownership decision and plan evidence while preserving SCE schema ownership and control-plane provisioning and credential boundaries. Plan: agent-trace-dwh-turso-sync-replica Task: T08 Co-authored-by: SCE <sce@crocoder.dev>
davidabram
force-pushed
the
dwh-sync-replica
branch
from
August 9, 2026 09:54
5541b10 to
fb55197
Compare
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.