Tearleads

principal_grant_retirements Client SQLite table

A local expectation acknowledged with a policy rotation, not a signed deletion proof. Historical evidence is retained; current resurrection fails.

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

Columns

  • organization_idtext
    • not null

    Organization the retired container belongs to.

  • container_idtext
    • not null

    Container whose grant the rotation retired. A later access-manifest pin for this container is refused as equivocation.

  • principal_idtext
    • not null

    Id of the managed principal whose policy rotation retired the grant.

  • policy_state_hashtext
    • not null

    Hex SHA-256 state hash of the acknowledged policy that retired the grant.

Keys and constraints

  • Primary key(organization_id, container_id)

DDL

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

CREATE TABLE IF NOT EXISTS "principal_grant_retirements" (
  "organization_id" TEXT NOT NULL,
  "container_id" TEXT NOT NULL,
  "principal_id" TEXT NOT NULL,
  "policy_state_hash" TEXT NOT NULL,
  PRIMARY KEY ("organization_id", "container_id")
);