Skip to content

: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.

feat(ingestion): default person tombstones on for every team (#110215)

Nick Best3d99563a1be0
diff --git a/nodejs/src/ingestion/__snapshots__/ingestion-consumer.serial.test.ts.snap b/nodejs/src/ingestion/__snapshots__/ingestion-consumer.serial.test.ts.snap
index ad2e17caba50..cc48ada7ac1c 100644
--- a/nodejs/src/ingestion/__snapshots__/ingestion-consumer.serial.test.ts.snap
+++ b/nodejs/src/ingestion/__snapshots__/ingestion-consumer.serial.test.ts.snap
@@ -1224,9 +1224,9 @@ exports[`IngestionConsumer typical event processing person property merging via
"is_deleted": 1,
"is_identified": 0,
"last_seen_at": "2025-01-01 00:00:00",
- "properties": "{"k":"v","$current_url":"http://localhost:8000","$creator_event_uuid":"<REPLACED-UUID-0>","$initial_current_url":"http://localhost:8000"}",
+ "properties": "{}",
"team_id": 2,
- "version": 100,
+ "version": 1,
},
},
]
diff --git a/nodejs/src/ingestion/config.ts b/nodejs/src/ingestion/config.ts
index 4609b09e8af6..2b5dcae6bc53 100644
--- a/nodejs/src/ingestion/config.ts
+++ b/nodejs/src/ingestion/config.ts
@@ -190,12 +190,9 @@ export type IngestionConsumerConfig = {
PERSON_MERGE_FOLD_ENABLED: boolean
// Teams eligible for merge folding: comma-separated team IDs, or '*' for all teams.
PERSON_MERGE_FOLD_TEAM_ALLOWLIST: string
- // Tombstone rollout of the person-deletion-gaps RFC: for these teams, a merge tombstones the
- // source person row (is_deleted = true, version stamped in the same transaction, properties
- // scrubbed) instead of hard-deleting it, and the ClickHouse death row carries that exact
- // version instead of the version + 100 fudge. The row keeps the key's version counter so a
- // recreated person revives above its own tombstone. Comma-separated team IDs, or '*' for all
- // teams; empty means no teams.
+ // Teams whose merges and deletes tombstone the person row instead of hard-deleting it, and
+ // whose creates revive a tombstoned key. Every environment rolled this out to all teams, so
+ // '*' is the default. Comma-separated team IDs, or '*' for all teams; empty means no teams.
PERSON_MERGE_TOMBSTONE_TEAM_ALLOWLIST: string
// Re-emit committed distinct id mappings for merge events that arrive already satisfied,
// debounced per (team, distinct id). Heals ClickHouse mapping rows lost to a crash between
@@ -378,7 +375,7 @@ export function getDefaultIngestionConsumerConfig(): IngestionConsumerConfig {
PERSON_MERGE_EVENTS_TEAM_ALLOWLIST: '2',
PERSON_MERGE_FOLD_ENABLED: false,
PERSON_MERGE_FOLD_TEAM_ALLOWLIST: '*',
- PERSON_MERGE_TOMBSTONE_TEAM_ALLOWLIST: '',
+ PERSON_MERGE_TOMBSTONE_TEAM_ALLOWLIST: '*',
PERSON_MERGE_NOOP_MAPPING_EMISSION_ENABLED: false,
PERSON_MERGE_NOOP_MAPPING_EMISSION_CACHE_SIZE: 500_000,
PERSON_MERGE_NOOP_MAPPING_EMISSION_TTL_MS: 60 * 60 * 1000,