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.

chore(codeowners): prune dead CODEOWNERS-soft rules and add missing owners (#64208)

Robbiead7d74f2bb9c
diff --git a/.agents/skills/establishing-code-ownership/ownership.js b/.agents/skills/establishing-code-ownership/ownership.js
index 59f598e2668d..7154c8619e85 100755
--- a/.agents/skills/establishing-code-ownership/ownership.js
+++ b/.agents/skills/establishing-code-ownership/ownership.js
@@ -166,7 +166,15 @@ class Resolver {
}
allMatches(file) {
- return this.rules.filter((rule) => pathMatchesPattern(rule.pattern, file))
+ // Degrade on a malformed pattern (e.g. a `***` typo) instead of throwing,
+ // matching how resolve() handles rules via the safe CodeOwners matchers.
+ return this.rules.filter((rule) => {
+ try {
+ return pathMatchesPattern(rule.pattern, file)
+ } catch {
+ return false
+ }
+ })
}
}
diff --git a/.github/CODEOWNERS-soft b/.github/CODEOWNERS-soft
index 338f54acd443..6cf470016c21 100644
--- a/.github/CODEOWNERS-soft
+++ b/.github/CODEOWNERS-soft
@@ -8,7 +8,6 @@
# Surveys - owned by @PostHog/team-surveys
frontend/src/scenes/settings/environment/SurveySettings.tsx @PostHog/team-surveys
frontend/src/scenes/surveys/ @PostHog/team-surveys
-frontend/src/scenes/onboarding/sdks/surveys @PostHog/team-surveys
ee/surveys/ @PostHog/team-surveys
posthog/tasks/stop_surveys_reached_target.py @PostHog/team-surveys
posthog/tasks/update_survey_adaptive_sampling.py @PostHog/team-surveys
@@ -21,12 +20,6 @@ posthog/templates/surveys @PostHog/team-surveys
# Product Tours - owned by @PostHog/team-surveys
products/product_tours/** @PostHog/team-surveys
frontend/src/toolbar/product-tours/** @PostHog/team-surveys
-posthog/api/product_tour.py @PostHog/team-surveys
-posthog/models/product_tour.py @PostHog/team-surveys
-posthog/tasks/product_tour.py @PostHog/team-surveys
-posthog/templates/product_tour.py @PostHog/team-surveys
-posthog/tests/test_product_tour.py @PostHog/team-surveys
-posthog/tests/test_product_tour.py @PostHog/team-surveys
# Nodejs Services - ownership is split between ingestion and workflows teams
nodejs/tests/ @PostHog/team-ingestion
@@ -44,7 +37,6 @@ frontend/src/scenes/hog-functions/ @PostHog/team-workflows
# Web Analytics - owned by @PostHog/team-web-analytics
frontend/src/scenes/web-analytics/** @PostHog/team-web-analytics
-posthog/hogql_queries/web_analytics/** @PostHog/team-web-analytics
posthog/models/web_preaggregated/** @PostHog/team-web-analytics
posthog/models/channel_type/** @PostHog/team-web-analytics
frontend/src/toolbar/web-vitals/** @PostHog/team-web-analytics
@@ -57,12 +49,8 @@ frontend/src/scenes/heatmaps/** @PostHog/team-web-analytics
frontend/src/lib/components/heatmaps/** @PostHog/team-web-analytics
frontend/src/toolbar/elements/heatmapToolbarMenuLogic.ts @PostHog/team-web-analytics
posthog/heatmaps/** @PostHog/team-web-analytics
-posthog/models/heatmap_saved.py @PostHog/team-web-analytics
posthog/hogql/database/schema/heatmaps.py @PostHog/team-web-analytics
-posthog/tasks/heatmap_screenshot.py @PostHog/team-web-analytics
-nodejs/src/ingestion/analytics/heatmap-subpipeline.ts @PostHog/team-web-analytics
-nodejs/src/ingestion/event-processing/extract-heatmap-data-step.ts @PostHog/team-web-analytics
-nodejs/src/ingestion/event-processing/event-pipeline-runner-heatmap-step.ts @PostHog/team-web-analytics
+nodejs/src/ingestion/heatmaps/ @PostHog/team-web-analytics
# Analytics Platform - owned by @PostHog/team-analytics-platform
posthog/dags/locations/analytics*platform.py @PostHog/team-analytics-platform
@@ -70,13 +58,11 @@ ee/tasks/subscriptions/** @PostHog/team-analytics-platform
frontend/src/scenes/data-management/schema/** @PostHog/team-analytics-platform
frontend/src/scenes/dashboard/ @PostHog/team-analytics-platform
posthog/api/schema_property_group.py @PostHog/team-analytics-platform
-posthog/models/schema.py @PostHog/team-analytics-platform
posthog/hogql_queries/sessions_query_runner.py @PostHog/team-analytics-platform
posthog/hogql_queries/sessions_timeline_query_runner.py @PostHog/team-analytics-platform
posthog/dags/sessions.py @PostHog/team-analytics-platform
ee/clickhouse/materialized_columns/** @PostHog/team-analytics-platform
posthog/tasks/alerts/** @PostHog/team-analytics-platform
-posthog/tasks/exports/** @PostHog/team-analytics-platform
posthog/temporal/alerts/ @PostHog/team-analytics-platform
posthog/temporal/exports/ @PostHog/team-analytics-platform
frontend/src/scenes/alerts/ @PostHog/team-analytics-platform
@@ -95,7 +81,7 @@ posthog/test/test_feature_flag_analytics.py @PostHog/team-feature-flags
# Cohorts - owned by @PostHog/team-feature-flags
posthog/api/cohort.py @PostHog/team-feature-flags
-posthog/models/cohort/ @PostHog/team-feature-flags
+posthog/models/cohortmembership/ @PostHog/team-feature-flags
frontend/src/scenes/cohorts/ @PostHog/team-feature-flags
posthog/tasks/calculate_cohort.py @PostHog/team-feature-flags
posthog/hogql_queries/hogql_cohort_query.py @PostHog/team-feature-flags
@@ -159,15 +145,12 @@ posthog/rbac/ @PostHog/team-platform-features
# Session Replay python files - owned by @PostHog/team-replay
posthog/session_recordings/**/*.py @PostHog/team-replay
-ee/session_recordings/**/*.py @PostHog/team-replay
+ee/session_recordings/ @PostHog/team-replay
# Session Replay frontend - owned by @PostHog/team-replay
frontend/src/scenes/session-recordings/ @PostHog/team-replay
posthog/temporal/session_replay/ @PostHog/team-replay
-# Mobile Session Replay - owned by @PostHog/team-replay
-ee/frontend/mobile-replay @PostHog/team-replay
-
# Product onboarding - owned by @PostHog/team-growth
frontend/src/scenes/onboarding/ @PostHog/team-growth
frontend/src/scenes/startups/ @PostHog/team-growth
@@ -178,17 +161,19 @@ frontend/src/scenes/agentic/ @PostHog/team-growth
frontend/src/scenes/project-homepage/ @PostHog/team-growth
frontend/src/scenes/health/ @PostHog/team-growth
+# Per-product onboarding SDK docs override the general onboarding owner above
+# (last-match-wins, so these must come after the onboarding rule to take effect).
+frontend/src/scenes/onboarding/sdks/surveys/ @PostHog/team-surveys
+
# Settings & project administration - owned by @PostHog/team-growth
frontend/src/scenes/settings/ @PostHog/team-growth
frontend/src/scenes/organization/ @PostHog/team-growth
frontend/src/scenes/project/ @PostHog/team-growth
frontend/src/scenes/instance/ @PostHog/team-growth
-# SDK Doctor - owned by @PostHog/team-growth
-frontend/src/layout/navigation-3000/sidepanel/panels/SdkDoctor @PostHog/team-growth
-
# Weekly digest - owned by @PostHog/team-growth
posthog/temporal/weekly_digest @PostHog/team-growth
+posthog/temporal/tests/weekly_digest @PostHog/team-growth
# AI observability - owned by @PostHog/team-ai-observability
Dockerfile.llm-analytics @PostHog/team-ai-observability
@@ -231,7 +216,6 @@ services/llm-gateway/ @PostHog/team-ai-gateway
Dockerfile @PostHog/team-devex
docker-compose*.yml @PostHog/team-devex
.prettierrc @PostHog/team-devex
-mypy.ini @PostHog/team-devex
.test_quarantine.json @PostHog/team-devex
posthog/management/migration_analysis/ @PostHog/team-devex
tools/hogli/ @PostHog/team-devex
@@ -248,13 +232,12 @@ AGENTS.md @PostHog/team-devex
.agents/* @PostHog/team-devex
.claude/agents/ingestion/ @PostHog/team-ingestion
.agents/skills/ingestion-*/ @PostHog/team-ingestion
-.claude/skills/ingestion-*/ @PostHog/team-ingestion
.agents/skills/manage-dashboard-widgets/ @PostHog/team-analytics-platform
tools/pr-approval-agent/ @PostHog/team-devex
tools/phrocs/ @PostHog/team-devex
tools/query-performance-ai/ @PostHog/team-analytics-platform
greptile.json @PostHog/team-devex
-docs/published/developing-locally.md @PostHog/team-devex
+docs/published/handbook/engineering/developing-locally.md @PostHog/team-devex
# Product Analytics - owned by @PostHog/team-product-analytics
frontend/src/scenes/insights/ @PostHog/team-product-analytics