Skip to content

SyncRuntimeStatus

Defined in: packages/contracts/src/runtime.ts:3

optional groups?: Record<string, boolean>

Defined in: packages/contracts/src/runtime.ts:20

Per-consistency-group readiness (ADR-0032 decision 6): groupKey → isReady, updated as each group catches up. Exposed on both the in-process and worker-attached clients so an app can drive progressive per-group paint without waiting on the all-eager-groups ready gate. Absent until the sync runtime has started (e.g. while syncEnabled is false there are no groups to report).


isRunning: boolean

Defined in: packages/contracts/src/runtime.ts:12


optional lastError?: string

Defined in: packages/contracts/src/runtime.ts:13


phase: SyncRuntimePhase

Defined in: packages/contracts/src/runtime.ts:11

auth-needed (ADR-0013): the read path is hitting auth errors (401/403) and is retrying forever with backoff — distinct from degraded, which covers the read path not being SERVED (a shape stream erroring, or unable to reach the server at all) and a sync commit that exhausted its retries. The app should prompt re-login; sync auto-resumes (phase returns to ready/syncing) the instant re-authentication makes the token valid again. It never silently wedges or permanently stops.