:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(personhog): tombstone at the row version in the delete saga (#122307)
Nick Best01e63b92d9ce
diff --git a/nodejs/src/common/generated/personhog/personhog/lifecycle/v1/lifecycle_pb.ts b/nodejs/src/common/generated/personhog/personhog/lifecycle/v1/lifecycle_pb.tsindex 7614335b6f53..454ae9e53dec 100644--- a/nodejs/src/common/generated/personhog/personhog/lifecycle/v1/lifecycle_pb.ts+++ b/nodejs/src/common/generated/personhog/personhog/lifecycle/v1/lifecycle_pb.ts@@ -10,7 +10,7 @@ import { enumDesc, fileDesc, messageDesc, serviceDesc } from '@bufbuild/protobufexport const file_personhog_lifecycle_v1_lifecycle: GenFile =/*@__PURE__*/fileDesc(- 'CiZwZXJzb25ob2cvbGlmZWN5Y2xlL3YxL2xpZmVjeWNsZS5wcm90bxIWcGVyc29uaG9nLmxpZmVjeWNsZS52MSJKChREZWxldGVQZXJzb25zUmVxdWVzdBIPCgd0ZWFtX2lkGAEgASgDEhIKCnBlcnNvbl9pZHMYAiADKAMSDQoFb3BfaWQYAyABKAkiZQoSRGVsZXRlUGVyc29uUmVzdWx0EhEKCXBlcnNvbl9pZBgBIAEoAxI8CgdvdXRjb21lGAIgASgOMisucGVyc29uaG9nLmxpZmVjeWNsZS52MS5EZWxldGVQZXJzb25PdXRjb21lImMKFURlbGV0ZVBlcnNvbnNSZXNwb25zZRINCgVvcF9pZBgBIAEoCRI7CgdyZXN1bHRzGAIgAygLMioucGVyc29uaG9nLmxpZmVjeWNsZS52MS5EZWxldGVQZXJzb25SZXN1bHQqsAEKE0RlbGV0ZVBlcnNvbk91dGNvbWUSJQohREVMRVRFX1BFUlNPTl9PVV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jCh9ERUxFVEVfUEVSU09OX09VVENPTUVfTk9UX0ZPVU5EEAMyggEKElBlcnNvbkhvZ0xpZmVjeWNsZRJsCg1EZWxldGVQZXJzb25zEiwucGVyc29uaG9nLmxpZmVjeWNsZS52MS5EZWxldGVQZXJzb25zUmVxdWVzdBotLnBlcnNvbmhvZy5saWZlY3ljbGUudjEuRGVsZXRlUGVyc29uc1Jlc3BvbnNlYgZwcm90bzM')/**@@ -65,6 +65,20 @@ export type DeletePersonResult = Message<'personhog.lifecycle.v1.DeletePersonRes* @generated from field: personhog.lifecycle.v1.DeletePersonOutcome outcome = 2;*/outcome: DeletePersonOutcome++ /**+ * The version the person's Postgres tombstone committed at, set when+ * outcome = DELETED. A lower bound on the row's final version, not the+ * final version: the leader may produce the death document higher, and+ * the writer moves the row there. A caller that publishes its own+ * ClickHouse person tombstone uses this version; never use it as a+ * revival or version floor. The distinct-id tombstones are published+ * from the outbox. Absent for an operation recorded before this field+ * existed.+ *+ * @generated from field: optional int64 person_version = 3;+ */+ personVersion?: bigint}/**diff --git a/nodejs/src/common/generated/personhog/personhog/types/v1/person_pb.ts b/nodejs/src/common/generated/personhog/personhog/types/v1/person_pb.tsindex caf02ff6b3e5..19e748bec4fa 100644--- a/nodejs/src/common/generated/personhog/personhog/types/v1/person_pb.ts+++ b/nodejs/src/common/generated/personhog/personhog/types/v1/person_pb.ts@@ -13,7 +13,7 @@ import { file_personhog_types_v1_common } from './common_pb'export const file_personhog_types_v1_person: GenFile =/*@__PURE__*/fileDesc(- 'Ch9wZXJzb25ob2cvdHlwZXMvdjEvcGVyc29uLnByb3RvEhJwZXJzb25ob2cudHlwZXMudjEisgIKBlBlcnNvbhIKCgJpZBgBIAEoAxIMCgR1dWlkGAIgASgJEg8KB3RlYW1faWQYAyABKAMSEgoKcHJvcGVydGllcxgEIAEoDBIiChpwcm9wZXJ0aWVzX2xhc3RfdXBkYXRlZF9hdBgFIAEoDBIhChlwcm9wZXJ0aWVzX2xhc3Rfb3BlcmF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TUVfUkFJU0VEEAESHQoZUkFJU0VfT1VUQ09NRV9BVF9PUl9BQk9WRRACEhoKFlJBSVNFX09VVENPTUVfTk9UX0xJVkUQAxIZChVSQUlTRV9PVVRDT01FX01JU1NJTkcQBCq7AQoOUmVzdG9yZU91dGNvbWUSHwobUkVTVE9SRV9PVVRDT01FX1VOU1BFQ0lGSUVEEAASHAoYUkVTVE9SRV9PVVRDT01FX0lOU0VSVEVEEAESHwobUkVTVE9SRV9PVVRDT01FX0VYSVNUU19MSVZFEAISJQohUkVTVE9SRV9PVVRDT01FX0VYSVNUU19UT01CU1RPTkVEEAMSIgoeUkVTVE9SRV9PVVRDT01FX05PX0RJU1RJTkNUX0lEEAQqigEKFURpc3RpbmN0SWRXcml0ZUFjdGlvbhIoCiRESVNUSU5DVF9JRF9XUklURV9BQ1RJT05fVU5TUEVDSUZJRUQQABIjCh9ESVNUSU5DVF9JRF9XUklURV9BQ1RJT05fSU5TRVJUEAESIgoeRElTVElOQ1RfSURfV1JJVEVfQUNUSU9OX1JBSVNFEAIq9QEKFkRpc3RpbmN0SWRXcml0ZU91dGNvbWUSKQolRElTVElOQ1RfSURfV1JJVEVfT1VUQ09NRV9VTlNQRUNJRklFRBAAEiUKIURJU1RJTkNUX0lEX1dSSVRFX09VVENPTUVfQVBQTElFRBABEicKI0RJU1RJTkNUX0lEX1dSSVRFX09VVENPTUVfVU5DSEFOR0VEEAISMQotRElTVElOQ1RfSURfV1JJVEVfT1VUQ09NRV9QUkVDT05ESVRJT05fRkFJTEVEEAMSLQopRElTVElOQ1RfSURfV1JJVEVfT1VUQ09NRV9QRVJTT05fTk9UX0xJVkUQBGIGcHJvdG8z',[file_personhog_types_v1_common])@@ -84,7 +84,8 @@ export type Person = Message<'personhog.types.v1.Person'> & {/*** True on a death document: the changelog record the leader produces when- * a lifecycle saga destroys the person (version = sealed_version + 1).+ * a lifecycle saga destroys the person, at sealed_version + 1 or at the+ * saga's tombstone version when that is higher.* Consumers treat the person as gone; the writer projects it as the* Postgres tombstone. proto3 default (false) keeps old records live.*@@ -1755,7 +1756,8 @@ export type ReleaseFenceRequest = Message<'personhog.types.v1.ReleaseFenceReques/*** The version sealed at fence time. The death document is produced at- * sealed_version + 1. Required when outcome = COMMITTED. Explicitly+ * sealed_version + 1, raised to tombstone_version when that is higher.+ * Required when outcome = COMMITTED. Explicitly* optional because 0 is a legitimate sealed version — a fresh person* stub is created at version 0 — so absence must stay distinguishable* from it.@@ -1776,6 +1778,21 @@ export type ReleaseFenceRequest = Message<'personhog.types.v1.ReleaseFenceReques* @generated from field: int64 created_at = 7;*/createdAt: bigint++ /**+ * The version the saga's Postgres tombstone committed at: at least+ * sealed_version + 1, higher when a direct Postgres writer bumped the+ * row between the fence and the tombstone. The death document is+ * produced at or above it, so the changelog never carries a live+ * version below the tombstone. A value at or below sealed_version is+ * refused INVALID_ARGUMENT with the fence kept: the saga never+ * tombstones below sealed + 1, so such a value is a caller bug.+ * Optional for ops unmapped before this field existed; absent means+ * sealed_version + 1.+ *+ * @generated from field: optional int64 tombstone_version = 8;+ */+ tombstoneVersion?: bigint}/**@@ -1863,6 +1880,13 @@ export type ReleaseFenceItem = Message<'personhog.types.v1.ReleaseFenceItem'> &* @generated from field: int64 created_at = 4;*/createdAt: bigint++ /**+ * See ReleaseFenceRequest.tombstone_version.+ *+ * @generated from field: optional int64 tombstone_version = 5;+ */+ tombstoneVersion?: bigint}/**diff --git a/packages/personhog-proto/personhog/types/v1/person_pb2.py b/packages/personhog-proto/personhog/types/v1/person_pb2.pyindex 87b2399627d5..2ca8034d510c 100644--- a/packages/personhog-proto/personhog/types/v1/person_pb2.py+++ b/packages/personhog-proto/personhog/types/v1/person_pb2.py@@ -23,7 +23,7 @@ _sym_db = _symbol_database.Default()from personhog.types.v1 import common_pb2 as personhog_dot_types_dot_v1_dot_common__pb2DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(- b'\n\x1fpersonhog/types/v1/person.proto\x12\x12personhog.types.v1\x1a\x1fpersonhog/types/v1/common.proto"\xb2\x02\n\x06Person\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x0c\n\x04uuid\x18\x02 \x01(\t\x12\x0f\n\x07team_id\x18\x03 \x01(\x03\x12\x12\n\nproperties\x18\x04 \x01(\x0c\x12"\n\x1aproperties_last_updated_at\x18\x05 \x01(\x0c\x12!\n\x19properties_last_operation\x18\x06 \x01(\x0c\x12\x12\n\ncreated_at\x18\x07 \x01(\x03\x12\x0f\n\x07version\x18\x08 \x01(\x03\x12\x15\n\ris_identified\x18\t \x01(\x08\x12\x17\n\nis_user_id\x18\n \x01(\x08H\x00\x88\x01\x01\x12\x19\n\x0clast_seen_at\x18\x0b \x01(\x03H\x01\x88\x01\x01\x12\x12\n\nis_deleted\x18\x0c \x01(\x08\x42\r\n\x0b_is_user_idB\x0f\n\r_last_seen_at"f\n\x15\x44istinctIdWithVersion\x12\x13\n\x0b\x64istinct_id\x18\x01 \x01(\t\x12\x14\n\x07version\x18\x02 \x01(\x03H\x00\x88\x01\x01\x12\x0f\n\x02id\x18\x03 \x01(\x03H\x01\x88\x01\x01\x42\n\n\x08_versionB\x05\n\x03_id"h\n\x15PersonWithDistinctIds\x12\x13\n\x0b\x64istinct_id\x18\x01 \x01(\t\x12/\n\x06person\x18\x02 \x01(\x0b\x32\x1a.personhog.types.v1.PersonH\x00\x88\x01\x01\x42\t\n\x07_person"g\n\x11PersonDistinctIds\x12\x11\n\tperson_id\x18\x01 \x01(\x03\x12?\n\x0c\x64istinct_ids\x18\x02 \x03(\x0b\x32).personhog.types.v1.DistinctIdWithVersion"\x87\x01\n\x18PersonWithTeamDistinctId\x12/\n\x03key\x18\x01 \x01(\x0b\x32".personhog.types.v1.TeamDistinctId\x12/\n\x06person\x18\x02 \x01(\x0b\x32\x1a.personhog.types.v1.PersonH\x00\x88\x01\x01\x42\t\n\x07_person"m\n\x10GetPersonRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions"O\n\x11GetPersonResponse\x12/\n\x06person\x18\x01 \x01(\x0b\x32\x1a.personhog.types.v1.PersonH\x00\x88\x01\x01\x42\t\n\x07_person"o\n\x11GetPersonsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x12\n\nperson_ids\x18\x02 \x03(\x03\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions"S\n\x0fPersonsResponse\x12+\n\x07persons\x18\x01 \x03(\x0b\x32\x1a.personhog.types.v1.Person\x12\x13\n\x0bmissing_ids\x18\x02 \x03(\x03"n\n\x16GetPersonByUuidRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x0c\n\x04uuid\x18\x02 \x01(\t\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions"q\n\x18GetPersonsByUuidsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\r\n\x05uuids\x18\x02 \x03(\t\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions"{\n\x1cGetPersonByDistinctIdRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x13\n\x0b\x64istinct_id\x18\x02 \x01(\t\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions"\x84\x01\n$GetPersonsByDistinctIdsInTeamRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x14\n\x0c\x64istinct_ids\x18\x02 \x03(\t\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions"`\n"PersonsByDistinctIdsInTeamResponse\x12:\n\x07results\x18\x01 \x03(\x0b\x32).personhog.types.v1.PersonWithDistinctIds"\x96\x01\n\x1eGetPersonsByDistinctIdsRequest\x12=\n\x11team_distinct_ids\x18\x01 \x03(\x0b\x32".personhog.types.v1.TeamDistinctId\x12\x35\n\x0cread_options\x18\x02 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions"]\n\x1cPersonsByDistinctIdsResponse\x12=\n\x07results\x18\x01 \x03(\x0b\x32,.personhog.types.v1.PersonWithTeamDistinctId"\xbf\x01\n\x1eGetDistinctIdsForPersonRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions\x12\x12\n\x05limit\x18\x04 \x01(\x03H\x00\x88\x01\x01\x12\x16\n\tcursor_id\x18\x05 \x01(\x03H\x01\x88\x01\x01\x42\x08\n\x06_limitB\x0c\n\n_cursor_id"\x92\x01\n\x1fGetDistinctIdsForPersonResponse\x12?\n\x0c\x64istinct_ids\x18\x01 \x03(\x0b\x32).personhog.types.v1.DistinctIdWithVersion\x12\x1b\n\x0enext_cursor_id\x18\x02 \x01(\x03H\x00\x88\x01\x01\x42\x11\n\x0f_next_cursor_id"\xb1\x01\n\x1fGetDistinctIdsForPersonsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x12\n\nperson_ids\x18\x02 \x03(\x03\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions\x12\x1d\n\x10limit_per_person\x18\x04 \x01(\x03H\x00\x88\x01\x01\x42\x13\n\x11_limit_per_person"f\n GetDistinctIdsForPersonsResponse\x12\x42\n\x13person_distinct_ids\x18\x01 \x03(\x0b\x32%.personhog.types.v1.PersonDistinctIds"\x96\x02\n\x1dUpdatePersonPropertiesRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x12\n\nevent_name\x18\x03 \x01(\t\x12\x16\n\x0eset_properties\x18\x04 \x01(\x0c\x12\x1b\n\x13set_once_properties\x18\x05 \x01(\x0c\x12\x18\n\x10unset_properties\x18\x06 \x03(\t\x12\x1a\n\ris_identified\x18\x07 \x01(\x08H\x00\x88\x01\x01\x12\x19\n\x0clast_seen_at\x18\x08 \x01(\x03H\x01\x88\x01\x01\x12\x14\n\x0c\x66orce_update\x18\t \x01(\x08\x42\x10\n\x0e_is_identifiedB\x0f\n\r_last_seen_at"m\n\x1eUpdatePersonPropertiesResponse\x12/\n\x06person\x18\x01 \x01(\x0b\x32\x1a.personhog.types.v1.PersonH\x00\x88\x01\x01\x12\x0f\n\x07updated\x18\x02 \x01(\x08\x42\t\n\x07_person"r\n\x14\x44\x65letePersonsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x14\n\x0cperson_uuids\x18\x02 \x03(\t\x12\x33\n\x04mode\x18\x03 \x01(\x0e\x32%.personhog.types.v1.DeletePersonsMode"<\n\x14TombstonedDistinctId\x12\x13\n\x0b\x64istinct_id\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x03"x\n\x10TombstonedPerson\x12\x13\n\x0bperson_uuid\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x03\x12>\n\x0c\x64istinct_ids\x18\x03 \x03(\x0b\x32(.personhog.types.v1.TombstonedDistinctId"|\n\x15\x44\x65letePersonsResponse\x12\x15\n\rdeleted_count\x18\x01 \x01(\x03\x12\x12\n\ntombstoned\x18\x02 \x01(\x08\x12\x38\n\ntombstones\x18\x03 \x03(\x0b\x32$.personhog.types.v1.TombstonedPerson"C\n\x1aGetPersonTombstonesRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x14\n\x0cperson_uuids\x18\x02 \x03(\t"W\n\x1bGetPersonTombstonesResponse\x12\x38\n\ntombstones\x18\x01 \x03(\x0b\x32$.personhog.types.v1.TombstonedPerson"<\n\x14\x41\x63kedPersonTombstone\x12\x13\n\x0bperson_uuid\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x03"k\n\x1a\x41\x63kPersonTombstonesRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12<\n\ntombstones\x18\x02 \x03(\x0b\x32(.personhog.types.v1.AckedPersonTombstone"4\n\x1b\x41\x63kPersonTombstonesResponse\x12\x15\n\rcleared_count\x18\x01 \x01(\x03"\x84\x01\n\x1fListPersonTombstoneQueueRequest\x12\x15\n\rafter_team_id\x18\x01 \x01(\x03\x12\x19\n\x11\x61\x66ter_person_uuid\x18\x02 \x01(\t\x12\r\n\x05limit\x18\x03 \x01(\x03\x12\x14\n\x07team_id\x18\x04 \x01(\x03H\x00\x88\x01\x01\x42\n\n\x08_team_id"p\n\x19PersonTombstoneQueueEntry\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x13\n\x0bperson_uuid\x18\x02 \x01(\t\x12\x16\n\x0eperson_version\x18\x03 \x01(\x03\x12\x15\n\rtombstoned_at\x18\x04 \x01(\x03"b\n ListPersonTombstoneQueueResponse\x12>\n\x07\x65ntries\x18\x01 \x03(\x0b\x32-.personhog.types.v1.PersonTombstoneQueueEntry"G\n DeletePersonsBatchForTeamRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x12\n\nbatch_size\x18\x02 \x01(\x03":\n!DeletePersonsBatchForTeamResponse\x12\x15\n\rdeleted_count\x18\x01 \x01(\x03"\x9c\x01\n\x1e\x44\x65leteTombstonedPersonsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x14\n\x0cperson_uuids\x18\x02 \x03(\t\x12\x10\n\x08max_rows\x18\x03 \x01(\x03\x12\x41\n\x0f\x62ounded_persons\x18\x04 \x03(\x0b\x32(.personhog.types.v1.VersionBoundedPerson"@\n\x14VersionBoundedPerson\x12\x13\n\x0bperson_uuid\x18\x01 \x01(\t\x12\x13\n\x0bmax_version\x18\x02 \x01(\x03"\xe4\x01\n\x1f\x44\x65leteTombstonedPersonsResponse\x12\x15\n\rdeleted_count\x18\x01 \x01(\x03\x12\x1a\n\x12skipped_live_count\x18\x02 \x01(\x03\x12\x1c\n\x14\x62locked_person_uuids\x18\x03 \x03(\t\x12\x1c\n\x14pending_person_uuids\x18\x04 \x03(\t\x12\x14\n\x0crows_deleted\x18\x05 \x01(\x03\x12\x1d\n\x15version_guard_applied\x18\x06 \x01(\x08\x12\x1d\n\x15skipped_version_count\x18\x07 \x01(\x03"W\n\x12SplitPersonRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x1d\n\x15\x64istinct_ids_to_split\x18\x03 \x03(\t"\x8e\x01\n\x0bSplitResult\x12\x13\n\x0b\x64istinct_id\x18\x01 \x01(\t\x12\x17\n\x0fnew_person_uuid\x18\x02 \x01(\t\x12\x1a\n\x12new_person_version\x18\x03 \x01(\x03\x12\x13\n\x0bpdi_version\x18\x04 \x01(\x03\x12 \n\x18new_person_created_at_ms\x18\x05 \x01(\x03"F\n\x13SplitPersonResponse\x12/\n\x06splits\x18\x01 \x03(\x0b\x32\x1f.personhog.types.v1.SplitResult"c\n&SetPersonDistinctIdVersionFloorRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x13\n\x0b\x64istinct_id\x18\x02 \x01(\t\x12\x13\n\x0bmin_version\x18\x03 \x01(\x03"e\n\'SetPersonDistinctIdVersionFloorResponse\x12/\n\x06person\x18\x01 \x01(\x0b\x32\x1a.personhog.types.v1.PersonH\x00\x88\x01\x01\x42\t\n\x07_person"W\n\x1cSetPersonVersionFloorRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x13\n\x0bmin_version\x18\x03 \x01(\x03"0\n\x1dSetPersonVersionFloorResponse\x12\x0f\n\x07updated\x18\x01 \x01(\x08">\n\x12PersonVersionFloor\x12\x13\n\x0bperson_uuid\x18\x01 \x01(\t\x12\x13\n\x0bmin_version\x18\x02 \x01(\x03"k\n EnsurePersonVersionFloorsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x36\n\x06\x66loors\x18\x02 \x03(\x0b\x32&.personhog.types.v1.PersonVersionFloor"z\n\x18PersonVersionFloorResult\x12\x13\n\x0bperson_uuid\x18\x01 \x01(\t\x12\x38\n\x07outcome\x18\x02 \x01(\x0e\x32\'.personhog.types.v1.VersionFloorOutcome\x12\x0f\n\x07version\x18\x03 \x01(\x03"b\n!EnsurePersonVersionFloorsResponse\x12=\n\x07results\x18\x01 \x03(\x0b\x32,.personhog.types.v1.PersonVersionFloorResult"}\n\x12\x46\x65ncePersonRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\r\n\x05op_id\x18\x03 \x01(\t\x12\x34\n\x07op_type\x18\x04 \x01(\x0e\x32#.personhog.types.v1.LifecycleOpType"A\n\x13\x46\x65ncePersonResponse\x12*\n\x06sealed\x18\x01 \x01(\x0b\x32\x1a.personhog.types.v1.Person"\x7f\n\x13\x46\x65ncePersonsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\r\n\x05op_id\x18\x02 \x01(\t\x12\x34\n\x07op_type\x18\x03 \x01(\x0e\x32#.personhog.types.v1.LifecycleOpType\x12\x12\n\nperson_ids\x18\x04 \x03(\x03"_\n\x14\x46\x65ncePersonsResponse\x12\x34\n\x06sealed\x18\x01 \x03(\x0b\x32$.personhog.types.v1.FencedPersonSeal\x12\x11\n\tnot_found\x18\x02 \x03(\x03"J\n\x10\x46\x65ncedPersonSeal\x12\x11\n\tperson_id\x18\x01 \x01(\x03\x12\x0f\n\x07version\x18\x02 \x01(\x03\x12\x12\n\ncreated_at\x18\x03 \x01(\x03"\xd6\x01\n\x13ReleaseFenceRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x13\n\x0bperson_uuid\x18\x03 \x01(\t\x12\r\n\x05op_id\x18\x04 \x01(\t\x12\x33\n\x07outcome\x18\x05 \x01(\x0e\x32".personhog.types.v1.ReleaseOutcome\x12\x1b\n\x0esealed_version\x18\x06 \x01(\x03H\x00\x88\x01\x01\x12\x12\n\ncreated_at\x18\x07 \x01(\x03\x42\x11\n\x0f_sealed_version"\x16\n\x14ReleaseFenceResponse"\xa2\x01\n\x14ReleaseFencesRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\r\n\x05op_id\x18\x02 \x01(\t\x12\x33\n\x07outcome\x18\x03 \x01(\x0e\x32".personhog.types.v1.ReleaseOutcome\x12\x35\n\x07persons\x18\x04 \x03(\x0b\x32$.personhog.types.v1.ReleaseFenceItem"~\n\x10ReleaseFenceItem\x12\x11\n\tperson_id\x18\x01 \x01(\x03\x12\x13\n\x0bperson_uuid\x18\x02 \x01(\t\x12\x1b\n\x0esealed_version\x18\x03 \x01(\x03H\x00\x88\x01\x01\x12\x12\n\ncreated_at\x18\x04 \x01(\x03\x42\x11\n\x0f_sealed_version"\x17\n\x15ReleaseFencesResponse"S\n\x14SealedSourceSnapshot\x12*\n\x06person\x18\x01 \x01(\x0b\x32\x1a.personhog.types.v1.Person\x12\x0f\n\x07ordinal\x18\x02 \x01(\x05"\xbd\x01\n\x19\x46oldPersonDocumentRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x42\n\x10sealed_snapshots\x18\x03 \x03(\x0b\x32(.personhog.types.v1.SealedSourceSnapshot\x12\x11\n\tevent_set\x18\x04 \x01(\x0c\x12\x16\n\x0e\x65vent_set_once\x18\x05 \x01(\x0c\x12\r\n\x05op_id\x18\x06 \x01(\t"H\n\x1a\x46oldPersonDocumentResponse\x12*\n\x06person\x18\x01 \x01(\x0b\x32\x1a.personhog.types.v1.Person"\xbc\x01\n\rDistinctIdRow\x12\x13\n\x0b\x64istinct_id\x18\x01 \x01(\t\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x18\n\x0bperson_uuid\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x0f\n\x07version\x18\x04 \x01(\x03\x12\x12\n\nis_deleted\x18\x05 \x01(\x08\x12\x1e\n\x11person_is_deleted\x18\x06 \x01(\x08H\x01\x88\x01\x01\x42\x0e\n\x0c_person_uuidB\x14\n\x12_person_is_deleted"x\n\x18GetDistinctIdRowsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x14\n\x0c\x64istinct_ids\x18\x02 \x03(\t\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions"L\n\x19GetDistinctIdRowsResponse\x12/\n\x04rows\x18\x01 \x03(\x0b\x32!.personhog.types.v1.DistinctIdRow"\x86\x01\n\x0fPersonListEntry\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x0c\n\x04uuid\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\x03\x12\x12\n\nis_deleted\x18\x04 \x01(\x08\x12\x1d\n\x15has_live_distinct_ids\x18\x05 \x01(\x08\x12\x15\n\rcreated_at_ms\x18\x06 \x01(\x03"\xbf\x01\n\x19ListPersonsForTeamRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x17\n\x0f\x61\x66ter_person_id\x18\x02 \x01(\x03\x12\r\n\x05limit\x18\x03 \x01(\x03\x12\x35\n\x0cread_options\x18\x04 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions\x12\x1d\n\x10\x62\x65\x66ore_person_id\x18\x05 \x01(\x03H\x00\x88\x01\x01\x42\x13\n\x11_before_person_id"\x8e\x01\n\x1aListPersonsForTeamResponse\x12\x34\n\x07persons\x18\x01 \x03(\x0b\x32#.personhog.types.v1.PersonListEntry\x12!\n\x14next_after_person_id\x18\x02 \x01(\x03H\x00\x88\x01\x01\x42\x17\n\x15_next_after_person_id"j\n\x1fRaisePersonVersionFloorsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x36\n\x06\x66loors\x18\x02 \x03(\x0b\x32&.personhog.types.v1.PersonVersionFloor"x\n\x1dRaisePersonVersionFloorResult\x12\x13\n\x0bperson_uuid\x18\x01 \x01(\t\x12\x31\n\x07outcome\x18\x02 \x01(\x0e\x32 .personhog.types.v1.RaiseOutcome\x12\x0f\n\x07version\x18\x03 \x01(\x03"f\n RaisePersonVersionFloorsResponse\x12\x42\n\x07results\x18\x01 \x03(\x0b\x32\x31.personhog.types.v1.RaisePersonVersionFloorResult"\xb6\x01\n\x0eRestoredPerson\x12\x13\n\x0bperson_uuid\x18\x01 \x01(\t\x12\x12\n\nproperties\x18\x02 \x01(\x0c\x12\x15\n\rcreated_at_ms\x18\x03 \x01(\x03\x12\x15\n\ris_identified\x18\x04 \x01(\x08\x12\x0f\n\x07version\x18\x05 \x01(\x03\x12<\n\x0c\x64istinct_ids\x18\x06 \x03(\x0b\x32&.personhog.types.v1.RestoredDistinctId":\n\x12RestoredDistinctId\x12\x13\n\x0b\x64istinct_id\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x03"]\n\x15RestorePersonsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x33\n\x07persons\x18\x02 \x03(\x0b\x32".personhog.types.v1.RestoredPerson"\xa2\x01\n\x13RestorePersonResult\x12\x13\n\x0bperson_uuid\x18\x01 \x01(\t\x12\x33\n\x07outcome\x18\x02 \x01(\x0e\x32".personhog.types.v1.RestoreOutcome\x12\x11\n\tperson_id\x18\x03 \x01(\x03\x12\x0f\n\x07version\x18\x04 \x01(\x03\x12\x1d\n\x15restored_distinct_ids\x18\x05 \x03(\t"R\n\x16RestorePersonsResponse\x12\x38\n\x07results\x18\x01 \x03(\x0b\x32\'.personhog.types.v1.RestorePersonResult"\xbf\x01\n\x0f\x44istinctIdWrite\x12\x13\n\x0b\x64istinct_id\x18\x01 \x01(\t\x12\x39\n\x06\x61\x63tion\x18\x02 \x01(\x0e\x32).personhog.types.v1.DistinctIdWriteAction\x12\x13\n\x0bperson_uuid\x18\x03 \x01(\t\x12\x13\n\x0bmin_version\x18\x04 \x01(\x03\x12\x1d\n\x10\x65xpected_version\x18\x05 \x01(\x03H\x00\x88\x01\x01\x42\x13\n\x11_expected_version"_\n\x17WriteDistinctIdsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x33\n\x06writes\x18\x02 \x03(\x0b\x32#.personhog.types.v1.DistinctIdWrite"\xa6\x01\n\x15\x44istinctIdWriteResult\x12\x13\n\x0b\x64istinct_id\x18\x01 \x01(\t\x12;\n\x07outcome\x18\x02 \x01(\x0e\x32*.personhog.types.v1.DistinctIdWriteOutcome\x12\x33\n\x03row\x18\x03 \x01(\x0b\x32!.personhog.types.v1.DistinctIdRowH\x00\x88\x01\x01\x42\x06\n\x04_row"V\n\x18WriteDistinctIdsResponse\x12:\n\x07results\x18\x01 \x03(\x0b\x32).personhog.types.v1.DistinctIdWriteResult*y\n\x11\x44\x65letePersonsMode\x12#\n\x1f\x44\x45LETE_PERSONS_MODE_UNSPECIFIED\x10\x00\x12\x1c\n\x18\x44\x45LETE_PERSONS_MODE_HARD\x10\x01\x12!\n\x1d\x44\x45LETE_PERSONS_MODE_TOMBSTONE\x10\x02*\xe4\x01\n\x13VersionFloorOutcome\x12%\n!VERSION_FLOOR_OUTCOME_UNSPECIFIED\x10\x00\x12,\n(VERSION_FLOOR_OUTCOME_TOMBSTONE_INSERTED\x10\x01\x12*\n&VERSION_FLOOR_OUTCOME_TOMBSTONE_RAISED\x10\x02\x12,\n(VERSION_FLOOR_OUTCOME_TOMBSTONE_AT_FLOOR\x10\x03\x12\x1e\n\x1aVERSION_FLOOR_OUTCOME_LIVE\x10\x04*o\n\x0fLifecycleOpType\x12!\n\x1dLIFECYCLE_OP_TYPE_UNSPECIFIED\x10\x00\x12\x1c\n\x18LIFECYCLE_OP_TYPE_DELETE\x10\x01\x12\x1b\n\x17LIFECYCLE_OP_TYPE_MERGE\x10\x02*m\n\x0eReleaseOutcome\x12\x1f\n\x1bRELEASE_OUTCOME_UNSPECIFIED\x10\x00\x12\x1d\n\x19RELEASE_OUTCOME_COMMITTED\x10\x01\x12\x1b\n\x17RELEASE_OUTCOME_ABORTED\x10\x02*\x9d\x01\n\x0cRaiseOutcome\x12\x1d\n\x19RAISE_OUTCOME_UNSPECIFIED\x10\x00\x12\x18\n\x14RAISE_OUTCOME_RAISED\x10\x01\x12\x1d\n\x19RAISE_OUTCOME_AT_OR_ABOVE\x10\x02\x12\x1a\n\x16RAISE_OUTCOME_NOT_LIVE\x10\x03\x12\x19\n\x15RAISE_OUTCOME_MISSING\x10\x04*\xbb\x01\n\x0eRestoreOutcome\x12\x1f\n\x1bRESTORE_OUTCOME_UNSPECIFIED\x10\x00\x12\x1c\n\x18RESTORE_OUTCOME_INSERTED\x10\x01\x12\x1f\n\x1bRESTORE_OUTCOME_EXISTS_LIVE\x10\x02\x12%\n!RESTORE_OUTCOME_EXISTS_TOMBSTONED\x10\x03\x12"\n\x1eRESTORE_OUTCOME_NO_DISTINCT_ID\x10\x04*\x8a\x01\n\x15\x44istinctIdWriteAction\x12(\n$DISTINCT_ID_WRITE_ACTION_UNSPECIFIED\x10\x00\x12#\n\x1f\x44ISTINCT_ID_WRITE_ACTION_INSERT\x10\x01\x12"\n\x1e\x44ISTINCT_ID_WRITE_ACTION_RAISE\x10\x02*\xf5\x01\n\x16\x44istinctIdWriteOutcome\x12)\n%DISTINCT_ID_WRITE_OUTCOME_UNSPECIFIED\x10\x00\x12%\n!DISTINCT_ID_WRITE_OUTCOME_APPLIED\x10\x01\x12\'\n#DISTINCT_ID_WRITE_OUTCOME_UNCHANGED\x10\x02\x12\x31\n-DISTINCT_ID_WRITE_OUTCOME_PRECONDITION_FAILED\x10\x03\x12-\n)DISTINCT_ID_WRITE_OUTCOME_PERSON_NOT_LIVE\x10\x04\x62\x06proto3'+ b'\n\x1fpersonhog/types/v1/person.proto\x12\x12personhog.types.v1\x1a\x1fpersonhog/types/v1/common.proto"\xb2\x02\n\x06Person\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x0c\n\x04uuid\x18\x02 \x01(\t\x12\x0f\n\x07team_id\x18\x03 \x01(\x03\x12\x12\n\nproperties\x18\x04 \x01(\x0c\x12"\n\x1aproperties_last_updated_at\x18\x05 \x01(\x0c\x12!\n\x19properties_last_operation\x18\x06 \x01(\x0c\x12\x12\n\ncreated_at\x18\x07 \x01(\x03\x12\x0f\n\x07version\x18\x08 \x01(\x03\x12\x15\n\ris_identified\x18\t \x01(\x08\x12\x17\n\nis_user_id\x18\n \x01(\x08H\x00\x88\x01\x01\x12\x19\n\x0clast_seen_at\x18\x0b \x01(\x03H\x01\x88\x01\x01\x12\x12\n\nis_deleted\x18\x0c \x01(\x08\x42\r\n\x0b_is_user_idB\x0f\n\r_last_seen_at"f\n\x15\x44istinctIdWithVersion\x12\x13\n\x0b\x64istinct_id\x18\x01 \x01(\t\x12\x14\n\x07version\x18\x02 \x01(\x03H\x00\x88\x01\x01\x12\x0f\n\x02id\x18\x03 \x01(\x03H\x01\x88\x01\x01\x42\n\n\x08_versionB\x05\n\x03_id"h\n\x15PersonWithDistinctIds\x12\x13\n\x0b\x64istinct_id\x18\x01 \x01(\t\x12/\n\x06person\x18\x02 \x01(\x0b\x32\x1a.personhog.types.v1.PersonH\x00\x88\x01\x01\x42\t\n\x07_person"g\n\x11PersonDistinctIds\x12\x11\n\tperson_id\x18\x01 \x01(\x03\x12?\n\x0c\x64istinct_ids\x18\x02 \x03(\x0b\x32).personhog.types.v1.DistinctIdWithVersion"\x87\x01\n\x18PersonWithTeamDistinctId\x12/\n\x03key\x18\x01 \x01(\x0b\x32".personhog.types.v1.TeamDistinctId\x12/\n\x06person\x18\x02 \x01(\x0b\x32\x1a.personhog.types.v1.PersonH\x00\x88\x01\x01\x42\t\n\x07_person"m\n\x10GetPersonRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions"O\n\x11GetPersonResponse\x12/\n\x06person\x18\x01 \x01(\x0b\x32\x1a.personhog.types.v1.PersonH\x00\x88\x01\x01\x42\t\n\x07_person"o\n\x11GetPersonsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x12\n\nperson_ids\x18\x02 \x03(\x03\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions"S\n\x0fPersonsResponse\x12+\n\x07persons\x18\x01 \x03(\x0b\x32\x1a.personhog.types.v1.Person\x12\x13\n\x0bmissing_ids\x18\x02 \x03(\x03"n\n\x16GetPersonByUuidRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x0c\n\x04uuid\x18\x02 \x01(\t\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions"q\n\x18GetPersonsByUuidsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\r\n\x05uuids\x18\x02 \x03(\t\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions"{\n\x1cGetPersonByDistinctIdRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x13\n\x0b\x64istinct_id\x18\x02 \x01(\t\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions"\x84\x01\n$GetPersonsByDistinctIdsInTeamRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x14\n\x0c\x64istinct_ids\x18\x02 \x03(\t\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions"`\n"PersonsByDistinctIdsInTeamResponse\x12:\n\x07results\x18\x01 \x03(\x0b\x32).personhog.types.v1.PersonWithDistinctIds"\x96\x01\n\x1eGetPersonsByDistinctIdsRequest\x12=\n\x11team_distinct_ids\x18\x01 \x03(\x0b\x32".personhog.types.v1.TeamDistinctId\x12\x35\n\x0cread_options\x18\x02 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions"]\n\x1cPersonsByDistinctIdsResponse\x12=\n\x07results\x18\x01 \x03(\x0b\x32,.personhog.types.v1.PersonWithTeamDistinctId"\xbf\x01\n\x1eGetDistinctIdsForPersonRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions\x12\x12\n\x05limit\x18\x04 \x01(\x03H\x00\x88\x01\x01\x12\x16\n\tcursor_id\x18\x05 \x01(\x03H\x01\x88\x01\x01\x42\x08\n\x06_limitB\x0c\n\n_cursor_id"\x92\x01\n\x1fGetDistinctIdsForPersonResponse\x12?\n\x0c\x64istinct_ids\x18\x01 \x03(\x0b\x32).personhog.types.v1.DistinctIdWithVersion\x12\x1b\n\x0enext_cursor_id\x18\x02 \x01(\x03H\x00\x88\x01\x01\x42\x11\n\x0f_next_cursor_id"\xb1\x01\n\x1fGetDistinctIdsForPersonsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x12\n\nperson_ids\x18\x02 \x03(\x03\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions\x12\x1d\n\x10limit_per_person\x18\x04 \x01(\x03H\x00\x88\x01\x01\x42\x13\n\x11_limit_per_person"f\n GetDistinctIdsForPersonsResponse\x12\x42\n\x13person_distinct_ids\x18\x01 \x03(\x0b\x32%.personhog.types.v1.PersonDistinctIds"\x96\x02\n\x1dUpdatePersonPropertiesRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x12\n\nevent_name\x18\x03 \x01(\t\x12\x16\n\x0eset_properties\x18\x04 \x01(\x0c\x12\x1b\n\x13set_once_properties\x18\x05 \x01(\x0c\x12\x18\n\x10unset_properties\x18\x06 \x03(\t\x12\x1a\n\ris_identified\x18\x07 \x01(\x08H\x00\x88\x01\x01\x12\x19\n\x0clast_seen_at\x18\x08 \x01(\x03H\x01\x88\x01\x01\x12\x14\n\x0c\x66orce_update\x18\t \x01(\x08\x42\x10\n\x0e_is_identifiedB\x0f\n\r_last_seen_at"m\n\x1eUpdatePersonPropertiesResponse\x12/\n\x06person\x18\x01 \x01(\x0b\x32\x1a.personhog.types.v1.PersonH\x00\x88\x01\x01\x12\x0f\n\x07updated\x18\x02 \x01(\x08\x42\t\n\x07_person"r\n\x14\x44\x65letePersonsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x14\n\x0cperson_uuids\x18\x02 \x03(\t\x12\x33\n\x04mode\x18\x03 \x01(\x0e\x32%.personhog.types.v1.DeletePersonsMode"<\n\x14TombstonedDistinctId\x12\x13\n\x0b\x64istinct_id\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x03"x\n\x10TombstonedPerson\x12\x13\n\x0bperson_uuid\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x03\x12>\n\x0c\x64istinct_ids\x18\x03 \x03(\x0b\x32(.personhog.types.v1.TombstonedDistinctId"|\n\x15\x44\x65letePersonsResponse\x12\x15\n\rdeleted_count\x18\x01 \x01(\x03\x12\x12\n\ntombstoned\x18\x02 \x01(\x08\x12\x38\n\ntombstones\x18\x03 \x03(\x0b\x32$.personhog.types.v1.TombstonedPerson"C\n\x1aGetPersonTombstonesRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x14\n\x0cperson_uuids\x18\x02 \x03(\t"W\n\x1bGetPersonTombstonesResponse\x12\x38\n\ntombstones\x18\x01 \x03(\x0b\x32$.personhog.types.v1.TombstonedPerson"<\n\x14\x41\x63kedPersonTombstone\x12\x13\n\x0bperson_uuid\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x03"k\n\x1a\x41\x63kPersonTombstonesRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12<\n\ntombstones\x18\x02 \x03(\x0b\x32(.personhog.types.v1.AckedPersonTombstone"4\n\x1b\x41\x63kPersonTombstonesResponse\x12\x15\n\rcleared_count\x18\x01 \x01(\x03"\x84\x01\n\x1fListPersonTombstoneQueueRequest\x12\x15\n\rafter_team_id\x18\x01 \x01(\x03\x12\x19\n\x11\x61\x66ter_person_uuid\x18\x02 \x01(\t\x12\r\n\x05limit\x18\x03 \x01(\x03\x12\x14\n\x07team_id\x18\x04 \x01(\x03H\x00\x88\x01\x01\x42\n\n\x08_team_id"p\n\x19PersonTombstoneQueueEntry\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x13\n\x0bperson_uuid\x18\x02 \x01(\t\x12\x16\n\x0eperson_version\x18\x03 \x01(\x03\x12\x15\n\rtombstoned_at\x18\x04 \x01(\x03"b\n ListPersonTombstoneQueueResponse\x12>\n\x07\x65ntries\x18\x01 \x03(\x0b\x32-.personhog.types.v1.PersonTombstoneQueueEntry"G\n DeletePersonsBatchForTeamRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x12\n\nbatch_size\x18\x02 \x01(\x03":\n!DeletePersonsBatchForTeamResponse\x12\x15\n\rdeleted_count\x18\x01 \x01(\x03"\x9c\x01\n\x1e\x44\x65leteTombstonedPersonsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x14\n\x0cperson_uuids\x18\x02 \x03(\t\x12\x10\n\x08max_rows\x18\x03 \x01(\x03\x12\x41\n\x0f\x62ounded_persons\x18\x04 \x03(\x0b\x32(.personhog.types.v1.VersionBoundedPerson"@\n\x14VersionBoundedPerson\x12\x13\n\x0bperson_uuid\x18\x01 \x01(\t\x12\x13\n\x0bmax_version\x18\x02 \x01(\x03"\xe4\x01\n\x1f\x44\x65leteTombstonedPersonsResponse\x12\x15\n\rdeleted_count\x18\x01 \x01(\x03\x12\x1a\n\x12skipped_live_count\x18\x02 \x01(\x03\x12\x1c\n\x14\x62locked_person_uuids\x18\x03 \x03(\t\x12\x1c\n\x14pending_person_uuids\x18\x04 \x03(\t\x12\x14\n\x0crows_deleted\x18\x05 \x01(\x03\x12\x1d\n\x15version_guard_applied\x18\x06 \x01(\x08\x12\x1d\n\x15skipped_version_count\x18\x07 \x01(\x03"W\n\x12SplitPersonRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x1d\n\x15\x64istinct_ids_to_split\x18\x03 \x03(\t"\x8e\x01\n\x0bSplitResult\x12\x13\n\x0b\x64istinct_id\x18\x01 \x01(\t\x12\x17\n\x0fnew_person_uuid\x18\x02 \x01(\t\x12\x1a\n\x12new_person_version\x18\x03 \x01(\x03\x12\x13\n\x0bpdi_version\x18\x04 \x01(\x03\x12 \n\x18new_person_created_at_ms\x18\x05 \x01(\x03"F\n\x13SplitPersonResponse\x12/\n\x06splits\x18\x01 \x03(\x0b\x32\x1f.personhog.types.v1.SplitResult"c\n&SetPersonDistinctIdVersionFloorRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x13\n\x0b\x64istinct_id\x18\x02 \x01(\t\x12\x13\n\x0bmin_version\x18\x03 \x01(\x03"e\n\'SetPersonDistinctIdVersionFloorResponse\x12/\n\x06person\x18\x01 \x01(\x0b\x32\x1a.personhog.types.v1.PersonH\x00\x88\x01\x01\x42\t\n\x07_person"W\n\x1cSetPersonVersionFloorRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x13\n\x0bmin_version\x18\x03 \x01(\x03"0\n\x1dSetPersonVersionFloorResponse\x12\x0f\n\x07updated\x18\x01 \x01(\x08">\n\x12PersonVersionFloor\x12\x13\n\x0bperson_uuid\x18\x01 \x01(\t\x12\x13\n\x0bmin_version\x18\x02 \x01(\x03"k\n EnsurePersonVersionFloorsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x36\n\x06\x66loors\x18\x02 \x03(\x0b\x32&.personhog.types.v1.PersonVersionFloor"z\n\x18PersonVersionFloorResult\x12\x13\n\x0bperson_uuid\x18\x01 \x01(\t\x12\x38\n\x07outcome\x18\x02 \x01(\x0e\x32\'.personhog.types.v1.VersionFloorOutcome\x12\x0f\n\x07version\x18\x03 \x01(\x03"b\n!EnsurePersonVersionFloorsResponse\x12=\n\x07results\x18\x01 \x03(\x0b\x32,.personhog.types.v1.PersonVersionFloorResult"}\n\x12\x46\x65ncePersonRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\r\n\x05op_id\x18\x03 \x01(\t\x12\x34\n\x07op_type\x18\x04 \x01(\x0e\x32#.personhog.types.v1.LifecycleOpType"A\n\x13\x46\x65ncePersonResponse\x12*\n\x06sealed\x18\x01 \x01(\x0b\x32\x1a.personhog.types.v1.Person"\x7f\n\x13\x46\x65ncePersonsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\r\n\x05op_id\x18\x02 \x01(\t\x12\x34\n\x07op_type\x18\x03 \x01(\x0e\x32#.personhog.types.v1.LifecycleOpType\x12\x12\n\nperson_ids\x18\x04 \x03(\x03"_\n\x14\x46\x65ncePersonsResponse\x12\x34\n\x06sealed\x18\x01 \x03(\x0b\x32$.personhog.types.v1.FencedPersonSeal\x12\x11\n\tnot_found\x18\x02 \x03(\x03"J\n\x10\x46\x65ncedPersonSeal\x12\x11\n\tperson_id\x18\x01 \x01(\x03\x12\x0f\n\x07version\x18\x02 \x01(\x03\x12\x12\n\ncreated_at\x18\x03 \x01(\x03"\x8c\x02\n\x13ReleaseFenceRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x13\n\x0bperson_uuid\x18\x03 \x01(\t\x12\r\n\x05op_id\x18\x04 \x01(\t\x12\x33\n\x07outcome\x18\x05 \x01(\x0e\x32".personhog.types.v1.ReleaseOutcome\x12\x1b\n\x0esealed_version\x18\x06 \x01(\x03H\x00\x88\x01\x01\x12\x12\n\ncreated_at\x18\x07 \x01(\x03\x12\x1e\n\x11tombstone_version\x18\x08 \x01(\x03H\x01\x88\x01\x01\x42\x11\n\x0f_sealed_versionB\x14\n\x12_tombstone_version"\x16\n\x14ReleaseFenceResponse"\xa2\x01\n\x14ReleaseFencesRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\r\n\x05op_id\x18\x02 \x01(\t\x12\x33\n\x07outcome\x18\x03 \x01(\x0e\x32".personhog.types.v1.ReleaseOutcome\x12\x35\n\x07persons\x18\x04 \x03(\x0b\x32$.personhog.types.v1.ReleaseFenceItem"\xb4\x01\n\x10ReleaseFenceItem\x12\x11\n\tperson_id\x18\x01 \x01(\x03\x12\x13\n\x0bperson_uuid\x18\x02 \x01(\t\x12\x1b\n\x0esealed_version\x18\x03 \x01(\x03H\x00\x88\x01\x01\x12\x12\n\ncreated_at\x18\x04 \x01(\x03\x12\x1e\n\x11tombstone_version\x18\x05 \x01(\x03H\x01\x88\x01\x01\x42\x11\n\x0f_sealed_versionB\x14\n\x12_tombstone_version"\x17\n\x15ReleaseFencesResponse"S\n\x14SealedSourceSnapshot\x12*\n\x06person\x18\x01 \x01(\x0b\x32\x1a.personhog.types.v1.Person\x12\x0f\n\x07ordinal\x18\x02 \x01(\x05"\xbd\x01\n\x19\x46oldPersonDocumentRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x42\n\x10sealed_snapshots\x18\x03 \x03(\x0b\x32(.personhog.types.v1.SealedSourceSnapshot\x12\x11\n\tevent_set\x18\x04 \x01(\x0c\x12\x16\n\x0e\x65vent_set_once\x18\x05 \x01(\x0c\x12\r\n\x05op_id\x18\x06 \x01(\t"H\n\x1a\x46oldPersonDocumentResponse\x12*\n\x06person\x18\x01 \x01(\x0b\x32\x1a.personhog.types.v1.Person"\xbc\x01\n\rDistinctIdRow\x12\x13\n\x0b\x64istinct_id\x18\x01 \x01(\t\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x18\n\x0bperson_uuid\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x0f\n\x07version\x18\x04 \x01(\x03\x12\x12\n\nis_deleted\x18\x05 \x01(\x08\x12\x1e\n\x11person_is_deleted\x18\x06 \x01(\x08H\x01\x88\x01\x01\x42\x0e\n\x0c_person_uuidB\x14\n\x12_person_is_deleted"x\n\x18GetDistinctIdRowsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x14\n\x0c\x64istinct_ids\x18\x02 \x03(\t\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions"L\n\x19GetDistinctIdRowsResponse\x12/\n\x04rows\x18\x01 \x03(\x0b\x32!.personhog.types.v1.DistinctIdRow"\x86\x01\n\x0fPersonListEntry\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x0c\n\x04uuid\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\x03\x12\x12\n\nis_deleted\x18\x04 \x01(\x08\x12\x1d\n\x15has_live_distinct_ids\x18\x05 \x01(\x08\x12\x15\n\rcreated_at_ms\x18\x06 \x01(\x03"\xbf\x01\n\x19ListPersonsForTeamRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x17\n\x0f\x61\x66ter_person_id\x18\x02 \x01(\x03\x12\r\n\x05limit\x18\x03 \x01(\x03\x12\x35\n\x0cread_options\x18\x04 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions\x12\x1d\n\x10\x62\x65\x66ore_person_id\x18\x05 \x01(\x03H\x00\x88\x01\x01\x42\x13\n\x11_before_person_id"\x8e\x01\n\x1aListPersonsForTeamResponse\x12\x34\n\x07persons\x18\x01 \x03(\x0b\x32#.personhog.types.v1.PersonListEntry\x12!\n\x14next_after_person_id\x18\x02 \x01(\x03H\x00\x88\x01\x01\x42\x17\n\x15_next_after_person_id"j\n\x1fRaisePersonVersionFloorsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x36\n\x06\x66loors\x18\x02 \x03(\x0b\x32&.personhog.types.v1.PersonVersionFloor"x\n\x1dRaisePersonVersionFloorResult\x12\x13\n\x0bperson_uuid\x18\x01 \x01(\t\x12\x31\n\x07outcome\x18\x02 \x01(\x0e\x32 .personhog.types.v1.RaiseOutcome\x12\x0f\n\x07version\x18\x03 \x01(\x03"f\n RaisePersonVersionFloorsResponse\x12\x42\n\x07results\x18\x01 \x03(\x0b\x32\x31.personhog.types.v1.RaisePersonVersionFloorResult"\xb6\x01\n\x0eRestoredPerson\x12\x13\n\x0bperson_uuid\x18\x01 \x01(\t\x12\x12\n\nproperties\x18\x02 \x01(\x0c\x12\x15\n\rcreated_at_ms\x18\x03 \x01(\x03\x12\x15\n\ris_identified\x18\x04 \x01(\x08\x12\x0f\n\x07version\x18\x05 \x01(\x03\x12<\n\x0c\x64istinct_ids\x18\x06 \x03(\x0b\x32&.personhog.types.v1.RestoredDistinctId":\n\x12RestoredDistinctId\x12\x13\n\x0b\x64istinct_id\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x03"]\n\x15RestorePersonsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x33\n\x07persons\x18\x02 \x03(\x0b\x32".personhog.types.v1.RestoredPerson"\xa2\x01\n\x13RestorePersonResult\x12\x13\n\x0bperson_uuid\x18\x01 \x01(\t\x12\x33\n\x07outcome\x18\x02 \x01(\x0e\x32".personhog.types.v1.RestoreOutcome\x12\x11\n\tperson_id\x18\x03 \x01(\x03\x12\x0f\n\x07version\x18\x04 \x01(\x03\x12\x1d\n\x15restored_distinct_ids\x18\x05 \x03(\t"R\n\x16RestorePersonsResponse\x12\x38\n\x07results\x18\x01 \x03(\x0b\x32\'.personhog.types.v1.RestorePersonResult"\xbf\x01\n\x0f\x44istinctIdWrite\x12\x13\n\x0b\x64istinct_id\x18\x01 \x01(\t\x12\x39\n\x06\x61\x63tion\x18\x02 \x01(\x0e\x32).personhog.types.v1.DistinctIdWriteAction\x12\x13\n\x0bperson_uuid\x18\x03 \x01(\t\x12\x13\n\x0bmin_version\x18\x04 \x01(\x03\x12\x1d\n\x10\x65xpected_version\x18\x05 \x01(\x03H\x00\x88\x01\x01\x42\x13\n\x11_expected_version"_\n\x17WriteDistinctIdsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x33\n\x06writes\x18\x02 \x03(\x0b\x32#.personhog.types.v1.DistinctIdWrite"\xa6\x01\n\x15\x44istinctIdWriteResult\x12\x13\n\x0b\x64istinct_id\x18\x01 \x01(\t\x12;\n\x07outcome\x18\x02 \x01(\x0e\x32*.personhog.types.v1.DistinctIdWriteOutcome\x12\x33\n\x03row\x18\x03 \x01(\x0b\x32!.personhog.types.v1.DistinctIdRowH\x00\x88\x01\x01\x42\x06\n\x04_row"V\n\x18WriteDistinctIdsResponse\x12:\n\x07results\x18\x01 \x03(\x0b\x32).personhog.types.v1.DistinctIdWriteResult*y\n\x11\x44\x65letePersonsMode\x12#\n\x1f\x44\x45LETE_PERSONS_MODE_UNSPECIFIED\x10\x00\x12\x1c\n\x18\x44\x45LETE_PERSONS_MODE_HARD\x10\x01\x12!\n\x1d\x44\x45LETE_PERSONS_MODE_TOMBSTONE\x10\x02*\xe4\x01\n\x13VersionFloorOutcome\x12%\n!VERSION_FLOOR_OUTCOME_UNSPECIFIED\x10\x00\x12,\n(VERSION_FLOOR_OUTCOME_TOMBSTONE_INSERTED\x10\x01\x12*\n&VERSION_FLOOR_OUTCOME_TOMBSTONE_RAISED\x10\x02\x12,\n(VERSION_FLOOR_OUTCOME_TOMBSTONE_AT_FLOOR\x10\x03\x12\x1e\n\x1aVERSION_FLOOR_OUTCOME_LIVE\x10\x04*o\n\x0fLifecycleOpType\x12!\n\x1dLIFECYCLE_OP_TYPE_UNSPECIFIED\x10\x00\x12\x1c\n\x18LIFECYCLE_OP_TYPE_DELETE\x10\x01\x12\x1b\n\x17LIFECYCLE_OP_TYPE_MERGE\x10\x02*m\n\x0eReleaseOutcome\x12\x1f\n\x1bRELEASE_OUTCOME_UNSPECIFIED\x10\x00\x12\x1d\n\x19RELEASE_OUTCOME_COMMITTED\x10\x01\x12\x1b\n\x17RELEASE_OUTCOME_ABORTED\x10\x02*\x9d\x01\n\x0cRaiseOutcome\x12\x1d\n\x19RAISE_OUTCOME_UNSPECIFIED\x10\x00\x12\x18\n\x14RAISE_OUTCOME_RAISED\x10\x01\x12\x1d\n\x19RAISE_OUTCOME_AT_OR_ABOVE\x10\x02\x12\x1a\n\x16RAISE_OUTCOME_NOT_LIVE\x10\x03\x12\x19\n\x15RAISE_OUTCOME_MISSING\x10\x04*\xbb\x01\n\x0eRestoreOutcome\x12\x1f\n\x1bRESTORE_OUTCOME_UNSPECIFIED\x10\x00\x12\x1c\n\x18RESTORE_OUTCOME_INSERTED\x10\x01\x12\x1f\n\x1bRESTORE_OUTCOME_EXISTS_LIVE\x10\x02\x12%\n!RESTORE_OUTCOME_EXISTS_TOMBSTONED\x10\x03\x12"\n\x1eRESTORE_OUTCOME_NO_DISTINCT_ID\x10\x04*\x8a\x01\n\x15\x44istinctIdWriteAction\x12(\n$DISTINCT_ID_WRITE_ACTION_UNSPECIFIED\x10\x00\x12#\n\x1f\x44ISTINCT_ID_WRITE_ACTION_INSERT\x10\x01\x12"\n\x1e\x44ISTINCT_ID_WRITE_ACTION_RAISE\x10\x02*\xf5\x01\n\x16\x44istinctIdWriteOutcome\x12)\n%DISTINCT_ID_WRITE_OUTCOME_UNSPECIFIED\x10\x00\x12%\n!DISTINCT_ID_WRITE_OUTCOME_APPLIED\x10\x01\x12\'\n#DISTINCT_ID_WRITE_OUTCOME_UNCHANGED\x10\x02\x12\x31\n-DISTINCT_ID_WRITE_OUTCOME_PRECONDITION_FAILED\x10\x03\x12-\n)DISTINCT_ID_WRITE_OUTCOME_PERSON_NOT_LIVE\x10\x04\x62\x06proto3')_globals = globals()@@ -31,22 +31,22 @@ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "personhog.types.v1.person_pb2", _globals)if not _descriptor._USE_C_DESCRIPTORS:DESCRIPTOR._loaded_options = None- _globals["_DELETEPERSONSMODE"]._serialized_start = 9629- _globals["_DELETEPERSONSMODE"]._serialized_end = 9750- _globals["_VERSIONFLOOROUTCOME"]._serialized_start = 9753- _globals["_VERSIONFLOOROUTCOME"]._serialized_end = 9981- _globals["_LIFECYCLEOPTYPE"]._serialized_start = 9983- _globals["_LIFECYCLEOPTYPE"]._serialized_end = 10094- _globals["_RELEASEOUTCOME"]._serialized_start = 10096- _globals["_RELEASEOUTCOME"]._serialized_end = 10205- _globals["_RAISEOUTCOME"]._serialized_start = 10208- _globals["_RAISEOUTCOME"]._serialized_end = 10365- _globals["_RESTOREOUTCOME"]._serialized_start = 10368- _globals["_RESTOREOUTCOME"]._serialized_end = 10555- _globals["_DISTINCTIDWRITEACTION"]._serialized_start = 10558- _globals["_DISTINCTIDWRITEACTION"]._serialized_end = 10696- _globals["_DISTINCTIDWRITEOUTCOME"]._serialized_start = 10699- _globals["_DISTINCTIDWRITEOUTCOME"]._serialized_end = 10944+ _globals["_DELETEPERSONSMODE"]._serialized_start = 9738+ _globals["_DELETEPERSONSMODE"]._serialized_end = 9859+ _globals["_VERSIONFLOOROUTCOME"]._serialized_start = 9862+ _globals["_VERSIONFLOOROUTCOME"]._serialized_end = 10090+ _globals["_LIFECYCLEOPTYPE"]._serialized_start = 10092+ _globals["_LIFECYCLEOPTYPE"]._serialized_end = 10203+ _globals["_RELEASEOUTCOME"]._serialized_start = 10205+ _globals["_RELEASEOUTCOME"]._serialized_end = 10314+ _globals["_RAISEOUTCOME"]._serialized_start = 10317+ _globals["_RAISEOUTCOME"]._serialized_end = 10474+ _globals["_RESTOREOUTCOME"]._serialized_start = 10477+ _globals["_RESTOREOUTCOME"]._serialized_end = 10664+ _globals["_DISTINCTIDWRITEACTION"]._serialized_start = 10667+ _globals["_DISTINCTIDWRITEACTION"]._serialized_end = 10805+ _globals["_DISTINCTIDWRITEOUTCOME"]._serialized_start = 10808+ _globals["_DISTINCTIDWRITEOUTCOME"]._serialized_end = 11053_globals["_PERSON"]._serialized_start = 89_globals["_PERSON"]._serialized_end = 395_globals["_DISTINCTIDWITHVERSION"]._serialized_start = 397@@ -158,55 +158,55 @@ if not _descriptor._USE_C_DESCRIPTORS:_globals["_FENCEDPERSONSEAL"]._serialized_start = 6305_globals["_FENCEDPERSONSEAL"]._serialized_end = 6379_globals["_RELEASEFENCEREQUEST"]._serialized_start = 6382- _globals["_RELEASEFENCEREQUEST"]._serialized_end = 6596- _globals["_RELEASEFENCERESPONSE"]._serialized_start = 6598- _globals["_RELEASEFENCERESPONSE"]._serialized_end = 6620- _globals["_RELEASEFENCESREQUEST"]._serialized_start = 6623- _globals["_RELEASEFENCESREQUEST"]._serialized_end = 6785- _globals["_RELEASEFENCEITEM"]._serialized_start = 6787- _globals["_RELEASEFENCEITEM"]._serialized_end = 6913- _globals["_RELEASEFENCESRESPONSE"]._serialized_start = 6915- _globals["_RELEASEFENCESRESPONSE"]._serialized_end = 6938- _globals["_SEALEDSOURCESNAPSHOT"]._serialized_start = 6940- _globals["_SEALEDSOURCESNAPSHOT"]._serialized_end = 7023- _globals["_FOLDPERSONDOCUMENTREQUEST"]._serialized_start = 7026- _globals["_FOLDPERSONDOCUMENTREQUEST"]._serialized_end = 7215- _globals["_FOLDPERSONDOCUMENTRESPONSE"]._serialized_start = 7217- _globals["_FOLDPERSONDOCUMENTRESPONSE"]._serialized_end = 7289- _globals["_DISTINCTIDROW"]._serialized_start = 7292- _globals["_DISTINCTIDROW"]._serialized_end = 7480- _globals["_GETDISTINCTIDROWSREQUEST"]._serialized_start = 7482- _globals["_GETDISTINCTIDROWSREQUEST"]._serialized_end = 7602- _globals["_GETDISTINCTIDROWSRESPONSE"]._serialized_start = 7604- _globals["_GETDISTINCTIDROWSRESPONSE"]._serialized_end = 7680- _globals["_PERSONLISTENTRY"]._serialized_start = 7683- _globals["_PERSONLISTENTRY"]._serialized_end = 7817- _globals["_LISTPERSONSFORTEAMREQUEST"]._serialized_start = 7820- _globals["_LISTPERSONSFORTEAMREQUEST"]._serialized_end = 8011- _globals["_LISTPERSONSFORTEAMRESPONSE"]._serialized_start = 8014- _globals["_LISTPERSONSFORTEAMRESPONSE"]._serialized_end = 8156- _globals["_RAISEPERSONVERSIONFLOORSREQUEST"]._serialized_start = 8158- _globals["_RAISEPERSONVERSIONFLOORSREQUEST"]._serialized_end = 8264- _globals["_RAISEPERSONVERSIONFLOORRESULT"]._serialized_start = 8266- _globals["_RAISEPERSONVERSIONFLOORRESULT"]._serialized_end = 8386- _globals["_RAISEPERSONVERSIONFLOORSRESPONSE"]._serialized_start = 8388- _globals["_RAISEPERSONVERSIONFLOORSRESPONSE"]._serialized_end = 8490- _globals["_RESTOREDPERSON"]._serialized_start = 8493- _globals["_RESTOREDPERSON"]._serialized_end = 8675- _globals["_RESTOREDDISTINCTID"]._serialized_start = 8677- _globals["_RESTOREDDISTINCTID"]._serialized_end = 8735- _globals["_RESTOREPERSONSREQUEST"]._serialized_start = 8737- _globals["_RESTOREPERSONSREQUEST"]._serialized_end = 8830- _globals["_RESTOREPERSONRESULT"]._serialized_start = 8833- _globals["_RESTOREPERSONRESULT"]._serialized_end = 8995- _globals["_RESTOREPERSONSRESPONSE"]._serialized_start = 8997- _globals["_RESTOREPERSONSRESPONSE"]._serialized_end = 9079- _globals["_DISTINCTIDWRITE"]._serialized_start = 9082- _globals["_DISTINCTIDWRITE"]._serialized_end = 9273- _globals["_WRITEDISTINCTIDSREQUEST"]._serialized_start = 9275- _globals["_WRITEDISTINCTIDSREQUEST"]._serialized_end = 9370- _globals["_DISTINCTIDWRITERESULT"]._serialized_start = 9373- _globals["_DISTINCTIDWRITERESULT"]._serialized_end = 9539- _globals["_WRITEDISTINCTIDSRESPONSE"]._serialized_start = 9541- _globals["_WRITEDISTINCTIDSRESPONSE"]._serialized_end = 9627+ _globals["_RELEASEFENCEREQUEST"]._serialized_end = 6650+ _globals["_RELEASEFENCERESPONSE"]._serialized_start = 6652+ _globals["_RELEASEFENCERESPONSE"]._serialized_end = 6674+ _globals["_RELEASEFENCESREQUEST"]._serialized_start = 6677+ _globals["_RELEASEFENCESREQUEST"]._serialized_end = 6839+ _globals["_RELEASEFENCEITEM"]._serialized_start = 6842+ _globals["_RELEASEFENCEITEM"]._serialized_end = 7022+ _globals["_RELEASEFENCESRESPONSE"]._serialized_start = 7024+ _globals["_RELEASEFENCESRESPONSE"]._serialized_end = 7047+ _globals["_SEALEDSOURCESNAPSHOT"]._serialized_start = 7049+ _globals["_SEALEDSOURCESNAPSHOT"]._serialized_end = 7132+ _globals["_FOLDPERSONDOCUMENTREQUEST"]._serialized_start = 7135+ _globals["_FOLDPERSONDOCUMENTREQUEST"]._serialized_end = 7324+ _globals["_FOLDPERSONDOCUMENTRESPONSE"]._serialized_start = 7326+ _globals["_FOLDPERSONDOCUMENTRESPONSE"]._serialized_end = 7398+ _globals["_DISTINCTIDROW"]._serialized_start = 7401+ _globals["_DISTINCTIDROW"]._serialized_end = 7589+ _globals["_GETDISTINCTIDROWSREQUEST"]._serialized_start = 7591+ _globals["_GETDISTINCTIDROWSREQUEST"]._serialized_end = 7711+ _globals["_GETDISTINCTIDROWSRESPONSE"]._serialized_start = 7713+ _globals["_GETDISTINCTIDROWSRESPONSE"]._serialized_end = 7789+ _globals["_PERSONLISTENTRY"]._serialized_start = 7792+ _globals["_PERSONLISTENTRY"]._serialized_end = 7926+ _globals["_LISTPERSONSFORTEAMREQUEST"]._serialized_start = 7929+ _globals["_LISTPERSONSFORTEAMREQUEST"]._serialized_end = 8120+ _globals["_LISTPERSONSFORTEAMRESPONSE"]._serialized_start = 8123+ _globals["_LISTPERSONSFORTEAMRESPONSE"]._serialized_end = 8265+ _globals["_RAISEPERSONVERSIONFLOORSREQUEST"]._serialized_start = 8267+ _globals["_RAISEPERSONVERSIONFLOORSREQUEST"]._serialized_end = 8373+ _globals["_RAISEPERSONVERSIONFLOORRESULT"]._serialized_start = 8375+ _globals["_RAISEPERSONVERSIONFLOORRESULT"]._serialized_end = 8495+ _globals["_RAISEPERSONVERSIONFLOORSRESPONSE"]._serialized_start = 8497+ _globals["_RAISEPERSONVERSIONFLOORSRESPONSE"]._serialized_end = 8599+ _globals["_RESTOREDPERSON"]._serialized_start = 8602+ _globals["_RESTOREDPERSON"]._serialized_end = 8784+ _globals["_RESTOREDDISTINCTID"]._serialized_start = 8786+ _globals["_RESTOREDDISTINCTID"]._serialized_end = 8844+ _globals["_RESTOREPERSONSREQUEST"]._serialized_start = 8846+ _globals["_RESTOREPERSONSREQUEST"]._serialized_end = 8939+ _globals["_RESTOREPERSONRESULT"]._serialized_start = 8942+ _globals["_RESTOREPERSONRESULT"]._serialized_end = 9104+ _globals["_RESTOREPERSONSRESPONSE"]._serialized_start = 9106+ _globals["_RESTOREPERSONSRESPONSE"]._serialized_end = 9188+ _globals["_DISTINCTIDWRITE"]._serialized_start = 9191+ _globals["_DISTINCTIDWRITE"]._serialized_end = 9382+ _globals["_WRITEDISTINCTIDSREQUEST"]._serialized_start = 9384+ _globals["_WRITEDISTINCTIDSREQUEST"]._serialized_end = 9479+ _globals["_DISTINCTIDWRITERESULT"]._serialized_start = 9482+ _globals["_DISTINCTIDWRITERESULT"]._serialized_end = 9648+ _globals["_WRITEDISTINCTIDSRESPONSE"]._serialized_start = 9650+ _globals["_WRITEDISTINCTIDSRESPONSE"]._serialized_end = 9736# @@protoc_insertion_point(module_scope)diff --git a/packages/personhog-proto/personhog/types/v1/person_pb2.pyi b/packages/personhog-proto/personhog/types/v1/person_pb2.pyiindex 356255fc3699..e68681bb6d98 100644--- a/packages/personhog-proto/personhog/types/v1/person_pb2.pyi+++ b/packages/personhog-proto/personhog/types/v1/person_pb2.pyi@@ -847,7 +847,16 @@ class FencedPersonSeal(_message.Message):) -> None: ...class ReleaseFenceRequest(_message.Message):- __slots__ = ("team_id", "person_id", "person_uuid", "op_id", "outcome", "sealed_version", "created_at")+ __slots__ = (+ "team_id",+ "person_id",+ "person_uuid",+ "op_id",+ "outcome",+ "sealed_version",+ "created_at",+ "tombstone_version",+ )TEAM_ID_FIELD_NUMBER: _ClassVar[int]PERSON_ID_FIELD_NUMBER: _ClassVar[int]PERSON_UUID_FIELD_NUMBER: _ClassVar[int]@@ -855,6 +864,7 @@ class ReleaseFenceRequest(_message.Message):OUTCOME_FIELD_NUMBER: _ClassVar[int]SEALED_VERSION_FIELD_NUMBER: _ClassVar[int]CREATED_AT_FIELD_NUMBER: _ClassVar[int]+ TOMBSTONE_VERSION_FIELD_NUMBER: _ClassVar[int]team_id: intperson_id: intperson_uuid: str@@ -862,6 +872,7 @@ class ReleaseFenceRequest(_message.Message):outcome: ReleaseOutcomesealed_version: intcreated_at: int+ tombstone_version: intdef __init__(self,team_id: _Optional[int] = ...,@@ -871,6 +882,7 @@ class ReleaseFenceRequest(_message.Message):outcome: _Optional[_Union[ReleaseOutcome, str]] = ...,sealed_version: _Optional[int] = ...,created_at: _Optional[int] = ...,+ tombstone_version: _Optional[int] = ...,) -> None: ...class ReleaseFenceResponse(_message.Message):@@ -896,21 +908,24 @@ class ReleaseFencesRequest(_message.Message):) -> None: ...class ReleaseFenceItem(_message.Message):- __slots__ = ("person_id", "person_uuid", "sealed_version", "created_at")+ __slots__ = ("person_id", "person_uuid", "sealed_version", "created_at", "tombstone_version")PERSON_ID_FIELD_NUMBER: _ClassVar[int]PERSON_UUID_FIELD_NUMBER: _ClassVar[int]SEALED_VERSION_FIELD_NUMBER: _ClassVar[int]CREATED_AT_FIELD_NUMBER: _ClassVar[int]+ TOMBSTONE_VERSION_FIELD_NUMBER: _ClassVar[int]person_id: intperson_uuid: strsealed_version: intcreated_at: int+ tombstone_version: intdef __init__(self,person_id: _Optional[int] = ...,person_uuid: _Optional[str] = ...,sealed_version: _Optional[int] = ...,created_at: _Optional[int] = ...,+ tombstone_version: _Optional[int] = ...,) -> None: ...class ReleaseFencesResponse(_message.Message):diff --git a/proto/personhog/leader/v1/leader.proto b/proto/personhog/leader/v1/leader.protoindex 98e60882b0a2..1a8962adac6e 100644--- a/proto/personhog/leader/v1/leader.proto+++ b/proto/personhog/leader/v1/leader.proto@@ -48,8 +48,12 @@ service PersonHogLeader {// holds no live mark is refused FAILED_PRECONDITION (fail closed) —// then produce the death document to the changelog — is_deleted =// true, version = max(sealed_version, current) + 1 (sealed + 1 per the- // RFC; the max is defense in depth until broker producer fencing lands)- // — then evict the cache entry and drop the fence. `aborted`: drop the+ // RFC; the max is defense in depth until broker producer fencing lands),+ // raised to the request's tombstone_version when that is higher, so the+ // changelog never relays a live version over the saga's Postgres+ // tombstone; a tombstone_version at or below sealed_version is refused+ // INVALID_ARGUMENT with the fence kept — then evict the cache entry and+ // drop the fence. `aborted`: drop the// fence, keep the entry, produce nothing; the person resumes normal// life. Idempotent — the request carries everything needed to re-derive// the death document, so a restarted leader produces itdiff --git a/proto/personhog/lifecycle/v1/lifecycle.proto b/proto/personhog/lifecycle/v1/lifecycle.protoindex 7c5fca2863f8..30e907d489ca 100644--- a/proto/personhog/lifecycle/v1/lifecycle.proto+++ b/proto/personhog/lifecycle/v1/lifecycle.proto@@ -30,6 +30,15 @@ enum DeletePersonOutcome {message DeletePersonResult {int64 person_id = 1;DeletePersonOutcome outcome = 2;+ // The version the person's Postgres tombstone committed at, set when+ // outcome = DELETED. A lower bound on the row's final version, not the+ // final version: the leader may produce the death document higher, and+ // the writer moves the row there. A caller that publishes its own+ // ClickHouse person tombstone uses this version; never use it as a+ // revival or version floor. The distinct-id tombstones are published+ // from the outbox. Absent for an operation recorded before this field+ // existed.+ optional int64 person_version = 3;}message DeletePersonsResponse {diff --git a/proto/personhog/types/v1/person.proto b/proto/personhog/types/v1/person.protoindex c5e447b753e7..d8ab1d5cae09 100644--- a/proto/personhog/types/v1/person.proto+++ b/proto/personhog/types/v1/person.proto@@ -19,7 +19,8 @@ message Person {// Epoch milliseconds (matching created_at); the writer decodes it as such.optional int64 last_seen_at = 11;// True on a death document: the changelog record the leader produces when- // a lifecycle saga destroys the person (version = sealed_version + 1).+ // a lifecycle saga destroys the person, at sealed_version + 1 or at the+ // saga's tombstone version when that is higher.// Consumers treat the person as gone; the writer projects it as the// Postgres tombstone. proto3 default (false) keeps old records live.bool is_deleted = 12;@@ -519,7 +520,8 @@ message ReleaseFenceRequest {string op_id = 4;ReleaseOutcome outcome = 5;// The version sealed at fence time. The death document is produced at- // sealed_version + 1. Required when outcome = COMMITTED. Explicitly+ // sealed_version + 1, raised to tombstone_version when that is higher.+ // Required when outcome = COMMITTED. Explicitly// optional because 0 is a legitimate sealed version — a fresh person// stub is created at version 0 — so absence must stay distinguishable// from it.@@ -532,6 +534,16 @@ message ReleaseFenceRequest {// projects it onto the tombstone row. Required when outcome =// COMMITTED.int64 created_at = 7;+ // The version the saga's Postgres tombstone committed at: at least+ // sealed_version + 1, higher when a direct Postgres writer bumped the+ // row between the fence and the tombstone. The death document is+ // produced at or above it, so the changelog never carries a live+ // version below the tombstone. A value at or below sealed_version is+ // refused INVALID_ARGUMENT with the fence kept: the saga never+ // tombstones below sealed + 1, so such a value is a caller bug.+ // Optional for ops unmapped before this field existed; absent means+ // sealed_version + 1.+ optional int64 tombstone_version = 8;}enum ReleaseOutcome {@@ -561,6 +573,8 @@ message ReleaseFenceItem {optional int64 sealed_version = 3;// See ReleaseFenceRequest.created_at.int64 created_at = 4;+ // See ReleaseFenceRequest.tombstone_version.+ optional int64 tombstone_version = 5;}message ReleaseFencesResponse {}diff --git a/rust/personhog-identity/.sqlx/query-069ead94352d12636cf60b05fba9250ece039fa37f813339acb86cf044054c76.json b/rust/personhog-identity/.sqlx/query-069ead94352d12636cf60b05fba9250ece039fa37f813339acb86cf044054c76.jsonnew file mode 100644index 000000000000..acba9079f533--- /dev/null+++ b/rust/personhog-identity/.sqlx/query-069ead94352d12636cf60b05fba9250ece039fa37f813339acb86cf044054c76.json@@ -0,0 +1,16 @@+{+ "db_name": "PostgreSQL",+ "query": "/* service='personhog-identity', operation='delete_unmap_record_tombstone_versions' */ \n UPDATE lifecycle_op_person lop\n SET sealed = lop.sealed || jsonb_build_object('tombstone_version', u.version)\n FROM unnest($2::bigint[], $3::bigint[]) AS u(person_id, version)\n WHERE lop.op_id = $1 AND lop.person_id = u.person_id\n ",+ "describe": {+ "columns": [],+ "parameters": {+ "Left": [+ "Uuid",+ "Int8Array",+ "Int8Array"+ ]+ },+ "nullable": []+ },+ "hash": "069ead94352d12636cf60b05fba9250ece039fa37f813339acb86cf044054c76"+}diff --git a/rust/personhog-identity/.sqlx/query-40fec37faa1478341406ebdd60193ba65ccf2ccf9d778ad288021744bb02aae7.json b/rust/personhog-identity/.sqlx/query-62c718dbb1d12a754f3f4fee0b20371c558521ff60f6ddbfeaccd49f0b57fd89.jsonsimilarity index 52%rename from rust/personhog-identity/.sqlx/query-40fec37faa1478341406ebdd60193ba65ccf2ccf9d778ad288021744bb02aae7.jsonrename to rust/personhog-identity/.sqlx/query-62c718dbb1d12a754f3f4fee0b20371c558521ff60f6ddbfeaccd49f0b57fd89.jsonindex 9f6648bdf215..06eed2b3132c 100644--- a/rust/personhog-identity/.sqlx/query-40fec37faa1478341406ebdd60193ba65ccf2ccf9d778ad288021744bb02aae7.json+++ b/rust/personhog-identity/.sqlx/query-62c718dbb1d12a754f3f4fee0b20371c558521ff60f6ddbfeaccd49f0b57fd89.json@@ -1,6 +1,6 @@{"db_name": "PostgreSQL",- "query": "/* service='personhog-identity', operation='delete_outcome' */ SELECT person_id, status FROM lifecycle_op_person_tmp WHERE op_id = $1",+ "query": "/* service='personhog-identity', operation='delete_outcome' */ \n SELECT person_id, status,\n (sealed->>'tombstone_version')::bigint AS \"tombstone_version?\"\n FROM lifecycle_op_person WHERE op_id = $1\n ","describe": {"columns": [{@@ -12,6 +12,11 @@"ordinal": 1,"name": "status","type_info": "Text"+ },+ {+ "ordinal": 2,+ "name": "tombstone_version?",+ "type_info": "Int8"}],"parameters": {@@ -21,8 +26,9 @@},"nullable": [false,- false+ false,+ null]},- "hash": "40fec37faa1478341406ebdd60193ba65ccf2ccf9d778ad288021744bb02aae7"+ "hash": "62c718dbb1d12a754f3f4fee0b20371c558521ff60f6ddbfeaccd49f0b57fd89"}diff --git a/rust/personhog-identity/.sqlx/query-8b4e5edf43d7df603178f8211f88fd65e45752d81c4e5f18beb84fb4fa96f5c7.json b/rust/personhog-identity/.sqlx/query-8b4e5edf43d7df603178f8211f88fd65e45752d81c4e5f18beb84fb4fa96f5c7.jsonnew file mode 100644index 000000000000..60aa24897abc--- /dev/null+++ b/rust/personhog-identity/.sqlx/query-8b4e5edf43d7df603178f8211f88fd65e45752d81c4e5f18beb84fb4fa96f5c7.json@@ -0,0 +1,16 @@+{+ "db_name": "PostgreSQL",+ "query": "/* service='personhog-identity', operation='delete_unmap_record_tombstone_versions' */ \n UPDATE lifecycle_op_person_tmp lop\n SET sealed = lop.sealed || jsonb_build_object('tombstone_version', u.version)\n FROM unnest($2::bigint[], $3::bigint[]) AS u(person_id, version)\n WHERE lop.op_id = $1 AND lop.person_id = u.person_id\n ",+ "describe": {+ "columns": [],+ "parameters": {+ "Left": [+ "Uuid",+ "Int8Array",+ "Int8Array"+ ]+ },+ "nullable": []+ },+ "hash": "8b4e5edf43d7df603178f8211f88fd65e45752d81c4e5f18beb84fb4fa96f5c7"+}diff --git a/rust/personhog-identity/.sqlx/query-d524872c6e41125f331b248319c9dd667f3060372332ae87a5e20c97682b0ce0.json b/rust/personhog-identity/.sqlx/query-c7097d06c95b70dde41d49da148d158c6092d83b80d64bc7c99b01e9212fe5d1.jsonsimilarity index 66%rename from rust/personhog-identity/.sqlx/query-d524872c6e41125f331b248319c9dd667f3060372332ae87a5e20c97682b0ce0.jsonrename to rust/personhog-identity/.sqlx/query-c7097d06c95b70dde41d49da148d158c6092d83b80d64bc7c99b01e9212fe5d1.jsonindex 590f4623437e..10eda8c0cd08 100644--- a/rust/personhog-identity/.sqlx/query-d524872c6e41125f331b248319c9dd667f3060372332ae87a5e20c97682b0ce0.json+++ b/rust/personhog-identity/.sqlx/query-c7097d06c95b70dde41d49da148d158c6092d83b80d64bc7c99b01e9212fe5d1.json@@ -1,6 +1,6 @@{"db_name": "PostgreSQL",- "query": "/* service='personhog-identity', operation='delete_complete_fenced' */ \n SELECT person_id, person_uuid,\n (sealed->>'version')::bigint AS \"sealed_version!\",\n (sealed->>'created_at')::bigint AS \"sealed_created_at!\"\n FROM lifecycle_op_person\n WHERE op_id = $1 AND status = 'sealed' AND sealed ? 'created_at'\n ORDER BY person_id\n ",+ "query": "/* service='personhog-identity', operation='delete_complete_fenced' */ \n SELECT person_id, person_uuid,\n (sealed->>'version')::bigint AS \"sealed_version!\",\n (sealed->>'created_at')::bigint AS \"sealed_created_at!\",\n (sealed->>'tombstone_version')::bigint AS \"tombstone_version?\"\n FROM lifecycle_op_person\n WHERE op_id = $1 AND status = 'sealed' AND sealed ? 'created_at'\n ORDER BY person_id\n ","describe": {"columns": [{@@ -22,6 +22,11 @@"ordinal": 3,"name": "sealed_created_at!","type_info": "Int8"+ },+ {+ "ordinal": 4,+ "name": "tombstone_version?",+ "type_info": "Int8"}],"parameters": {@@ -33,8 +38,9 @@false,false,null,+ null,null]},- "hash": "d524872c6e41125f331b248319c9dd667f3060372332ae87a5e20c97682b0ce0"+ "hash": "c7097d06c95b70dde41d49da148d158c6092d83b80d64bc7c99b01e9212fe5d1"}diff --git a/rust/personhog-identity/.sqlx/query-e093dbe9a953632d6909e10522e4d367b58c48bc8f27841624b1429ce825dc12.json b/rust/personhog-identity/.sqlx/query-d3fcc7754215c1821d45ee03681d0123b08aaf07be40022fd4ec025acfa18c66.jsonsimilarity index 66%rename from rust/personhog-identity/.sqlx/query-e093dbe9a953632d6909e10522e4d367b58c48bc8f27841624b1429ce825dc12.jsonrename to rust/personhog-identity/.sqlx/query-d3fcc7754215c1821d45ee03681d0123b08aaf07be40022fd4ec025acfa18c66.jsonindex b9f306355ca9..48e932ec0cb3 100644--- a/rust/personhog-identity/.sqlx/query-e093dbe9a953632d6909e10522e4d367b58c48bc8f27841624b1429ce825dc12.json+++ b/rust/personhog-identity/.sqlx/query-d3fcc7754215c1821d45ee03681d0123b08aaf07be40022fd4ec025acfa18c66.json@@ -1,6 +1,6 @@{"db_name": "PostgreSQL",- "query": "/* service='personhog-identity', operation='delete_complete_fenced' */ \n SELECT person_id, person_uuid,\n (sealed->>'version')::bigint AS \"sealed_version!\",\n (sealed->>'created_at')::bigint AS \"sealed_created_at!\"\n FROM lifecycle_op_person_tmp\n WHERE op_id = $1 AND status = 'sealed' AND sealed ? 'created_at'\n ORDER BY person_id\n ",+ "query": "/* service='personhog-identity', operation='delete_complete_fenced' */ \n SELECT person_id, person_uuid,\n (sealed->>'version')::bigint AS \"sealed_version!\",\n (sealed->>'created_at')::bigint AS \"sealed_created_at!\",\n (sealed->>'tombstone_version')::bigint AS \"tombstone_version?\"\n FROM lifecycle_op_person_tmp\n WHERE op_id = $1 AND status = 'sealed' AND sealed ? 'created_at'\n ORDER BY person_id\n ","describe": {"columns": [{@@ -22,6 +22,11 @@"ordinal": 3,"name": "sealed_created_at!","type_info": "Int8"+ },+ {+ "ordinal": 4,+ "name": "tombstone_version?",+ "type_info": "Int8"}],"parameters": {@@ -33,8 +38,9 @@false,false,null,+ null,null]},- "hash": "e093dbe9a953632d6909e10522e4d367b58c48bc8f27841624b1429ce825dc12"+ "hash": "d3fcc7754215c1821d45ee03681d0123b08aaf07be40022fd4ec025acfa18c66"}diff --git a/rust/personhog-identity/.sqlx/query-eae79d01a57bf14f32e7b347cdcaab99c680e54031d80f3385cfc3151b61f4f0.json b/rust/personhog-identity/.sqlx/query-f73ecc044e1a17b191f24dac2c3bd6e4c3a849758b0329393dffa6b3abf7043d.jsonsimilarity index 51%rename from rust/personhog-identity/.sqlx/query-eae79d01a57bf14f32e7b347cdcaab99c680e54031d80f3385cfc3151b61f4f0.jsonrename to rust/personhog-identity/.sqlx/query-f73ecc044e1a17b191f24dac2c3bd6e4c3a849758b0329393dffa6b3abf7043d.jsonindex 0215e71e96be..0601a2e874a9 100644--- a/rust/personhog-identity/.sqlx/query-eae79d01a57bf14f32e7b347cdcaab99c680e54031d80f3385cfc3151b61f4f0.json+++ b/rust/personhog-identity/.sqlx/query-f73ecc044e1a17b191f24dac2c3bd6e4c3a849758b0329393dffa6b3abf7043d.json@@ -1,6 +1,6 @@{"db_name": "PostgreSQL",- "query": "/* service='personhog-identity', operation='delete_outcome' */ SELECT person_id, status FROM lifecycle_op_person WHERE op_id = $1",+ "query": "/* service='personhog-identity', operation='delete_outcome' */ \n SELECT person_id, status,\n (sealed->>'tombstone_version')::bigint AS \"tombstone_version?\"\n FROM lifecycle_op_person_tmp WHERE op_id = $1\n ","describe": {"columns": [{@@ -12,6 +12,11 @@"ordinal": 1,"name": "status","type_info": "Text"+ },+ {+ "ordinal": 2,+ "name": "tombstone_version?",+ "type_info": "Int8"}],"parameters": {@@ -21,8 +26,9 @@},"nullable": [false,- false+ false,+ null]},- "hash": "eae79d01a57bf14f32e7b347cdcaab99c680e54031d80f3385cfc3151b61f4f0"+ "hash": "f73ecc044e1a17b191f24dac2c3bd6e4c3a849758b0329393dffa6b3abf7043d"}diff --git a/rust/personhog-identity/src/lifecycle/delete.rs b/rust/personhog-identity/src/lifecycle/delete.rsindex 7afb4d66d79a..2d4552ab9678 100644--- a/rust/personhog-identity/src/lifecycle/delete.rs+++ b/rust/personhog-identity/src/lifecycle/delete.rs@@ -9,9 +9,12 @@//! `ReleaseFences` per partition, which produces the death documents and//! evicts the leaders' cache entries. The unmapped transaction still//! writes the person tombstone directly: it is the durable revival floor-//! the sync plane reads (sanctioned by the RFC); the death document-//! confirms it downstream (writer, ClickHouse) at the same version,-//! sealed + 1. The distinct-id rows tombstoned by an op are recorded in+//! the sync plane reads (sanctioned by the RFC). Its version is the+//! greater of the row's own version + 1 and sealed + 1: the fence stops+//! leader writes, not a direct Postgres writer, so the row may have moved+//! past the seal. The committed version rides the release, and the death+//! document confirms the tombstone downstream (writer, ClickHouse) at or+//! above it. The distinct-id rows tombstoned by an op are recorded in//! each victim row's `moved` column, so nothing needed for later emission//! is lost.//!@@ -96,6 +99,10 @@ pub struct DeleteOutcome {pub struct DeletePersonRecord {pub person_id: i64,pub outcome: String,+ /// The version the person's tombstone committed at; set for `deleted`.+ /// Defaulted so outcomes recorded before the field existed still parse.+ #[serde(default, skip_serializing_if = "Option::is_none")]+ pub person_version: Option<i64>,}pub const OUTCOME_DELETED: &str = "deleted";@@ -110,6 +117,10 @@ const STATUS_SKIPPED_CONFLICT: &str = "skipped_conflict";const STEPS_TOTAL: &str = "personhog_lifecycle_delete_steps_total";const OUTCOMES_TOTAL: &str = "personhog_lifecycle_delete_outcomes_total";+/// Victims whose tombstone landed above sealed + 1: the row moved past the+/// seal before the unmap, through a direct Postgres writer or a changelog+/// record the sealing leader never emitted. The fence covers neither.+const TOMBSTONES_ABOVE_SEAL_TOTAL: &str = "personhog_lifecycle_delete_tombstones_above_seal_total";/// Call after a step's transaction commits — a commit means the step CAS was/// won, so each transition is counted exactly once across concurrent drivers.@@ -145,6 +156,7 @@ fn record_outcomes(outcome: &Value) {struct PersonStatus {person_id: i64,status: String,+ tombstone_version: Option<i64>,}pub struct DeleteDriver {@@ -516,9 +528,11 @@ async fn seal(/// commit that bumps them), clear cohort membership and feature-flag/// hash-key overrides, and tombstone the person rows themselves — properties/// scrubbed (the GDPR erasure; the retained uuid is not PII), version parked-/// at sealed + 1 so the tombstone outranks every write the old incarnation-/// ever produced. Revival (a later create on the same key) upserts above-/// this version.+/// at the greater of the row's version + 1 and sealed + 1 so the tombstone+/// outranks every write the old incarnation ever produced, whether it went+/// through the leader or straight to Postgres. The committed version is+/// recorded in the victim's `sealed` jsonb for the release and the outcome.+/// Revival (a later create on the same key) upserts above this version.async fn unmap(pools: &IdentityPools,tables: &IdentityTables,@@ -650,19 +664,50 @@ async fn unmap(properties = '{{}}'::jsonb,properties_last_updated_at = '{{}}'::jsonb,properties_last_operation = '{{}}'::jsonb,- version = (lop.sealed->>'version')::bigint + 1+ version = GREATEST(COALESCE(p.version, 0) + 1, (lop.sealed->>'version')::bigint + 1)FROM {lop_table} lopWHERE lop.op_id = $1 AND lop.status = 'sealed'AND p.team_id = $2 AND p.id = lop.person_id+ RETURNING p.id, p.version, (lop.sealed->>'version')::bigint"#,person_table = tables.person,lop_table = tables.lifecycle_op_person,);- sqlx::query(&query_tag!("delete_unmap_tombstone_persons", tombstone_sql))- .bind(op.op_id)- .bind(team_id)- .execute(&mut *tx)- .await?;+ let tombstoned_persons: Vec<(i64, i64, Option<i64>)> =+ sqlx::query_as(&query_tag!("delete_unmap_tombstone_persons", tombstone_sql))+ .bind(op.op_id)+ .bind(team_id)+ .fetch_all(&mut *tx)+ .await?;+ let moved_above_seal: Vec<(i64, i64, i64)> = tombstoned_persons+ .iter()+ .filter_map(|(id, version, sealed)| {+ sealed+ .filter(|sealed| *version > sealed + 1)+ .map(|sealed| (*id, sealed, *version))+ })+ .collect();++ // The committed version joins the seal so the release carries it to the+ // leader and the outcome reports it, under the same step CAS.+ let (tombstoned_ids, tombstone_versions): (Vec<i64>, Vec<i64>) = tombstoned_persons+ .into_iter()+ .map(|(id, version, _)| (id, version))+ .unzip();+ mirrored_query!(+ tables.is_validation(),+ op = "delete_unmap_record_tombstone_versions",+ r#"+ UPDATE {lifecycle_op_person} lop+ SET sealed = lop.sealed || jsonb_build_object('tombstone_version', u.version)+ FROM unnest($2::bigint[], $3::bigint[]) AS u(person_id, version)+ WHERE lop.op_id = $1 AND lop.person_id = u.person_id+ "#,+ op.op_id,+ &tombstoned_ids,+ &tombstone_versions+ => execute(&mut *tx)+ )?;if !advance_step_in_tx(&mut tx,@@ -678,6 +723,20 @@ async fn unmap(}tx.commit().await?;record_transition(DeleteStep::Sealed.as_str(), DeleteStep::Unmapped.as_str());+ if !moved_above_seal.is_empty() {+ tracing::warn!(+ op_id = %op.op_id,+ team_id,+ persons = moved_above_seal.len(),+ person_sealed_tombstone = ?moved_above_seal,+ "delete tombstones landed above sealed + 1; the rows moved after the seal"+ );+ common_metrics::inc(+ TOMBSTONES_ABOVE_SEAL_TOTAL,+ &[],+ moved_above_seal.len() as u64,+ );+ }Ok(())}@@ -709,7 +768,8 @@ async fn complete(r#"SELECT person_id, person_uuid,(sealed->>'version')::bigint AS "sealed_version!",- (sealed->>'created_at')::bigint AS "sealed_created_at!"+ (sealed->>'created_at')::bigint AS "sealed_created_at!",+ (sealed->>'tombstone_version')::bigint AS "tombstone_version?"FROM {lifecycle_op_person}WHERE op_id = $1 AND status = 'sealed' AND sealed ? 'created_at'ORDER BY person_id@@ -754,7 +814,8 @@ async fn complete(/// per-person rows: `deleted` and `skipped_conflict` map to themselves; a/// missing row means no live person existed at claim time (`not_found`)./// A row still `marked`/`sealed` at completion should be unreachable and-/// reports `not_found`.+/// reports `not_found`. A deleted entry carries the tombstone version the+/// unmap recorded.async fn build_outcome(tx: &mut Tx<'_>,tables: &IdentityTables,@@ -765,7 +826,11 @@ async fn build_outcome(PersonStatus,tables.is_validation(),op = "delete_outcome",- "SELECT person_id, status FROM {lifecycle_op_person} WHERE op_id = $1",+ r#"+ SELECT person_id, status,+ (sealed->>'tombstone_version')::bigint AS "tombstone_version?"+ FROM {lifecycle_op_person} WHERE op_id = $1+ "#,op_id=> fetch_all(&mut **tx))?;@@ -773,14 +838,19 @@ async fn build_outcome(let results = requested.iter().map(|person_id| {- let outcome = match rows.iter().find(|r| r.person_id == *person_id) {+ let row = rows.iter().find(|r| r.person_id == *person_id);+ let outcome = match row {Some(row) if row.status == STATUS_DELETED => OUTCOME_DELETED,Some(row) if row.status == STATUS_SKIPPED_CONFLICT => OUTCOME_SKIPPED_CONFLICT,_ => OUTCOME_NOT_FOUND,};+ let person_version = row+ .filter(|_| outcome == OUTCOME_DELETED)+ .and_then(|r| r.tombstone_version);DeletePersonRecord {person_id: *person_id,outcome: outcome.to_string(),+ person_version,}}).collect();diff --git a/rust/personhog-identity/src/lifecycle/leader_calls.rs b/rust/personhog-identity/src/lifecycle/leader_calls.rsindex 4bb5d7a80dad..591933b16ad9 100644--- a/rust/personhog-identity/src/lifecycle/leader_calls.rs+++ b/rust/personhog-identity/src/lifecycle/leader_calls.rs@@ -240,6 +240,9 @@ pub(crate) struct FencedVictim {pub(crate) person_uuid: Uuid,pub(crate) sealed_version: i64,pub(crate) sealed_created_at: i64,+ /// The version the unmap committed the tombstone at; `None` for an op+ /// unmapped by a build that did not record it.+ pub(crate) tombstone_version: Option<i64>,}impl FencedVictim {@@ -249,6 +252,7 @@ impl FencedVictim {person_uuid: self.person_uuid.to_string(),sealed_version: Some(self.sealed_version),created_at: self.sealed_created_at,+ tombstone_version: self.tombstone_version,}}@@ -261,6 +265,7 @@ impl FencedVictim {outcome: ReleaseOutcome::Committed.into(),sealed_version: Some(self.sealed_version),created_at: self.sealed_created_at,+ tombstone_version: self.tombstone_version,}}}diff --git a/rust/personhog-identity/src/lifecycle/merge.rs b/rust/personhog-identity/src/lifecycle/merge.rsindex 39f3c1cfef28..4e3eecd6f8e4 100644--- a/rust/personhog-identity/src/lifecycle/merge.rs+++ b/rust/personhog-identity/src/lifecycle/merge.rs@@ -1464,6 +1464,7 @@ impl MergeDriver {outcome: ReleaseOutcome::Aborted.into(),sealed_version: None,created_at: 0,+ tombstone_version: None,};async move { leader.release_fence(request).await }})@@ -2115,6 +2116,7 @@ impl MergeDriver {outcome: ReleaseOutcome::Committed.into(),sealed_version: Some(snapshot.version),created_at: snapshot.created_at,+ tombstone_version: None,}).await.map(|_| ())diff --git a/rust/personhog-identity/src/lifecycle/mod.rs b/rust/personhog-identity/src/lifecycle/mod.rsindex 93158fb5ecc0..96e01b78bd85 100644--- a/rust/personhog-identity/src/lifecycle/mod.rs+++ b/rust/personhog-identity/src/lifecycle/mod.rs@@ -90,6 +90,7 @@ fn delete_response(row: &OpRow) -> Result<DeletePersonsResponse, Status> {DeletePersonResult {person_id: record.person_id,outcome: outcome.into(),+ person_version: record.person_version,}}).collect();diff --git a/rust/personhog-identity/tests/common/sim_leader.rs b/rust/personhog-identity/tests/common/sim_leader.rsindex 2d1f164657f0..c2c792ffe218 100644--- a/rust/personhog-identity/tests/common/sim_leader.rs+++ b/rust/personhog-identity/tests/common/sim_leader.rs@@ -457,6 +457,7 @@ impl LifecycleLeader for SimLeader {outcome,sealed_version: person.sealed_version,created_at: person.created_at,+ tombstone_version: person.tombstone_version,}).await?;}@@ -501,6 +502,14 @@ impl LifecycleLeader for SimLeader {"person_uuid must be a valid UUID for a committed release",));}+ if request+ .tombstone_version+ .is_some_and(|version| version <= sealed_version)+ {+ return Err(Status::invalid_argument(+ "tombstone_version must be above sealed_version for a committed release",+ ));+ }let mark_status = self.mark_status(op_id, request.team_id, request.person_id).await;@@ -551,7 +560,7 @@ impl LifecycleLeader for SimLeader {DeathDocument {person_id: request.person_id,person_uuid: request.person_uuid.clone(),- version: base_version + 1,+ version: (base_version + 1).max(request.tombstone_version.unwrap_or(0)),created_at: request.created_at,},);diff --git a/rust/personhog-identity/tests/lifecycle_delete_tests.rs b/rust/personhog-identity/tests/lifecycle_delete_tests.rsindex 1e1bf79b9b4c..30cbd8162683 100644--- a/rust/personhog-identity/tests/lifecycle_delete_tests.rs+++ b/rust/personhog-identity/tests/lifecycle_delete_tests.rs@@ -208,11 +208,12 @@ async fn delete_destroys_the_person_and_its_satellite_rows() {);// The person: tombstoned at sealed + 1 (the fence sealed version 0),- // scrubbed.+ // scrubbed, and the response reports the committed version.let (is_deleted, version, properties) = ctx.person_state(person_id).await;assert!(is_deleted);assert_eq!(version, 1);assert_eq!(properties, "{}");+ assert_eq!(response.results[0].person_version, Some(version));// The mappings: tombstoned one version above their previous one.assert_eq!(ctx.pdi_state("victim-primary").await, (true, 1));@@ -654,6 +655,7 @@ async fn fenced_delete_seals_the_exact_version_and_produces_the_death_document()let (is_deleted, version, _) = h.ctx.person_state(person_id).await;assert!(is_deleted);assert_eq!(version, 1, "fenced seal must not add the pre-fence margin");+ assert_eq!(outcome.results[0].person_version, Some(1));let docs = h.leader.death_documents();assert_eq!(docs.len(), 1);assert_eq!(docs[0].person_id, person_id);@@ -830,6 +832,156 @@ async fn a_fenced_victim_rejects_writes_until_the_op_completes() {h.ctx.cleanup().await.expect("cleanup");}+#[tokio::test]+async fn a_direct_postgres_write_between_seal_and_unmap_cannot_outrank_the_tombstone() {+ let h = FencedHarness::new().await;+ let distinct_id = format!("fenced-raced-{}", Uuid::now_v7());+ let person_id = h.ctx.create_person_via_stub(&distinct_id).await;++ let op_id = Uuid::now_v7();+ h.engine+ .create_or_attach(+ &h.driver,+ op_id,+ h.ctx.team_id,+ &FencedHarness::request(&[person_id]),+ )+ .await+ .expect("create op");+ h.step(op_id).await.expect("started -> marked");+ let row = h.step(op_id).await.expect("marked -> sealed");+ assert_eq!(row.step, "sealed");++ // The fence stops leader writes only: a writer on the Postgres path+ // moves the row three versions past the seal (0) before the unmap.+ sqlx::query("UPDATE posthog_person SET version = version + 3 WHERE team_id = $1 AND id = $2")+ .bind(h.ctx.team_id as i32)+ .bind(person_id)+ .execute(&h.ctx.pool)+ .await+ .expect("direct write");++ h.step(op_id).await.expect("sealed -> unmapped");+ let row = h.step(op_id).await.expect("unmapped -> completed");+ assert!(row.completed_at.is_some());++ // The tombstone clears the slipped write, not just the seal, and the+ // death document and the outcome carry that same version.+ let (is_deleted, version, _) = h.ctx.person_state(person_id).await;+ assert!(is_deleted);+ assert_eq!(version, 4, "tombstone must outrank the direct write");+ let docs = h.leader.death_documents();+ assert_eq!(docs.len(), 1);+ assert_eq!(docs[0].version, 4);+ assert_eq!(+ FencedHarness::outcome(&row).results[0].person_version,+ Some(4)+ );++ h.ctx.cleanup().await.expect("cleanup");+}++#[tokio::test]+async fn each_victim_of_a_batch_carries_its_own_tombstone_version() {+ let h = FencedHarness::new().await;+ let raced_id = h+ .ctx+ .create_person_via_stub(&format!("fenced-raced-{}", Uuid::now_v7()))+ .await;+ let quiet_id = h+ .ctx+ .create_person_via_stub(&format!("fenced-quiet-{}", Uuid::now_v7()))+ .await;++ let op_id = Uuid::now_v7();+ h.engine+ .create_or_attach(+ &h.driver,+ op_id,+ h.ctx.team_id,+ &FencedHarness::request(&[raced_id, quiet_id]),+ )+ .await+ .expect("create op");+ h.step(op_id).await.expect("started -> marked");+ h.step(op_id).await.expect("marked -> sealed");++ sqlx::query("UPDATE posthog_person SET version = version + 3 WHERE team_id = $1 AND id = $2")+ .bind(h.ctx.team_id as i32)+ .bind(raced_id)+ .execute(&h.ctx.pool)+ .await+ .expect("direct write");++ h.step(op_id).await.expect("sealed -> unmapped");+ let row = h.step(op_id).await.expect("unmapped -> completed");+ assert!(row.completed_at.is_some());++ let (_, raced_version, _) = h.ctx.person_state(raced_id).await;+ let (_, quiet_version, _) = h.ctx.person_state(quiet_id).await;+ assert_eq!(raced_version, 4);+ assert_eq!(quiet_version, 1);+ let docs = h.leader.death_documents();+ assert_eq!(docs.len(), 2);+ let death_version = |person_id: i64| {+ docs.iter()+ .find(|doc| doc.person_id == person_id)+ .expect("a death document per victim")+ .version+ };+ assert_eq!(death_version(raced_id), 4);+ assert_eq!(death_version(quiet_id), 1);+ let outcome = FencedHarness::outcome(&row);+ assert_eq!(outcome.results[0].person_version, Some(4));+ assert_eq!(outcome.results[1].person_version, Some(1));++ h.ctx.cleanup().await.expect("cleanup");+}++#[tokio::test]+async fn an_op_unmapped_by_a_pre_tombstone_version_build_completes_at_the_seal() {+ let h = FencedHarness::new().await;+ let distinct_id = format!("pre-tombstone-upgrade-{}", Uuid::now_v7());+ let person_id = h.ctx.create_person_via_stub(&distinct_id).await;++ let op_id = Uuid::now_v7();+ h.engine+ .create_or_attach(+ &h.driver,+ op_id,+ h.ctx.team_id,+ &FencedHarness::request(&[person_id]),+ )+ .await+ .expect("create op");+ h.step(op_id).await.expect("started -> marked");+ h.step(op_id).await.expect("marked -> sealed");+ let row = h.step(op_id).await.expect("sealed -> unmapped");+ assert_eq!(row.step, "unmapped");++ sqlx::query(+ "UPDATE lifecycle_op_person SET sealed = sealed - 'tombstone_version' WHERE op_id = $1",+ )+ .bind(op_id)+ .execute(&h.ctx.pool)+ .await+ .expect("strip like a pre-tombstone-version build");++ let row = h.step(op_id).await.expect("unmapped -> completed");+ assert!(row.completed_at.is_some());+ let outcome = FencedHarness::outcome(&row);+ assert_eq!(outcome.results[0].outcome, "deleted");+ assert_eq!(+ outcome.results[0].person_version, None,+ "an old unmap recorded no version to report"+ );+ let docs = h.leader.death_documents();+ assert_eq!(docs.len(), 1);+ assert_eq!(docs[0].version, 1, "the leader falls back to sealed + 1");++ h.ctx.cleanup().await.expect("cleanup");+}+#[tokio::test]async fn a_transient_fence_failure_leaves_the_op_retryable() {let h = FencedHarness::new().await;diff --git a/rust/personhog-leader/src/service/lifecycle.rs b/rust/personhog-leader/src/service/lifecycle.rsindex 579e74353634..c41180a35a6a 100644--- a/rust/personhog-leader/src/service/lifecycle.rs+++ b/rust/personhog-leader/src/service/lifecycle.rs@@ -56,6 +56,9 @@ struct CommittedRelease {person_uuid: String,sealed_version: i64,created_at: i64,+ /// The version the saga committed its Postgres tombstone at, when the+ /// saga recorded one; the death document is produced at or above it.+ tombstone_version: Option<i64>,}impl CommittedRelease {@@ -65,6 +68,7 @@ impl CommittedRelease {person_uuid: String,sealed_version: Option<i64>,created_at: i64,+ tombstone_version: Option<i64>,) -> Result<Self, Status> {// 0 is a legitimate sealed version (a fresh stub's), which is why// the field is explicitly optional in the proto.@@ -88,11 +92,19 @@ impl CommittedRelease {"person_uuid must be a valid UUID for a committed release",));}+ // The saga tombstones at no less than sealed + 1; anything lower is+ // a caller bug, not a version the death document could honor.+ if tombstone_version.is_some_and(|version| version <= sealed_version) {+ return Err(Status::invalid_argument(+ "tombstone_version must be above sealed_version for a committed release",+ ));+ }Ok(Self {person_id,person_uuid,sealed_version,created_at,+ tombstone_version,})}}@@ -248,6 +260,10 @@ impl PersonHogLeaderService {// The death version is sealed + 1, floored by the emitted floor and// the cached version in case a deposed or indeterminate produce spent// a higher version; a cold leader falls back to the request's seal.+ // The saga's committed tombstone version floors it too: a direct+ // Postgres writer can move the row past the seal while the fence+ // only stops leader writes, and a death document below the+ // tombstone would relay a live version over it to ClickHouse.let base_version = self.emitted_versions.floor_for(partition,&cache_key,@@ -260,6 +276,14 @@ impl PersonHogLeaderService {let death_version = base_version.checked_add(1).ok_or_else(|| {Status::invalid_argument("sealed_version leaves no room for the death version")})?;+ let floored_by_tombstone = release+ .tombstone_version+ .is_some_and(|tombstone_version| tombstone_version > death_version);+ let death_version = if floored_by_tombstone {+ release.tombstone_version.unwrap_or(death_version)+ } else {+ death_version+ };let death = CachedPerson {id: release.person_id,uuid: release.person_uuid.clone(),@@ -287,6 +311,11 @@ impl PersonHogLeaderService {// writer confirms, and PG answers from then on.self.fences.remove(&cache_key);counter!("personhog_leader_fences_total", "action" => "released_committed").increment(1);+ // Its own counter, not a `fences_total` action: the release above is+ // already counted there, and a sum over `action` must count it once.+ if floored_by_tombstone {+ counter!("personhog_leader_death_documents_floored_by_tombstone_total").increment(1);+ }Ok(())}@@ -542,6 +571,7 @@ impl PersonHogLeaderService {req.person_uuid,req.sealed_version,req.created_at,+ req.tombstone_version,)?;// Producing to the changelog must respect the handoff// write freeze like any write.@@ -611,6 +641,7 @@ impl PersonHogLeaderService {person.person_uuid,person.sealed_version,person.created_at,+ person.tombstone_version,)}).collect::<Result<Vec<_>, Status>>()?;diff --git a/rust/personhog-leader/tests/fence_integration.rs b/rust/personhog-leader/tests/fence_integration.rsindex e22f91374648..f9d878623f53 100644--- a/rust/personhog-leader/tests/fence_integration.rs+++ b/rust/personhog-leader/tests/fence_integration.rs@@ -306,6 +306,7 @@ async fn fencing_seals_and_blocks_writes_until_an_aborted_release() {outcome: ReleaseOutcome::Aborted.into(),sealed_version: None,created_at: 0,+ tombstone_version: None,},partition,))@@ -406,6 +407,7 @@ async fn a_committed_release_produces_the_death_document_above_every_version() {outcome: ReleaseOutcome::Committed.into(),sealed_version: Some(sealed_version),created_at: sealed.created_at,+ tombstone_version: None,},partition,))@@ -470,6 +472,7 @@ async fn a_committed_release_produces_the_death_document_above_every_version() {outcome: ReleaseOutcome::Committed.into(),sealed_version: Some(sealed_version),created_at: sealed.created_at,+ tombstone_version: None,},partition,))@@ -547,6 +550,7 @@ async fn a_revival_is_served_once_the_death_documents_mark_settles() {outcome: ReleaseOutcome::Committed.into(),sealed_version: Some(sealed.version),created_at: sealed.created_at,+ tombstone_version: None,},partition,))@@ -668,6 +672,116 @@ async fn the_seal_covers_versions_emitted_without_an_outcome() {);}+/// A committed release carries the saga's tombstone version: one at or+/// below the seal is refused without producing anything, and one above it+/// floors the death document.+#[tokio::test]+async fn a_committed_release_honors_the_sagas_tombstone_version() {+ let pool = common::create_persons_pool().await;+ let mut harness = start_fence_harness(+ test_cached_person(),+ Some(PgFallback {+ pool: pool.clone(),+ table: "posthog_person".to_string(),+ lifecycle: LifecycleTables::new("lifecycle_op", "lifecycle_op_person"),+ }),+ )+ .await;+ let team_id = harness.team_id;+ let partition = harness.partition;+ let person_id = harness.person_id;+ let person_uuid = test_cached_person().uuid;+ let op = Uuid::now_v7();++ sqlx::query(+ "INSERT INTO lifecycle_op (op_id, op_type, team_id, step, request) \+ VALUES ($1, 'delete', $2, 'sealed', '{}'::jsonb)",+ )+ .bind(op)+ .bind(team_id as i32)+ .execute(&pool)+ .await+ .expect("insert op");+ sqlx::query(+ "INSERT INTO lifecycle_op_person (op_id, team_id, person_id, person_uuid, role, status, mark_active) \+ VALUES ($1, $2, $3, gen_random_uuid(), 'victim', 'sealed', true)",+ )+ .bind(op)+ .bind(team_id as i32)+ .bind(person_id)+ .execute(&pool)+ .await+ .expect("insert mark");++ let sealed = harness+ .client+ .fence_person(with_partition(+ fence_request(team_id, person_id, &op),+ partition,+ ))+ .await+ .expect("fence succeeds")+ .into_inner()+ .sealed+ .unwrap();+ let release = |tombstone_version: Option<i64>| ReleaseFenceRequest {+ team_id,+ person_id,+ person_uuid: person_uuid.clone(),+ op_id: op.to_string(),+ outcome: ReleaseOutcome::Committed.into(),+ sealed_version: Some(sealed.version),+ created_at: sealed.created_at,+ tombstone_version,+ };++ // A tombstone at or below the seal is a caller bug: refused, fence kept.+ let produced_before_refusal = changelog_records(&harness).len();+ let status = harness+ .client+ .release_fence(with_partition(release(Some(sealed.version)), partition))+ .await+ .expect_err("a tombstone at the seal is refused");+ assert_eq!(status.code(), Code::InvalidArgument);+ assert!(+ harness+ .fences+ .get(&PersonCacheKey { team_id, person_id })+ .is_some(),+ "a refused release leaves the fence"+ );+ assert_eq!(+ changelog_records(&harness).len(),+ produced_before_refusal,+ "a refused release produces nothing"+ );++ // The saga tombstoned three versions past the seal because a direct+ // Postgres write slipped in; the death document must not sit below it.+ let tombstone_version = sealed.version + 4;+ harness+ .client+ .release_fence(with_partition(release(Some(tombstone_version)), partition))+ .await+ .expect("committed release succeeds");++ let deaths: Vec<_> = changelog_records(&harness)+ .into_iter()+ .filter(|record| record.is_deleted)+ .collect();+ assert_eq!(deaths.len(), 1, "exactly one death document is produced");+ assert_eq!(+ deaths[0].version, tombstone_version,+ "the death version must match the saga's tombstone, not sealed + 1"+ );++ sqlx::query("DELETE FROM lifecycle_op WHERE op_id = $1")+ .bind(op)+ .execute(&pool)+ .await+ .expect("cleanup op");+}+/// The release-side counterpart: a post-seal write that slipped through an/// unfenced window (leader amnesia after a handoff) with an indeterminate/// outcome raises the floor without touching the cache. The death version@@ -741,6 +855,7 @@ async fn a_committed_release_derives_the_death_version_above_the_emitted_floor()outcome: ReleaseOutcome::Committed.into(),sealed_version: Some(sealed.version),created_at: sealed.created_at,+ tombstone_version: Some(sealed.version + 1),},partition,))@@ -753,7 +868,7 @@ async fn a_committed_release_derives_the_death_version_above_the_emitted_floor()assert_eq!(death.version,spent + 1,- "the death version must clear the emitted floor, not just the seal"+ "the death version must clear the emitted floor, not just the seal or the tombstone");sqlx::query("DELETE FROM lifecycle_op WHERE op_id = $1")@@ -831,6 +946,7 @@ async fn a_stub_sealed_at_version_zero_can_be_released() {outcome: ReleaseOutcome::Committed.into(),sealed_version: Some(0),created_at: sealed.created_at,+ tombstone_version: None,},partition,))@@ -1147,6 +1263,7 @@ async fn a_committed_release_without_a_live_mark_is_refused() {outcome: ReleaseOutcome::Committed.into(),sealed_version: Some(sealed.version),created_at: sealed.created_at,+ tombstone_version: None,},partition,))@@ -1215,6 +1332,7 @@ async fn the_fence_rpcs_refuse_a_partition_this_pod_does_not_serve() {outcome: ReleaseOutcome::Aborted.into(),sealed_version: None,created_at: 0,+ tombstone_version: None,},foreign_partition,))@@ -1944,6 +2062,7 @@ async fn a_fold_through_a_foreign_fence_is_rejected_until_released() {outcome: ReleaseOutcome::Aborted.into(),sealed_version: None,created_at: 0,+ tombstone_version: None,},harness.partition,))@@ -2567,8 +2686,11 @@ async fn a_folds_target_cache_dirt_is_sanitized() {/// re-deriving the document from the sealed version — this test pins that/// composed behavior against either side changing (the load filter, or the/// duplicate-release absorb).-#[tokio::test]-async fn a_release_after_a_cache_eviction_still_produces_the_death_document() {+///+/// `tombstone_above_seal` is how far the saga's direct tombstone sits above+/// the seal: `None` is a release from an identity build that never sent a+/// tombstone version, `Some(n)` a row that moved after the seal.+async fn release_after_a_cache_eviction(tombstone_above_seal: Option<i64>) {let pool = common::create_persons_pool().await;let mut harness = start_fence_harness(test_cached_person(),@@ -2618,9 +2740,10 @@ async fn a_release_after_a_cache_eviction_still_produces_the_death_document() {.sealed.unwrap();let sealed_version = sealed.version;+ let tombstone_version = sealed_version + tombstone_above_seal.unwrap_or(1);- // The unmap transaction's direct tombstone: scrubbed, parked at- // sealed + 1.+ // The unmap transaction's direct tombstone: scrubbed, at sealed + 1+ // unless the row moved after the seal.sqlx::query("INSERT INTO posthog_person \(id, team_id, uuid, properties, created_at, version, is_identified, is_deleted) \@@ -2629,7 +2752,7 @@ async fn a_release_after_a_cache_eviction_still_produces_the_death_document() {.bind(person_id).bind(team_id as i32).bind(&person_uuid)- .bind(sealed_version + 1)+ .bind(tombstone_version).execute(&pool).await.expect("insert unmap tombstone");@@ -2652,6 +2775,7 @@ async fn a_release_after_a_cache_eviction_still_produces_the_death_document() {outcome: ReleaseOutcome::Committed.into(),sealed_version: Some(sealed_version),created_at: sealed.created_at,+ tombstone_version: tombstone_above_seal.map(|_| tombstone_version),},partition,))@@ -2663,8 +2787,7 @@ async fn a_release_after_a_cache_eviction_still_produces_the_death_document() {assert!(death.is_deleted);assert_eq!(death.uuid, person_uuid);assert_eq!(- death.version,- sealed_version + 1,+ death.version, tombstone_version,"the death document confirms the direct tombstone at the same version");@@ -2681,6 +2804,18 @@ async fn a_release_after_a_cache_eviction_still_produces_the_death_document() {.expect("cleanup person");}+#[tokio::test]+async fn a_release_after_a_cache_eviction_still_produces_the_death_document() {+ release_after_a_cache_eviction(None).await;+}++/// The cold-leader path re-derives the death document from the request, so+/// the tombstone floor must apply there as well as to a warm entry.+#[tokio::test]+async fn a_release_after_a_cache_eviction_honors_the_sagas_tombstone_version() {+ release_after_a_cache_eviction(Some(4)).await;+}+/// The mark rows a committed release verifies against — committed by the/// saga before the fence in the real flow.async fn insert_delete_marks(@@ -2915,7 +3050,7 @@ async fn a_batch_for_a_released_partition_is_a_routing_bounce() {/// One `ReleaseFences` call closes every fence of an op on the routed/// partition, producing each death document exactly as a single release-/// would.+/// would, including the per-item tombstone floor.#[tokio::test]async fn a_batched_release_closes_every_fence_of_the_routed_partition() {let pool = common::create_persons_pool().await;@@ -2962,11 +3097,13 @@ async fn a_batched_release_closes_every_fence_of_the_routed_partition() {.into_inner().sealed.expect("sealed state returned");+ let tombstone_version = (person_id == second_id).then(|| sealed.version + 4);persons.push(ReleaseFenceItem {person_id,person_uuid: uuid,sealed_version: Some(sealed.version),created_at: sealed.created_at,+ tombstone_version,});}@@ -2990,7 +3127,13 @@ async fn a_batched_release_closes_every_fence_of_the_routed_partition() {.iter().find(|r| r.id == person.person_id && r.is_deleted).expect("a death document per released person");- assert_eq!(death.version, person.sealed_version.unwrap() + 1);+ let expected = person+ .tombstone_version+ .unwrap_or(person.sealed_version.unwrap() + 1);+ assert_eq!(+ death.version, expected,+ "each item's death version honors its own tombstone"+ );// The fence is gone: a new op finds a destroyed person, not a fence.let status = harness.client@@ -3058,12 +3201,14 @@ async fn a_batched_release_with_a_person_off_the_routed_partition_is_refused_whoperson_uuid: test_cached_person().uuid,sealed_version: Some(sealed.version),created_at: sealed.created_at,+ tombstone_version: None,},ReleaseFenceItem {person_id: foreign_id,person_uuid: Uuid::now_v7().to_string(),sealed_version: Some(0),created_at: sealed.created_at,+ tombstone_version: None,},],},@@ -3181,6 +3326,7 @@ async fn a_takeover_fence_reads_the_row_not_the_snapshot() {outcome: ReleaseOutcome::Committed.into(),sealed_version: Some(sibling_seal.version),created_at: sibling_seal.created_at,+ tombstone_version: None,},partition,))@@ -3215,6 +3361,7 @@ async fn a_takeover_fence_reads_the_row_not_the_snapshot() {outcome: ReleaseOutcome::Committed.into(),sealed_version: Some(victim_seal.version),created_at: victim_seal.created_at,+ tombstone_version: None,},partition,))@@ -3368,6 +3515,7 @@ async fn a_release_trusts_the_snapshot_only_under_a_fence_sealed_before_it() {outcome: ReleaseOutcome::Committed.into(),sealed_version: Some(sibling_seal.version),created_at: sibling_seal.created_at,+ tombstone_version: None,},partition,))@@ -3394,6 +3542,7 @@ async fn a_release_trusts_the_snapshot_only_under_a_fence_sealed_before_it() {outcome: ReleaseOutcome::Committed.into(),sealed_version: Some(victim_seal.version),created_at: victim_seal.created_at,+ tombstone_version: None,},partition,))@@ -3444,6 +3593,7 @@ async fn a_release_trusts_the_snapshot_only_under_a_fence_sealed_before_it() {outcome: ReleaseOutcome::Committed.into(),sealed_version: Some(victim_seal.version),created_at: victim_seal.created_at,+ tombstone_version: None,},partition,))diff --git a/rust/personhog-router/tests/common/mod.rs b/rust/personhog-router/tests/common/mod.rsindex b6b6d3d47e89..794d65f1e0ea 100644--- a/rust/personhog-router/tests/common/mod.rs+++ b/rust/personhog-router/tests/common/mod.rs@@ -1277,6 +1277,7 @@ impl PersonHogLifecycle for TestLifecycleService {.map(|person_id| lifecycle::DeletePersonResult {person_id,outcome: lifecycle::DeletePersonOutcome::Deleted as i32,+ person_version: None,}).collect();Ok(Response::new(lifecycle::DeletePersonsResponse {diff --git a/rust/personhog-test-harness/src/client.rs b/rust/personhog-test-harness/src/client.rsindex 6687c48b6c0d..1a6bc322e7cf 100644--- a/rust/personhog-test-harness/src/client.rs+++ b/rust/personhog-test-harness/src/client.rs@@ -104,6 +104,7 @@ impl HarnessClient {outcome: ReleaseOutcome::Aborted.into(),sealed_version: None,created_at: 0,+ tombstone_version: None,}).await.context("ReleaseFence failed")?;