verified_access_manifest_bundles Client SQLite table
Access-manifest bundles this device verified inside a writer projection, keyed by manifest hash. A later projection read cites them so the API can omit their bytes; the client refills each omission from this row and verifies the rebuilt projection from scratch. Rows are neither trust nor checkpoint state: a missing, evicted, or damaged row only costs bytes.
Declared in packages/client-sdk/src/data/sqlite/schema/verifiedManifestBundleSchema.ts
Description
Container KEK levels share the table as typed rows (objectKind container-kek-level), keyed by computeContainerKekLevelDigest, the domain-separated hash of their canonical wire bytes.
Columns
manifest_hashtext- primary key
- not null
Citation key: the stored bundle's
manifestHash, or a level row's digest.organization_idtext- not null
object_kindtext- not null
The verified manifest's object (or the level's container and key epoch), used to cite the lineage relevant to a request.
object_idtext- not null
The verified manifest's object (or the level's container and key epoch), used to cite the lineage relevant to a request.
epochinteger- not null
The verified manifest's object (or the level's container and key epoch), used to cite the lineage relevant to a request.
bundle_jsontext- not null
The exact verified bundle as JSON.
bundle_digesttext- not null
SHA-256 hex of
bundleJson(for a level row, its citation digest); a mismatch drops the row.verified_attext- not null
Latest local verification time; oldest rows evict first.
Indexes
verified_access_manifest_bundles_object_idx(object_kind, object_id, "epoch" desc)verified_access_manifest_bundles_eviction_idx(verified_at, manifest_hash)Eviction order: oldest verification first, hash as the tiebreak.
verified_access_manifest_bundles_organization_recent_idx(organization_id, "verified_at" desc, manifest_hash)Recent citations: an organization's newest verifications first.
DDL
The statements the client runs to create this table and its indexes.
CREATE TABLE IF NOT EXISTS "verified_access_manifest_bundles" (
"manifest_hash" TEXT NOT NULL PRIMARY KEY,
"organization_id" TEXT NOT NULL,
"object_kind" TEXT NOT NULL,
"object_id" TEXT NOT NULL,
"epoch" INTEGER NOT NULL,
"bundle_json" TEXT NOT NULL,
"bundle_digest" TEXT NOT NULL,
"verified_at" TEXT NOT NULL
);
CREATE INDEX IF NOT EXISTS "verified_access_manifest_bundles_object_idx" ON "verified_access_manifest_bundles" ("object_kind", "object_id", "epoch" desc);
CREATE INDEX IF NOT EXISTS "verified_access_manifest_bundles_eviction_idx" ON "verified_access_manifest_bundles" ("verified_at", "manifest_hash");
CREATE INDEX IF NOT EXISTS "verified_access_manifest_bundles_organization_recent_idx" ON "verified_access_manifest_bundles" ("organization_id", "verified_at" desc, "manifest_hash");