principal_policy_mutation_acknowledgements API Postgres table
Immutable compound container acknowledgements retained for exact retries.
Declared in packages/api-shared/src/schema/principalPolicyMutationAcknowledgements.ts
Columns
iduuid- primary key
- not null
- default gen_random_uuid()
Surrogate database primary key.
principal_typetext- not null
Managed principal kind:
organizationorgroup.principal_iduuid- not null
Principal whose policy commit carried the container mutations.
state_hashtext- not null
Principal state hash the commit produced. A replay reads the acknowledgements back for this exact head.
batch_indexinteger- not null
Zero-based position of the mutation in the commit's batch.
container_iduuid- not null
Container the mutation's access event targets.
manifest_hashtext- not null
Container access manifest hash the mutation produced.
request_sha256text- not null
Domain-separated SHA-256 of the request's canonical JSON: the stored commitment an exact replay must match, without keeping the request.
response_jsontext- not null
The container mutation response as JSON, returned to an exact replay.
created_attimestamp- not null
- default now()
Server-side insertion timestamp.
Indexes
principal_policy_mutation_acks_batch_idx(principal_type, principal_id, state_hash, batch_index)- unique
principal_policy_mutation_acks_container_idx(container_id, principal_type, principal_id, state_hash)- unique
Leads with the container so an organization purge deletes by container through it; reads by principal and state use the batch index.