: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
chore(signals): refine health-checks scout from review + dogfooding (#62320)
Andrew Maguirefc339abdc49d
diff --git a/products/signals/skills/signals-scout-health-checks/SKILL.md b/products/signals/skills/signals-scout-health-checks/SKILL.mdindex f912b63621b4..ab54d205954e 100644--- a/products/signals/skills/signals-scout-health-checks/SKILL.md+++ b/products/signals/skills/signals-scout-health-checks/SKILL.md@@ -41,6 +41,15 @@ been active across several runs (not auto-resolved) is real; one that flickers ais transient noise. Internalize that shape — re-emitting one signal per issue is exactly thenoise this scout exists to avoid.+**Calibration (dogfooded on a real high-volume project).** A live project with ~180 active+issues collapsed to ~4 findings under this logic. Most of a ~95-issue `external_data_failure`+set reduced to a few shared causes — one invalidated replication slot behind many syncs, a+date-partitioned source regenerating the same "table not found" failure daily — and much of an+~80-issue `materialized_view_failure` set was abandoned personal dev models nobody will fix.+Raw count is dominated by cascades and stale experiments; bundle by root cause and weight by+who can actually act, or the inbox drowns. This is the discriminator working as intended, not+an edge case.+## Quick close-out: is anything actually wrong?Call `health-issues-summary` first — it returns total active non-dismissed issues plus@@ -77,7 +86,11 @@ Cycle between these moves; skip what's not useful.### Severity-to-kind cheat sheet-The checks set severity; use it as a starting prior, then adjust by real impact.+The checks set severity; use it as a starting prior, then adjust by real impact. This table is+**illustrative, not exhaustive** — the live `health-issues-summary` is the source of truth for+which kinds are actually firing, and new check kinds appear over time without this list being+updated. Treat an unfamiliar kind on its own terms (read the payload + `remediation`) rather+than assuming it's absent because it isn't here.| Kind | Typical severity | What it means / how to weight || --------------------------- | ---------------- | ----------------------------------------------------------------------- |@@ -190,16 +203,17 @@ Write scratchpad entries continuously, encoding the category in the key prefix:- `finding_id` — a stable trace id (`<topic>-<entity>-<date>`), **not** a dedupe key:re-emitting the same id creates a second signal, so never retry an emit that may alreadyhave succeeded.- - `dedupe_keys`: `health_issue:<issue_id>` for a single issue and/or- `health_check_kind:<kind>` for a whole-kind cluster. For a sub-type or cascade bundle,- key on the **root cause** so future runs group on the cause, not the symptoms — e.g.- `ingestion_warning_type:client_ingestion_warning` or- `external_data_slot:posthog_019e51352190`. Add per-entity keys for the few ids you name- in the description.+ - `dedupe_keys`: health issues already carry stable, deduplicated ids, so don't add a+ per-issue key just to restate `issue_id` — cite it in evidence and move on. Reserve+ `dedupe_keys` for the grouping the checks _don't_ do: a whole-kind cluster+ (`health_check_kind:<kind>`), or a shared root cause behind many issues keyed on the+ **cause** so future runs group on it, not the symptoms — e.g.+ `ingestion_warning_type:<warning_type>` or `external_data_slot:<slot_id>`. A single issue+ needs no dedupe key at all.- `severity`: map check severity to the emit scale — `critical` → P1 (P0 only for confirmedactive data loss like `no_live_events` with zero recent capture), `warning` → P2–P3.- `evidence`: cite issue ids from the health-issues payloads and any corroborating- `query_runs` / `error_tracking` / `web_analytics` reads.+ `query_runs` / `web_analytics` reads.- **Remember** below the bar but worth carrying forward (write the matching `dedupe:` /`noise:` entry).- **Skip** if a `dedupe:` / `noise:` / `addressed:` entry already covers it.