Skip to content

DWH sync replica - #189

Closed
davidabram wants to merge 6 commits into
dwh-schemafrom
dwh-sync-replica
Closed

DWH sync replica#189
davidabram wants to merge 6 commits into
dwh-schemafrom
dwh-sync-replica

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 9:55am

Request Review

davidabram and others added 6 commits August 9, 2026 11:53
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>
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