: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(experiments): rename diagnosing-experiment-health skill to cover broader scope (#112477)
Marcel Poelker7bd6d0443ea7
diff --git a/products/experiments/mcp/tools.yaml b/products/experiments/mcp/tools.yamlindex b34fe4efe2c3..cba8ccd83bc1 100644--- a/products/experiments/mcp/tools.yaml+++ b/products/experiments/mcp/tools.yaml@@ -835,7 +835,7 @@ tools:description: >The default way to read an experiment's current results. Requires an experiment ID. If you don't have theID, load the finding-experiments skill to resolve the user's reference first. To interpret what the numbers- mean, load the diagnosing-experiment-results skill.+ mean, load the diagnosing-experiment-health skill.Returns the most recent completed metrics run for the experiment: a results array with one entry per metric,diff --git a/products/experiments/skills/analyzing-experiment-session-replays/SKILL.md b/products/experiments/skills/analyzing-experiment-session-replays/SKILL.mdindex 9ec27c6e9ef3..743eb2b75f2c 100644--- a/products/experiments/skills/analyzing-experiment-session-replays/SKILL.md+++ b/products/experiments/skills/analyzing-experiment-session-replays/SKILL.md@@ -162,7 +162,7 @@ worth checking with the people who produced it. Once per conversation at most; dDefault to asking every exposed user rather than one variant: a popover shown to only one arm is itself adifference between the arms, and the response event carries the variant anyway, so the split survives.-→ See [`references/qualitative-feedback.md`](../diagnosing-experiment-results/references/qualitative-feedback.md) in [[diagnosing-experiment-results]]+→ See [`references/qualitative-feedback.md`](../diagnosing-experiment-health/references/qualitative-feedback.md) in [[diagnosing-experiment-health]]## Example interaction@@ -216,6 +216,6 @@ Agent steps:## Related skills-- **`diagnosing-experiment-results`** — the quantitative side: bias checks and significance on the same experiment+- **`diagnosing-experiment-health`** — the quantitative side: bias checks and significance on the same experiment- **`investigating-replay`** — deep-dive a single session from either variant- **`finding-sessions-to-watch`** — general session shortlisting outside the experiment contextdiff --git a/products/experiments/skills/configuring-experiment-analytics/SKILL.md b/products/experiments/skills/configuring-experiment-analytics/SKILL.mdindex 79c98ba53d3b..725c8e1d7597 100644--- a/products/experiments/skills/configuring-experiment-analytics/SKILL.md+++ b/products/experiments/skills/configuring-experiment-analytics/SKILL.md@@ -200,5 +200,5 @@ See `references/interpreting-results.md` for guidance on reading experiment resu## Related skills- **`configuring-experiment-rollout`** — the rollout side: variant splits and traffic percentage-- **`diagnosing-experiment-results`** — when results look biased, empty, or strange+- **`diagnosing-experiment-health`** — when results look biased, empty, or strange- **`analyzing-experiment-session-replays`** — qualitative complement — watch what each variant's users actually diddiff --git a/products/experiments/skills/configuring-experiment-rollout/SKILL.md b/products/experiments/skills/configuring-experiment-rollout/SKILL.mdindex f420baf6d019..bdb11d278dd4 100644--- a/products/experiments/skills/configuring-experiment-rollout/SKILL.md+++ b/products/experiments/skills/configuring-experiment-rollout/SKILL.md@@ -245,5 +245,5 @@ See `references/changing-distribution-after-launch.md` for detailed warnings, wh## Related skills- **`configuring-experiment-analytics`** — the analysis side: exposure criteria, metrics, and multivariate handling-- **`diagnosing-experiment-results`** — when a mid-run split change has already skewed the results+- **`diagnosing-experiment-health`** — when a mid-run split change has already skewed the results- **`managing-experiment-lifecycle`** — reset or end-and-restart mechanics when a split change requires themdiff --git a/products/experiments/skills/debugging-experiments/SKILL.md b/products/experiments/skills/debugging-experiments/SKILL.mdindex a18e8a75de20..5b6227678d7a 100644--- a/products/experiments/skills/debugging-experiments/SKILL.md+++ b/products/experiments/skills/debugging-experiments/SKILL.md@@ -8,7 +8,7 @@ description: >-too few exposures?", "why does the bias banner show?", or "why don't PostHog'snumbers match my SQL?". Pulls the experiment's real data read-only, matches itto a known-cause catalog, and produces a customer-facing explanation, fix, and- review of the pertinent numbers. Loads diagnosing-experiment-results as its+ review of the pertinent numbers. Loads diagnosing-experiment-health as itsdeep diagnostic library.DO NOT TRIGGER when: creating an experiment (use creating-experiments),only configuring rollout (configuring-experiment-rollout) or metrics@@ -30,7 +30,7 @@ customer's own data, and hand back a plain-language explanation plus the fix.This skill is the customer-support front door. It carries the two most common complaintsinline (uneven exposures, missing exposures) and loads-[`diagnosing-experiment-results`](../diagnosing-experiment-results/SKILL.md) as a diagnostic+[`diagnosing-experiment-health`](../diagnosing-experiment-health/SKILL.md) as a diagnosticlibrary for the deeper long tail (interpretation traps, numbers-vs-SQL, mid-run surprises).## Debugging workflow@@ -71,7 +71,7 @@ library for the deeper long tail (interpretation traps, numbers-vs-SQL, mid-run## Known-cause catalog — "exposures aren't even" / "one variant has no traffic"Ordered by how often they're the answer. Full mechanism detail lives in-[`diagnosing-experiment-results/references/bias-and-skew.md`](../diagnosing-experiment-results/references/bias-and-skew.md)+[`diagnosing-experiment-health/references/bias-and-skew.md`](../diagnosing-experiment-health/references/bias-and-skew.md)(group A) — load it when a case needs more depth than the summary here.**First, split a real SRM into its two possible homes.** Assignment is a deterministic hash of a@@ -159,7 +159,7 @@ tagged with the half they sit in.## Known-cause catalog — "missing exposures" / "too few exposures" / "0 exposures"Full detail in-[`diagnosing-experiment-results/references/empty-experiment.md`](../diagnosing-experiment-results/references/empty-experiment.md)+[`diagnosing-experiment-health/references/empty-experiment.md`](../diagnosing-experiment-health/references/empty-experiment.md)(group B).- **Wrong SDK method.** Only single-flag accessors (`getFeatureFlag()`, `isFeatureEnabled()`)@@ -211,15 +211,15 @@ three real-vs-noise checks (non-user split, dose-response, cohort stability) in## Everything else → load the diagnostic libraryThese aren't re-derived here. When the complaint is one of the following, read the matching-group in `diagnosing-experiment-results` and diagnose from there, then still write the reply+group in `diagnosing-experiment-health` and diagnose from there, then still write the replywith [references/customer-reply.md](references/customer-reply.md):-| Customer complaint | Load |-| ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------ |-| Significance flips / A/A shows significant / "96% — should I ship?" / p-value confusion | `diagnosing-experiment-results` group C (`references/interpretation.md`) |-| "PostHog's number ≠ my SQL", funnel/breakdown/sum-of-revenue mismatch, filter didn't change the count | group D (`references/numbers-vs-sql.md`) |-| Numbers shifted after a mid-run edit, ship/reset/pause surprises, retention/matured-users quirks | group E (`references/mid-run-changes.md`) |-| Results won't load / many metric rows show `data: null` | `references/diagnostic-snapshot.md` (transient-vs-real protocol) |+| Customer complaint | Load |+| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------- |+| Significance flips / A/A shows significant / "96% — should I ship?" / p-value confusion | `diagnosing-experiment-health` group C (`references/interpretation.md`) |+| "PostHog's number ≠ my SQL", funnel/breakdown/sum-of-revenue mismatch, filter didn't change the count | group D (`references/numbers-vs-sql.md`) |+| Numbers shifted after a mid-run edit, ship/reset/pause surprises, retention/matured-users quirks | group E (`references/mid-run-changes.md`) |+| Results won't load / many metric rows show `data: null` | `references/diagnostic-snapshot.md` (transient-vs-real protocol) |## The flag underneath is the problem → hand offdiff --git a/products/experiments/skills/debugging-experiments/references/pulling-the-data.md b/products/experiments/skills/debugging-experiments/references/pulling-the-data.mdindex 3b094daad576..9f1ff46a4de1 100644--- a/products/experiments/skills/debugging-experiments/references/pulling-the-data.md+++ b/products/experiments/skills/debugging-experiments/references/pulling-the-data.md@@ -2,7 +2,7 @@Run this sequence read-only before diagnosing or asking the customer anything.It produces the numbers you will cite back to them. The queries reuse the templates verified in-[`../../diagnosing-experiment-results/references/diagnostic-snapshot.md`](../../diagnosing-experiment-results/references/diagnostic-snapshot.md) —+[`../../diagnosing-experiment-health/references/diagnostic-snapshot.md`](../../diagnosing-experiment-health/references/diagnostic-snapshot.md) —read that file for the full rationale and edge cases; this is the customer-support-focusedsubset plus the numbers each cause needs.diff --git a/products/experiments/skills/debugging-experiments/references/real-vs-noise.md b/products/experiments/skills/debugging-experiments/references/real-vs-noise.mdindex 4677f423e689..a40c1b65434b 100644--- a/products/experiments/skills/debugging-experiments/references/real-vs-noise.md+++ b/products/experiments/skills/debugging-experiments/references/real-vs-noise.md@@ -13,7 +13,7 @@ because it's a smaller, more-selected denominator.**Trust the randomized endpoint — exposure → final step, counting everyone assigned — over any ratemeasured between two mid-funnel steps.** PostHog computes significance from the first step to the last-step for exactly this reason (see `numbers-vs-sql.md` D2 in the `diagnosing-experiment-results`+step for exactly this reason (see `numbers-vs-sql.md` D2 in the `diagnosing-experiment-health`library).## Three checks — any one failing points to noisediff --git a/products/experiments/skills/diagnosing-experiment-results/SKILL.md b/products/experiments/skills/diagnosing-experiment-health/SKILL.mdsimilarity index 95%rename from products/experiments/skills/diagnosing-experiment-results/SKILL.mdrename to products/experiments/skills/diagnosing-experiment-health/SKILL.mdindex 78ad71472420..d3acf7272404 100644--- a/products/experiments/skills/diagnosing-experiment-results/SKILL.md+++ b/products/experiments/skills/diagnosing-experiment-health/SKILL.md@@ -1,9 +1,9 @@----name: diagnosing-experiment-results-description: "Runs diagnostics and a health check on a PostHog experiment whose results look wrong, biased, empty or stale. Covers 0 exposures, sample ratio mismatch, lost or uneven exposures, users in multiple variants, identity faults, significance traps (peeking, A/A, 'target reached', Bayesian vs Frequentist, sequential testing, CUPED), PostHog-vs-SQL or dashboard discrepancies, mid-run edits, pause and freeze, and qualitative follow-up via a survey.\nTRIGGER when: user asks 'is my experiment healthy / biased?' or 'why 0 exposures?', mentions the bias or mismatch warning, an uneven split, a variant that looks wrong, significance that flips, numbers that disagree with their SQL or insight, results that changed after an edit, or wants user feedback on an experiment.\nDO NOT TRIGGER when: creating an experiment (use creating-experiments), only configuring rollout (use configuring-experiment-rollout) or metrics (use configuring-experiment-analytics), or only asking lifecycle questions (use managing-experiment-lifecycle)."+name: diagnosing-experiment-health+description: "Runs diagnostics and a health check on one PostHog experiment: its setup, exposures, results and changes during the run. Covers 0 exposures, sample ratio mismatch, lost or uneven exposures, users in multiple variants, identity faults, who the experiment counts, significance traps (peeking, A/A, 'target reached', Bayesian vs Frequentist, sequential, CUPED), mid-run edits, pause and freeze, and survey follow-up.\nTRIGGER when: user asks 'is my experiment healthy / set up right / biased?' or 'why 0 exposures?', asks why it counts different people than their insight, mentions the bias or mismatch warning, an uneven split, significance that flips, numbers that disagree with their SQL, results that changed after an edit, or wants user feedback on an experiment.\nDO NOT TRIGGER when: creating an experiment (use creating-experiments), only configuring rollout (use configuring-experiment-rollout) or metrics (use configuring-experiment-analytics), or only asking lifecycle questions (use managing-experiment-lifecycle)."----# Diagnosing experiment results+# Diagnosing experiment healthThis skill answers: **My PostHog experiment results look wrong, biased, or empty — what's going on?**It is the diagnostics and health check for one experiment: its setup, its exposures, its results and what changed during the run.diff --git a/products/experiments/skills/diagnosing-experiment-results/references/bias-and-skew.md b/products/experiments/skills/diagnosing-experiment-health/references/bias-and-skew.mdsimilarity index 100%rename from products/experiments/skills/diagnosing-experiment-results/references/bias-and-skew.mdrename to products/experiments/skills/diagnosing-experiment-health/references/bias-and-skew.mddiff --git a/products/experiments/skills/diagnosing-experiment-results/references/diagnostic-snapshot.md b/products/experiments/skills/diagnosing-experiment-health/references/diagnostic-snapshot.mdsimilarity index 100%rename from products/experiments/skills/diagnosing-experiment-results/references/diagnostic-snapshot.mdrename to products/experiments/skills/diagnosing-experiment-health/references/diagnostic-snapshot.mddiff --git a/products/experiments/skills/diagnosing-experiment-results/references/empty-experiment.md b/products/experiments/skills/diagnosing-experiment-health/references/empty-experiment.mdsimilarity index 100%rename from products/experiments/skills/diagnosing-experiment-results/references/empty-experiment.mdrename to products/experiments/skills/diagnosing-experiment-health/references/empty-experiment.mddiff --git a/products/experiments/skills/diagnosing-experiment-results/references/interpretation.md b/products/experiments/skills/diagnosing-experiment-health/references/interpretation.mdsimilarity index 100%rename from products/experiments/skills/diagnosing-experiment-results/references/interpretation.mdrename to products/experiments/skills/diagnosing-experiment-health/references/interpretation.mddiff --git a/products/experiments/skills/diagnosing-experiment-results/references/mid-run-changes.md b/products/experiments/skills/diagnosing-experiment-health/references/mid-run-changes.mdsimilarity index 100%rename from products/experiments/skills/diagnosing-experiment-results/references/mid-run-changes.mdrename to products/experiments/skills/diagnosing-experiment-health/references/mid-run-changes.mddiff --git a/products/experiments/skills/diagnosing-experiment-results/references/numbers-vs-sql.md b/products/experiments/skills/diagnosing-experiment-health/references/numbers-vs-sql.mdsimilarity index 100%rename from products/experiments/skills/diagnosing-experiment-results/references/numbers-vs-sql.mdrename to products/experiments/skills/diagnosing-experiment-health/references/numbers-vs-sql.mddiff --git a/products/experiments/skills/diagnosing-experiment-results/references/qualitative-feedback.md b/products/experiments/skills/diagnosing-experiment-health/references/qualitative-feedback.mdsimilarity index 98%rename from products/experiments/skills/diagnosing-experiment-results/references/qualitative-feedback.mdrename to products/experiments/skills/diagnosing-experiment-health/references/qualitative-feedback.mdindex 7ed553fc0742..af4ab98a0dba 100644--- a/products/experiments/skills/diagnosing-experiment-results/references/qualitative-feedback.md+++ b/products/experiments/skills/diagnosing-experiment-health/references/qualitative-feedback.md@@ -4,7 +4,7 @@ An experiment produces quantitative evidence: how far a number moved, and how suA short survey, shown when a user finishes the flow being experimented on, adds the qualitative half — how the change felt to the people who just went through it — readable per variant.A single rating question counts as qualitative evidence; open text is optional depth, and most respondents won't type.-Shared by [[diagnosing-experiment-results]], [[analyzing-experiment-session-replays]], [[scanning-experiments-with-replay-vision]], and [[managing-experiment-lifecycle]]; covers only what is experiment-specific.+Shared by [[diagnosing-experiment-health]], [[analyzing-experiment-session-replays]], [[scanning-experiments-with-replay-vision]], and [[managing-experiment-lifecycle]]; covers only what is experiment-specific.General survey mechanics belong to the surveys product ([[debugging-surveys]] covers a survey that isn't showing).Facts are tagged by verification strength, as in `SKILL.md`: `[HIGH]` verified in PostHog code, `[MEDIUM]` partially verified, `[LOW]` unverified hypothesis.diff --git a/products/experiments/skills/finding-experiments/SKILL.md b/products/experiments/skills/finding-experiments/SKILL.mdindex 57077dd0e995..965732290cf9 100644--- a/products/experiments/skills/finding-experiments/SKILL.md+++ b/products/experiments/skills/finding-experiments/SKILL.md@@ -58,4 +58,4 @@ Agent:## Related skills- **`managing-experiment-lifecycle`** — act on the experiment once you've resolved its ID-- **`diagnosing-experiment-results`** — investigate the experiment you found+- **`diagnosing-experiment-health`** — investigate the experiment you founddiff --git a/products/experiments/skills/managing-experiment-lifecycle/SKILL.md b/products/experiments/skills/managing-experiment-lifecycle/SKILL.mdindex 6c7f7ebf9674..22a8e1cae192 100644--- a/products/experiments/skills/managing-experiment-lifecycle/SKILL.md+++ b/products/experiments/skills/managing-experiment-lifecycle/SKILL.md@@ -45,7 +45,7 @@ One optional item worth a single mention at launch, when the change is user-facishort survey, shown when users finish the experimented flow (e.g. triggered by the form's submit event),collects qualitative feedback (a rating, an optional comment) alongside the metrics, from day one. Offer it once as setup advice, drop it if declined, andnever let it delay the launch. Do **not** raise it at end or ship-variant time — there it reads as a gate-on rolling out. → See [`references/qualitative-feedback.md`](../diagnosing-experiment-results/references/qualitative-feedback.md) in [[diagnosing-experiment-results]]+on rolling out. → See [`references/qualitative-feedback.md`](../diagnosing-experiment-health/references/qualitative-feedback.md) in [[diagnosing-experiment-health]]### Pause (`experiment-pause`)@@ -273,5 +273,5 @@ When you get a 400, explain the situation to the user rather than retrying.## Related skills- **`creating-experiments`** — create the next experiment from scratch-- **`diagnosing-experiment-results`** — sanity-check results before a ship or end decision+- **`diagnosing-experiment-health`** — sanity-check results before a ship or end decision- **`configuring-experiment-rollout`** — split and rollout changes, which are config edits rather than lifecycle operationsdiff --git a/products/experiments/skills/scanning-experiments-with-replay-vision/SKILL.md b/products/experiments/skills/scanning-experiments-with-replay-vision/SKILL.mdindex c52d73f509d2..30d3d002d720 100644--- a/products/experiments/skills/scanning-experiments-with-replay-vision/SKILL.md+++ b/products/experiments/skills/scanning-experiments-with-replay-vision/SKILL.md@@ -165,4 +165,4 @@ The check that does settle it is asking the people. A short survey, triggered whTwo constraints carry over from this skill and matter as much here. Don't name the variant in the survey question, for the same reason the scanner prompt doesn't: the answer stops being evidence about the surface. And prefer asking everyone who completes the flow over targeting one variant, because a popover shown to one variant is a difference between the variants that the experiment is still measuring.-→ See [`references/qualitative-feedback.md`](../diagnosing-experiment-results/references/qualitative-feedback.md) in [[diagnosing-experiment-results]]+→ See [`references/qualitative-feedback.md`](../diagnosing-experiment-health/references/qualitative-feedback.md) in [[diagnosing-experiment-health]]diff --git a/products/posthog_ai/evals/cli_mcp/eval_skill_distribution.py b/products/posthog_ai/evals/cli_mcp/eval_skill_distribution.pyindex df74d653936f..6ed4d234aa85 100644--- a/products/posthog_ai/evals/cli_mcp/eval_skill_distribution.py+++ b/products/posthog_ai/evals/cli_mcp/eval_skill_distribution.py@@ -86,7 +86,7 @@ async def eval_skill_distribution(ctx: EvalContext) -> None:"Diagnose the bias warning on the 'bias-warning-demo-uneven-split' experiment. ""Explain what in this experiment is causing the warning and what should be checked next."),- skill="diagnosing-experiment-results",+ skill="diagnosing-experiment-health",# The support front door wraps the diagnostic skill and also answers this prompt.alternate_skills=["debugging-experiments"],downstream_tools=["experiment-get", "experiment-results-get", "execute-sql"],diff --git a/products/posthog_ai/evals/cli_mcp/eval_skill_usage.py b/products/posthog_ai/evals/cli_mcp/eval_skill_usage.pyindex a4e073c3b4c9..8031426b0a00 100644--- a/products/posthog_ai/evals/cli_mcp/eval_skill_usage.py+++ b/products/posthog_ai/evals/cli_mcp/eval_skill_usage.py@@ -74,7 +74,7 @@ async def eval_skill_usage(ctx: EvalContext) -> None:"Compute this experiment's actual $multiple exposure share from its data and state ""whether the row is visible for it."),- skill="diagnosing-experiment-results",+ skill="diagnosing-experiment-health",# The support front door wraps the diagnostic skill and also answers this prompt.alternate_skills=["debugging-experiments"],downstream_tools=["experiment-get", "experiment-results-get", "execute-sql"],diff --git a/products/posthog_ai/evals/experiments/eval_bias_uneven_split.py b/products/posthog_ai/evals/experiments/eval_bias_uneven_split.pyindex f62546fe8e90..450164d638f1 100644--- a/products/posthog_ai/evals/experiments/eval_bias_uneven_split.py+++ b/products/posthog_ai/evals/experiments/eval_bias_uneven_split.py@@ -1,7 +1,7 @@"""Eval: agent diagnoses Group A bias mechanisms and surfaces co-occurring findings independently.Carrier scenarios for diagnostic group A from-``products/experiments/skills/diagnosing-experiment-results/SKILL.md``.+``products/experiments/skills/diagnosing-experiment-health/SKILL.md``.Two cases:diff --git a/products/posthog_ai/evals/experiments/eval_empty_experiment.py b/products/posthog_ai/evals/experiments/eval_empty_experiment.pyindex 7ded1a8920bf..a6374b4ebca3 100644--- a/products/posthog_ai/evals/experiments/eval_empty_experiment.py+++ b/products/posthog_ai/evals/experiments/eval_empty_experiment.py@@ -1,7 +1,7 @@"""Eval: agent diagnoses empty / 0-exposure experiments across three carrier shapes.Carrier scenarios for diagnostic group B from-``products/experiments/skills/diagnosing-experiment-results/SKILL.md``.+``products/experiments/skills/diagnosing-experiment-health/SKILL.md``.Three cases:diff --git a/products/posthog_ai/evals/experiments/eval_interpretation_traps.py b/products/posthog_ai/evals/experiments/eval_interpretation_traps.pyindex 39c756e2a9c9..98b786ab6e29 100644--- a/products/posthog_ai/evals/experiments/eval_interpretation_traps.py+++ b/products/posthog_ai/evals/experiments/eval_interpretation_traps.py@@ -1,7 +1,7 @@"""Eval: agent handles four interpretation-trap shapes from diagnostic group C.Carrier scenarios for diagnostic group C from-``products/experiments/skills/diagnosing-experiment-results/SKILL.md``.+``products/experiments/skills/diagnosing-experiment-health/SKILL.md``.Four cases:diff --git a/products/posthog_ai/evals/experiments/eval_midrun_changes.py b/products/posthog_ai/evals/experiments/eval_midrun_changes.pyindex 8d6c36809a46..36baf69749ef 100644--- a/products/posthog_ai/evals/experiments/eval_midrun_changes.py+++ b/products/posthog_ai/evals/experiments/eval_midrun_changes.py@@ -1,7 +1,7 @@"""Eval: agent handles mid-run / lifecycle scenarios across three carrier shapes.Carrier scenarios for diagnostic group E from-``products/experiments/skills/diagnosing-experiment-results/SKILL.md``.+``products/experiments/skills/diagnosing-experiment-health/SKILL.md``.Three cases:diff --git a/products/posthog_ai/evals/experiments/eval_numbers_vs_sql.py b/products/posthog_ai/evals/experiments/eval_numbers_vs_sql.pyindex 40d9ec6f7860..852cfa4fdf1c 100644--- a/products/posthog_ai/evals/experiments/eval_numbers_vs_sql.py+++ b/products/posthog_ai/evals/experiments/eval_numbers_vs_sql.py@@ -1,7 +1,7 @@"""Eval: agent handles PostHog-vs-SQL divergence in three shapes — scope mismatch, anti-routing and population mismatch.Carrier scenarios for diagnostic group D from-``products/experiments/skills/diagnosing-experiment-results/SKILL.md``.+``products/experiments/skills/diagnosing-experiment-health/SKILL.md``.Three cases:diff --git a/products/posthog_ai/evals/experiments/scorers.py b/products/posthog_ai/evals/experiments/scorers.pyindex f365d7d2c017..c369dec2ac6a 100644--- a/products/posthog_ai/evals/experiments/scorers.py+++ b/products/posthog_ai/evals/experiments/scorers.py@@ -23,7 +23,7 @@ dir under ``products/posthog_ai/eval_harness/logs/``.scenario, did the agent recommend ``experiment-ship-variant`` ratherthan ``experiment-end``? Tests row 1 of the decision-framework matrix.-The next three back the ``diagnosing-experiment-results`` skill (groups A–E).+The next three back the ``diagnosing-experiment-health`` skill (groups A–E).* ``CitesDiagnosticGroup`` — LLM judge (binary). Did the agent's finalmessage name the expected diagnostic (uneven-split bias, inactive-flagdiff --git a/services/mcp/schema/generated-tool-definitions.json b/services/mcp/schema/generated-tool-definitions.jsonindex 5a52512e0e99..5dfdf16daad9 100644--- a/services/mcp/schema/generated-tool-definitions.json+++ b/services/mcp/schema/generated-tool-definitions.json@@ -5255,7 +5255,7 @@}},"experiment-metrics-recalculation-latest-retrieve": {- "description": "The default way to read an experiment's current results. Requires an experiment ID. If you don't have the ID, load the finding-experiments skill to resolve the user's reference first. To interpret what the numbers mean, load the diagnosing-experiment-results skill.\n\nReturns the most recent completed metrics run for the experiment: a results array with one entry per metric, each carrying per-variant statistics (exposures, counts, means, credible intervals, chance to beat control, significance), plus run-level status, created_at, completed_at, and query_to (the data freshness cutoff these numbers were computed against, use it to tell the user how fresh the results are).\n\nThis is a pure read and never starts a calculation, so the numbers can be stale. If the user wants fresh numbers, or query_to is old, call experiment-metrics-recalculation-create and then poll.\n\nTwo fields matter for reading the response correctly. active_run is present when a run is currently executing, the returned results are from the previous run, and you can poll active_run.id with experiment-metrics-recalculation-retrieve for live progress. result_source is 'timeseries_fallback' when the experiment has never completed a run and these numbers are a cold-start placeholder built from daily timeseries data, rather than 'recalculation' for a real run; say so if you report those numbers.\n\nReturns 404 when the experiment has no results at all yet, which usually means it has not run long enough or has never been calculated.",+ "description": "The default way to read an experiment's current results. Requires an experiment ID. If you don't have the ID, load the finding-experiments skill to resolve the user's reference first. To interpret what the numbers mean, load the diagnosing-experiment-health skill.\n\nReturns the most recent completed metrics run for the experiment: a results array with one entry per metric, each carrying per-variant statistics (exposures, counts, means, credible intervals, chance to beat control, significance), plus run-level status, created_at, completed_at, and query_to (the data freshness cutoff these numbers were computed against, use it to tell the user how fresh the results are).\n\nThis is a pure read and never starts a calculation, so the numbers can be stale. If the user wants fresh numbers, or query_to is old, call experiment-metrics-recalculation-create and then poll.\n\nTwo fields matter for reading the response correctly. active_run is present when a run is currently executing, the returned results are from the previous run, and you can poll active_run.id with experiment-metrics-recalculation-retrieve for live progress. result_source is 'timeseries_fallback' when the experiment has never completed a run and these numbers are a cold-start placeholder built from daily timeseries data, rather than 'recalculation' for a real run; say so if you report those numbers.\n\nReturns 404 when the experiment has no results at all yet, which usually means it has not run long enough or has never been calculated.","category": "Experiments","feature": "experiments","summary": "Get experiment results",diff --git a/services/mcp/schema/tool-definitions-all.json b/services/mcp/schema/tool-definitions-all.jsonindex ff49b52c8af5..3decbeebbcb8 100644--- a/services/mcp/schema/tool-definitions-all.json+++ b/services/mcp/schema/tool-definitions-all.json@@ -5340,7 +5340,7 @@}},"experiment-metrics-recalculation-latest-retrieve": {- "description": "The default way to read an experiment's current results. Requires an experiment ID. If you don't have the ID, load the finding-experiments skill to resolve the user's reference first. To interpret what the numbers mean, load the diagnosing-experiment-results skill.\n\nReturns the most recent completed metrics run for the experiment: a results array with one entry per metric, each carrying per-variant statistics (exposures, counts, means, credible intervals, chance to beat control, significance), plus run-level status, created_at, completed_at, and query_to (the data freshness cutoff these numbers were computed against, use it to tell the user how fresh the results are).\n\nThis is a pure read and never starts a calculation, so the numbers can be stale. If the user wants fresh numbers, or query_to is old, call experiment-metrics-recalculation-create and then poll.\n\nTwo fields matter for reading the response correctly. active_run is present when a run is currently executing, the returned results are from the previous run, and you can poll active_run.id with experiment-metrics-recalculation-retrieve for live progress. result_source is 'timeseries_fallback' when the experiment has never completed a run and these numbers are a cold-start placeholder built from daily timeseries data, rather than 'recalculation' for a real run; say so if you report those numbers.\n\nReturns 404 when the experiment has no results at all yet, which usually means it has not run long enough or has never been calculated.",+ "description": "The default way to read an experiment's current results. Requires an experiment ID. If you don't have the ID, load the finding-experiments skill to resolve the user's reference first. To interpret what the numbers mean, load the diagnosing-experiment-health skill.\n\nReturns the most recent completed metrics run for the experiment: a results array with one entry per metric, each carrying per-variant statistics (exposures, counts, means, credible intervals, chance to beat control, significance), plus run-level status, created_at, completed_at, and query_to (the data freshness cutoff these numbers were computed against, use it to tell the user how fresh the results are).\n\nThis is a pure read and never starts a calculation, so the numbers can be stale. If the user wants fresh numbers, or query_to is old, call experiment-metrics-recalculation-create and then poll.\n\nTwo fields matter for reading the response correctly. active_run is present when a run is currently executing, the returned results are from the previous run, and you can poll active_run.id with experiment-metrics-recalculation-retrieve for live progress. result_source is 'timeseries_fallback' when the experiment has never completed a run and these numbers are a cold-start placeholder built from daily timeseries data, rather than 'recalculation' for a real run; say so if you report those numbers.\n\nReturns 404 when the experiment has no results at all yet, which usually means it has not run long enough or has never been calculated.","category": "Experiments","feature": "experiments","summary": "Get experiment results",diff --git a/services/mcp/src/templates/sections/cli-learn.md b/services/mcp/src/templates/sections/cli-learn.mdindex 08ed1141022e..01b4cb1afa75 100644--- a/services/mcp/src/templates/sections/cli-learn.md+++ b/services/mcp/src/templates/sections/cli-learn.md@@ -10,5 +10,5 @@ Syntax: `learn [skills|-s "<up to 8 keywords>"|-d <name...>|(posthog|project):<s<example>User: At what exposure share does the experiment bias warning fire?-Assistant: [Runs only `learn -s "experiment bias warning"`; waits. Loads `posthog:diagnosing-experiment-results`, reads `references/bias-and-skew.md`, answers from it — no web search, no source clone.]+Assistant: [Runs only `learn -s "experiment bias warning"`; waits. Loads `posthog:diagnosing-experiment-health`, reads `references/bias-and-skew.md`, answers from it — no web search, no source clone.]</example>