: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(taxonomy): remove unprefixed source from core taxonomy (#93601)
Georgiy Tarasov9e9da6154121
diff --git a/frontend/src/lib/components/PropertyFilters/utils.test.ts b/frontend/src/lib/components/PropertyFilters/utils.test.tsindex 3452064967a1..8d04059c8ada 100644--- a/frontend/src/lib/components/PropertyFilters/utils.test.ts+++ b/frontend/src/lib/components/PropertyFilters/utils.test.ts@@ -136,7 +136,7 @@ describe('formatPropertyLabel() for behavioral filters', () => {{ type: PropertyFilterType.Event, key: 'source', operator: PropertyOperator.Exact, value: ['web'] },],},- 'Did not perform signed_up where Source = web in the last 30\u00a0days',+ 'Did not perform signed_up where source = web in the last 30\u00a0days',noActions,],[@@ -147,7 +147,7 @@ describe('formatPropertyLabel() for behavioral filters', () => {{ type: PropertyFilterType.Person, key: 'email', operator: PropertyOperator.IsSet, value: null },],},- 'Performed signed_up where Source = web and Email address ✓ is set in the last 30\u00a0days',+ 'Performed signed_up where source = web and Email address ✓ is set in the last 30\u00a0days',noActions,],])('%s', (_name, overrides, expected, actionsById) => {diff --git a/frontend/src/taxonomy/core-filter-definitions-by-group.json b/frontend/src/taxonomy/core-filter-definitions-by-group.jsonindex 93bd95a553c4..317df0dd2701 100644--- a/frontend/src/taxonomy/core-filter-definitions-by-group.json+++ b/frontend/src/taxonomy/core-filter-definitions-by-group.json@@ -3808,17 +3808,6 @@"description": "Snapchat Click ID","label": "sccid"},- "source": {- "description": "Which PostHog surface the work came from. The surface values are 'web' (the app in a browser), 'posthog_ai' (Max), 'desktop' (the PostHog Desktop app), 'mobile' (the PostHog mobile app), 'slack' (the Slack app), 'mcp' (a third-party agent over MCP), 'cli', and 'api' (a direct API call). On API events, PostHog's own surfaces report themselves, so 'mcp' measures other people's agents. The $mcp_* events are stamped by the MCP server instead, which cannot read the OAuth grant that identifies the Desktop app, so a Desktop request can still show as 'mcp' on those. 'posthog_code' covers the headless coding agents: the cloud agent and the local agent. 'self_driving' is Signals: scouts, report implementations, and scout chat. 'wizard' is the setup agent and 'terraform' is the Terraform provider. Four values are machines rather than surfaces: 'cache_warming', 'alert', 'export', and 'subscription'. Two unrelated properties share this name, so filter to a specific event before breaking down by it. The app also uses 'source' for which control fired an event, with values like 'menu', 'keyboard-shortcut', and 'card_drag_handle'. Some backend paths use it for something else again: 'static' on $http_log, 'blob_v2', 'blob', 'listing' and 'realtime' on the session replay snapshot events, 'mcpcat' on the legacy MCP events, and 'template' or 'custom' on 'mcp_store server installed'. Two surface values also collide with older control names: on 'switched site mode', 'desktop' means the device-mode control rather than the app, and on the AI report events, 'slack' means the delivery channel.",- "examples": [- "web",- "posthog_ai",- "mcp",- "desktop",- "api"- ],- "label": "Source"- },"token": {"description": "Token used for authentication.","examples": [@@ -8890,17 +8879,6 @@"description": "Snapchat Click ID Data from the last time this user was seen.","label": "Latest sccid"},- "source": {- "description": "Which PostHog surface the work came from. The surface values are 'web' (the app in a browser), 'posthog_ai' (Max), 'desktop' (the PostHog Desktop app), 'mobile' (the PostHog mobile app), 'slack' (the Slack app), 'mcp' (a third-party agent over MCP), 'cli', and 'api' (a direct API call). On API events, PostHog's own surfaces report themselves, so 'mcp' measures other people's agents. The $mcp_* events are stamped by the MCP server instead, which cannot read the OAuth grant that identifies the Desktop app, so a Desktop request can still show as 'mcp' on those. 'posthog_code' covers the headless coding agents: the cloud agent and the local agent. 'self_driving' is Signals: scouts, report implementations, and scout chat. 'wizard' is the setup agent and 'terraform' is the Terraform provider. Four values are machines rather than surfaces: 'cache_warming', 'alert', 'export', and 'subscription'. Two unrelated properties share this name, so filter to a specific event before breaking down by it. The app also uses 'source' for which control fired an event, with values like 'menu', 'keyboard-shortcut', and 'card_drag_handle'. Some backend paths use it for something else again: 'static' on $http_log, 'blob_v2', 'blob', 'listing' and 'realtime' on the session replay snapshot events, 'mcpcat' on the legacy MCP events, and 'template' or 'custom' on 'mcp_store server installed'. Two surface values also collide with older control names: on 'switched site mode', 'desktop' means the device-mode control rather than the app, and on the AI report events, 'slack' means the delivery channel.",- "examples": [- "web",- "posthog_ai",- "mcp",- "desktop",- "api"- ],- "label": "Source"- },"token": {"description": "Token used for authentication.","examples": [diff --git a/posthog/taxonomy/taxonomy.py b/posthog/taxonomy/taxonomy.pyindex d44a14c3b43e..99a3e9d59a47 100644--- a/posthog/taxonomy/taxonomy.py+++ b/posthog/taxonomy/taxonomy.py@@ -3071,33 +3071,6 @@ CORE_FILTER_DEFINITIONS_BY_GROUP: dict[str, dict[str, CoreFilterDefinition]] = {"label": "Is error (unprefixed)","description": "Older unprefixed variant of $mcp_is_error. Emitted on events from the pre-@posthog/mcp code paths; prefer $mcp_is_error for new dashboards.",},- "source": {- "label": "Source",- "description": (- "Which PostHog surface the work came from. The surface values are 'web' (the app in a "- "browser), 'posthog_ai' (Max), 'desktop' (the PostHog Desktop app), 'mobile' (the PostHog "- "mobile app), 'slack' (the Slack app), 'mcp' (a third-party agent over MCP), 'cli', and "- "'api' (a direct API call). On API events, PostHog's own surfaces report themselves, so "- "'mcp' measures other people's agents. The $mcp_* events are stamped by the MCP server "- "instead, which cannot read the OAuth grant that identifies the Desktop app, so a Desktop "- "request can still show as 'mcp' on those. "- "'posthog_code' covers the headless coding agents: the cloud agent and the local agent. "- "'self_driving' is Signals: scouts, report implementations, and scout chat. "- "'wizard' is the setup agent and 'terraform' is the Terraform provider. "- "Four values are machines rather than surfaces: 'cache_warming', 'alert', 'export', and "- "'subscription'. "- "Two unrelated properties share this name, so filter to a specific event before breaking "- "down by it. The app also uses 'source' for which control fired an event, with values "- "like 'menu', 'keyboard-shortcut', and 'card_drag_handle'. Some backend paths use it for "- "something else again: 'static' on $http_log, 'blob_v2', 'blob', 'listing' and 'realtime' "- "on the session replay snapshot events, 'mcpcat' on the legacy MCP events, and 'template' "- "or 'custom' on 'mcp_store server installed'. Two "- "surface values also collide with older control names: on 'switched site mode', "- "'desktop' means the device-mode control rather than the app, and on the AI report "- "events, 'slack' means the delivery channel."- ),- "examples": ["web", "posthog_ai", "mcp", "desktop", "api"],- },"mcp_runtime": {"label": "MCP runtime","description": "Server runtime that handled the MCP request. 'hono' means it was served by the Hono-based MCP server.",