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.

docs(alerts): add alert compatibility guidance (#83995)

Matt Puaa7f0b09a7101
diff --git a/.agents/skills/adding-product-alerting/SKILL.md b/.agents/skills/adding-product-alerting/SKILL.md
index 942bf220c7f3..11995a45f139 100644
--- a/.agents/skills/adding-product-alerting/SKILL.md
+++ b/.agents/skills/adding-product-alerting/SKILL.md
@@ -45,6 +45,27 @@ Both paths must preserve these rules:
8. **Frontend data is normalized at the product boundary.** Shared editor components render normalized definitions, destinations, advanced options, schedules, and history. Product API calls, payloads, and evaluation-specific fields stay in the product adapter.
9. **Defaults remain backward compatible.** New platform options must preserve existing adopters until they explicitly opt in.
+## Review shared changes as one alert system
+
+When a change touches shared alerting, review every contract that can consume it, not only the product that motivated
+the change. Start with the reference adopters and inspect the affected dimensions:
+
+- **Lifecycle:** product adapters, control-plane actions, persisted state, and notification edges.
+- **Delivery and destinations:** event producers and consumers, acknowledgement and rollback behavior, templates, and
+ product and generic management APIs.
+- **Scheduling:** create and update paths, due eligibility, retries, cadence, quiet hours, and timezone behavior.
+- **Authorization:** product, project, and organization boundaries at destination creation, management, and dispatch.
+- **Frontend and API contracts:** generated clients, pending-destination retries, existing-destination visibility, and
+ every UI that uses the shared data.
+
+For event, destination, query, or authorization changes, map all matching products and clients by exact event IDs,
+template IDs, model types, generic APIs, UIs, and regex or prefix matches. A new product can own its destination
+lifecycle while another product still intentionally uses a generic HogFunction path.
+
+When generic access violates an ownership or authorization boundary, restrict it immediately. Preserve generic access
+only for explicitly safe, supported paths, and migrate those paths to product-owned APIs deliberately. Add
+public-interface tests for the new ownership boundary and every existing path that remains supported.
+
## Current limits
There is no generic alert base model, product registry, push-mode `submit_check(...)`, generic scheduler runner, or generic Temporal harness. Do not invent a parallel framework around those missing pieces. For non-insight products, keep evaluation, persistence, due queries, history, and orchestration in the product until a shared contract lands.
diff --git a/.agents/skills/adding-product-alerting/references/extending-platform-alerting.md b/.agents/skills/adding-product-alerting/references/extending-platform-alerting.md
index f8aac6de3711..573ef071c15b 100644
--- a/.agents/skills/adding-product-alerting/references/extending-platform-alerting.md
+++ b/.agents/skills/adding-product-alerting/references/extending-platform-alerting.md
@@ -113,7 +113,7 @@ Read `frontend/src/AGENTS.md` before changing the wizard.
Do not expose internal helpers merely for convenience. A facade export is a compatibility commitment.
-## 4. Prove backward compatibility
+## 4. Prove whole-system behavior
Verify both the shared layer and reference adopters:
@@ -126,6 +126,13 @@ Verify both the shared layer and reference adopters:
- OpenAPI generation and frontend typecheck for API contract changes.
- The alert-state semgrep rule when lifecycle mutation paths change.
+For every shared change, identify which lifecycle, delivery, destination, scheduling, authorization, frontend, and API
+contracts it affects. Add targeted tests for each affected adopter and management surface. Cover the new product-owned
+API and each product that still uses a generic API. Do not rely only on event-name or regex unit tests: exercise the
+real request path and the resulting visibility or delivery behavior. For ownership or authorization changes, include
+negative tests that prove unauthorized users cannot list, retrieve, create, update, delete, or dispatch destinations
+across product, project, or organization boundaries.
+
Invoke the matching mandatory skills before editing their areas:
| Change | Skill |