document_void_updates Client SQLite table
Served updates this device will never apply: their payload is not the update their signed metadata declares, or they cannot join the history built from every earlier served update. Each is reported once, when its row is first written; none sets the document's sync failure.
Declared in packages/client-sdk/src/data/sqlite/schema/documentSyncVerdictSchema.ts
Columns
app_kindtext- not null
Document scope and server document.
local_idtext- not null
Document scope and server document.
document_idtext- not null
Document scope and server document.
update_idtext- not null
The voided update.
stagetext- not null
Where judging failed and why, for diagnostics. A
loro_runtimerow is a void only onceattemptsreachesMAX_LORO_RUNTIME_ATTEMPTS; until then the update is unsettled and judged again.messagetext- not null
Where judging failed and why, for diagnostics. A
loro_runtimerow is a void only onceattemptsreachesMAX_LORO_RUNTIME_ATTEMPTS; until then the update is unsettled and judged again.attemptsinteger- nullable
For a
loro_runtimerow, how many process lifetimes have each failed the Loro runtime on the update; null at other stages.judgetext- not null
As in
document_sync_progress. A verdict needs no content key beside it: the update's signed envelope commits to the one key every reader judges it under.voided_attext- not null
When this device first voided it.
Keys and constraints
- Primary key
(app_kind, local_id, update_id)
DDL
The statements the client runs to create this table and its indexes.
CREATE TABLE IF NOT EXISTS "document_void_updates" (
"app_kind" TEXT NOT NULL,
"local_id" TEXT NOT NULL,
"document_id" TEXT NOT NULL,
"update_id" TEXT NOT NULL,
"stage" TEXT NOT NULL,
"message" TEXT NOT NULL,
"attempts" INTEGER,
"judge" TEXT NOT NULL,
"voided_at" TEXT NOT NULL,
PRIMARY KEY ("app_kind", "local_id", "update_id")
);