Commit fef98b2
agent-trace-dwh-replica: Implement Turso Sync replica boundary
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>1 parent 042045b commit fef98b2
14 files changed
Lines changed: 990 additions & 58 deletions
File tree
- cli
- src/services
- agent_trace_dwh_replica
- db
- context
- cli
- decisions
- plans
- sce
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
9 | 12 | | |
10 | 13 | | |
| 14 | + | |
11 | 15 | | |
12 | 16 | | |
13 | 17 | | |
| 18 | + | |
| 19 | + | |
0 commit comments