Default sync engine mode to read-pilot with fallback
Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
1 parent
c2e35cb01b
commit
b38812716d
3 files changed
+7
-7
No files matched your search
@@ -105,13 +105,13 @@ T3 Code has a global runtime mode switch in the chat toolbar:
|
||||
|
||||
The server supports feature-flagged sync-engine modes while migrating from the legacy in-house state sync pipeline to LiveStore.
|
||||
|
||||
- `T3CODE_SYNC_ENGINE_MODE=legacy` (default)
|
||||
- `T3CODE_SYNC_ENGINE_MODE=livestore-read-pilot` (default)
|
||||
- Uses the LiveStore mirror for `state.bootstrap`, `state.catchUp`, and `state.listMessages` reads when available.
|
||||
- Automatically falls back to legacy reads if the mirror is unavailable or errors.
|
||||
- `T3CODE_SYNC_ENGINE_MODE=legacy`
|
||||
- Uses the existing `PersistenceService`-backed state sync engine for reads and writes.
|
||||
- `T3CODE_SYNC_ENGINE_MODE=shadow`
|
||||
- Keeps legacy state as canonical, but mirrors committed `state.event` traffic into a LiveStore shadow store for parity validation.
|
||||
- `T3CODE_SYNC_ENGINE_MODE=livestore-read-pilot`
|
||||
- Uses the LiveStore mirror for `state.bootstrap`, `state.catchUp`, and `state.listMessages` reads when available.
|
||||
- Automatically falls back to legacy reads if the mirror is unavailable or errors.
|
||||
|
||||
Optional diagnostics:
|
||||
|
||||
|
||||
@@ -6,9 +6,9 @@ This runbook describes how to operate and verify the LiveStore migration path sa
|
||||
|
||||
Server mode is controlled by `T3CODE_SYNC_ENGINE_MODE`:
|
||||
|
||||
- `legacy` (default): legacy persistence service is canonical for reads/writes.
|
||||
- `livestore-read-pilot` (default): write path remains legacy-backed, but state reads prefer LiveStore mirror with delegate fallback.
|
||||
- `legacy`: legacy persistence service is canonical for reads/writes.
|
||||
- `shadow`: legacy remains canonical, and `state.event` writes are mirrored into LiveStore.
|
||||
- `livestore-read-pilot`: write path remains legacy-backed, but state reads prefer LiveStore mirror with delegate fallback.
|
||||
|
||||
## Diagnostics flags
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ function parsePort(value: string | undefined): number | undefined {
|
||||
|
||||
function resolveSyncEngineMode(raw: string | undefined): SyncEngineMode {
|
||||
if (!raw || raw.trim().length === 0) {
|
||||
return "legacy";
|
||||
return "livestore-read-pilot";
|
||||
}
|
||||
const normalized = raw.trim().toLowerCase();
|
||||
if (
|
||||
|
||||
Reference in new issue
Block a user