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(ai): nudge anomaly investigation agent on natural variance (#60769)

Andrew Maguire7f359656335e
diff --git a/posthog/temporal/ai/anomaly_investigation/prompts.py b/posthog/temporal/ai/anomaly_investigation/prompts.py
index 48a4db1a3de2..e9153e6d3dba 100644
--- a/posthog/temporal/ai/anomaly_investigation/prompts.py
+++ b/posthog/temporal/ai/anomaly_investigation/prompts.py
@@ -55,6 +55,10 @@ Magnitude check (do this before classifying):
* the triggered value is in the single digits, or
* the triggered value is within ~50% of recent typical buckets, or
* the framing is "highest in window" but the runner-up is close behind.
+- Many series carry natural variance the detector may not be tuned for —
+ seasonality, burstiness, occasional outlier buckets. Sense-check the
+ firing against the series' broader shape, not just the triggered point
+ and its immediate neighbours.
- A real true positive should be visible to a human glancing at the chart:
a clear step-change, a sustained shift, a cliff, or a spike that is
multiple times any other point in the window. If you have to squint, it