: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
feat(signals): default scout interval to 3h (was hourly) (#64325)
Andrew Maguire5271b294f5ac
diff --git a/products/signals/backend/migrations/0041_alter_signalscoutconfig_run_interval_minutes.py b/products/signals/backend/migrations/0041_alter_signalscoutconfig_run_interval_minutes.pynew file mode 100644index 000000000000..a74c65087c37--- /dev/null+++ b/products/signals/backend/migrations/0041_alter_signalscoutconfig_run_interval_minutes.py@@ -0,0 +1,23 @@+# Generated by Django 5.2.14 on 2026-06-17 14:32++import django.core.validators+from django.db import migrations, models+++class Migration(migrations.Migration):+ dependencies = [("signals", "0040_alter_signalsourceconfig_source_product_and_more")]++ operations = [+ migrations.AlterField(+ model_name="signalscoutconfig",+ name="run_interval_minutes",+ field=models.PositiveIntegerField(+ db_default=180,+ default=180,+ validators=[+ django.core.validators.MinValueValidator(10),+ django.core.validators.MaxValueValidator(43200),+ ],+ ),+ ),+ ]diff --git a/products/signals/backend/migrations/max_migration.txt b/products/signals/backend/migrations/max_migration.txtindex 631e52639b47..15c7a70c8c57 100644--- a/products/signals/backend/migrations/max_migration.txt+++ b/products/signals/backend/migrations/max_migration.txt@@ -1 +1 @@-0040_alter_signalsourceconfig_source_product_and_more+0041_alter_signalscoutconfig_run_interval_minutesdiff --git a/products/signals/backend/models.py b/products/signals/backend/models.pyindex 35b5e98610b3..9240ee547030 100644--- a/products/signals/backend/models.py+++ b/products/signals/backend/models.py@@ -438,11 +438,14 @@ class SignalScoutConfig(ModelActivityMixin, TeamScopedRootMixin, UUIDModel):# Minutes between runs. The coordinator dispatches this scout when# `last_run_at is None or now - last_run_at >= run_interval_minutes`. Deterministic —# no sampling. Floor of 10 keeps one scout from monopolising the worker pool; default- # 60 = hourly. Ceiling 43200 = 30 days. `PositiveIntegerField` (int4) not+ # 180 = every 3 hours. Ceiling 43200 = 30 days. `PositiveIntegerField` (int4) not# `PositiveSmallIntegerField` (smallint, max 32767) so the documented 30-day ceiling fits.+ # Default chosen for run economics: most runs close out without a finding, so hourly mostly+ # pays to re-confirm "nothing new"; a 3h cadence cuts per-scout spend materially with+ # negligible detection latency for non-spike findings. Tune per scout via the config API.run_interval_minutes = models.PositiveIntegerField(- default=60,- db_default=60,+ default=180,+ db_default=180,validators=[MinValueValidator(10), MaxValueValidator(43200)],)# Stamped by the coordinator after each dispatch; drives the due-check. Written everydiff --git a/products/signals/backend/scout_harness/AGENTS.md b/products/signals/backend/scout_harness/AGENTS.mdindex 9f225fef3830..4df1421e11a1 100644--- a/products/signals/backend/scout_harness/AGENTS.md+++ b/products/signals/backend/scout_harness/AGENTS.md@@ -138,7 +138,7 @@ one sandbox session → zero or more emitted signals.- **Coordinator** — `temporal/agentic/scout_coordinator.py` and `scout_scheduler.py`.Polls every `COORDINATOR_INTERVAL_MINUTES = 30`; dispatches each scout whose- per-scout schedule (`run_interval_minutes`, default hourly) is due, most-overdue+ per-scout schedule (`run_interval_minutes`, default every 3 hours) is due, most-overduefirst, hard cap `MAX_RUNS_PER_TICK = 50` per tick, `ScheduleOverlapPolicy.SKIP` todrop ticks rather than queue them.- **Models** — `SignalScoutConfig`, `SignalScoutRun`, `SignalScratchpad`,diff --git a/products/signals/backend/scout_harness/serializers.py b/products/signals/backend/scout_harness/serializers.pyindex 93e4b2315c59..39a408a26c67 100644--- a/products/signals/backend/scout_harness/serializers.py+++ b/products/signals/backend/scout_harness/serializers.py@@ -1092,7 +1092,7 @@ class SignalScoutConfigCreateSerializer(serializers.Serializer):required=False,min_value=10,max_value=43200,- help_text="Minutes between runs (10–43200). Defaults to 60 (hourly).",+ help_text="Minutes between runs (10–43200). Defaults to 180 (every 3 hours).",)def validate_skill_name(self, value: str) -> str:diff --git a/products/signals/backend/test/test_scout_coordinator.py b/products/signals/backend/test/test_scout_coordinator.pyindex ee528dd60bbc..c4935f7d487d 100644--- a/products/signals/backend/test/test_scout_coordinator.py+++ b/products/signals/backend/test/test_scout_coordinator.py@@ -237,7 +237,7 @@ async def test_authoring_skill_auto_registers_enabled_config_and_runs(ateam):config = await database_sync_to_async(SignalScoutConfig.all_teams.get)(team=ateam, skill_name="signals-scout-foo")assert config.enabled is True- assert config.run_interval_minutes == 60+ assert config.run_interval_minutes == 180assert config.emit is True# Never-run row is immediately due, so it's dispatched this tick.assert [(p.team_id, p.skill_name) for p in planned] == [(ateam.id, "signals-scout-foo")]diff --git a/products/signals/backend/test/test_scout_harness_api.py b/products/signals/backend/test/test_scout_harness_api.pyindex a7719ce2378a..1c636b2f4a08 100644--- a/products/signals/backend/test/test_scout_harness_api.py+++ b/products/signals/backend/test/test_scout_harness_api.py@@ -720,7 +720,7 @@ class TestScoutHarnessConfigAPI(APIBaseTest):assert [c["skill_name"] for c in body] == ["signals-scout-alpha", "signals-scout-beta"]assert body[0]["enabled"] is Trueassert body[0]["emit"] is True- assert body[0]["run_interval_minutes"] == 60+ assert body[0]["run_interval_minutes"] == 180@parameterized.expand([diff --git a/products/signals/backend/test/test_signal_scout_models.py b/products/signals/backend/test/test_signal_scout_models.pyindex afe181e08156..6801e22f2f6b 100644--- a/products/signals/backend/test/test_signal_scout_models.py+++ b/products/signals/backend/test/test_signal_scout_models.py@@ -59,10 +59,10 @@ class TestSignalScoutModels(_ScoutTeamScopedTestMixin, BaseTest):def test_signal_scout_config_defaults(self) -> None:config = SignalScoutConfig.objects.create(team=self.team, skill_name="signals-scout-foo")loaded = SignalScoutConfig.objects.get(pk=config.pk)- # Auto-created scouts run on an hourly cadence and emit on by default (live from the first tick).+ # Auto-created scouts run every 3 hours and emit on by default (live from the first tick).assert loaded.enabled is Trueassert loaded.emit is True- assert loaded.run_interval_minutes == 60+ assert loaded.run_interval_minutes == 180assert loaded.last_run_at is Nonedef test_signal_scout_config_one_per_team_skill(self) -> None:diff --git a/products/signals/frontend/generated/api.schemas.ts b/products/signals/frontend/generated/api.schemas.tsindex 1b96732053cc..8e34daa97cf5 100644--- a/products/signals/frontend/generated/api.schemas.ts+++ b/products/signals/frontend/generated/api.schemas.ts@@ -207,7 +207,7 @@ export interface SignalScoutConfigCreateApi {/** Whether the scout writes findings to the inbox. False = dry-run: it runs and logs but emits nothing. Defaults to true. */emit?: boolean/**- * Minutes between runs (10–43200). Defaults to 60 (hourly).+ * Minutes between runs (10–43200). Defaults to 180 (every 3 hours).* @minimum 10* @maximum 43200*/diff --git a/products/signals/frontend/generated/api.zod.ts b/products/signals/frontend/generated/api.zod.tsindex 7ef5eec260f2..3ba3f871539a 100644--- a/products/signals/frontend/generated/api.zod.ts+++ b/products/signals/frontend/generated/api.zod.ts@@ -96,7 +96,7 @@ export const SignalsScoutConfigCreateBody = /* @__PURE__ */ zod.min(signalsScoutConfigCreateBodyRunIntervalMinutesMin).max(signalsScoutConfigCreateBodyRunIntervalMinutesMax).optional()- .describe('Minutes between runs (10–43200). Defaults to 60 (hourly).'),+ .describe('Minutes between runs (10–43200). Defaults to 180 (every 3 hours).'),}).describe('Request body for registering a scout config without waiting for the coordinator tick.\n\nUpsert keyed on `skill_name`: if the coordinator (or a concurrent caller) already\nregistered the row, the provided tunables are applied to it instead.'diff --git a/products/signals/skills/AGENTS.md b/products/signals/skills/AGENTS.mdindex d521f9515e84..20a9d5bb4630 100644--- a/products/signals/skills/AGENTS.md+++ b/products/signals/skills/AGENTS.md@@ -170,8 +170,8 @@ agent-enabled team's `LLMSkill` rows by `scout_harness/lazy_seed.py` — see### How the coordinator decides what runsThere is no sampling. Each scout has its own `SignalScoutConfig` row (one per-`(team, skill_name)`) carrying a `run_interval_minutes` schedule (default 60 =-hourly) and a `last_run_at` stamp. Every tick the coordinator:+`(team, skill_name)`) carrying a `run_interval_minutes` schedule (default 180 =+every 3 hours) and a `last_run_at` stamp. Every tick the coordinator:1. Bounds candidates to the teams enrolled via the `signals-scout` feature flag'sJSON payload allowlist (`guaranteed_team_ids` minus `skip_team_ids`,@@ -200,8 +200,8 @@ will:- discover it via `lazy_seed.discover_canonical_skills()`,- create matching `LLMSkill` rows on each agent-enabled team,-- auto-register an enabled, hourly-schedule `SignalScoutConfig` for it so the next- due tick dispatches it.+- auto-register an enabled `SignalScoutConfig` on the default every-3-hours schedule+ for it so the next due tick dispatches it.No coordinator-side code change is needed. Use `signals-scout-general` as thetemplate if your scout is broad; pick a specialist as the template if it isdiff --git a/products/signals/skills/authoring-signals-scouts/SKILL.md b/products/signals/skills/authoring-signals-scouts/SKILL.mdindex 35d78aa9f791..92a5ef3f315f 100644--- a/products/signals/skills/authoring-signals-scouts/SKILL.md+++ b/products/signals/skills/authoring-signals-scouts/SKILL.md@@ -126,11 +126,12 @@ skill with `posthog:signals-scout-config-create {"skill_name": "signals-scout-<ssetting any of the fields below in the same call — including creating it disabled or indry-run **before it ever runs**. (It's an upsert: if the coordinator already auto-registeredthe row, your fields are applied to it.) Otherwise the coordinator auto-registers an enabled-hourly default on its next tick (up to ~30 min). For an **existing scout**, tune with-`posthog:signals-scout-config-update` (find the `id` via `-config-list`):+config on the default every-3-hours schedule on its next tick (up to ~30 min). For an+**existing scout**, tune with `posthog:signals-scout-config-update` (find the `id` via+`-config-list`):-- `run_interval_minutes` — 10 to 43200. Default 60 (hourly). Slow a chatty or expensive- scout by raising this.+- `run_interval_minutes` — 10 to 43200. Default 180 (every 3 hours). Slow a chatty or+ expensive scout by raising this.- `enabled` — `false` pauses the scout entirely (coordinator skips it).- `emit` — defaults to **`true`**: the scout writes its findings straight to the inbox. Thestandard flow is to make a scout and let it emit — seeing what actually lands is the@@ -149,14 +150,14 @@ actually lands.soon — set it at creation via`posthog:signals-scout-config-create {"skill_name": ..., "run_interval_minutes": 10}`right after `skill-create`, rather than waiting for the coordinator to- auto-register an hourly default.+ auto-register the default every-3-hours schedule.2. After a tick, read what it did: `posthog:inbox-reports-list` (the findings it actuallyemitted), `posthog:signals-scout-runs-list` (run summaries), `-runs-retrieve` (fullreasoning for one run), and `-scratchpad-search` (the durable memory it wrote).3. Refine the body — tighten the discriminator, add disqualifiers for whatever itfalse-positived on, fix the emit calibration.4. Once it's landing the right findings, restore the interval to something sustainable- (hourly+).+ (the 3h default or longer).**Want to be extra careful?** Set `emit=false` to dry-run first — create the config with`emit=false` via `-config-create` so the scout never has a live first run; it runs and logsdiff --git a/products/signals/skills/authoring-signals-scouts/references/lifecycle-and-testing.md b/products/signals/skills/authoring-signals-scouts/references/lifecycle-and-testing.mdindex 63c48ca1dde0..d3208b2d92f5 100644--- a/products/signals/skills/authoring-signals-scouts/references/lifecycle-and-testing.md+++ b/products/signals/skills/authoring-signals-scouts/references/lifecycle-and-testing.md@@ -8,7 +8,7 @@ exact mechanics; and how to test a scout in each.- **Discovery.** The harness globs `signals-scout-*` over the project's skills (`LLMSkill`rows). Any matching skill is a scout. No registration step.- **Config.** Each scout has one `SignalScoutConfig` per `(project, skill_name)` carrying- `run_interval_minutes` (default 60), `enabled`, `emit`, and a `last_run_at` stamp. A+ `run_interval_minutes` (default 180), `enabled`, `emit`, and a `last_run_at` stamp. Aconfig is **auto-registered** the first time the coordinator sees a `signals-scout-*`skill without one — authoring the skill is enough to get a scout. To configure a freshscout immediately (instead of waiting for the tick), register the config yourself with@@ -46,7 +46,7 @@ posthog:skill-get {"skill_name": "signals-scout-error-tracking"}posthog:skill-create {"name": "signals-scout-<scope>", "description": "...", "body": "...", "compatibility": "...", "metadata": {"owner_team": "<team>", "scope": "<scope>"}}# Register its config immediately with the schedule you want (otherwise the coordinator-# auto-registers an hourly default on its next tick)+# auto-registers the default every-3-hours schedule on its next tick)posthog:signals-scout-config-create {"skill_name": "signals-scout-<scope>", "run_interval_minutes": 120}# Adapt an existing per-team scout — use the SMALLEST primitive (find/replace, not full-body)@@ -91,7 +91,7 @@ hogli unsync:skill -- --name signals-scout-<scope>Authoring a new canonical scout is just creating `signals-scout-<scope>/SKILL.md` andmerging — the next tick discovers it, seeds it onto enrolled teams, and auto-registers an-enabled hourly config. **If you change the fleet shape (add/rename a scout, change the+enabled config on the default every-3-hours schedule. **If you change the fleet shape (add/rename a scout, change theSKILL.md schema), update `products/signals/skills/AGENTS.md`.** On master, CI builds andpublishes `dist/skills.zip` to the downstream distribution repos (the `ai-plugin` bundle andthe standalone skills repo) automatically.@@ -112,7 +112,7 @@ and calibrate against what actually lands.3. Refine the body for whatever it false-positived or missed — tighten the discriminator,add disqualifiers, fix emit calibration. Re-edit via `skill-update`.4. Once it's landing the right findings, `config-update` to restore a sustainable interval- (hourly or slower).+ (the 3h default or slower).**Extra-careful variant — dry-run first.** For a scout you expect to be chatty, expensive,or high-stakes, set `emit=false` so it runs and logs what it _would_ have emitted (visible indiff --git a/products/signals/skills/signals-scout-general/SKILL.md b/products/signals/skills/signals-scout-general/SKILL.mdindex 42df384cf7ff..b74c9d499742 100644--- a/products/signals/skills/signals-scout-general/SKILL.md+++ b/products/signals/skills/signals-scout-general/SKILL.md@@ -5,7 +5,7 @@ description: >team's project and emits findings into the Signals inbox. Sibling signals-scout-*specialists each watch a single product surface in depth; this scout looks forcross-product correlations and explores the surfaces no specialist covers. Each- scout runs on its own schedule (default hourly), so general fires independently+ scout runs on its own schedule (default every 3 hours), so general fires independentlyof the specialists over time.compatibility: >Runs as the PostHog Signals scout in a Claude sandbox with PostHog MCP scopes: signal_scout:read + signal_scout_internal:write (fordiff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.tsindex e14782b48657..23851ea9face 100644--- a/services/mcp/src/api/generated.ts+++ b/services/mcp/src/api/generated.ts@@ -44640,7 +44640,7 @@ export namespace Schemas {/** Whether the scout writes findings to the inbox. False = dry-run: it runs and logs but emits nothing. Defaults to true. */emit?: boolean;/**- * Minutes between runs (10–43200). Defaults to 60 (hourly).+ * Minutes between runs (10–43200). Defaults to 180 (every 3 hours).* @minimum 10* @maximum 43200*/diff --git a/services/mcp/src/generated/signals/api.ts b/services/mcp/src/generated/signals/api.tsindex 7c72842d0f66..47e2e2cbaa74 100644--- a/services/mcp/src/generated/signals/api.ts+++ b/services/mcp/src/generated/signals/api.ts@@ -174,7 +174,7 @@ export const SignalsScoutConfigCreateBody = /* @__PURE__ */ zod.min(signalsScoutConfigCreateBodyRunIntervalMinutesMin).max(signalsScoutConfigCreateBodyRunIntervalMinutesMax).optional()- .describe('Minutes between runs (10–43200). Defaults to 60 (hourly).'),+ .describe('Minutes between runs (10–43200). Defaults to 180 (every 3 hours).'),}).describe('Request body for registering a scout config without waiting for the coordinator tick.\n\nUpsert keyed on `skill_name`: if the coordinator (or a concurrent caller) already\nregistered the row, the provided tunables are applied to it instead.'diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/signals-scout-config-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/signals-scout-config-create.jsonindex f61152fd3112..e1631df552f5 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/signals-scout-config-create.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/signals-scout-config-create.json@@ -11,7 +11,7 @@"type": "boolean"},"run_interval_minutes": {- "description": "Minutes between runs (10–43200). Defaults to 60 (hourly).",+ "description": "Minutes between runs (10–43200). Defaults to 180 (every 3 hours).","maximum": 43200,"minimum": 10,"type": "number"