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): add ingestion warning resolution skills (#69626)

José Sequeira2fc47f61c62d
diff --git a/products/ingestion/skills/resolving-ingestion-warnings/SKILL.md b/products/ingestion/skills/resolving-ingestion-warnings/SKILL.md
new file mode 100644
index 000000000000..1ab38439587b
--- /dev/null
+++ b/products/ingestion/skills/resolving-ingestion-warnings/SKILL.md
@@ -0,0 +1,88 @@
+---
+name: resolving-ingestion-warnings
+description: >
+ Diagnoses and resolves PostHog ingestion warnings — problems recorded while ingesting events (dropped events, rejected person merges, oversized payloads, invalid data).
+ Use when a user asks why events are missing, dropped, or undercounted, why identify/alias calls don't work or accounts stay duplicated, why person or group properties aren't updating or profiles look inflated, why recordings have gaps, heatmaps are empty, LLM token counts are missing, why cookieless events vanish, or whenever `posthog:ingestion-warnings-list` returns results.
+ Explains severity triage (error = dropped, warning = modified, info = intentional) and routes all warning types — size limits and enrichment, merges and distinct IDs, `$process_person_profile`, timestamps, cookieless, heatmaps, transformations, session replay — to per-issue reference files with code-level causes and per-SDK fixes.
+---
+
+# Resolving ingestion warnings
+
+Ingestion warnings record problems PostHog hit while ingesting a project's events.
+They are the first place to look when events are missing, counts are lower than expected, or identify/merge calls don't behave.
+
+## Workflow
+
+1. **List the warnings**: call `posthog:ingestion-warnings-list` (defaults to the last 24h; widen with `since: '-7d'`, narrow with `severity` or `type`). Each entry has a count, a sparkline, and recent samples with the affected `event_uuid` / `distinct_id` / `person_id` / `group_key`.
+2. **Triage by severity** — it encodes what happened to the data:
+ - `error` — the event or update was **dropped**. Data loss; fix these first.
+ - `warning` — ingested, but modified or partially rejected.
+ - `info` — informational, or an intentional, team-configured drop.
+3. **Route by type** using the table below. Where a `references/fixing-*.md` file exists, read it — it has the full diagnosis and per-SDK fixes; load only the file you need.
+4. **Verify any fix** the same way: re-run the affected flow, re-query `posthog:ingestion-warnings-list` with a `since` after the fix, and confirm the type's count stops growing. Warnings are debounced per team+type+key, so judge by "no new occurrences", not by historical counts shrinking.
+
+One identity caveat that applies throughout: **distinct IDs are not persons**. An identified user usually has several distinct IDs mapping to one person; resolve sampled distinct IDs to persons (`posthog:persons-list`) before reasoning about patterns.
+
+A second cross-cutting check: **SDK version clustering**. Pull `$lib` / `$lib_version` from the affected events and compare against unaffected traffic — warnings concentrating on old SDK versions or one platform usually mean an outdated or pinned SDK, and the fix is an upgrade rather than payload surgery.
+
+## Warning types and fixes
+
+### Size (`size`)
+
+| Type | What happened | Fix |
+| -------------------------------------- | ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
+| `message_size_too_large` | Event dropped: >1MB after person/group properties were copied onto it | Read [references/fixing-message-size-too-large.md](references/fixing-message-size-too-large.md) — covers the enrichment mechanism, diagnosis, and per-SDK fixes |
+| `person_properties_size_violation` | A person-properties update was rejected: the person's stored properties would exceed the limit | Read [references/fixing-person-properties-size-violation.md](references/fixing-person-properties-size-violation.md) — covers the three growth patterns, the code fix, and the user-approved `$unset` cleanup |
+| `person_upsert_message_size_too_large` | A person update was too large to persist | Same root cause and fix as `person_properties_size_violation` |
+| `group_upsert_message_size_too_large` | A group update was too large to persist | Trim `$group_set` payloads; groups should carry bounded metadata, not documents |
+| `group_key_too_long` | `$groupidentify` dropped: group key over 400 chars | Read [references/fixing-group-key-too-long.md](references/fixing-group-key-too-long.md) — a payload/token was passed where the group ID belongs |
+
+### Person merges (`merge`)
+
+| Type | What happened | Fix |
+| --------------------------------------- | -------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `cannot_merge_already_identified` | Merge refused: both persons are already identified. The accounts silently stayed separate | Read [references/fixing-cannot-merge-already-identified.md](references/fixing-cannot-merge-already-identified.md) — covers the identify/reset flow fixes; joining two identified users is a manual one-off decision, never application code |
+| `cannot_merge_with_illegal_distinct_id` | Merge refused: the distinct ID is a placeholder (`undefined`, `null`, `[object Object]`, `anonymous`, …) | Read [references/fixing-invalid-distinct-ids.md](references/fixing-invalid-distinct-ids.md) — a variable is unset at the identify/alias callsite |
+| `merge_race_condition` | Concurrent merges collided on the same persons; the operation was dropped | Read [references/fixing-merge-race-condition.md](references/fixing-merge-race-condition.md) — dedupe parallel identify calls, and check for a "mega person" merge magnet (thousands of distinct IDs on one person) |
+
+### Event validation (`event`)
+
+| Type | What happened | Fix |
+| ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `client_ingestion_warning` | The SDK itself reported a problem | Read `details.message` — the SDK wrote the diagnosis at the moment it caught the misuse (e.g. an invalid group key). Never debounced (like `merge_race_condition`), so counts are true counts; group by message and map each back to the misused SDK call |
+| `ignored_invalid_timestamp` | `timestamp` didn't parse; the event was kept with the server time | Read [references/fixing-ignored-invalid-timestamp.md](references/fixing-ignored-invalid-timestamp.md) — send ISO 8601; the event was kept at server time |
+| `schema_validation_failed` | Event dropped: it violates a schema the team enforces for that event | Compare `details.errors` against the payload; align the code or update the schema |
+| `skipping_event_invalid_distinct_id` | Event dropped: distinct ID over 400 chars | Read [references/fixing-invalid-distinct-ids.md](references/fixing-invalid-distinct-ids.md) — a token/payload was passed as the distinct ID |
+| `invalid_ai_token_property` | An `$ai_*` token property wasn't numeric; it was nulled | Read [references/fixing-invalid-ai-token-property.md](references/fixing-invalid-ai-token-property.md) — token counts must be plain numbers |
+| `invalid_process_person_profile` | `$process_person_profile` wasn't boolean; the default (true) was used | Read [references/fixing-process-person-profile-warnings.md](references/fixing-process-person-profile-warnings.md) — a stringified boolean silently opts back into person processing |
+| `invalid_event_when_process_person_profile_is_false` | `$identify`/`$create_alias`/`$merge_dangerously`/`$groupidentify` dropped because the event disabled person processing | Read [references/fixing-process-person-profile-warnings.md](references/fixing-process-person-profile-warnings.md) — identity events require person processing |
+| `event_dropped_too_old` | Intentional: the event is older than the team's configured drop threshold | Read [references/fixing-event-dropped-too-old.md](references/fixing-event-dropped-too-old.md) — mind mobile SDKs: offline queues legitimately deliver days-old events; threshold changes are the user's call |
+| `cookieless_missing_timestamp` / `cookieless_timestamp_out_of_range` / `cookieless_missing_user_agent` / `cookieless_missing_ip` / `cookieless_missing_host` | Cookieless-mode event dropped: a field required to compute the cookieless ID was missing or invalid | Read [references/fixing-cookieless-warnings.md](references/fixing-cookieless-warnings.md) — the missing field identifies the broken layer; beware the silent variant where a server relay omits $ip and users collapse onto the server's IP |
+
+### Heatmaps (`event`)
+
+| Type | What happened | Fix |
+| ------------------------------------------- | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
+| `invalid_heatmap_data` | `$heatmap_data` didn't parse; the heatmap portion was dropped (event survived) | Read [references/fixing-invalid-heatmap-data.md](references/fixing-invalid-heatmap-data.md) — the whole payload failed to parse; event survived, heatmap data lost |
+| `rejecting_heatmap_data_with_invalid_url` | Heatmap entry keyed by an invalid URL | Read [references/fixing-invalid-heatmap-data.md](references/fixing-invalid-heatmap-data.md) — the entry key (page URL) was empty or not a string |
+| `rejecting_heatmap_data_with_invalid_items` | Heatmap URL mapped to a non-array | Read [references/fixing-invalid-heatmap-data.md](references/fixing-invalid-heatmap-data.md) — each URL key must map to an ARRAY of items |
+
+### Error tracking (`event`)
+
+| Type | What happened | Fix |
+| -------------------------------------------- | -------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
+| `error_tracking_exception_processing_errors` | A `$exception` event was ingested but symbolication hit errors | Read `details.errors`; usually missing/mismatched source maps — re-upload them for the release |
+
+### Transformations (`transformation`)
+
+| Type | What happened | Fix |
+| --------------------------------- | -------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `event_dropped_by_transformation` | A transformation the team configured dropped the event (intentional) | Read [references/fixing-event-dropped-by-transformation.md](references/fixing-event-dropped-by-transformation.md) — the details name the exact transformation; edits to it are the user's call |
+
+### Session replay (`replay`)
+
+| Type | What happened | Fix |
+| ----------------------------------------- | ----------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `replay_lib_version_too_old` | Recording sent by an outdated posthog-js (1.x < 1.75) | Read [references/fixing-session-replay-warnings.md](references/fixing-session-replay-warnings.md) — recording still processed; upgrade posthog-js |
+| `message_contained_no_valid_rrweb_events` | A replay message carried no usable snapshot data | Read [references/fixing-session-replay-warnings.md](references/fixing-session-replay-warnings.md) — that recording chunk was dropped; usually a rewriting proxy/transport or old SDK |
+| `message_timestamp_diff_too_large` | Replay snapshot timestamps far from arrival time | Read [references/fixing-session-replay-warnings.md](references/fixing-session-replay-warnings.md) — chunk dropped at the 7-day threshold; persistent = clock skew, bursts = buffering |
diff --git a/products/ingestion/skills/resolving-ingestion-warnings/references/fixing-cannot-merge-already-identified.md b/products/ingestion/skills/resolving-ingestion-warnings/references/fixing-cannot-merge-already-identified.md
new file mode 100644
index 000000000000..2b15438e2a00
--- /dev/null
+++ b/products/ingestion/skills/resolving-ingestion-warnings/references/fixing-cannot-merge-already-identified.md
@@ -0,0 +1,54 @@
+# Fixing `cannot_merge_already_identified`
+
+An `$identify` or `$create_alias` call asked PostHog to merge two persons that are **both already identified**.
+PostHog refuses this to protect identity data — merging two established users is destructive and almost always a bug.
+Category `merge`, severity `warning`: no data was lost, but **the merge did not happen** and events continue accumulating under two separate persons.
+
+## The critical insight: the refusal is silent
+
+The SDK call succeeds (2xx) — `identify`/`alias` never reports the refusal back.
+The only signals are this warning and the symptom: one human, two person profiles, analytics split between them (funnels break, unique-user counts inflate).
+
+## How merging is supposed to work
+
+- A person becomes **identified** the first time `identify(user_id)` links it to an anonymous session.
+- `identify` is for linking an _anonymous_ person to a user — exactly once per sign-up/log-in.
+- `alias` is for attaching an additional ID to a person _before or at_ identification.
+- Merging two _already identified_ persons is never done implicitly — that's what this warning refuses. There is no application-level API that should be doing it.
+
+## Diagnose
+
+1. List the warnings with `posthog:ingestion-warnings-list` (`type: cannot_merge_already_identified`). Each sample's details carry `sourcePersonDistinctId` and `targetPersonDistinctId` — the two sides of the refused merge — plus the `event_uuid` of the triggering call.
+2. Resolve **both** distinct IDs to their persons (`posthog:persons-list`) and look at their properties and event history.
+3. Decide which situation you're in:
+ - **Two different humans** → the code is trying to merge people it shouldn't. Find and fix the callsite (below). This is the common case.
+ - **One human with two accounts** (e.g. signed up twice with work and personal email) → the identify/alias code path is only a symptom; the duplicate accounts are the real problem (see below).
+
+## Common causes in code
+
+- `identify()` called on account switching or impersonation with a _different user's_ ID while the device still carries the previous identified session — missing `reset()` on logout is the classic version.
+- Two ID schemes for the same human: identifying with an email in one flow and a database ID in another creates two identified persons, and later code tries to link them.
+- An admin/support "merge duplicate accounts" feature implemented with `identify`/`alias` — application code cannot join two identified persons, by design.
+- Backend jobs calling `identify` with `$anon_distinct_id` set to another user's known distinct ID.
+
+## Fix
+
+Fix the identification flow — don't look for a way to force the merge from application code:
+
+- `identify` only at login/signup, always with the canonical user ID.
+- `reset()` on logout, especially on shared devices — the next login must start from a fresh anonymous session.
+- Pick ONE canonical ID scheme (a stable user ID, not sometimes-email-sometimes-ID) and use it in every `identify` call, across all platforms and the backend.
+- Use `alias` only to attach secondary IDs _before_ the person is identified.
+- Remove any application feature that tries to merge two identified users via `identify`/`alias` — it can never work, and the silent refusal makes it look like it does.
+
+If two persons genuinely are the same human and must be joined, that is a **manual, one-off administrative operation** — performed deliberately by a human (and irreversibly joining both event histories) — never something application code does on its own. Confirm both profiles really are the same person before considering it.
+
+## Verify
+
+1. Re-run the login/logout/identify flow.
+2. Re-query `posthog:ingestion-warnings-list` with a post-fix `since` — no new occurrences for those distinct IDs.
+3. Check new sessions: events land under a single person per human.
+
+## Related
+
+- [fixing-invalid-distinct-ids.md](fixing-invalid-distinct-ids.md) — the sibling refusal, where the distinct ID is a placeholder like `undefined`; often the same broken identify callsite produces both.
diff --git a/products/ingestion/skills/resolving-ingestion-warnings/references/fixing-cookieless-warnings.md b/products/ingestion/skills/resolving-ingestion-warnings/references/fixing-cookieless-warnings.md
new file mode 100644
index 000000000000..2e3693e2a649
--- /dev/null
+++ b/products/ingestion/skills/resolving-ingestion-warnings/references/fixing-cookieless-warnings.md
@@ -0,0 +1,48 @@
+# Fixing the cookieless warnings
+
+A cookieless-mode event was **dropped** because an ingredient required to compute its identity was missing or unusable.
+Category `event`, severity `error` for all five types: without the ingredient there is no way to know who the event belongs to, so it cannot be ingested at all.
+
+## How cookieless identity works (why these fields are mandatory)
+
+In cookieless mode the client stores nothing — events arrive with the sentinel distinct ID `$posthog_cookieless`, and PostHog computes a rotating anonymous ID server-side by hashing **calendar day + user agent + IP + host**. Every warning in this family is one missing ingredient:
+
+| Type | Missing ingredient |
+| ----------------------------------- | ----------------------------------------------------------------------------------------------------------- |
+| `cookieless_missing_timestamp` | No usable timestamp (event `timestamp`, `sent_at`, or arrival time) |
+| `cookieless_timestamp_out_of_range` | Timestamp's calendar day isn't plausibly current — in the future, or further past than ingestion lag allows |
+| `cookieless_missing_user_agent` | No `$raw_user_agent` property |
+| `cookieless_missing_ip` | No `$ip` property |
+| `cookieless_missing_host` | No `$host` property |
+
+The daily rotation is the privacy property — and it means cookieless has a built-in constraint: **events must arrive close to when they happened**. Old events can't be identified retroactively, by design.
+
+Who supplies which ingredient (browser flow): posthog-js sends `$raw_user_agent` and `$host` on every event; **`$ip` is never sent by the client** — capture records the connection's client IP and ingestion attaches it as `$ip` when the property is absent. Stock posthog-js in cookieless mode therefore works with no extra setup.
+
+## Diagnose
+
+Which ingredient is missing points at which layer is broken:
+
+1. `posthog:ingestion-warnings-list` with `q: 'cookieless'` (or per type). Samples carry the event name and UUID.
+2. Map the missing field to the layer:
+ - **`$raw_user_agent` / `$host` missing** → the events aren't coming from stock posthog-js: a non-browser producer sending the cookieless sentinel, or middleware (`before_send`, a rewriting proxy) stripping properties.
+ - **`$ip` missing** → the capture path saw no client IP — a proxy/CDN in front of PostHog not passing the client address through, or middleware explicitly deleting `$ip` before the identity is computed.
+ - **timestamp missing** → server-side batching that strips timestamps.
+ - **timestamp out of range** → a historical import routed through cookieless (can't work, see below), badly skewed client clocks, or offline queues flushing much later.
+3. If cookieless events produce **no warnings and no events at all**, check the project setting first: cookieless server hash mode must be enabled on the team — with it disabled, sentinel events are dropped without a warning.
+
+## Fix
+
+- **Browser via stock posthog-js**: no properties to add — fix whatever strips them (a rewriting proxy, a `before_send` hook), and ensure any proxy in front of PostHog forwards the client IP.
+- **Server-side capture** (your backend relays browser traffic): explicitly set `$raw_user_agent`, `$host`, **and `$ip`** from the original browser request on every cookieless event, and timestamp at capture time. The `$ip` is mandatory here even though no warning demands it while your server's IP fills the gap: without it, every user hashes on the **server's** IP and collapses into shared identities — silently, with no warning at all.
+- **Privacy middleware**: if something scrubs `$ip` before PostHog, exempt cookieless events — the IP is a hash input, not stored as identity.
+- **Historical imports/backfills**: don't route them through cookieless — past calendar days can't be hashed. Imports need real distinct IDs.
+- **Late delivery**: cookieless requires timely arrival; events buffered for days will be dropped as out-of-range. If the client legitimately buffers that long, cookieless is the wrong mode for it.
+
+## Verify
+
+Re-run the flow, re-query `posthog:ingestion-warnings-list` with a post-fix `since` — no new `cookieless_*` occurrences — and confirm cookieless events appear with computed anonymous IDs.
+
+## Related
+
+- [fixing-ignored-invalid-timestamp.md](fixing-ignored-invalid-timestamp.md) — timestamp problems outside cookieless mode (kept at server time instead of dropped).
diff --git a/products/ingestion/skills/resolving-ingestion-warnings/references/fixing-event-dropped-by-transformation.md b/products/ingestion/skills/resolving-ingestion-warnings/references/fixing-event-dropped-by-transformation.md
new file mode 100644
index 000000000000..5ab734fcfd74
--- /dev/null
+++ b/products/ingestion/skills/resolving-ingestion-warnings/references/fixing-event-dropped-by-transformation.md
@@ -0,0 +1,34 @@
+# Fixing `event_dropped_by_transformation`
+
+A **transformation configured by the team** (Data pipelines → Transformations) processed the event and dropped it.
+Category `transformation`, severity `info`: PostHog did exactly what the team's own configuration asked — the question is whether that configuration matches intent.
+
+## Working as intended, or an over-broad filter?
+
+Transformations drop events on purpose all the time — bot filtering, internal-traffic exclusion, PII scrubbing gone nuclear. The warning exists to make that visible, because from the SDK's side dropped events look identical to delivered ones.
+
+It becomes a problem when:
+
+- the transformation's **filter is broader than intended** (a greedy regex, a missing condition, a property match that also catches production traffic),
+- the transformation's code hits an unexpected input shape and drops instead of passing through,
+- one team's cleanup transformation eats events another team depends on.
+
+## Diagnose
+
+1. `posthog:ingestion-warnings-list` with `type: event_dropped_by_transformation`. The sample details name the exact `transformationId` and `transformationName` plus the dropped `event` and `distinctId` — no guessing which transformation did it. Warnings are debounced per transformation, so each entry represents a stream of drops, not one.
+2. Compare what's being dropped against the transformation's purpose: open the named transformation (`posthog:cdp-functions-list` to find it by the name in the details, or Data pipelines → Transformations in the UI) and read its filters and source; `posthog:cdp-functions-logs-retrieve` shows its recent execution logs. Ask "should a `<event name>` from `<this kind of user>` match this?"
+3. Check the volume: the warning count and sparkline show how much the transformation eats and since when — a sudden onset usually pinpoints the edit that broadened the filter (`posthog:advanced-activity-logs-list` scoped to the transformation shows who changed what, when).
+
+## Fix
+
+The transformation is team-owned configuration — **propose the change and let the user decide**, since edits affect all matching ingestion from that point on:
+
+- **Intended drops** (bots, internal traffic): nothing to fix; tell the user the warning is their own filter working, and how much it drops.
+- **Over-broad filter**: tighten the transformation's filters or code so the unintended events pass through; keep the intended drops.
+- **Shouldn't drop at all**: disable the transformation or remove its drop branch.
+
+Dropped events are gone — fixing the filter restores the flow from now on, it doesn't recover history.
+
+## Verify
+
+Re-run the affected flow, re-query `posthog:ingestion-warnings-list` with a post-fix `since` — the drop count for that transformation should fall to just the intended matches — and confirm the previously-missing events arrive while known-junk (bots, internal traffic) is still dropped.
diff --git a/products/ingestion/skills/resolving-ingestion-warnings/references/fixing-event-dropped-too-old.md b/products/ingestion/skills/resolving-ingestion-warnings/references/fixing-event-dropped-too-old.md
new file mode 100644
index 000000000000..e9c2852afad7
--- /dev/null
+++ b/products/ingestion/skills/resolving-ingestion-warnings/references/fixing-event-dropped-too-old.md
@@ -0,0 +1,41 @@
+# Fixing `event_dropped_too_old`
+
+An event was **dropped by policy**: its timestamp is valid but older than the team's configured `drop_events_older_than` threshold.
+Category `event`, severity `info`: this is an intentional, team-configured drop — the question is whether the configuration matches reality.
+
+## Working as intended, or silent data loss?
+
+The threshold exists to keep stale or replayed data from skewing analytics. The drop is **correct** when what's arriving really is junk (replayed traffic, a runaway retry loop resending week-old batches).
+
+It's **silent data loss** when legitimate late data hits a too-tight threshold:
+
+- **Mobile offline queues** — the biggest trap. Mobile SDKs buffer events while offline and flush when connectivity returns; a user coming back from a flight or weekend legitimately delivers **days-old** events. A threshold measured in hours quietly deletes real user activity, biased against exactly the users with patchy connectivity.
+- **Historical imports/backfills** — events carry their original timestamps and get dropped wholesale if the threshold is active during the import.
+- **Client clock skew** — a device with a badly wrong clock makes fresh events look old.
+
+## Diagnose
+
+1. `posthog:ingestion-warnings-list` with `type: event_dropped_too_old`. Sample details carry the event name, `distinctId`, `eventTimestamp`, `ageInSeconds`, and `dropThresholdSeconds` — so you can see exactly how late the data was and what the bar is.
+2. Read the pattern:
+ - A **burst** around one time window with one event family → an import or replayed batch.
+ - A **steady trickle** with ages of hours-to-days, from mobile platforms (check `$lib` on the affected persons' other events) → offline queues being deleted.
+ - Ages that are absurd (years) or negative-looking → client clock problems, not genuinely old data.
+
+## Fix
+
+The threshold is a **team-wide setting** (`drop_events_older_than`, minimum 1 hour, empty = no restriction — read the current value with `posthog:project-get`, change it via `posthog:project-settings-update` or project settings in the UI). Changing it affects all ingestion for the project — **propose the change to the user and let them decide**, don't adjust it on your own:
+
+- **Mobile offline traffic being dropped** → recommend raising the threshold to cover realistic offline windows (think days, not hours), or clearing it if stale-data protection isn't actually needed.
+- **Historical import** → propose temporarily clearing the threshold, running the import, then restoring it.
+- **Genuine junk being dropped** → nothing to fix; the setting is doing its job. Say so.
+- **Clock skew** → fix the client's time source, or omit custom timestamps and let the SDK stamp them.
+
+Dropped events are gone — an import that ran into the threshold must be re-run after the setting change.
+
+## Verify
+
+Re-run the flow or import, then re-query `posthog:ingestion-warnings-list` with a post-fix `since` — no new occurrences (for mobile, judge over several days, since offline flushes are sporadic) — and confirm the late events now appear with their original timestamps.
+
+## Related
+
+- [fixing-ignored-invalid-timestamp.md](fixing-ignored-invalid-timestamp.md) — the other timestamp surprise: _unparseable_ timestamps, kept at server time instead of dropped.
diff --git a/products/ingestion/skills/resolving-ingestion-warnings/references/fixing-group-key-too-long.md b/products/ingestion/skills/resolving-ingestion-warnings/references/fixing-group-key-too-long.md
new file mode 100644
index 000000000000..337d7444c9a7
--- /dev/null
+++ b/products/ingestion/skills/resolving-ingestion-warnings/references/fixing-group-key-too-long.md
@@ -0,0 +1,39 @@
+# Fixing `group_key_too_long`
+
+A `$groupidentify` event was **dropped** because its `$group_key` was longer than 400 characters.
+Category `size`, severity `error`: the group was not created or updated.
+
+## What it means in your code
+
+A group key should be a short, stable identifier — `org_1042`, a UUID, a domain. A key over 400 characters almost always means the wrong value was passed:
+
+- a serialized object or JSON blob where the ID should be,
+- a JWT/session token,
+- a URL with query parameters,
+- a concatenation bug (`${orgName}${orgDescription}` instead of `${orgId}`).
+
+## Diagnose
+
+1. `posthog:ingestion-warnings-list` with `type: group_key_too_long`. The sample details include the (truncated) `groupKey`, its length, and the 400 limit — the value itself usually reveals what got passed.
+2. Grep the app for `groupIdentify` / `group(` callsites and check what feeds the key argument.
+
+## Fix
+
+Pass a short, stable ID as the key, and keep everything descriptive in the properties:
+
+```js
+posthog.group('organization', org.id, {
+ name: org.name,
+ plan: org.plan,
+})
+```
+
+The key is the group's permanent identity — changing it later creates a **new** group, so pick the stable database ID, not a name or email that can change.
+
+## Verify
+
+Re-run the flow, then re-query `posthog:ingestion-warnings-list` with a post-fix `since` — no new occurrences — and confirm the group appears with its properties (`posthog:execute-sql` against the groups table).
+
+## Related
+
+- [fixing-message-size-too-large.md](fixing-message-size-too-large.md) — if group _properties_ (not the key) are oversized, they inflate every event tagged with the group.
diff --git a/products/ingestion/skills/resolving-ingestion-warnings/references/fixing-ignored-invalid-timestamp.md b/products/ingestion/skills/resolving-ingestion-warnings/references/fixing-ignored-invalid-timestamp.md
new file mode 100644
index 000000000000..af886c859a82
--- /dev/null
+++ b/products/ingestion/skills/resolving-ingestion-warnings/references/fixing-ignored-invalid-timestamp.md
@@ -0,0 +1,42 @@
+# Fixing `ignored_invalid_timestamp`
+
+An event's `timestamp` property couldn't be parsed, so PostHog **ingested the event with the server's arrival time** instead of the intended one.
+Category `event`, severity `warning`: no event was lost, but its time is wrong — which quietly corrupts trends, funnels with time windows, and historical imports (everything lands at import time).
+
+Note this is strictly about **unparseable** timestamps. Events that arrive late with _valid_ timestamps (mobile SDKs flushing offline queues, batched backends) are handled normally and don't produce this warning.
+
+## What it means in your code
+
+The timestamp string isn't a format PostHog can parse. Common sources:
+
+- locale formats: `"07/08/2026 14:32"`, `"8 Jul 2026"`,
+- unix epochs sent as strings or in seconds where milliseconds are expected,
+- `Date` objects serialized via string concatenation instead of `.toISOString()`,
+- out-of-range values (year 0 or five digits) from arithmetic bugs.
+
+## Diagnose
+
+1. `posthog:ingestion-warnings-list` with `type: ignored_invalid_timestamp`. The sample details carry the offending `value` and a `reason` from the parser — usually self-explanatory.
+2. Grep the app for where `timestamp` is set on capture calls (custom timestamps are most common in backend SDKs and migration/import scripts).
+
+## Fix
+
+Send ISO 8601 with timezone:
+
+```js
+client.capture({
+ distinctId,
+ event: 'order shipped',
+ timestamp: new Date(order.shippedAt).toISOString(), // '2026-07-08T14:32:00.000Z'
+})
+```
+
+If you don't need a custom time, omit `timestamp` entirely — the SDK stamps it correctly. For historical imports, validate the conversion on a sample before running the batch: mis-parsed rows are ingested at "now" and cannot be re-dated afterwards.
+
+## Verify
+
+Re-run the flow or a sample of the import, re-query `posthog:ingestion-warnings-list` with a post-fix `since` — no new occurrences — and confirm new events carry the intended times.
+
+## Related
+
+- [fixing-event-dropped-too-old.md](fixing-event-dropped-too-old.md) — the other timestamp-related surprise: **valid** but old timestamps (e.g. mobile offline queues flushing days later) dropped by a team-configured threshold.
diff --git a/products/ingestion/skills/resolving-ingestion-warnings/references/fixing-invalid-ai-token-property.md b/products/ingestion/skills/resolving-ingestion-warnings/references/fixing-invalid-ai-token-property.md
new file mode 100644
index 000000000000..f19585f424de
--- /dev/null
+++ b/products/ingestion/skills/resolving-ingestion-warnings/references/fixing-invalid-ai-token-property.md
@@ -0,0 +1,39 @@
+# Fixing `invalid_ai_token_property`
+
+An AI event (`$ai_generation`, `$ai_span`, …) carried a token property that wasn't a valid number — `$ai_input_tokens`, `$ai_output_tokens`, or a similar count sent as a string, object, or malformed value.
+The event was ingested but the property was **nulled**.
+Category `event`, severity `warning`: token usage and cost analytics silently lose that data point.
+
+## What it means in your code
+
+Token counts must arrive as plain numbers. The usual sources of bad values:
+
+- string formatting: `"1204"`, `"1,204"`, `"1204 tokens"`,
+- passing the provider's usage **object** instead of a field (`usage` instead of `usage.total_tokens`),
+- `NaN`/`undefined` from a missing usage block on streamed or failed responses.
+
+## Diagnose
+
+1. `posthog:ingestion-warnings-list` with `type: invalid_ai_token_property`. The sample details name the exact `property`, the received `value`, and its `valueType` — that's usually the whole diagnosis.
+2. Find where the LLM provider's usage data is mapped onto the `$ai_*` properties (manual capture or instrumentation wrapper) and check the types.
+
+## Fix
+
+Send numbers:
+
+```js
+posthog.capture({
+ distinctId,
+ event: '$ai_generation',
+ properties: {
+ $ai_input_tokens: response.usage.prompt_tokens, // number
+ $ai_output_tokens: response.usage.completion_tokens, // number
+ },
+})
+```
+
+Guard the missing-usage case (streamed/failed responses): omit the property rather than sending `undefined` or a placeholder. Prefer PostHog's LLM analytics SDK integrations over hand-mapping usage fields — they handle provider differences.
+
+## Verify
+
+Re-run a generation, re-query `posthog:ingestion-warnings-list` with a post-fix `since` — no new occurrences — and confirm token counts and costs appear for new traces (`posthog:query-llm-traces-list`).
diff --git a/products/ingestion/skills/resolving-ingestion-warnings/references/fixing-invalid-distinct-ids.md b/products/ingestion/skills/resolving-ingestion-warnings/references/fixing-invalid-distinct-ids.md
new file mode 100644
index 000000000000..d44d26e8055c
--- /dev/null
+++ b/products/ingestion/skills/resolving-ingestion-warnings/references/fixing-invalid-distinct-ids.md
@@ -0,0 +1,43 @@
+# Fixing the invalid distinct ID warnings
+
+Both warnings are the same bug class: **something that isn't a user identifier reached the distinct ID argument.** The value's shape decides which warning fires:
+
+| Type | Severity | The junk value | What happened |
+| --------------------------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `cannot_merge_with_illegal_distinct_id` | warning | A blocklisted placeholder: `undefined`, `null`, `NaN`, `[object Object]`, `true`, `false`, `anonymous`, `guest`, `distinct_id`, … | The `identify`/`alias` merge was **refused** — silently; the SDK call returned success. (If it weren't, every user hitting the same bug would merge into one giant "undefined" person) |
+| `skipping_event_invalid_distinct_id` | error | Anything over 400 characters — a JWT, a serialized object, a URL, a concatenation bug | The event was **dropped** entirely. Every event sent with that value is silently lost until fixed |
+
+## What it means in your code
+
+- `posthog.identify(user.id)` where `user` is not yet loaded → `identify(undefined)` → `"undefined"`.
+- `posthog.alias(String(session.userId))` with a missing field → `"undefined"` / `"null"`; an object passed where a string was expected → `"[object Object]"`.
+- A token or payload flowing into the ID argument (dots and base64 → a JWT; braces → serialized JSON).
+- A hardcoded fallback like `"anonymous"` or `"guest"` for logged-out users — don't; PostHog already handles anonymous users with its own IDs.
+
+## Diagnose
+
+1. `posthog:ingestion-warnings-list` with either `type`. The samples do most of the work: `illegalDistinctId` shows the placeholder (plus `otherDistinctId`, the real user it tried to link); the oversized variant shows the truncated `distinctId` and its length. The value's shape names the bug.
+2. Find the callsite: grep the app for `identify(`, `alias(`, and `capture(` with an explicit `distinctId` — and trace where the argument can be undefined (typically a race with auth state) or receive a token/object.
+
+## Fix
+
+Guard every call so only a real, stable user identifier can reach the ID argument:
+
+```js
+if (user?.id) {
+ posthog.identify(user.id)
+}
+```
+
+- Call `identify` after authentication resolves (auth callback/effect), not on page load.
+- Never use fallback IDs for logged-out users — leave them anonymous; PostHog links the sessions when `identify` eventually runs.
+- Type the helper so objects and tokens can't be passed as the ID.
+
+## Verify
+
+Re-run the login/affected flow, re-query `posthog:ingestion-warnings-list` with a post-fix `since` — no new occurrences of either type — and confirm events arrive under the correct persons.
+
+## Related
+
+- [fixing-cannot-merge-already-identified.md](fixing-cannot-merge-already-identified.md) — the other merge refusal; broken identify flows often produce both.
+- [fixing-merge-race-condition.md](fixing-merge-race-condition.md) — app-specific shared values (org slugs, tenant names) slip past the placeholder blocklist and build "mega persons" instead.
diff --git a/products/ingestion/skills/resolving-ingestion-warnings/references/fixing-invalid-heatmap-data.md b/products/ingestion/skills/resolving-ingestion-warnings/references/fixing-invalid-heatmap-data.md
new file mode 100644
index 000000000000..40bc9b56a7c1
--- /dev/null
+++ b/products/ingestion/skills/resolving-ingestion-warnings/references/fixing-invalid-heatmap-data.md
@@ -0,0 +1,42 @@
+# Fixing the heatmap data warnings
+
+An event carried a malformed `$heatmap_data` payload. **The event itself survived** — only heatmap data was discarded, so this shows up as heatmaps missing clicks/pages rather than missing events.
+Category `event`, severity `warning`. Three variants tell you how much was lost:
+
+| Type | What was discarded |
+| ------------------------------------------- | -------------------------------------------------------------------------------------------- |
+| `invalid_heatmap_data` | The **entire** `$heatmap_data` payload for that event — it didn't parse at all |
+| `rejecting_heatmap_data_with_invalid_url` | One entry: its key (the page URL) was empty or not a string; other entries processed |
+| `rejecting_heatmap_data_with_invalid_items` | One entry: its URL mapped to something other than an array of items; other entries processed |
+
+## What it means in your code
+
+`$heatmap_data` is normally generated by posthog-js — hand-built payloads are almost always the source of these warnings. The expected shape:
+
+```js
+{
+ $heatmap_data: {
+ 'https://app.example.com/dashboard': [ // key: the page URL, a non-empty string
+ { x: 120, y: 340, target_fixed: false, type: 'click' }, // value: an ARRAY of items
+ ],
+ },
+}
+```
+
+The classic bugs: a `null`/`undefined` URL variable interpolated into the key, a single item object where the array should be, or a stringified/otherwise mangled structure from a custom proxy or mobile bridge.
+
+## Diagnose
+
+1. `posthog:ingestion-warnings-list` with the specific `type` (or `q: 'heatmap'` to see all three). The `rejecting_*` samples include the offending `heatmapUrl` and `session_id`; `invalid_heatmap_data` samples carry the `event_uuid` of the event whose payload failed entirely. The `rejecting_*` types are debounced per session — each entry stands for a session's worth of skips.
+2. **Check the SDK version**: pull `$lib` / `$lib_version` from the affected sessions' events (`posthog:execute-sql` on the events table, filtered to the sampled session/distinct IDs) and compare against unaffected traffic. Warnings clustering on old posthog-js versions point to an outdated SDK producing a stale payload shape — the fix is an upgrade, not payload surgery. Mixed versions are common when some deploys/pages pin an old snippet.
+3. Find the producer: if the app uses a current stock posthog-js, check for anything that rewrites events in flight (a capture proxy, a `before_send` hook, a custom transport). If `$heatmap_data` is built by hand (custom canvas apps, mobile), inspect that construction against the shape above.
+
+## Fix
+
+- **Outdated posthog-js**: upgrade to the current version everywhere — hunt down pinned snippets and stale bundles so all pages ship the same version.
+- **Stock, current posthog-js**: don't touch `$heatmap_data` — remove or fix any middleware/proxy that rewrites it.
+- **Hand-built payloads**: match the shape exactly — page-URL string keys (guard against unset URL variables), arrays of `{x, y, target_fixed, type}` items as values. Or better: capture the interactions as regular events and let PostHog's own heatmap capture do the heatmap part.
+
+## Verify
+
+Re-run the affected pages/flows, re-query `posthog:ingestion-warnings-list` with a post-fix `since` — no new occurrences — and confirm the heatmap for the affected URLs starts accumulating data again.
diff --git a/products/ingestion/skills/resolving-ingestion-warnings/references/fixing-merge-race-condition.md b/products/ingestion/skills/resolving-ingestion-warnings/references/fixing-merge-race-condition.md
new file mode 100644
index 000000000000..45333219a155
--- /dev/null
+++ b/products/ingestion/skills/resolving-ingestion-warnings/references/fixing-merge-race-condition.md
@@ -0,0 +1,44 @@
+# Fixing `merge_race_condition`
+
+Too many **concurrent merge operations hit the same persons at once**, and PostHog abandoned one of them to protect consistency.
+Category `merge`, severity `error`: the event kept flowing, but **that merge did not persist** — the two persons stay separate until a later, uncontended identify/alias succeeds.
+
+Unlike most warnings this one is **never debounced** — every occurrence lands, so the count is a true measure of how much merge contention the app generates.
+
+## What it means in your code
+
+A single user's identity operations should be rare — once per login/signup. Contention on one person pair means something fires `identify`/`alias` for the same user **in parallel**:
+
+- `identify()` called on every request, page load, or render instead of once per session — a burst of parallel calls races itself.
+- Parallel backend workers or batch jobs identifying the same users simultaneously (a user-sync fan-out where multiple shards touch the same account).
+- Retry storms: a failed capture batch re-sent while the original is still processing.
+- **A "mega person" acting as a merge magnet**: a bug identifies many different humans with the same value (an org ID, a tenant name, a default/placeholder), funneling them all into one person. That person becomes party to everyone's merges — contention concentrates on it structurally, no matter how well-behaved each individual client is.
+- Several devices/tabs of the same user logging in at the same moment is normal in small doses — steady high counts are the code smell.
+
+## Diagnose
+
+1. `posthog:ingestion-warnings-list` with `type: merge_race_condition`. Sample details carry both sides (`sourcePersonDistinctId`, `targetPersonDistinctId`, the person UUIDs) and the triggering `event_uuid`.
+2. **Check for a mega person first**: resolve the sampled distinct IDs to persons and count each person's distinct IDs (`posthog:persons-list`, or `posthog:execute-sql` against the person-distinct-ID mapping). A person with hundreds or thousands of distinct IDs is a merge magnet — the race warnings are a symptom, and the real bug is whatever shared value keeps getting passed to `identify` (look at the person's distinct ID list: an org slug, `"user"`, an email domain, a device model repeating tells you exactly which value leaked in).
+3. Measure the shape: a handful of scattered occurrences is benign concurrency; sustained counts or bursts around specific times point at a code path (deploy jobs, login storms, a sync cron).
+4. Find the caller: query the events table (`posthog:execute-sql`) for `$identify`/`$create_alias` events for the affected distinct IDs and look at their frequency and spacing — dozens of identifies per user per minute means an identify-per-request pattern; bursts at fixed times mean a batch job.
+5. Confirm the aftermath: check whether the persons eventually merged (a later identify usually wins once contention stops). If they're still separate, the split analytics will persist until one more identify for that pair goes through.
+
+## Fix
+
+Reduce the contention at its source:
+
+- **Mega person**: fix the identify callsite passing the shared value — each `identify` must receive an ID unique to one human. The already-merged mega person is damage that code can't cleanly undo; surface it to the user and recommend contacting PostHog support about splitting it rather than attempting programmatic repair.
+- **Frontend**: call `identify` once when auth state changes (login/signup callback), not per request, per page, or per render. Guard with "already identified as this user?" checks where the SDK doesn't already.
+- **Backend**: route identity operations for a given user through a single path — dedupe by user ID (idempotency key, per-user lock, or partition-by-user in workers) so parallel jobs can't race on the same person.
+- **Retries**: don't blind-resend identify batches; make retries idempotent and spaced.
+
+No PostHog-side setting needs changing — the protection is doing its job; the app is supplying the race.
+
+## Verify
+
+Re-run the flow, then re-query `posthog:ingestion-warnings-list` with a post-fix `since` — counts should drop to the occasional benign collision (multiple devices logging in simultaneously) or zero. Confirm previously-affected users resolve to a single person, and that no person's distinct ID count keeps climbing.
+
+## Related
+
+- [fixing-cannot-merge-already-identified.md](fixing-cannot-merge-already-identified.md) — the deterministic merge refusal; identify-per-request patterns often produce both warnings.
+- [fixing-invalid-distinct-ids.md](fixing-invalid-distinct-ids.md) — PostHog's blocklist catches common placeholder IDs, but app-specific shared values (org slugs, tenant names) slip past it and build mega persons instead.
diff --git a/products/ingestion/skills/resolving-ingestion-warnings/references/fixing-message-size-too-large.md b/products/ingestion/skills/resolving-ingestion-warnings/references/fixing-message-size-too-large.md
new file mode 100644
index 000000000000..6c38efbd760d
--- /dev/null
+++ b/products/ingestion/skills/resolving-ingestion-warnings/references/fixing-message-size-too-large.md
@@ -0,0 +1,55 @@
+# Fixing `message_size_too_large`
+
+The event was **dropped during ingestion** — it never reached PostHog's events table — because the fully-enriched Kafka message exceeded the ~1MB size limit.
+Category `size`, severity `error`: this is data loss, not a cosmetic warning.
+
+## The critical insight: the limit applies AFTER enrichment
+
+There are two distinct failure modes, and they look completely different from the app's side:
+
+1. **Rejected at capture** — the event is already too large when sent. The SDK gets an HTTP 413 back, so the failure is visible in SDK logs/error handlers. No ingestion warning is produced for this mode.
+2. **Dropped in the pipeline (this warning)** — the event passed capture fine (SDK saw success), but during ingestion PostHog copies the person's properties **and the properties of every group the event belongs to** onto the event. If those have accumulated large values, that enrichment pushes the message past the limit and it is dropped **silently** — the client believes it succeeded.
+
+The total budget is shared: `event properties + person properties + group properties < ~1MB`.
+Three consequences:
+
+- A person with ~1MB of person properties makes **all of their events** undeliverable, no matter how small each event is.
+- A bloated group (e.g. an organization with a huge settings blob in `$group_set`) makes **every event tagged with that group** undeliverable — potentially across many users at once. Many users affected simultaneously is the signature of a group-side cause.
+- An event that is _itself_ large (say 700KB — under the capture limit) can be pushed over by even modest person/group properties. A big event and moderately big person can each look fine in isolation and still fail together.
+
+## Diagnose
+
+1. List the warnings: use the `posthog:ingestion-warnings-list` tool with `type: message_size_too_large` (or the Ingestion warnings page under Data management). Samples carry `event_uuid` and `distinct_id`; `pipeline_step` is `emit-event` (single event) or `flush` (batched person/group writes).
+2. Read the repetition pattern in the samples — but resolve distinct IDs to persons before concluding. Distinct IDs are not persons: identified users routinely carry several distinct IDs (anonymous IDs, emails, device IDs) that all map to one merged person, whose properties inflate events sent under **any** of them. Use `posthog:persons-list` (filter by the sampled `distinct_id`) to fetch the person behind it first, then read the pattern at the person level:
+ - Same person recurring (even under different distinct IDs) → that person's profile is inflated.
+ - Many different _persons_, same event name → the event itself carries a huge payload.
+ - Many different persons whose events share a group → group properties are inflated.
+3. **Check the event itself first** — it's the cheapest check. Look at how the event is constructed in code, and measure recent surviving occurrences with `posthog:execute-sql`: `SELECT length(properties) FROM events WHERE event = '<name>' ORDER BY timestamp DESC LIMIT 10`. Anything in the hundreds of KB means the event is (most of) the problem.
+4. **Check the person**: inspect the size and shape of the resolved person's properties — via the person page, or `posthog:execute-sql`: `SELECT length(properties) FROM persons WHERE id = '<person_id>'`.
+5. **Check the groups**: if the affected events carry `$groups`, inspect each group's properties the same way — a single fat group poisons every event that references it.
+6. Grep the app code for the event name / `$set` / `groupIdentify` sites feeding those properties: base64 blobs, file contents, entire API responses, or unbounded accumulation (`interaction_1`, `interaction_2`, …) are the usual suspects.
+
+## Fix
+
+The fix is always the same shape: **send references, not payloads**, and keep person and group properties bounded.
+
+- Never attach file contents, images, base64 data, raw documents, or full API responses to event properties, `$set`, or `$group_set`. Store them in your own storage and send an ID or URL.
+- Cap accumulating person/group properties: don't mirror an ever-growing CRM or interaction history onto the person or organization. Keep a bounded summary (counts, last-N, flags).
+- If a person is already inflated, a one-time `$unset` cleanup of the oversized keys is needed — until then that person's events keep being dropped even after the code fix. `$unset` deletes person data irreversibly and cohorts/flags/filters may depend on those properties, so **propose it to the user and get their approval**; run it as a throwaway one-off, never as shipped application code. Load `fixing-person-properties-size-violation` for the full cleanup procedure.
+- If a group is already inflated, the same applies: propose re-running `groupIdentify` with the oversized keys set to small values (group properties are overwritten per key) and let the user decide.
+
+Per SDK, the bug usually looks like:
+
+- **posthog-js**: `posthog.capture('x', { document: bigString })`, `posthog.setPersonProperties({ history: bigObject })`, a large `register()` payload attached to every event, or `posthog.group('org', id, bigSettingsObject)`.
+- **posthog-node**: `client.capture({ properties: { $set: wholeCrmRecord } })` in sync jobs; response bodies logged into properties; `client.groupIdentify({ properties: bigObject })`.
+- **posthog-python**: `posthog.capture(..., properties={'payload': json.dumps(obj)})` with unbounded `obj`; `$set` in `identify()` or `group_identify()` carrying full profiles.
+
+## Verify
+
+1. Re-run the affected flow.
+2. Re-query `posthog:ingestion-warnings-list` with `type: message_size_too_large` and a `since` after your fix — the count for the affected distinct IDs must stop growing. Warnings are debounced per team+type, so judge by "no new occurrences over a real usage window", not by the historical count going down (it won't).
+3. Confirm the previously-missing events now appear in the events table.
+
+## Related
+
+- [fixing-person-properties-size-violation.md](fixing-person-properties-size-violation.md) — the same oversized-person-properties root cause, caught at the person store instead of event emit. If you see both warnings for the same distinct IDs, fix the person properties first.
diff --git a/products/ingestion/skills/resolving-ingestion-warnings/references/fixing-person-properties-size-violation.md b/products/ingestion/skills/resolving-ingestion-warnings/references/fixing-person-properties-size-violation.md
new file mode 100644
index 000000000000..236c34f84e69
--- /dev/null
+++ b/products/ingestion/skills/resolving-ingestion-warnings/references/fixing-person-properties-size-violation.md
@@ -0,0 +1,71 @@
+# Fixing `person_properties_size_violation`
+
+A person-properties update was **rejected**: applying it would push the person's stored properties past PostHog's size limit (on the order of 1MB of JSON).
+Category `size`, severity `error`: the event itself was ingested, but the `$set`/`$set_once` payload it carried was **not applied** — the person's profile is now silently stale.
+
+## Three things that make this warning treacherous
+
+1. **The rejection is silent** — the capture call succeeded; only the property update was discarded. Code keeps "updating" a profile that never changes.
+2. **It undercounts** — the size check runs on a sample of person updates, so one warning implies many more rejected or at-risk updates for the same person.
+3. **It has a blast radius beyond properties** — person properties are copied onto every event during ingestion, so a person near the limit also inflates their events toward the event size limit. If you see `message_size_too_large` for the same distinct IDs, it's the same root cause (load `fixing-message-size-too-large`).
+
+## The three ways person state grows
+
+Diagnosing means identifying which growth pattern you're looking at — each has a different signature and a different fix:
+
+| Pattern | What it looks like | Signature |
+| ------------------ | ----------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
+| **Dynamic keying** | Keys generated from data: `interaction_1042`, `viewed_2026-07-08`, `feature_<uuid>_used` | Huge **key count**; each value can be tiny. Size arrives by accumulation — every update adds keys, none ever leave |
+| **Big payloads** | A few monstrous values: a mirrored CRM record, a base64 blob, a full API response, `$set_once` of a signup snapshot | Normal key count; a handful of keys dominate the **value size** ranking |
+| **Deep nesting** | A plausible-looking key (`settings`, `metadata`, `profile`) holding a deeply nested object that grows a level or a branch at a time | Neither count nor top-level ranking looks alarming until you open the value — the size hides **inside** the structure |
+
+These combine: a dynamically-keyed map of nested objects is the worst case and typically comes from "just sync the whole thing" integrations.
+
+## Diagnose
+
+1. List the warnings with `posthog:ingestion-warnings-list` (`type: person_properties_size_violation`). Samples carry `person_id` and `distinct_id`. Remember distinct IDs are not persons — resolve them (`posthog:persons-list` filtered by distinct ID); the person's properties are shared across all of their distinct IDs.
+2. Profile the person's properties against the three patterns:
+ - **Count the keys** — hundreds+ means dynamic keying; look for the generated-name pattern.
+ - **Rank values by size** (`JSONExtractKeys(properties)` + `length()` of each value via `posthog:execute-sql`, or eyeball the person page) — a few dominant keys means big payloads.
+ - **Open the large values** — if a "reasonable" key holds a deep object tree, it's the nesting pattern; note which branch grows.
+3. Find the writer: grep the app code for the `$set` / `$set_once` / `identify` / `setPersonProperties` callsites producing that pattern — key-name templates for dynamic keying, sync jobs for big payloads, incremental merge-into-object logic for nesting.
+
+## Fix
+
+The fix has two parts: a **code change** so the profile stops growing, and a **one-time cleanup** of the persons that are already inflated. Both are needed — the code change alone doesn't unbreak affected persons (their updates keep failing until the stored blob is back under the limit), and cleanup without the code change just buys time until it reoccurs.
+
+### 1. Code change — match the fix to the pattern
+
+Person properties are for **current state** — bounded facts about the user (plan, role, counts, flags, last-N summaries):
+
+- **Dynamic keying** → never template data into key names. Per-thing facts belong in **events** (query them with aggregations); if you truly need per-key state, keep a bounded map (last N, or counts per category).
+- **Big payloads** → store the payload in your own storage and `$set` a reference (ID/URL) plus the few fields you actually filter on.
+- **Deep nesting** → flatten: extract the handful of leaf fields analytics needs into top-level properties and stop syncing the container object.
+
+### 2. One-time cleanup — propose `$unset`, don't run it unprompted
+
+`$unset` **deletes person data irreversibly**, and other things may depend on those properties — cohorts, feature flag conditions, insight filters. Treat it as a remediation the **user decides on**:
+
+- Present the affected persons and the exact keys you propose to remove, with their sizes, and check whether any cohort/flag/filter references them before recommending deletion.
+- Only after the user agrees, run it — as a throwaway one-off, never as code that ships in the application. Per key, `posthog:persons-property-delete` does the same job tool-side; for many keys/persons, a one-off script sending `$unset`:
+
+```js
+posthog.capture({
+ distinctId: 'the-affected-user',
+ event: 'cleanup oversized profile',
+ properties: { $unset: ['crm_record', 'interaction_history'] },
+})
+```
+
+- `$unset` takes top-level key names. For dynamic keying, generate the list from the key enumeration in Diagnose. For deep nesting, you can't unset a nested path — unset the container and re-`$set` it with its slimmed value.
+- Expect more affected persons than the warning samples show — the check is sampled.
+
+## Verify
+
+1. After the cleanup, send a small `$set` (e.g. a `profile_cleaned_at` timestamp) and confirm it appears on the person — proof updates apply again.
+2. Re-query `posthog:ingestion-warnings-list` with a post-fix `since` — no new occurrences. Judge by absence of new warnings over a real usage window; historical counts don't shrink.
+3. If `message_size_too_large` was firing for the same persons, confirm it stopped too.
+
+## Related
+
+- [fixing-message-size-too-large.md](fixing-message-size-too-large.md) — the event-side symptom of the same inflated-person root cause; fix the person properties first, then confirm events flow.
diff --git a/products/ingestion/skills/resolving-ingestion-warnings/references/fixing-process-person-profile-warnings.md b/products/ingestion/skills/resolving-ingestion-warnings/references/fixing-process-person-profile-warnings.md
new file mode 100644
index 000000000000..3227d197a2b6
--- /dev/null
+++ b/products/ingestion/skills/resolving-ingestion-warnings/references/fixing-process-person-profile-warnings.md
@@ -0,0 +1,28 @@
+# Fixing the `$process_person_profile` warnings
+
+`$process_person_profile: false` marks an event as anonymous — cheaper, no person profile. Two different mistakes around that flag produce two warnings:
+
+| Type | Severity | What happened |
+| ---------------------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
+| `invalid_process_person_profile` | warning | The value wasn't a boolean (`"false"`, `"yes"`, `0`, …) — PostHog **ignored it and defaulted to `true`**. The event was ingested and person processing ran anyway |
+| `invalid_event_when_process_person_profile_is_false` | error | An `$identify`/`$create_alias`/`$merge_dangerously`/`$groupidentify` carried a valid `false` — but these operations exist to modify person/group state, so the event was **dropped** |
+
+Both failure modes are silent from the SDK's side. The first quietly opts you back **into** person processing (and its cost); the second makes identity operations no-ops.
+
+## Diagnose
+
+1. `posthog:ingestion-warnings-list` with either `type`. For the non-boolean variant, the sample details show the exact value received — its type names the bug (`"false"` = stringified config/env value, `0` = numeric flag). For the dropped variant, the samples show which identity event was dropped and for which distinct IDs.
+2. Find where the flag gets attached: SDK config, a shared capture wrapper, or the callsite. Env vars and JSON configs are the usual source of stringified booleans; a global "mark everything anonymous" wrapper is the usual source of the identity-event contradiction.
+
+## Fix
+
+Decide which intent is real, then make the flag match it:
+
+- **Pass a real boolean** — parse config values (`value === 'true'`) before they reach the SDK; never send `"false"`.
+- **You want person profiles for identified users** → in posthog-js use the supported config, `person_profiles: 'identified_only'`, instead of hand-setting the property per event or using `'never'` — identity events then process persons while plain events stay anonymous until identify.
+- **A wrapper stamps `false` on everything** → exempt the identity events (`$identify`, `$create_alias`, `$groupidentify`) from it.
+- **You truly want no person processing** → stop calling `identify`/`alias`/`group` at all; they cannot work in that mode.
+
+## Verify
+
+Re-run the flow, re-query `posthog:ingestion-warnings-list` with a post-fix `since` — no new occurrences of either type — and confirm the intended behavior: anonymous events stop creating person profiles, and persons/groups update again where they should.
diff --git a/products/ingestion/skills/resolving-ingestion-warnings/references/fixing-session-replay-warnings.md b/products/ingestion/skills/resolving-ingestion-warnings/references/fixing-session-replay-warnings.md
new file mode 100644
index 000000000000..2a91e0068e82
--- /dev/null
+++ b/products/ingestion/skills/resolving-ingestion-warnings/references/fixing-session-replay-warnings.md
@@ -0,0 +1,27 @@
+# Fixing the session replay warnings
+
+These warnings come from the **session replay ingestion pipeline** — note the two `message_*` types don't say "replay" in their names, but they are replay warnings (category `replay`).
+The symptom side is recordings that never appear or play back with gaps: each dropped message is a chunk of a recording, so a session can exist but miss segments.
+
+| Type | Severity | What happened |
+| ----------------------------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `replay_lib_version_too_old` | info | Recording sent by posthog-js 1.x below 1.75 — **still processed**, but the SDK is too old to support all recording features. Debounced per version |
+| `message_contained_no_valid_rrweb_events` | warning | A snapshot message carried no usable rrweb events — **that chunk was dropped** |
+| `message_timestamp_diff_too_large` | warning | A snapshot message's event timestamps are 7+ days away from now — **that chunk was dropped** |
+
+## Diagnose
+
+1. `posthog:ingestion-warnings-list` with the specific `type` (or `q: 'replay'` plus `q: 'message_'`). For `message_timestamp_diff_too_large` the details carry `startDiffDays`/`endDiffDays` vs the 7-day threshold — the magnitude tells the story (8 days = buffering/late flush; hundreds/negative-looking = a broken client clock).
+2. **Check SDK version clustering first** (`$lib_version` on the affected sessions' events, via `posthog:execute-sql`): `replay_lib_version_too_old` names the outdated version outright in its details, and the other two also concentrate on old or unusual SDK versions when the payload shape is the problem.
+3. For `message_contained_no_valid_rrweb_events`, look between the SDK and PostHog: a rewriting reverse proxy, compression/decompression middleware, or a custom transport that truncates or re-serializes the snapshot payload is the usual cause when the SDK is current.
+4. Distinguish clock from buffer for timestamp diffs: a device with a wrong clock produces the warning **continuously** for that user; buffered/offline replay produces **bursts** on reconnect.
+
+## Fix
+
+- **Old posthog-js** (`replay_lib_version_too_old`): upgrade to a current version — 1.75 is the floor for full recording support, but go to latest; recording pipelines evolve quickly. Hunt pinned snippets so every page ships the same version.
+- **Mangled snapshots** (`no_valid_rrweb_events`): let replay traffic reach PostHog unmodified — remove or fix payload-rewriting proxies and custom transports; upgrade the SDK if it predates the current snapshot format.
+- **Timestamp diffs**: fix client clocks where the skew is persistent. Where it's buffering: replay is designed for near-real-time delivery — snapshot chunks older than 7 days are dropped by design, so recordings can't be imported or replayed into PostHog after the fact.
+
+## Verify
+
+Record a fresh session on the affected app/platform, re-query `posthog:ingestion-warnings-list` with a post-fix `since` — no new occurrences — and confirm the new recording appears (`posthog:query-session-recordings-list`) and plays back complete, without gaps.