Tearleads

document_purge_checkpoints Client SQLite table

Durable terminal pins for documents whose signed purge proof was verified. These survive remote-state resets so a dishonest API cannot later replay the pre-purge writer projection and resurrect locally deleted content.

Declared in packages/client-sdk/src/data/sqlite/schema/keyingCheckpointSchema.ts

Columns

  • document_idtext
    • primary key
    • not null

    Purged document id. A later pin for it with a different organization or hash is rejected as equivocation.

  • organization_idtext
    • not null

    Organization of the purged document's manifest.

  • document_manifest_hashtext
    • not null

    Hex SHA-256 hash of the document manifest head the signed purge event binds.

  • purge_event_hashtext
    • not null

    Hex SHA-256 hash of the verified purge event.

  • updated_attext
    • not null

    ISO-8601 time the pin was first stored; repeating the same pin leaves it unchanged.

DDL

The statements the client runs to create this table and its indexes.

CREATE TABLE IF NOT EXISTS "document_purge_checkpoints" (
  "document_id" TEXT NOT NULL PRIMARY KEY,
  "organization_id" TEXT NOT NULL,
  "document_manifest_hash" TEXT NOT NULL,
  "purge_event_hash" TEXT NOT NULL,
  "updated_at" TEXT NOT NULL
);