SyncRuntimeStatus
Defined in: packages/contracts/src/runtime.ts:3
Properties
Section titled “Properties”groups?
Section titled “groups?”
optionalgroups?: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
Section titled “isRunning”isRunning:
boolean
Defined in: packages/contracts/src/runtime.ts:12
lastError?
Section titled “lastError?”
optionallastError?: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.