access_manifest_checkpoints Client SQLite table
Anti-rollback pin for verified access manifests.
Declared in packages/client-sdk/src/data/sqlite/schema/keyingCheckpointSchema.ts
Description
Records the highest access-manifest epoch this client has verified for each object, so a later projection that serves an older epoch (rollback) or a conflicting manifest at the same epoch (equivocation) is detected before any key is unwrapped. Updated monotonically after a projection verifies cleanly.
Indexes:
(objectKind, organizationId, objectId)is the primary key and gives one pin per object.
Columns
object_kindtext- not null
Access object kind (
container,document, ...).organization_idtext- not null
Organization boundary that owns the object.
object_idtext- not null
Stable object id.
epochinteger- not null
Highest verified manifest epoch.
manifest_hashtext- not null
Manifest hash pinned at that epoch.
updated_attext- not null
Local timestamp for the pin.
Keys and constraints
- Primary key
(object_kind, organization_id, object_id)
DDL
The statements the client runs to create this table and its indexes.
CREATE TABLE IF NOT EXISTS "access_manifest_checkpoints" (
"object_kind" TEXT NOT NULL,
"organization_id" TEXT NOT NULL,
"object_id" TEXT NOT NULL,
"epoch" INTEGER NOT NULL,
"manifest_hash" TEXT NOT NULL,
"updated_at" TEXT NOT NULL,
PRIMARY KEY ("object_kind", "organization_id", "object_id")
);