: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(signals): raise first-report scout limit to 20 minutes (#126398)
Georgiy Tarasov08b4036a93ea
diff --git a/products/signals/backend/constants.py b/products/signals/backend/constants.pyindex 6a1006308c72..c737418cd01d 100644--- a/products/signals/backend/constants.py+++ b/products/signals/backend/constants.py@@ -1,8 +1,11 @@SIGNALS_FIRST_REPORT_EMAIL_TEMPLATE_ID: str = "01a1598d-9186-0000-b20d-d91813fc05ff"+# Keep the agent polling budget below the activity timeout so teardown can finish.+DEFAULT_MAX_RUNTIME_S = 20 * 60+FIRST_REPORT_SCOUT = "signals-scout-first-report"SYSTEM_SCOUT_NAMES = frozenset({FIRST_REPORT_SCOUT})-FIRST_REPORT_SCOUT_TIMEOUT_SECONDS = 10 * 60+FIRST_REPORT_SCOUT_TIMEOUT_SECONDS = DEFAULT_MAX_RUNTIME_Sdef first_report_idempotency_key(team_id: int) -> str:diff --git a/products/signals/backend/scout_harness/limits.py b/products/signals/backend/scout_harness/limits.pyindex 05f0630cb137..0574f0f83287 100644--- a/products/signals/backend/scout_harness/limits.py+++ b/products/signals/backend/scout_harness/limits.py@@ -1,7 +1,7 @@from __future__ import annotations-# Keep the agent polling budget below the activity timeout so teardown can finish.-DEFAULT_MAX_RUNTIME_S = 20 * 60+from products.signals.backend.constants import DEFAULT_MAX_RUNTIME_S+TRIGGERED_BY_ONBOARDING = "onboarding"# Task teardown can wait up to 15 minutes for spend settlement after the agent stops.diff --git a/products/signals/skills/signals-scout-first-report/SKILL.md b/products/signals/skills/signals-scout-first-report/SKILL.mdindex ff1d4b48ce7a..783073225e5c 100644--- a/products/signals/skills/signals-scout-first-report/SKILL.md+++ b/products/signals/skills/signals-scout-first-report/SKILL.md@@ -12,7 +12,7 @@ metadata:# Find the first useful report-Run one bounded investigation of this project's existing data. Publish at most one report that helps the customer take a worthwhile action now. Returning no report is a successful outcome when the evidence does not justify one. Aim to finish within five minutes; the run has a ten-minute ceiling.+Run one bounded investigation of this project's existing data. Publish at most one report that helps the customer take a worthwhile action now. Returning no report is a successful outcome when the evidence does not justify one. Aim to finish within five minutes; the run has a 20-minute ceiling.## Orient and decide whether there is enough data