: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): move anomaly-detection scout to the report channel (#66878)
Andrew Maguire21f90989829f
diff --git a/products/signals/skills/AGENTS.md b/products/signals/skills/AGENTS.mdindex 1d8317d302a0..85761340ade3 100644--- a/products/signals/skills/AGENTS.md+++ b/products/signals/skills/AGENTS.md@@ -157,8 +157,11 @@ agent-enabled team's `LLMSkill` rows by `scout_harness/lazy_seed.py` — seedashboard access), curates a durable scratchpad watchlist, and balancesre-checking known items (exploit) against discovering new ones (explore) acrossruns; scores the latest complete bucket by robust (MAD) deviation from each- insight's own seasonality-matched baseline. Bundles its own references- (`anomaly-methods.md`, `watchlist-and-memory.md`, `emit-contract.md`).+ insight's own seasonality-matched baseline. The first canonical scout on the+ **report channel** — it files each anomaly as a finished 1:1 inbox report via+ `emit_report` / `edit_report` (its `allowed_tools`) rather than a weak signal.+ Bundles its own references+ (`anomaly-methods.md`, `watchlist-and-memory.md`, `report-contract.md`).- `signals-scout-health-checks/` — the judgment layer over PostHog's own healthchecks. Reads the project's active health issues (`health-issues-summary` /`-list` / `-get`) rather than re-running detection, and decides which are worth@@ -282,7 +285,7 @@ where they need it, and its canonical write-up now lives inThe specialists each carry their own domain discriminator + investigation patterns.Most are a single self-contained `SKILL.md`; a few bundle surface-specific referencesread on demand — `signals-scout-anomaly-detection` (`anomaly-methods.md`,-`watchlist-and-memory.md`, `emit-contract.md`), `signals-scout-ai-observability`+`watchlist-and-memory.md`, `report-contract.md`), `signals-scout-ai-observability`(`lenses.md`), and `signals-scout-surveys` (`response-querying.md`). Treat thegeneralist as the reference shape. Note that a scout can only read its own bundledfiles at runtime (each team's `LLMSkill` row carries just that skill's files), so adiff --git a/products/signals/skills/authoring-scouts/references/report-contract.md b/products/signals/skills/authoring-scouts/references/report-contract.mdindex 2efb375e70d7..19b0ec512e5f 100644--- a/products/signals/skills/authoring-scouts/references/report-contract.md+++ b/products/signals/skills/authoring-scouts/references/report-contract.md@@ -212,11 +212,14 @@ allowed_tools:```A scout with no `allowed_tools` (or one that omits these) runs on the `emit-signal`-only-contract — the report channel is invisible to it. No canonical scout enables the channel yet —-`signals-scout-health-checks` and `signals-scout-observability-gaps` are its intended first+contract — the report channel is invisible to it. `signals-scout-anomaly-detection` is the+first canonical adopter — each scored, attributed metric anomaly is a natural finished 1:1+report, so it files via `emit_report` / `edit_report` rather than a weak signal (see its+`references/report-contract.md` for the worked, surface-specific shape).+`signals-scout-health-checks` and `signals-scout-observability-gaps` are the next intendedadopters (a bundled health-check cluster and a single observability-gap recommendation are both-natural 1:1 reports). Add a short body section telling the scout _when_ to reach for the channel.-Keep it lean — the field-level detail lives here, not in the body.+natural 1:1 reports too). Add a short body section telling the scout _when_ to reach for the+channel. Keep it lean — the field-level detail lives here, not in the body.**Rollout posture:** start a newly opted-in scout in **dry-run** (`emit=false` on its`SignalScoutConfig`) so it runs and logs what it _would_ author without writing to the inbox.diff --git a/products/signals/skills/signals-scout-anomaly-detection/SKILL.md b/products/signals/skills/signals-scout-anomaly-detection/SKILL.mdindex d0d4430a9e12..538816b97b1b 100644--- a/products/signals/skills/signals-scout-anomaly-detection/SKILL.md+++ b/products/signals/skills/signals-scout-anomaly-detection/SKILL.md@@ -3,13 +3,17 @@ name: signals-scout-anomaly-detectiondescription: >Signals scout that watches a project's most-viewed dashboards and insights for recentanomalies — bursts, drops, flat-lines, and trend breaks scored against each insight's own- seasonality-matched baseline.+ seasonality-matched baseline. Files each anomaly as a finished 1:1 inbox report on the+ report channel (emit_report / edit_report) rather than a weak signal.compatibility: >Runs as the PostHog Signals scout in a Claude sandbox with read-only analytics scopes- plus signal_scout_internal:write (scratchpad + emit) and notebook:write (the notebook- write-up behind each finding). Assumes the signals-scout MCP tool family plus the- dashboard/insight, alert-simulate, and notebook tools listed in the body's MCP tools- section.+ plus signal_scout_internal:write (scratchpad), signal_scout_report:write (the report+ channel — emit_report / edit_report), and notebook:write (the notebook write-up behind+ each report). Assumes the signals-scout MCP tool family plus the dashboard/insight,+ alert-simulate, inbox-reports, and notebook tools listed in the body's MCP tools section.+allowed_tools:+ - emit_report+ - edit_reportmetadata:owner_team: signalsscope: anomaly_detection@@ -140,7 +144,7 @@ the `importance-refresh` memo are inMemory is continuous, not a final step. Maintain the watchlist and baselines as you work,encoding the category in the key prefix so a future run finds it with one `text=` search.-The vocabulary (`watchlist:`, `baseline:`, `dedupe:`, `noise:`, `addressed:`, `allowlist:`,+The vocabulary (`watchlist:`, `baseline:`, `report:`, `noise:`, `addressed:`, `allowlist:`,`not-in-use:`) and worked entries are in[`references/watchlist-and-memory.md`](references/watchlist-and-memory.md). The short version:@@ -148,36 +152,48 @@ The vocabulary (`watchlist:`, `baseline:`, `dedupe:`, `noise:`, `addressed:`, `acadence (hourly/daily), priority, and `last_checked` + `next_due` timestamps.- `baseline:anomaly_detection:insight:<short_id>` — the learned normal (median + MAD perseasonal bucket) so the next run scores cheaply instead of recomputing from scratch.-- `dedupe:anomaly_detection:insight:<short_id>:<date>` — an anomaly already surfaced, with- the condition that should re-escalate it.+- `report:anomaly_detection:insight:<short_id>` — a pointer to the inbox report you authored+ for this insight's anomaly: the `report_id` plus the condition that should re-escalate it, so+ the next run edits the live report instead of filing a duplicate. Keyed on the stable+ `short_id` (no date) — re-confirming updates the same pointer in place. Add a+ `:<series-or-direction>` suffix only when one insight carries genuinely distinct concurrent+ anomalies, so they don't collapse onto one report.### Decide-For each candidate anomaly, classify against prior runs and the scratchpad+For each candidate anomaly, classify against prior runs, the inbox, and the scratchpad(net-new / material-update / already-covered / addressed-or-noise — full classifier in-[`references/watchlist-and-memory.md`](references/watchlist-and-memory.md)), then:--- **Emit** via `signals-scout-emit-signal` when it clears the bar. **Before you emit, write- the finding up in a notebook** (`notebooks-create`) — the inbox description is a 3–6 sentence- hook, but the notebook is the durable artifact a human opens to see the charts, the baseline- math, and the attribution behind the call. Build it first, then put its URL in the emitted- finding's description and an evidence entry so the signal links straight to the write-up. The- emit contract _and_ the notebook structure — schema, confidence rubric, severity,- dedupe keys, description prose, the notebook layout + embedded-chart recipe, worked example —- are in [`references/emit-contract.md`](references/emit-contract.md). For this- scout a strong finding is: robust z ≥ ~3.5 on the latest complete bucket, the move is not- explained by seasonality or a known data-pipeline gap, confidence ≥ 0.85,- with the insight `short_id`, the bucket value, the baseline, the z-score, and the time- window in the evidence. Cross-check `inbox-reports-list` first — if the same metric move- is already reported, emit only if your angle is materially new.-- **Remember** if it's suggestive but below the bar (confidence < 0.65), or to refresh a- baseline / record what you ruled out.-- **Skip** if a `noise:` / `addressed:` / `dedupe:` entry already covers it.+[`references/watchlist-and-memory.md`](references/watchlist-and-memory.md)). You file findings+on the **report channel**: a scored, attributed anomaly you'd stand behind is a finished, 1:1+inbox report, not a weak signal for the pipeline to cluster — so you author it directly. Then:++- **Author** a fresh report via `signals-scout-emit-report` when the move is net-new and clears+ the bar. **Before you author, write the anomaly up in a notebook** (`notebooks-create`) — the+ report `summary` is the inbox surface, but the notebook is the durable artifact a human opens+ to see the charts, the baseline math, and the attribution behind the call. Build it first,+ then link its URL from the report `summary` and cite it as an `evidence` entry. The report+ contract _and_ the notebook structure — the title/summary prose contract, evidence,+ actionability, suggested reviewers, the notebook layout + embedded-chart recipe, worked+ example — are in [`references/report-contract.md`](references/report-contract.md). For this+ scout a report-worthy anomaly is: robust z ≥ ~3.5 on the latest complete bucket, the move not+ explained by seasonality or a known data-pipeline gap, with the insight `short_id`, the bucket+ value, the baseline, the z-score, and the time window in the evidence. **Search the inbox+ first** (`inbox-reports-list`, plus your `report:` scratchpad pointer) — the channel is not+ idempotent, so never author a duplicate.+- **Edit** the existing report via `signals-scout-edit-report` when one already covers this+ insight's anomaly (found via the inbox search or a `report:anomaly_detection:insight:<short_id>`+ pointer) and you have a material update — it's still firing, escalated, or correlates with a+ fresh deploy. `append_note` with the new evidence (link a fresh notebook for the new window);+ rewrite `title`/`summary` only on a report you own. Don't author a second report for the same+ ongoing move.+- **Remember** if it's suggestive but below the bar, or to refresh a baseline / record what you+ ruled out.+- **Skip** if a `noise:` / `addressed:` / `report:` entry already covers it without new evidence.### Close out-One paragraph: which watchlist items you checked, what you added, what anomalies you-emitted, and what you ruled out and why. The harness saves this as the run summary; future+One paragraph: which watchlist items you checked, what you added, which anomalies you+reported (authored or updated), and what you ruled out and why. The harness saves this as the run summary; futureruns read it via `signals-scout-runs-list`. Do **not** write a separate "run metadata"scratchpad entry. "Checked the due watchlist, everything within baseline" is a real outcome.@@ -188,7 +204,7 @@ scratchpad entry. "Checked the due watchlist, everything within baseline" is a r- **The current partial bucket** — the in-progress hour/day is incomplete; never score it.- **Data-pipeline gaps, not real drops** — a metric that flat-lines to zero across _every_insight at the same timestamp is almost always missing/late data or a deploy gap, not a- product anomaly. Note it (it may be worth its own finding) but don't emit it as a metric+ product anomaly. Note it (it may be worth its own report) but don't report it as a metricanomaly per insight.- **Low-count noise** — series whose baseline counts are tiny; a few events of movement isnot signal. Enforce the minimum relative-change and minimum-absolute-count floors.@@ -197,7 +213,7 @@ scratchpad entry. "Checked the due watchlist, everything within baseline" is a r- **Expected one-offs the team already knows about** — launches, migrations, backfills,known experiments. If a `noise:` / `addressed:` entry names it, skip.-When in doubt, refresh the baseline memory instead of emitting.+When in doubt, refresh the baseline memory instead of reporting.## MCP tools@@ -214,26 +230,32 @@ Direct (read-only):- `execute-sql` over `events` — fallback scorer: hourly/daily series + trailing baseline fornon-saved series or custom baselines.- `read-data-schema` — confirm events/properties before any SQL.-- `inbox-reports-list` — check whether the move is already reported before emitting.+- `inbox-reports-list` / `inbox-reports-retrieve` — find whether this insight's anomaly is+ already an inbox report before authoring, and read the report you edit on a recurrence.Local: `Bash` + `python3` — the distribution-shift lens: run a pure-stdlib two-sample KS /changepoint inline, or fetch the bundled `scripts/ks2.py` via `llma-skill-file-get` and writeit to `/tmp` first (not on disk in a scheduled run). Feed it histograms from `execute-sql`.-Write (user-facing, gated on `notebook:write`):--- `notebooks-create` — the durable write-up that backs an emitted finding. Build it _before_- emitting and reference its URL from the signal. Layout + embedded-chart recipe (embed the- anomalous insight with a `SavedInsightNode`; chart a SQL-fallback series with a- `DataVisualizationNode`) is in [`references/emit-contract.md`](references/emit-contract.md).-- `notebooks-destroy` — clean up the write-up if the emit is preflight-skipped (dry-run /- gated / source disabled) so a non-emitting run leaves no orphan artifact. See- [`references/emit-contract.md`](references/emit-contract.md).+Write (user-facing):++- `signals-scout-emit-report` / `signals-scout-edit-report` (gated on+ `signal_scout_report:write`) — the report channel: author a full inbox report for an anomaly,+ or update the existing one on a recurrence. Field-level contract in+ [`references/report-contract.md`](references/report-contract.md).+- `notebooks-create` (gated on `notebook:write`) — the durable write-up that backs an authored+ report. Build it _before_ authoring and reference its URL from the report `summary` and an+ `evidence` entry. Layout + embedded-chart recipe (embed the anomalous insight with a+ `SavedInsightNode`; chart a SQL-fallback series with a `DataVisualizationNode`) is in+ [`references/report-contract.md`](references/report-contract.md).+- `notebooks-destroy` — clean up the write-up if the report did not surface (preflight gate-skip,+ or the safety judge suppressed it) so a non-surfacing run leaves no orphan artifact. See+ [`references/report-contract.md`](references/report-contract.md).Harness-level: `signals-scout-project-profile-get`, `signals-scout-scratchpad-search`,`signals-scout-runs-list`, `signals-scout-runs-retrieve` (orientation + dedupe);-`signals-scout-emit-signal`, `signals-scout-scratchpad-remember`,-`signals-scout-scratchpad-forget` (emit + memory).+`signals-scout-emit-report`, `signals-scout-edit-report` (the report channel);+`signals-scout-scratchpad-remember`, `signals-scout-scratchpad-forget` (memory).## When to stopdiff --git a/products/signals/skills/signals-scout-anomaly-detection/references/emit-contract.md b/products/signals/skills/signals-scout-anomaly-detection/references/emit-contract.mddeleted file mode 100644index 81b6a13250f5..000000000000--- a/products/signals/skills/signals-scout-anomaly-detection/references/emit-contract.md+++ /dev/null@@ -1,242 +0,0 @@-# The emit contract--How this scout calls `signals-scout-emit-signal` and writes a well-calibrated finding. The-harness validates request shape but does **not** grade prose — that's on you. This mirrors the-contract the whole signals-scout fleet runs on.--## Fields--| Field | Type | Required | Notes |-| ------------- | ---------------------- | ------------ | ------------------------------------------------------ |-| `description` | string | ✅ | Non-empty prose — the inbox surface and dedupe target. |-| `confidence` | float `[0,1]` | ✅ | How sure you are the finding is real. |-| `evidence` | list (0–20) | ✅ | `{source_product, summary, entity_id?}` per entry. |-| `hypothesis` | string | recommended | One-line root-cause hypothesis. |-| `severity` | `P0`–`P4` | recommended | Informational only; no routing. |-| `dedupe_keys` | list of strings | recommended | `<kind>:<entity_id>` — groups across runs/sources. |-| `time_range` | `{date_from, date_to}` | when bounded | The anomalous window. |-| `finding_id` | string | recommended | Stable trace id, **not** a dedupe key (see below). |--## Confidence — the emit gate--`confidence` = how sure you are the finding is real. It is the emit gate: a finding you can't-stand behind belongs in the scratchpad, not the inbox. You do not rank findings yourself — the-inbox handles ordering once you emit.--**Confidence:** 0.85–1.00 unambiguous (high z, guards passed, seasonality ruled out, not-already reported); 0.65–0.84 one strong read + plausible cause, minor unknowns; < 0.65 don't-emit — refresh the baseline instead.--**The emit gate:** if you can't reach `confidence ≥ 0.65`, write a scratchpad entry, don't-emit. For this scout, a strong finding is **robust z ≥ ~3.5 on the latest complete bucket**,-the guards in `anomaly-methods.md` passed, the move not explained by seasonality or a pipeline-gap, confidence ≥ 0.85.--## Severity--`P0` active critical (outage / data loss); `P1` active material (revenue/conversion drop-hitting the business now); `P2` confirmed contained; `P3` suspected or minor confirmed; `P4`-FYI / curiosity. A sustained drop-to-zero on a key metric is typically P1; a one-bucket spike-that's already receding is P2–P3.--## Description prose contract--One tight paragraph (3–6 sentences) a busy human reads in a feed of 30:--1. **Hook** — what moved, **quantified**: "daily signups dropped to 412 yesterday vs an- ~1,050 same-weekday baseline (robust z = 4.8)".-2. **Pattern** — the shape that makes it signal not noise: direction, that it cleared the- seasonality-matched baseline, whether it's one bucket or sustained.-3. **Hypothesis** — the suspected cause (deploy, experiment, pipeline, real behavior change).-4. **Lineage** — if a prior run touched this insight, cite its `finding_id`.-5. **Recommendation** — the next action (which insight to open, what to check).--Cite the insight `short_id` and dashboard id inline so a human pivots straight to the source.--## Evidence--Each entry `{source_product, summary, entity_id?}`, ≤ 20. Cite every concrete claim. For this-scout: `source_product: query_runs` (the SQL/insight-query reads), `entity_id` = the insight-`short_id`; add `signals_scout` entries to cite a prior run/finding. Put the bucket value,-the baseline median, the z-score, and the time window in the summaries. Add one-`source_product: notebook` entry whose `entity_id` is the notebook `short_id` and whose-summary is a brief description of the write-up followed by the notebook URL (see below) —-that is the durable artifact the human opens.--## The notebook write-up--The inbox description is a 3–6 sentence hook; the **notebook is the durable artifact** behind-it — the place a human lands to see the charts, the baseline math, and the attribution that-justify the call. **Build the notebook _before_ you emit**, then reference its URL from the-signal. One notebook per emitted finding.--### Create it--Call `notebooks-create` with a `title` and `content` (ProseMirror rich-text JSON). The-response carries the new notebook's `short_id` and a clickable URL (the tool enriches the-result with `/notebooks/{short_id}`) — that URL is what you wire into the emit. If you ever-need to build the link yourself, it is `generate-app-url` with `url=/notebooks/{shortId}`.--- **Title** — name the metric, the direction, and the date, e.g.- `Anomaly: daily signups dropped ~60% (2026-06-06)`. A human scanning a notebook list should- recognise it.-- **One notebook per finding** — never append a new anomaly to a prior run's notebook. A- recurrence on a later day is a new notebook citing the prior one, mirroring the dedupe-key- convention.--### What goes in it--Lead with the same hook the inbox sees, then the evidence the 3–6 sentences can't hold:--1. **Summary** — the quantified hook (bucket value vs baseline, robust z, severity), one or- two sentences. Same claim as the description, so the notebook stands alone.-2. **The chart** — embed the anomalous series so the spike/drop is visible, and make sure the- window is wide enough (e.g. `-63d`) that the baseline _and_ the break are both on screen. A- `SavedInsightNode` renders the insight's own saved date range and carries no date override —- so use it only when that saved range already shows the baseline; if the insight is saved to a- short window (often `-7d`), embed an inline widened `DataVisualizationNode` (or- `InsightVizNode`) for the scored window instead, so the write-up keeps the very evidence it- exists to preserve.-3. **Baseline & method** — the seasonality-matched baseline (median + MAD per bucket), the- z-score, which detector(s) `alert-simulate` fired, and that the partial bucket was excluded.- This is the math that doesn't fit the inbox hook.-4. **Attribution** — which breakdown segment(s) drove the move (the attribution read from the- investigation), and whether it's broad (regression) or one segment (often expected).-5. **Hypothesis & next step** — suspected cause and what to check, matching the emit hypothesis.--### Embedded-chart recipe--Charts are `{type: "ph-query", attrs: {nodeId: "<unique>", query: <query>}}` nodes inside-`content`. `query` is one of:--- **Embed the anomalous saved insight** —- `{kind: "SavedInsightNode", shortId: "<short_id>"}`. Renders the insight's _saved_ date range- (no override); fine when that range shows the baseline, otherwise prefer a widened node below.-- **Chart a SQL-fallback series** —- `{kind: "DataVisualizationNode", source: {kind: "HogQLQuery", query: "SELECT ..."}, display: "ActionsLineGraph"}`.- Do **not** wrap a `HogQLQuery` in an `InsightVizNode`.-- **Build an ad-hoc product-analytics chart** —- `{kind: "InsightVizNode", source: {kind: "TrendsQuery", ...}}`.--Prefer embedding the saved insight you scored — it stays in sync with the source and is the-thing the human will open next. Give each `ph-query` node a distinct `nodeId`. `notebooks-create`-returns the new notebook's URL in `_posthogUrl` — surface that verbatim, don't hand-build it.--`content` is a ProseMirror doc (the tool documents no node schema, so use this skeleton). Text-is `paragraph` / `heading` (with `attrs.level`) / `bulletList` → `listItem` → `paragraph`;-charts are `ph-query` nodes. A minimal working shape:--```json-{- "type": "doc",- "content": [- {- "type": "heading",- "attrs": { "level": 1 },- "content": [{ "type": "text", "text": "Anomaly: <metric> <direction> (<date>)" }]- },- { "type": "paragraph", "content": [{ "type": "text", "text": "<the quantified hook>" }] },- {- "type": "ph-query",- "attrs": { "nodeId": "scored-insight", "query": { "kind": "SavedInsightNode", "shortId": "<short_id>" } }- },- { "type": "heading", "attrs": { "level": 2 }, "content": [{ "type": "text", "text": "Baseline & method" }] },- {- "type": "bulletList",- "content": [- {- "type": "listItem",- "content": [- {- "type": "paragraph",- "content": [{ "type": "text", "text": "<baseline median + MAD, the z, partial bucket excluded>" }]- }- ]- }- ]- }- ]-}-```--For a SQL-fallback chart, swap the `ph-query` query for-`{ "kind": "DataVisualizationNode", "source": { "kind": "HogQLQuery", "query": "SELECT ..." }, "display": "ActionsLineGraph" }`.--### Wire it into the emit--- **Description** — add a closing clause: "Full write-up with charts: `<notebook-url>`."-- **Evidence** — one `{source_product: notebook, entity_id: <short_id>, summary: <brief description + url>}` entry.-- **dedupe_keys** — optionally add `notebook:<short_id>` so the artifact is traceable from the- signal's `extra`.--**Clean up if the emit doesn't land.** `signals-scout-emit-signal` is preflight-gated — on a-dry-run config (`emit=False`), un-approved AI processing, or a disabled source it returns a-`skipped_reason` and writes **no** signal. The notebook, gated only by `notebook:write`, has-already been created — so an orphaned user-facing artifact would leak into the project,-breaking the dry-run/source-disabled contract. **If the emit result is skipped (not emitted),-delete the just-created notebook with `notebooks-destroy`.** Only a notebook attached to a real-emitted signal should survive the run.--Skipping notebook _creation_ is only acceptable if `notebooks-create` fails — then emit anyway-(the finding still matters) and note the missing artifact in the description.--## Dedupe keys--Stable strings stored on the signal for traceability and grouping context — they are recorded-in the signal's `extra`, **not** enforced as idempotency keys by `emit_signal` (grouping is-semantic). Your own dedupe is the scratchpad / run-history check before emitting. Use-`insight:<short_id>` and a metric-anomaly key like `metric_anomaly:<short_id>:<date>` so a-recurrence on a later day reads as a new finding citing the prior one. Add `dashboard:<id>`-when relevant. Include 1–2.--## finding_id (not a dedupe key)--A stable, human-readable trace id tying the signal to its run — e.g.-`anomaly-revenue-over-time-ym0K91uz-2026-06-07`. It is **not** used for idempotency: the-pipeline assigns every signal a fresh random `document_id` and dedupes on that, never on-`finding_id` — and never on your `dedupe_keys` either (those are stored in `extra` for the-inbox to group on _after_ ingest, they don't make a repeat emit idempotent).-**Re-calling emit with the same `finding_id` writes a second signal — never retry an emit that-may already have succeeded.** A recurrence on a later day is a new finding citing the prior id.--## Worked example--```yaml-finding_id: anomaly-daily-signups-9aBcDeF-2026-06-07-confidence: 0.88-severity: P1-hypothesis: >- Daily signups dropped ~60% below the same-weekday baseline starting yesterday — likely a- broken signup flow or a tracking regression from a recent deploy.-evidence:- - source_product: query_runs- entity_id: 9aBcDeF- summary: >- 'Daily signups' (insight 9aBcDeF on dashboard Growth/41233): yesterday 412 vs- 8-same-weekday median 1,048 (MAD 95) → robust z = 4.8. Prior 7 same-weekdays all- within ±1.5 z. Latest complete day only; today's partial bucket excluded.- - source_product: notebook- entity_id: aB12cD34- summary: >- Write-up with the -63d chart, the per-weekday baseline, and the segment attribution:- https://us.posthog.com/project/41233/notebooks/aB12cD34-time_range: { date_from: 2026-06-06T00:00:00Z, date_to: 2026-06-07T00:00:00Z }-dedupe_keys:- - insight:9aBcDeF- - metric_anomaly:9aBcDeF:2026-06-06- - notebook:aB12cD34-description: |- Daily signups dropped to 412 yesterday (2026-06-06) against an ~1,048 same-weekday baseline- (robust z = 4.8, MAD 95) on insight 9aBcDeF, pinned to the Growth dashboard (41233). This is- a single complete-day drop of ~60%, well outside the weekday rhythm — the last 8 same- weekdays were all within ±1.5 z, so it's not seasonality. Likely a broken signup flow or a- tracking regression from a recent deploy. Recommend opening insight 9aBcDeF, checking- whether the drop is broad or segment-specific, and correlating with today's deploys. Full- write-up with charts: https://us.posthog.com/project/41233/notebooks/aB12cD34.-```--Why it's good: quantified hook with the baseline and z, seasonality explicitly ruled out,-partial bucket excluded, actionable recommendation, dual dedupe keys (insight + dated-metric anomaly), P1 justified by business impact, confidence 0.88 because the read is clean.-The notebook the scout built before emitting is cited in the evidence and linked from the-description, so the human lands on the charts and baseline math in one click.diff --git a/products/signals/skills/signals-scout-anomaly-detection/references/report-contract.md b/products/signals/skills/signals-scout-anomaly-detection/references/report-contract.mdnew file mode 100644index 000000000000..acd475e816ec--- /dev/null+++ b/products/signals/skills/signals-scout-anomaly-detection/references/report-contract.md@@ -0,0 +1,305 @@+# The report contract++How this scout files an anomaly on the **report channel** — `signals-scout-emit-report` to+author a fresh inbox report, `signals-scout-edit-report` to update one on a recurrence. A+scored, attributed anomaly you'd stand behind is a finished, 1:1 inbox report, not a weak+signal for the pipeline to cluster — so you author it directly and own its framing end to end.++The harness already gives you the **general** report-channel discipline in your run prompt:+search the inbox before authoring, prefer editing over a near-duplicate, keep a+`report:<domain>:<entity>` scratchpad pointer, set `suggested_reviewers` to route the report,+and never retry a non-idempotent call. This file is the **anomaly-specific** contract on top of+that: the authoring bar, the title/summary prose, the evidence shape, how to set+actionability / priority / repository / reviewers for a metric move, and the notebook write-up.+The harness validates request shape but does **not** grade prose — that's on you.++## The authoring bar (higher than emitting)++Authoring a report is a **higher bar** than firing a signal — it surfaces a full inbox item a+human will act on, with no pipeline consolidation to soften a weak call. Author only when:++- robust z ≥ ~3.5 on the **latest complete bucket** (the partial bucket is excluded),+- the guards in [`anomaly-methods.md`](anomaly-methods.md) passed,+- the move is **not** explained by seasonality or a known data-pipeline gap, and+- you've **attributed** it (which segment drove it) and would stand behind it standalone.++Below that bar, write a `baseline:` / `noise:` scratchpad entry instead — don't author.++## `emit_report` — author a full report++| Field | Type | Notes |+| --------------------------- | ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------- |+| `title` | string, ≤300, non-empty | The inbox headline. One specific, quantified line (see below). |+| `summary` | string | The report body prose — hook → pattern → hypothesis → lineage → recommendation (see below). |+| `evidence` | list, 1–50 | Each `{description, source_id}`. Becomes a bound signal row backing the report. |+| `actionability_explanation` | string | One sentence justifying the actionability call. |+| `actionability` | enum | `immediately_actionable` / `requires_human_input` / `not_actionable`. You make the call. |+| `already_addressed` | bool, default `false` | Set when the move is already handled and you're filing for the record. |+| `suggested_reviewers` | list of `{github_login}` | Who owns the metric/dashboard — routes the report. Each entry is an object (`{github_login: "octocat"}`), not a bare string. Optional but high-leverage. |+| `priority` | `P0`–`P4` | Optional; pair with `priority_explanation`. Needed for an autostart draft PR. |+| `priority_explanation` | string | Required when `priority` is set. |+| `repository` | string | `owner/repo` for a code fix, the `NO_REPO` sentinel for a pure metric move, omitted for free-form. |++The result carries `report_id` (always set when a report was persisted — even when suppressed,+so you can edit / dedup against it), `report_status`, `emitted` (true only when it surfaced as+READY / PENDING_INPUT), `safety_explanation`, and `skipped_reason` (set only when a preflight+gate stopped the call before any report was created).++Stash the `report_id` in a `report:anomaly_detection:insight:<short_id>` scratchpad pointer so+the next run finds it instead of filing a duplicate — but condition the pointer on the outcome:++- **Surfaced** (`emitted=true`) — record the `report_id` as the live report to edit on a+ recurrence.+- **Suppressed** (`emitted=false` but a `report_id` came back — the safety judge or a+ `not_actionable` call kept it out of the inbox) — record the `report_id` together with its+ suppressed status. `edit_report` only rewrites title/summary or appends a note; it cannot+ resurface a suppressed report, so a later recurrence should re-author rather than edit the+ invisible one.++### Title++One tight, quantified headline naming the metric, the direction, and the date:+`Daily signups dropped ~60% vs same-weekday baseline (2026-06-06)`. A human scanning the inbox+should grasp what moved and how much from the title alone.++### Summary (the body prose)++`summary` renders as GitHub-flavored markdown in the inbox and is collapsed to the first ~300+characters behind a "Show more" toggle. Front-load, structure, no walls:++1. **Hook** — what moved, **quantified**: "daily signups dropped to 412 yesterday vs an ~1,050+ same-weekday baseline (robust z = 4.8)". End the lead with a blank line so the preview+ truncates at a clean break.+2. **Pattern** — the shape that makes it signal not noise: direction, that it cleared the+ seasonality-matched baseline, whether it's one bucket or sustained.+3. **Hypothesis** — the suspected cause (deploy, experiment, pipeline, real behavior change).+4. **Lineage** — if a prior report covered this insight, link it (you're usually editing it+ instead — see below).+5. **Recommendation** — a closing `Recommend: …` line naming the next action (which insight to+ open, what to check).++Cite the insight `short_id` and dashboard id inline so a human pivots straight to the source,+and close with the notebook URL: "Full write-up with charts: `<notebook-url>`."++### Evidence++Each entry `{description, source_id}`, 1–50, capped well below that in practice. Cite every+concrete claim. `source_id` is the citable entity id — the insight `short_id` for the scored+series, the notebook `short_id` for the write-up. Put the bucket value, the baseline median,+the z-score, and the time window in the descriptions. **Always include one evidence entry whose+`source_id` is the notebook `short_id`** and whose description links the write-up URL — that's+the durable artifact the human opens.++### Actionability, priority, repository++- **Actionability.** A metric anomaly is usually `requires_human_input` — a human investigates+ the move and decides whether it's a real regression (surfaces as PENDING_INPUT). Use+ `immediately_actionable` only when there's a concrete, obvious fix (e.g. a tracking+ regression from a named deploy — surfaces as READY). `not_actionable` is suppressed; the+ safety judge can suppress regardless, so don't inflate.+- **Priority** (the old severity, now an autostart input). `P0` active critical (outage / data+ loss); `P1` active material (a revenue/conversion drop hitting the business now); `P2`+ confirmed contained; `P3` suspected or minor; `P4` FYI. A sustained drop-to-zero on a key+ metric is typically P1; a one-bucket spike already receding is P2–P3. Set it (with+ `priority_explanation`) when the move is concrete enough to justify urgency.+- **Repository.** Most metric anomalies have no single code fix — pass the `NO_REPO` sentinel.+ Pass `owner/repo` only when the anomaly is a tracking/instrumentation regression you can point+ at a repo. Don't leave it to free-form selection unless you genuinely don't know.++### Suggested reviewers++The single highest-leverage field — it **routes** the report to whoever owns the metric. Resolve+the login cheapest-source-first (a `reviewer:anomaly_detection:<area>` scratchpad entry you cached+before; inbox precedent via `inbox-reports-list` on the same dashboard/surface), and cache it back+for next run. Each entry is a bare, lowercase GitHub login. If you can't resolve a confident login,+leave it empty — the report still surfaces — but never guess a handle.++## `edit_report` — update on a recurrence++A recurrence or escalation of an insight's anomaly you already reported is an **edit, not a new+report**. Find the live report (the `report:` pointer's `report_id` → `inbox-reports-retrieve`,+or `inbox-reports-list` by the insight), then:++- **`append_note`** with the new evidence — additive, audit-friendly, and the right move on any+ report (even a pipeline-authored one). Build a **fresh notebook** for the new window and link+ it in the note (one notebook per window — never append a new anomaly to a prior notebook).+- **Rewrite `title`/`summary`** only on a report you authored, and only when the framing is+ genuinely stale.++`edit_report` is preflight-gated like `emit_report`, but it **raises** when the scout is gated+(dry-run `emit=false`, un-approved AI processing, or a disabled source) rather than returning a+`skipped_reason` — the note is never appended. So if you built a fresh recurrence notebook and+the `edit_report` call is blocked (or otherwise doesn't commit), **delete that notebook with+`notebooks-destroy`** — same orphan-cleanup rule as a non-surfacing author. Equivalently, defer+building the notebook until the edit is about to commit.++A genuinely distinct anomaly (a different insight, or a new move on the same one after the prior+was resolved) is a new `emit_report`, with a `summary` lineage line citing the prior report.++## Dedup: the channel is NOT idempotent++`emit_report` has no server-side dedup key — a retried call authors a **second** report. The+dedup is yours, two-sided:++1. **Before authoring**, `inbox-reports-list` (search by the insight / metric / dashboard) and+ check your `report:anomaly_detection:insight:<short_id>` pointer. Found one? Check whether it+ is **live** before editing: if the pointer is flagged suppressed, or `inbox-reports-retrieve`+ shows the report is suppressed / already resolved, `edit_report` can't resurface it — author a+ fresh report (with a `summary` lineage line citing the prior `report_id`) instead. Only+ `edit_report` a report that is still surfaced.+2. **After authoring**, write the `report:` pointer with the `report_id` (and its status, so the+ next run applies the live-check above).++**Never retry an `emit_report` / `edit_report` that may have landed** — if unsure, `inbox-reports-list`+to check before re-sending. The pipeline may later re-research and rewrite a report you authored;+that's accepted — your durable record of "I filed this" is the `report_id` in the pointer, not the+title text.++## The notebook write-up++The report `summary` is the inbox surface; the **notebook is the durable artifact** behind it —+the place a human lands to see the charts, the baseline math, and the attribution that justify+the call. **Build the notebook _before_ you author the report**, then link its URL from the+summary and cite it as an evidence entry. One notebook per authored report (and one per window+on a recurrence).++### Create it++Call `notebooks-create` with a `title` and `content` (ProseMirror rich-text JSON). The response+carries the new notebook's `short_id` and a clickable URL in `_posthogUrl` (the tool enriches the+result with `/notebooks/{short_id}`) — surface that verbatim, don't hand-build it. If you ever+need to build the link yourself, it is `generate-app-url` with `url=/notebooks/{shortId}`.++- **Title** — name the metric, the direction, and the date, e.g.+ `Anomaly: daily signups dropped ~60% (2026-06-06)`.+- **One notebook per report** — never append a new anomaly to a prior run's notebook. A+ recurrence on a later day is a new notebook, linked from the `edit_report` note.++### What goes in it++Lead with the same hook the inbox sees, then the evidence the ~300-char preview can't hold:++1. **Summary** — the quantified hook (bucket value vs baseline, robust z, priority), one or two+ sentences. Same claim as the report summary, so the notebook stands alone.+2. **The chart** — embed the anomalous series so the spike/drop is visible, with the window wide+ enough (e.g. `-63d`) that the baseline _and_ the break are both on screen. A `SavedInsightNode`+ renders the insight's own saved date range and carries no date override — so use it only when+ that saved range already shows the baseline; if the insight is saved to a short window (often+ `-7d`), embed an inline widened `DataVisualizationNode` (or `InsightVizNode`) for the scored+ window instead.+3. **Baseline & method** — the seasonality-matched baseline (median + MAD per bucket), the+ z-score, which detector(s) `alert-simulate` fired, and that the partial bucket was excluded.+4. **Attribution** — which breakdown segment(s) drove the move, and whether it's broad+ (regression) or one segment (often expected).+5. **Hypothesis & next step** — suspected cause and what to check, matching the report summary.++### Embedded-chart recipe++Charts are `{type: "ph-query", attrs: {nodeId: "<unique>", query: <query>}}` nodes inside+`content`. `query` is one of:++- **Embed the anomalous saved insight** —+ `{kind: "SavedInsightNode", shortId: "<short_id>"}`. Renders the insight's _saved_ date range+ (no override); fine when that range shows the baseline, otherwise prefer a widened node below.+- **Chart a SQL-fallback series** —+ `{kind: "DataVisualizationNode", source: {kind: "HogQLQuery", query: "SELECT ..."}, display: "ActionsLineGraph"}`.+ Do **not** wrap a `HogQLQuery` in an `InsightVizNode`.+- **Build an ad-hoc product-analytics chart** —+ `{kind: "InsightVizNode", source: {kind: "TrendsQuery", ...}}`.++Prefer embedding the saved insight you scored — it stays in sync with the source and is the thing+the human will open next. Give each `ph-query` node a distinct `nodeId`.++`content` is a ProseMirror doc (the tool documents no node schema, so use this skeleton). Text is+`paragraph` / `heading` (with `attrs.level`) / `bulletList` → `listItem` → `paragraph`; charts are+`ph-query` nodes. A minimal working shape:++```json+{+ "type": "doc",+ "content": [+ {+ "type": "heading",+ "attrs": { "level": 1 },+ "content": [{ "type": "text", "text": "Anomaly: <metric> <direction> (<date>)" }]+ },+ { "type": "paragraph", "content": [{ "type": "text", "text": "<the quantified hook>" }] },+ {+ "type": "ph-query",+ "attrs": { "nodeId": "scored-insight", "query": { "kind": "SavedInsightNode", "shortId": "<short_id>" } }+ },+ { "type": "heading", "attrs": { "level": 2 }, "content": [{ "type": "text", "text": "Baseline & method" }] },+ {+ "type": "bulletList",+ "content": [+ {+ "type": "listItem",+ "content": [+ {+ "type": "paragraph",+ "content": [{ "type": "text", "text": "<baseline median + MAD, the z, partial bucket excluded>" }]+ }+ ]+ }+ ]+ }+ ]+}+```++For a SQL-fallback chart, swap the `ph-query` query for+`{ "kind": "DataVisualizationNode", "source": { "kind": "HogQLQuery", "query": "SELECT ..." }, "display": "ActionsLineGraph" }`.++### Clean up if the report doesn't surface++The notebook (gated only by `notebook:write`) is created before the report channel runs its+preflight gates and safety judge. If the report **did not surface** — `emit_report` returned a+`skipped_reason` (dry-run `emit=false`, un-approved AI processing, or a disabled source — no+report created), or the safety judge suppressed it (`emitted=false`) — **delete the just-created+notebook with `notebooks-destroy`** so a non-surfacing run leaves no orphan user-facing artifact.+Only a notebook behind a surfaced report should survive the run. Skipping notebook _creation_ is+acceptable only if `notebooks-create` fails — then author anyway and note the missing artifact in+the summary.++## Worked example++```yaml+# signals-scout-emit-report+title: 'Daily signups dropped ~60% vs same-weekday baseline (2026-06-06)'+actionability: requires_human_input+actionability_explanation: >+ A human needs to confirm whether this is a broken signup flow or a tracking regression and+ decide the fix.+priority: P1+priority_explanation: >+ Signups are a top-of-funnel business metric; a sustained ~60% drop is active material impact.+suggested_reviewers:+ - github_login: octocat+repository: NO_REPO+evidence:+ - source_id: 9aBcDeF+ description: >+ 'Daily signups' (insight 9aBcDeF on dashboard Growth/41233): yesterday 412 vs 8-same-weekday+ median 1,048 (MAD 95) → robust z = 4.8. Prior 7 same-weekdays all within ±1.5 z. Latest+ complete day only; today's partial bucket excluded.+ - source_id: aB12cD34+ description: >+ Write-up with the -63d chart, the per-weekday baseline, and the segment attribution:+ https://us.posthog.com/project/41233/notebooks/aB12cD34+summary: |+ Daily signups dropped to 412 yesterday (2026-06-06) against an ~1,048 same-weekday baseline+ (robust z = 4.8, MAD 95) on insight 9aBcDeF, pinned to the Growth dashboard (41233).++ **Pattern** — a single complete-day drop of ~60%, well outside the weekday rhythm: the last 8+ same weekdays were all within ±1.5 z, so it's not seasonality, and it's not a pipeline gap (other+ insights are unaffected at the same timestamp).+ **Hypothesis** — likely a broken signup flow or a tracking regression from a recent deploy.+ Recommend: open insight 9aBcDeF, check whether the drop is broad or segment-specific, and+ correlate with today's deploys. Full write-up with charts:+ https://us.posthog.com/project/41233/notebooks/aB12cD34.+```++Why it's good: quantified title and hook with the baseline and z, seasonality and pipeline-gap+explicitly ruled out, partial bucket excluded, actionable recommendation, the notebook cited in+evidence and linked from the summary, `requires_human_input` (a human decides the fix) with P1+justified by business impact, and a reviewer set so it routes to an owner.diff --git a/products/signals/skills/signals-scout-anomaly-detection/references/watchlist-and-memory.md b/products/signals/skills/signals-scout-anomaly-detection/references/watchlist-and-memory.mdindex f8a0236df545..67845242c0fe 100644--- a/products/signals/skills/signals-scout-anomaly-detection/references/watchlist-and-memory.md+++ b/products/signals/skills/signals-scout-anomaly-detection/references/watchlist-and-memory.md@@ -15,17 +15,18 @@ rewrites the entry in place (the idempotent refresh — use it to update a basel### Key vocabulary-| Key prefix | Holds |-| ---------------------------------------------------- | --------------------------------------------------------------------------------- |-| `watchlist:anomaly_detection:insight:<short_id>` | A curated insight to watch (the ledger row — see schema below). |-| `watchlist:anomaly_detection:dashboard:<id>` | A curated whole dashboard to sweep (when its tiles are collectively key). |-| `watchlist:anomaly_detection:importance-refresh` | Memo: when the watchlist's importance ranking was last reconciled + what changed. |-| `baseline:anomaly_detection:insight:<short_id>` | The learned normal: median + MAD per seasonal bucket, so scoring is cheap. |-| `dedupe:anomaly_detection:insight:<short_id>:<date>` | An anomaly already surfaced, with the re-escalation condition. |-| `noise:anomaly_detection:<topic>` | A pattern to ignore (a chronically erratic insight, a seasonal quirk). |-| `addressed:anomaly_detection:<topic>` | Team-confirmed expected (a launch/backfill) or fix shipped — skip. |-| `allowlist:anomaly_detection:insight:<short_id>` | An insight to never surface (deprecated, sandbox, test). |-| `not-in-use:anomaly_detection:team{team_id}` | Close-out memo: team isn't actively using saved analytics right now. |+| Key prefix | Holds |+| ------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |+| `watchlist:anomaly_detection:insight:<short_id>` | A curated insight to watch (the ledger row — see schema below). |+| `watchlist:anomaly_detection:dashboard:<id>` | A curated whole dashboard to sweep (when its tiles are collectively key). |+| `watchlist:anomaly_detection:importance-refresh` | Memo: when the watchlist's importance ranking was last reconciled + what changed. |+| `baseline:anomaly_detection:insight:<short_id>` | The learned normal: median + MAD per seasonal bucket, so scoring is cheap. |+| `report:anomaly_detection:insight:<short_id>` | Pointer to the inbox report you authored for this anomaly: `report_id` + re-escalation condition. Add a `:<series-or-direction>` suffix when one insight carries genuinely distinct concurrent anomalies (multi-series / breakdown, or an opposite-direction move) so they don't collapse onto one report. |+| `reviewer:anomaly_detection:<area>` | A cached owner: the bare lowercase GitHub login for a dashboard / metric area. |+| `noise:anomaly_detection:<topic>` | A pattern to ignore (a chronically erratic insight, a seasonal quirk). |+| `addressed:anomaly_detection:<topic>` | Team-confirmed expected (a launch/backfill) or fix shipped — skip. |+| `allowlist:anomaly_detection:insight:<short_id>` | An insight to never surface (deprecated, sandbox, test). |+| `not-in-use:anomaly_detection:team{team_id}` | Close-out memo: team isn't actively using saved analytics right now. |### Watchlist entry schema@@ -41,7 +42,7 @@ content: "Revenue over time | dashboards: go/revenue(198672) | metric: daily revFields: human name, the dashboard(s) it lives on, what metric you actually score, cadence(`hourly`/`daily`), priority (`high`/`med`/`low`, from view count + business importance),-`last_checked`, `next_due`, `last_status` (normal / watch / emitted with the last z), and when+`last_checked`, `next_due`, `last_status` (normal / watch / reported with the last z), and whenyou added it. `low-data` is a valid `last_status` for items you can't baseline yet.### Baseline entry schema@@ -104,16 +105,17 @@ the run summary, or a `watchlist:` `next_due` you set to "now" on the next item)run knows where to resume. The run summary (`signals-scout-runs-list`) is the natural place tosay "checked items A–F; G–K still due next run."-## The four states (classify every candidate before emitting)--1. **Net new** — no prior run or scratchpad entry covers this metric move. → Emit if it- clears the bar (robust z ≥ ~3.5, confidence ≥ 0.65, guards passed).-2. **Material update** — a prior run surfaced this insight's anomaly, but there's new- evidence (it's still firing, escalated, spread to related insights, or correlates with a- fresh deploy). → Emit fresh, **cite the prior `finding_id`** in the description and- evidence; the inbox groups by dedupe key.-3. **Already covered** — a prior run emitted the same move with the same shape, still within- the window. → Skip; optionally refresh the `dedupe:` entry's timestamp.+## The four states (classify every candidate before reporting)++1. **Net new** — no prior report or scratchpad entry covers this metric move. → **Author** a+ report (`emit_report`) if it clears the bar (robust z ≥ ~3.5, guards passed, seasonality+ ruled out). Stash a `report:` pointer with the new `report_id`.+2. **Material update** — you already reported this insight's anomaly, but there's new evidence+ (it's still firing, escalated, spread to related insights, or correlates with a fresh+ deploy). → **Edit** the existing report (`edit_report`): `append_note` with the new evidence+ (link a fresh notebook for the new window). Don't author a second report for the same move.+3. **Already covered** — the report exists and the move is unchanged, still within the window.+ → Skip; optionally refresh the `report:` pointer's note in place.4. **Addressed or noise** — a `noise:` / `addressed:` / `allowlist:` entry names it (chronicerratic insight, known launch/backfill, deprecated insight). → Skip; note in the summary.@@ -122,23 +124,24 @@ say "checked items A–F; G–K still due next run."Good entries are future-run actionable — the next run reads them and changes behavior.```text-key: dedupe:anomaly_detection:insight:SRVNODib:2026-06-07-content: "2026-06-07: emitted spike on 'LLM Costs By AI Product' — daily sum 3.4x the- 8-Saturday baseline (z=5.1), started 06-06. If still elevated next run, escalate as- sustained; if back within baseline, treat as surfaced and stop."+key: report:anomaly_detection:insight:SRVNODib+content: "report_id 0192f3a1-... — authored 2026-06-07 for the spike on 'LLM Costs By AI+ Product': daily sum 3.4x the 8-Saturday baseline (z=5.1), started 06-06. If still+ elevated next run, edit_report (append_note) to escalate as sustained; if back within+ baseline, leave the report and stop."``````textkey: noise:anomaly_detection:insight:tQnsSMoIcontent: "'Generation calls' is chronically spiky — big legit swings on model launches and- backfills. Require z>=4.5 AND a same-day deploy/launch correlation before emitting;+ backfills. Require z>=4.5 AND a same-day deploy/launch correlation before reporting;otherwise refresh baseline only."``````textkey: addressed:anomaly_detection:revenue-backfill-2026-06content: "Revenue insights show a one-off step on 2026-06-03 from a Stripe backfill, not a- real change. Team aware. Don't emit revenue-series steps dated 2026-06-03."+ real change. Team aware. Don't report revenue-series steps dated 2026-06-03."```Bad entry: key `note-1`, content "revenue looked weird today" — no entity, no condition, no